:root {
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f3f4f6;
  --color-line: #e5e7eb;
  --color-card: #ffffff;
  --color-dark: #0f172a;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: #f9fafb;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 3px;
}

.header-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.main-nav,
.quick-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quick-nav {
  color: #4b5563;
  font-size: 13px;
}

.quick-nav a,
.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quick-nav a:hover,
.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
  background: #eff6ff;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(310px, 100%);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button,
.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
  color: #ffffff;
  background: var(--color-primary);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
}

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: linear-gradient(120deg, #0f172a, #334155);
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide img.is-missing {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, rgba(59, 130, 246, 0.32), transparent 36%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.20)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.15));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 66px;
  width: min(720px, calc(100% - 64px));
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
  background: linear-gradient(90deg, #dc2626, #ec4899);
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 650px;
  color: #e5e7eb;
  font-size: 18px;
  margin: 0 0 18px;
}

.hero-meta,
.movie-meta,
.hero-tags,
.tag-row,
.detail-tags,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.movie-meta span,
.hero-tags span,
.tag-row span,
.detail-tags a,
.hero-stats span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 650;
}

.hero-meta span,
.hero-tags span {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  padding: 10px 18px;
}

.primary-button {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.primary-button:hover,
.header-search button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.70);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.page-main {
  padding: 32px 0 64px;
}

.content-section {
  padding: 56px 0;
}

.feature-band,
.warm-band {
  margin: 18px 0;
}

.feature-band {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.warm-band {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading .eyebrow,
.page-hero .eyebrow,
.detail-heading .eyebrow {
  color: #2563eb;
  background: #dbeafe;
}

.section-heading h2,
.page-hero h1,
.rank-panel-head h2,
.detail-heading h1 {
  margin: 10px 0 0;
  color: var(--color-text);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.section-more,
.text-button {
  color: var(--color-primary);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-card);
}

.movie-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster {
  position: relative;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.20), rgba(236, 72, 153, 0.20)),
    #e5e7eb;
}

.poster-card {
  aspect-ratio: 16 / 10;
}

.poster img,
.list-cover img,
.side-poster-card img,
.category-entry img,
.category-overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster figcaption {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: none;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.poster img.is-missing + figcaption,
.poster:has(img.is-missing) figcaption {
  display: block;
}

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.22);
}

.movie-card-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.movie-card h3,
.list-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.list-card h3 a:hover {
  color: var(--color-primary);
}

.movie-one-line,
.list-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  color: var(--color-muted);
  gap: 8px;
}

.movie-meta span {
  color: #4b5563;
  background: #f3f4f6;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  color: #1d4ed8;
  background: #eff6ff;
}

.list-stack {
  display: grid;
  gap: 14px;
}

.list-card {
  display: grid;
  grid-template-columns: auto 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.rank-number.soft {
  background: #e0f2fe;
  color: #0369a1;
}

.list-cover {
  width: 116px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
}

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

.ghost-button {
  color: var(--color-primary);
  background: #eff6ff;
}

.ghost-button:hover {
  color: #ffffff;
  background: var(--color-primary);
}

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

.rank-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-panel-head {
  padding: 24px 24px 12px;
}

.rank-panel-head span {
  color: #f97316;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rank-panel-head h2 {
  color: #ffffff;
  font-size: 28px;
}

.rank-panel-head p {
  margin: 8px 0 0;
  color: #cbd5e1;
}

.compact-rank-list {
  list-style: none;
  margin: 0;
  padding: 8px 16px 20px;
}

.compact-rank-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.compact-rank-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  color: #e5e7eb;
}

.compact-rank-list span {
  color: #f97316;
  font-weight: 900;
}

.compact-rank-list em {
  color: #94a3b8;
  font-style: normal;
  font-size: 12px;
}

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

.category-entry {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #ffffff;
  border-radius: var(--radius-md);
  background: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.15);
}

.category-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.90), rgba(15, 23, 42, 0.15));
}

.category-entry img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.category-entry strong {
  font-size: 22px;
}

.category-entry em {
  color: #e5e7eb;
  font-style: normal;
  font-size: 13px;
  margin-top: 8px;
}

.category-count {
  width: max-content;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.split-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.soft-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.20), transparent 32%),
    linear-gradient(135deg, #ffffff, #eff6ff);
}

