:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-solid: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #d97706;
  --danger: #ef4444;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.11), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.32);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.logo-text em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.nav-link,
.mobile-nav-link {
  color: var(--soft);
  border-radius: 999px;
  transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.nav-link {
  padding: 10px 15px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.14);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 4px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav-link {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.7);
}

.hero {
  max-width: 1320px;
  margin: 26px auto 0;
  padding: 0 24px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  min-height: 650px;
  display: none;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 420px);
  gap: 42px;
  align-items: center;
  padding: 72px;
  background-position: center;
  background-size: cover;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.6s ease both;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0 18px;
  color: #fff;
  font-size: clamp(36px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-lead {
  margin: 0 0 14px;
  color: #e2e8f0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.hero-summary {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}

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

.hero-tags {
  margin: 26px 0;
}

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
}

.tag-row span {
  padding: 5px 9px;
}

.hero-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-button,
.ghost-button,
.quick-actions a,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
  color: #111827;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.ghost-button,
.quick-actions a {
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.62);
  color: var(--text);
}

.primary-button:hover,
.ghost-button:hover,
.quick-actions a:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.48);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.04);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #111827;
  font-weight: 900;
  background: var(--amber-light);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 26px;
  line-height: 1;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
  width: 28px;
  background: var(--amber-light);
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-rail {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 20px;
  align-items: stretch;
}

.hero-rail > div {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.24);
}

.hero-rail > div:first-child {
  padding: 26px;
}

.hero-rail h2,
.section-heading h2,
.feature-panel h2,
.detail-sidebar h2 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero-rail p,
.section-heading p,
.page-hero p,
.category-overview-card p,
.feature-panel p,
.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.mini-feature-grid {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.mini-feature {
  position: relative;
  overflow: hidden;
  min-height: 158px;
  border-radius: 18px;
  background: #111827;
}

.mini-feature img {
  width: 100%;
  height: 100%;
  min-height: 158px;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mini-feature:hover img {
  transform: scale(1.06);
  opacity: 0.96;
}

.mini-feature span {
  position: absolute;
  inset: auto 8px 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.content-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.section-heading {
  max-width: 800px;
}

.inline-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-more,
.text-link {
  color: var(--amber-light);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 52px rgba(245, 158, 11, 0.12);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #0f172a;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .poster-image {
  transform: scale(1.07);
  opacity: 0.9;
}

.card-badge,
.play-mark {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.card-badge {
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  color: #111827;
  background: var(--amber-light);
  font-size: 12px;
}

.play-mark {
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  color: #111827;
  background: rgba(251, 191, 36, 0.95);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin: 7px 0;
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 800;
}

.card-summary {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #111827;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(2, 6, 23, 0.96), transparent);
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.66;
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile span {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 6px;
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 420px;
  gap: 24px;
  align-items: start;
}

.feature-panel,
.detail-sidebar,
.filter-panel,
.player-card,
.detail-article,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}

.feature-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

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

.movie-card-compact {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card-compact .poster-link {
  aspect-ratio: auto;
  min-height: 124px;
}

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

.movie-card-compact .card-title {
  min-height: auto;
  font-size: 14px;
}

.movie-card-compact .card-summary,
.movie-card-compact .tag-row,
.movie-card-compact .play-mark {
  display: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background: #111827;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  color: #fff;
  font-weight: 900;
}

.rank-content p {
  display: -webkit-box;
  margin: 4px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-content span {
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  max-width: 1320px;
  margin: 26px auto 0;
  padding: 72px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background-color: #0f172a;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.slim-hero,
.category-hero,
.ranking-hero {
  padding: 76px 72px;
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 260px 180px;
  gap: 14px;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field span {
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(2, 6, 23, 0.64);
  color: var(--text);
  padding: 0 15px;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(245, 158, 11, 0.68);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.empty-state {
  display: none;
  margin: 14px 0 0;
  color: var(--muted);
}

.empty-state.is-visible {
  display: block;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  align-items: center;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 7px 0;
  color: #fff;
  font-size: 28px;
}

.ranking-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-hero {
  padding: 32px 42px 52px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--soft);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-light);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  max-width: 940px;
  font-size: clamp(34px, 6vw, 64px);
}

.detail-lead {
  max-width: 850px;
  margin: 0 0 18px;
  color: #e2e8f0;
  font-size: 20px;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--soft);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  padding: 14px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
  color: #fff;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
  font-size: 34px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
}

.play-overlay strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.detail-article {
  margin-top: 24px;
  padding: 28px;
}

.detail-article h2,
.related-section h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p {
  margin: 0;
  color: var(--soft);
  font-size: 17px;
}

.related-section {
  padding-top: 36px;
}

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

.detail-sidebar {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.compact-ranking .rank-row {
  grid-template-columns: 42px 58px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
}

.compact-ranking .rank-number {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 13px;
}

.compact-ranking .rank-content p {
  display: none;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 38px 24px;
  display: grid;
  gap: 18px;
}

.footer-inner strong {
  color: #fff;
  font-size: 20px;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.footer-cats a {
  color: var(--soft);
}

.footer-links a:hover,
.footer-cats a:hover {
  color: var(--amber-light);
}

.copyright {
  font-size: 13px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-slide,
  .detail-hero-grid,
  .intro-section,
  .split-section,
  .detail-layout,
  .hero-rail {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 52px;
  }

  .hero-poster {
    max-width: 420px;
  }

  .feature-panel,
  .detail-sidebar {
    position: static;
  }

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

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

  .ranking-page-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    padding: 14px 16px;
  }

  .site-logo {
    min-width: 0;
  }

  .logo-text strong {
    font-size: 16px;
  }

  .logo-text em {
    display: none;
  }

  .hero,
  .content-section,
  .page-hero,
  .detail-hero {
    margin-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage,
  .page-hero,
  .detail-hero {
    border-radius: 26px;
  }

  .hero-slide {
    min-height: auto;
    padding: 44px 24px 90px;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.035em;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 360px;
  }

  .mini-feature-grid,
  .movie-grid,
  .movie-grid-wide,
  .category-grid,
  .category-overview-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .detail-hero-grid {
    gap: 24px;
  }

  .detail-poster {
    width: min(260px, 100%);
  }
}

@media (max-width: 540px) {
  .mobile-nav.is-open,
  .mini-feature-grid,
  .movie-grid,
  .movie-grid-wide,
  .category-grid,
  .category-overview-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 34px 18px 88px;
  }

  .hero-tags span,
  .tag-row span {
    font-size: 11px;
  }

  .hero-actions,
  .quick-actions,
  .inline-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button,
  .quick-actions a {
    width: 100%;
  }

  .rank-row {
    grid-template-columns: 44px 64px minmax(0, 1fr);
    gap: 10px;
  }
}
