/*
  Static movie website stylesheet.
  The visual system follows the uploaded React/Tailwind build: slate dark header,
  amber accents, gradient hero, rounded cards, shadows, hover transitions,
  responsive grids and a prominent player area.
*/

:root {
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-850: #111c31;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-amber-600: #d97706;
  --color-amber-500: #f59e0b;
  --color-amber-400: #fbbf24;
  --color-amber-300: #fcd34d;
  --color-red-600: #dc2626;
  --color-rose-600: #e11d48;
  --color-blue-600: #2563eb;
  --color-cyan-600: #0891b2;
  --color-green-600: #16a34a;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 24px 70px rgba(15, 23, 42, 0.22);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --site-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--color-slate-900);
  background: linear-gradient(180deg, var(--color-slate-50) 0%, var(--color-slate-100) 100%);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--color-slate-900), var(--color-slate-800), var(--color-slate-900));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 42px rgba(2, 6, 23, 0.32);
}

.header-inner {
  width: min(100% - 32px, var(--site-max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, var(--color-amber-300), var(--color-amber-500) 45%, var(--color-amber-600));
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.38);
  color: #fff;
  font-weight: 900;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-title {
  font-size: 23px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--color-slate-400);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--color-slate-300);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 190px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 10px 42px 10px 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  outline: none;
  transition: width 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus {
  width: 260px;
  border-color: var(--color-amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.header-search button {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
}

.mobile-menu {
  display: none;
  width: min(100% - 32px, var(--site-max));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  margin: 8px 0;
  background: rgba(15, 23, 42, 0.62);
}

.site-main {
  min-height: 70vh;
}

.container {
  width: min(100% - 32px, var(--site-max));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.22), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(251, 191, 36, 0.16), transparent 32%),
    linear-gradient(90deg, var(--color-slate-900), #422006 48%, var(--color-slate-900));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(255, 255, 255, 0.42) 35px,
    rgba(255, 255, 255, 0.42) 70px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(100% - 32px, var(--site-max));
  min-height: 620px;
  margin: 0 auto;
  padding: 74px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.92fr);
  gap: 46px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 999px;
  color: var(--color-amber-300);
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--color-amber-400), #fff7ed, var(--color-amber-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 610px;
  margin: 0 0 28px;
  color: var(--color-slate-300);
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-search {
  width: min(100%, 610px);
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 7px;
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.5);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.26);
  backdrop-filter: blur(16px);
}

.hero-search input {
  min-width: 0;
  border: 0;
  padding: 15px 16px;
  color: #fff;
  background: transparent;
  outline: 0;
}

.hero-search input::placeholder {
  color: var(--color-slate-400);
}

.hero-search button,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 850;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-search button,
.button-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--color-amber-500), var(--color-amber-600));
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.30);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-search button:hover,
.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(245, 158, 11, 0.34);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  max-width: 570px;
}

.stat-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.stat-card strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  color: #fff;
}

.stat-card span {
  color: var(--color-slate-400);
  font-size: 13px;
}

.hero-feature {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.52);
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.48);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #1f2937, #78350f);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.82));
}

.hero-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px;
}

.hero-slide-content h2 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: var(--color-slate-200);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 56px 0;
}

.section-tight {
  padding: 34px 0;
}

.section-dark {
  color: #fff;
  background: linear-gradient(180deg, var(--color-slate-900), var(--color-slate-950));
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-description {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--color-slate-500);
}

.section-dark .section-description {
  color: var(--color-slate-400);
}

.view-more {
  color: var(--color-amber-600);
  font-weight: 850;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-slate-800), var(--color-slate-900));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -44px;
  top: -44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.category-card.orange {
  background: linear-gradient(135deg, #f97316, #b91c1c);
}

.category-card.red {
  background: linear-gradient(135deg, #ef4444, #9f1239);
}

.category-card.amber {
  background: linear-gradient(135deg, #f59e0b, #92400e);
}

.category-card.blue {
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

.category-card.pink {
  background: linear-gradient(135deg, #e11d48, #be185d);
}

.category-card.purple {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.category-card.slate {
  background: linear-gradient(135deg, #334155, #020617);
}

.category-card.green {
  background: linear-gradient(135deg, #16a34a, #047857);
}

.category-card.teal {
  background: linear-gradient(135deg, #0d9488, #064e3b);
}

.category-icon {
  position: relative;
  z-index: 1;
  font-size: 34px;
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 12px 0 6px;
  font-size: 23px;
}

.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--shadow-hover);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-slate-800), #78350f);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease, filter 0.38s ease;
}

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

.poster-badge,
.poster-score,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.95);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-score {
  right: 10px;
  top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.34);
}

.movie-card:hover .poster-play {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

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

.movie-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.32;
  font-weight: 850;
}

.movie-title a:hover {
  color: var(--color-amber-600);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--color-slate-500);
  font-size: 12px;
}

.movie-one-line {
  margin: 9px 0 0;
  color: var(--color-slate-600);
  font-size: 13px;
  line-height: 1.55;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.movie-tag {
  padding: 3px 7px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 11px;
  font-weight: 750;
}

.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.22), transparent 32%),
    linear-gradient(95deg, var(--color-slate-900), #451a03, var(--color-slate-900));
}

.page-hero-inner {
  width: min(100% - 32px, var(--site-max));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--color-slate-300);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-slate-400);
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
  background: #fff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--color-amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--color-slate-700);
  font-weight: 800;
}