.category-hero,
.rank-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.26), transparent 30%),
    linear-gradient(135deg, #0f172a, #1d4ed8);
}

.category-hero h1,
.category-hero p,
.rank-hero h1,
.rank-hero p {
  color: #ffffff;
}

.hero-stats {
  margin-top: 22px;
}

.hero-stats span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.category-overview-cover {
  min-height: 260px;
  background: #e5e7eb;
}

.category-overview-body {
  padding: 26px;
}

.category-overview-body span {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
}

.category-overview-body h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.category-overview-body p {
  color: var(--color-muted);
  margin: 0 0 16px;
}

.category-overview-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}

.category-overview-body li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #374151;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.toolbar,
.rank-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.toolbar input,
.rank-search input,
.search-controls input,
.search-controls select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  outline: 0;
  padding: 12px 14px;
  background: #ffffff;
}

.toolbar span,
.search-summary {
  color: var(--color-muted);
  font-size: 14px;
}

.rank-search {
  margin-top: 24px;
  max-width: 620px;
}

.rank-search button {
  min-width: 130px;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  background: var(--color-primary);
}

.search-panel {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.search-controls {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.search-controls label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.search-summary {
  margin-bottom: 18px;
}

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

.breadcrumb a:hover {
  color: var(--color-primary);
}

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

.detail-primary {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.32), transparent 28%),
    linear-gradient(135deg, #020617, #111827);
  box-shadow: var(--shadow-card);
}

.movie-player {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  border: 0;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.26)),
    rgba(2, 6, 23, 0.20);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  background: var(--color-primary);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.36);
}

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

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #ffffff;
  font-size: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(2, 6, 23, 0.68);
}

.player-message:empty {
  display: none;
}

.detail-card,
.detail-sidebar > section,
.side-poster-card {
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.detail-card {
  padding: 28px;
}

.detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-line);
}

.detail-heading p {
  margin: 12px 0 0;
  color: var(--color-muted);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
}

.detail-meta-grid .wide {
  grid-column: span 4;
}

.detail-meta-grid dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-meta-grid dd {
  margin: 6px 0 0;
  color: var(--color-text);
  font-weight: 750;
}

.detail-text {
  margin-top: 22px;
}

.detail-text h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-text p {
  margin: 0;
  color: #374151;
}

.review-block {
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.detail-tags {
  margin-top: 22px;
}

.detail-tags a {
  color: #1d4ed8;
  background: #eff6ff;
}

.detail-sidebar {
  display: grid;
  gap: 20px;
}

.side-poster-card {
  overflow: hidden;
}

.side-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e5e7eb;
}

.side-poster-card div {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.side-poster-card span {
  color: var(--color-muted);
}

.compact-panel {
  border: 0;
}

.is-filtered-out {
  display: none !important;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-brand {
  display: flex;
  gap: 12px;
}

.footer-brand strong,
.site-footer h2 {
  color: #ffffff;
}

.footer-brand p,
.site-footer p {
  color: #94a3b8;
}

.footer-links {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-column-layout,
  .detail-layout,
  .split-feature {
    grid-template-columns: 1fr;
  }

  .search-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .mobile-menu-button {
    display: inline-flex;
  }

  .header-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
  }

  .header-panel.is-open {
    display: flex;
  }

  .main-nav,
  .quick-nav {
    flex-wrap: wrap;
  }

  .header-search {
    width: 100%;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-content {
    left: 24px;
    bottom: 58px;
    width: calc(100% - 48px);
  }

  .hero-arrow {
    display: none;
  }

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

  .list-card {
    grid-template-columns: auto 92px minmax(0, 1fr);
  }

  .list-card .ghost-button {
    grid-column: 3;
    width: max-content;
  }

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

  .category-overview-cover {
    min-height: 220px;
  }

  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-meta-grid .wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel {
    height: 500px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .search-controls,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .detail-heading,
  .footer-bottom,
  .toolbar,
  .rank-search {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .rank-number {
    display: none;
  }

  .list-cover {
    width: 82px;
  }

  .list-card .ghost-button {
    grid-column: 2;
  }

  .page-hero,
  .detail-card,
  .search-panel {
    padding: 22px;
  }

  .player-shell,
  .movie-player {
    min-height: 260px;
  }
}
