:root {
  --blue-900: #0f2a55;
  --blue-800: #16427b;
  --blue-700: #1d4f91;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --gray-950: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 360px);
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.22);
}

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link,
.dropdown-trigger {
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  padding: 9px 4px;
  cursor: pointer;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-trigger:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 190px;
  padding: 10px;
  background: var(--white);
  color: var(--gray-800);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gray-700);
}

.dropdown-panel a:hover {
  background: #eef5ff;
  color: var(--blue-600);
}

.header-search {
  position: relative;
  width: 250px;
}

.header-search input,
.mobile-search input,
.catalog-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  max-height: 430px;
  overflow-y: auto;
  background: var(--white);
  color: var(--gray-800);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: none;
  padding: 8px;
}

.search-results.open {
  display: block;
}

.search-results a {
  display: block;
  padding: 12px;
  border-radius: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.search-results a:last-child {
  border-bottom: 0;
}

.search-results a:hover {
  background: #eef5ff;
}

.search-results strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.search-results span {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px 20px 18px;
}

.mobile-link {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.mobile-link.active {
  color: var(--white);
}

.mobile-search {
  position: relative;
  margin-top: 10px;
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--blue-900);
}

.hero-track,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.24) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-500), var(--red-500));
  color: var(--white);
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-tags span,
.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 8px 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--red-500));
  box-shadow: 0 16px 28px rgba(239, 68, 68, 0.28);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--white);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  color: var(--blue-700);
  background: #eef5ff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.hero-keywords span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

main,
.page-main,
.detail-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 58px;
}

.search-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: -42px auto 44px;
  padding: 24px 28px;
  position: relative;
  z-index: 6;
  color: var(--white);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
  box-shadow: var(--shadow);
}

.search-band span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-band h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 32px);
}

.search-band a,
.section-heading a,
.category-block-head a,
.panel-title a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  color: var(--blue-700);
  background: var(--white);
  white-space: nowrap;
}

.content-section,
.category-block {
  margin: 46px 0;
}

.section-heading,
.category-block-head,
.panel-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2,
.category-block-head h2,
.panel-title span {
  margin: 8px 0 0;
  color: var(--gray-950);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading a,
.category-block-head a,
.panel-title a {
  background: #eef5ff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-tile {
  display: block;
  min-height: 235px;
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 16px;
}

.category-covers img {
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--gray-100);
}

.category-tile span,
.category-block-head span {
  color: var(--orange-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.category-tile strong {
  display: block;
  margin: 8px 0 7px;
  font-size: 20px;
}

.category-tile p,
.category-block-head p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.6;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.all-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card[hidden] {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-100);
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.play-float {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  font-size: 14px;
}

.movie-card-body {
  padding: 15px;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 9px 0 7px;
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h3 a:hover {
  color: var(--blue-600);
}

.movie-card p {
  min-height: 43px;
  margin: 0 0 12px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.55;
}

.movie-card.compact .movie-card-body {
  padding: 13px;
}

.movie-card.compact h3 {
  font-size: 16px;
}

.movie-card.compact p {
  display: none;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fbff;
}

.horizontal-card:hover {
  background: #eef5ff;
}

.horizontal-card img {
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
}

.horizontal-card strong,
.horizontal-card em {
  display: block;
}

.horizontal-card strong {
  margin-bottom: 7px;
  color: var(--gray-900);
}

.horizontal-card em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 30px;
  align-items: center;
  margin: 26px 0 42px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 30px;
  color: var(--white);
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.45), transparent 35%), linear-gradient(135deg, var(--blue-900), var(--blue-600));
  box-shadow: var(--shadow);
}

.small-hero,
.ranking-hero {
  display: block;
}

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.75;
}

.catalog-search-box {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.catalog-search-box input {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: none;
}

.filter-row,
.sibling-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip,
.sibling-links a {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover,
.sibling-links a:hover {
  background: var(--white);
  color: var(--blue-700);
}

.empty-state {
  display: none;
  margin: 40px 0;
  padding: 30px;
  border-radius: 22px;
  background: var(--white);
  color: var(--gray-500);
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.empty-state.open {
  display: block;
}

.category-block {
  padding: 26px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-table {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-row {
  display: grid;
  grid-template-columns: 60px 1fr minmax(220px, 0.45fr) 70px;
  gap: 14px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.rank-row:hover {
  background: #f8fbff;
}

.rank-row b {
  color: var(--orange-500);
}

.rank-row em {
  color: var(--gray-500);
  font-style: normal;
}

.rank-row strong {
  color: var(--blue-700);
  text-align: right;
}

.detail-main {
  padding-top: 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  margin: 12px 0 24px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue-700);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 32px;
  align-items: center;
  padding: 30px;
  border-radius: 30px;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.25), transparent 35%), linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: var(--shadow);
  color: var(--white);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.28);
}

.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.one-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.7;
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.player-section,
.detail-content,
.related-section {
  margin-top: 44px;
}

.plain-heading {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.64));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  box-shadow: 0 20px 45px rgba(239, 68, 68, 0.34);
  font-size: 34px;
  padding-left: 6px;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-content article,
.detail-side {
  border-radius: 26px;
  background: var(--white);
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-content h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: var(--gray-950);
  font-size: 26px;
}

.detail-content p {
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.detail-side dl {
  margin: 0;
}

.detail-side div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.detail-side div:last-child {
  border-bottom: 0;
}

.detail-side dt {
  color: var(--gray-500);
}

.detail-side dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
}

.site-footer {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--gray-950);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 36px;
}

.footer-logo {
  color: var(--white);
}

.footer-inner p {
  max-width: 620px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links strong {
  color: var(--white);
  margin-bottom: 4px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 18px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .category-grid,
  .all-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 920px) {
  .site-nav,
  .header-search {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .mobile-panel.open {
    display: block;
  }

  .hero {
    height: 620px;
  }

  .page-hero,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 280px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .all-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-wrap {
    padding: 12px 16px;
  }

  .site-logo {
    font-size: 20px;
  }

  .hero {
    height: 590px;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero-bg {
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.72) 100%), var(--hero-image);
  }

  main,
  .page-main,
  .detail-main {
    padding-left: 15px;
    padding-right: 15px;
  }

  .search-band,
  .section-heading,
  .category-block-head,
  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .all-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p,
  .tag-row {
    display: none;
  }

  .page-hero,
  .detail-hero,
  .category-block,
  .detail-content article,
  .detail-side {
    border-radius: 22px;
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: 42px 1fr 54px;
  }

  .rank-row em {
    display: none;
  }

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .all-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-covers img {
    height: 55px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