.pagination a:hover,
.pagination .is-current {
  color: #fff;
  background: var(--color-amber-500);
  border-color: var(--color-amber-500);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-amber-600));
  font-size: 20px;
  font-weight: 900;
}

.rank-poster {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-slate-800);
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: var(--color-slate-500);
}

.rank-score {
  text-align: right;
  color: var(--color-slate-500);
  font-size: 14px;
}

.rank-score strong {
  display: block;
  color: var(--color-amber-600);
  font-size: 26px;
}

.detail-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.74)),
    var(--detail-cover, linear-gradient(135deg, #111827, #78350f));
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  width: min(100% - 32px, var(--site-max));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 26px;
  background: var(--color-slate-800);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.48);
}

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

.detail-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
}

.detail-copy .movie-tags {
  margin-top: 16px;
}

.detail-copy .movie-tag {
  color: #fff;
  background: rgba(245, 158, 11, 0.24);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.detail-lead {
  max-width: 850px;
  color: var(--color-slate-200);
  font-size: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.player-section {
  margin-top: -1px;
  padding: 44px 0;
  background: linear-gradient(180deg, var(--color-slate-950), var(--color-slate-900));
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.48);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-amber-400), var(--color-amber-600));
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.34);
  font-size: 30px;
}

.play-copy {
  text-align: center;
  font-weight: 850;
  font-size: 18px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  max-width: calc(100% - 36px);
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--color-slate-200);
  background: rgba(2, 6, 23, 0.68);
  font-size: 12px;
}

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

.info-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.info-panel {
  padding: 28px;
}

.info-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.2;
}

.info-panel p {
  margin: 0 0 18px;
  color: var(--color-slate-700);
  font-size: 16px;
}

.detail-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 26px;
}

.detail-table div {
  padding: 12px;
  border-radius: 16px;
  background: var(--color-slate-100);
}

.detail-table span {
  display: block;
  color: var(--color-slate-500);
  font-size: 12px;
}

.detail-table strong {
  display: block;
  margin-top: 2px;
}

.side-panel {
  padding: 20px;
}

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

.side-movie {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.side-movie img {
  width: 64px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--color-slate-800);
}

.side-movie h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.3;
}

.side-movie p {
  margin: 0;
  color: var(--color-slate-500);
  font-size: 12px;
}

.search-results-count {
  margin-bottom: 18px;
  color: var(--color-slate-600);
  font-weight: 800;
}

.empty-state {
  padding: 46px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 24px;
  text-align: center;
  background: #fff;
}

.site-footer {
  color: var(--color-slate-300);
  background: linear-gradient(180deg, var(--color-slate-900), var(--color-slate-950));
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-inner {
  width: min(100% - 32px, var(--site-max));
  margin: 0 auto;
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-inner p,
.footer-inner li {
  color: var(--color-slate-400);
}

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

.footer-inner a:hover {
  color: var(--color-amber-400);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-slate-500);
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-feature {
    min-height: 460px;
  }

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

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

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 68px;
  }

  .logo-subtitle,
  .header-search {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 48px 0 52px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    min-height: 390px;
    border-radius: 24px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .rank-item {
    grid-template-columns: 48px 70px 1fr;
  }

  .rank-score {
    grid-column: 2 / -1;
    text-align: left;
  }

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

  .detail-poster {
    width: min(260px, 70vw);
  }

  .detail-table {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-menu,
  .footer-inner,
  .page-hero-inner,
  .detail-hero-inner,
  .hero-inner {
    width: min(100% - 24px, var(--site-max));
  }

  .logo-title {
    font-size: 19px;
  }

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

  .hero-slide-content {
    padding: 24px;
  }
}
