:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 48%, #f8fafc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--blue-900), var(--slate-900));
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 15px;
  background: linear-gradient(135deg, #fbbf24, var(--orange-500));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fcd34d, #fdba74, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -21px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: #fbbf24;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fbbf24;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.mobile-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 10px 22px 18px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

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

.hero-carousel {
  position: relative;
  min-height: 680px;
  background: var(--slate-950);
  color: var(--white);
}

.hero-stage {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.hero-kicker,
.hero-meta,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-kicker {
  margin-bottom: 18px;
}

.hero-kicker span,
.movie-badge,
.hero-kicker em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.hero-kicker span {
  padding: 7px 16px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  background: var(--amber-500);
}

.hero-kicker em {
  color: #fcd34d;
  font-style: normal;
  font-weight: 700;
}

.hero-meta {
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 650;
}

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

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.32);
}

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

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.primary-button.small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

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

.hero-panel {
  position: relative;
  z-index: 8;
  max-width: 1280px;
  margin: -76px auto 0;
  padding: 0 22px 52px;
}

.hero-search {
  max-width: 760px;
  min-height: 68px;
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.hero-search input,
.search-page-form input,
.filter-top input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--gray-900);
  background: var(--white);
}

.hero-search input {
  padding: 0 20px;
  border-radius: 999px;
}

.hero-search button,
.search-page-form button {
  border: 0;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.hero-category-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links a,
.filter-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-category-links a:hover,
.filter-chips a:hover {
  transform: translateY(-2px);
  background: rgba(245, 158, 11, 0.3);
}

.hero-mini-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini-card {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.24);
}

.hero-mini-card img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.hero-mini-card span {
  position: absolute;
  inset: auto 10px 10px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.hero-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.hero-mini-card span {
  z-index: 1;
}

.hero-mini-card:hover img {
  transform: scale(1.08);
}

.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 22px;
}

.content-section {
  margin-bottom: 70px;
}

.content-section.warm-panel {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  box-shadow: var(--shadow-card);
}

.section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading > span {
  width: 5px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-500), var(--orange-500));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-more {
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.95);
  backdrop-filter: blur(8px);
}

.rank-mark {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.78);
  font-size: 13px;
}

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

.movie-title {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-title:hover {
  color: var(--orange-500);
}

.movie-line {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 650;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.44));
}

.category-card strong,
.category-card span {
  position: relative;
  z-index: 1;
}

.category-card strong {
  font-size: 24px;
  font-weight: 900;
}

.category-card span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 14px;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.2);
}

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

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

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

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

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

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

.category-card.cyan,
.category-hero.cyan {
  background: linear-gradient(135deg, #0891b2, #0369a1);
}

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

.category-card.violet,
.category-hero.violet {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.category-card.emerald,
.category-hero.emerald {
  background: linear-gradient(135deg, #059669, #047857);
}

.category-card.sky,
.category-hero.sky {
  background: linear-gradient(135deg, #0284c7, #0e7490);
}

.category-card.stone,
.category-hero.stone {
  background: linear-gradient(135deg, #57534e, #1c1917);
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.36), transparent 38%), linear-gradient(90deg, var(--slate-900), var(--blue-900), var(--slate-900));
}

.page-hero > div,
.detail-top > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 22px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.035em;
}

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

.slim-hero > div {
  padding-top: 78px;
  padding-bottom: 78px;
}

.breadcrumb {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.filter-panel {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.filter-top,
.search-page-form {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-top input,
.search-page-form input {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.filter-chips {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips a {
  color: var(--gray-700);
  background: #f8fafc;
  border-color: var(--gray-200);
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: 20px;
  text-align: center;
  color: var(--gray-500);
  background: var(--gray-100);
}

.filter-panel.is-empty .empty-state {
  display: block;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 42px 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  background: #fffbeb;
}

.ranking-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.ranking-item img {
  width: 78px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--slate-800);
}

.ranking-text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ranking-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.detail-top {
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--blue-900));
}

.detail-top > div {
  padding-top: 18px;
  padding-bottom: 18px;
}

.detail-top .breadcrumb {
  margin-bottom: 0;
}

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

.detail-main {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 74px rgba(2, 6, 23, 0.32);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-button {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.46));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-button span {
  width: 84px;
  height: 84px;
  padding-left: 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.44);
  font-size: 34px;
}

.player-shell.is-playing .player-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card,
.side-card {
  border-radius: 26px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-one-line {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.8;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.detail-facts div {
  padding: 16px;
  border-radius: 16px;
  background: #eff6ff;
}

.detail-facts span {
  display: block;
  margin-bottom: 6px;
  color: var(--gray-500);
  font-size: 13px;
}

.detail-facts strong {
  display: block;
  color: #1d4ed8;
  font-size: 15px;
  line-height: 1.45;
}

.text-block {
  margin-top: 24px;
}

.text-block h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.text-block p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
  font-size: 16px;
}

.review-block {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.detail-aside {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 18px;
}

.poster-card {
  display: grid;
  gap: 18px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: var(--slate-800);
}

.ranking-list.mini .ranking-item {
  grid-template-columns: 32px 64px minmax(0, 1fr);
  padding: 8px;
}

.ranking-list.mini .ranking-item img {
  width: 64px;
  height: 46px;
}

.ranking-list.mini .ranking-number {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.movie-card-compact .movie-line {
  min-height: auto;
}

.search-hero .search-page-form {
  max-width: 720px;
  margin-top: 26px;
  margin-bottom: 0;
}

.search-hero .search-page-form button {
  min-width: 108px;
}

.site-footer {
  margin-top: 60px;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 22px 36px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 38px;
}

.footer-brand p {
  max-width: 430px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}

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

.footer-links h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 17px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
}

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

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

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

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

  .detail-aside {
    position: static;
    grid-template-columns: 280px 1fr;
  }

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-stage {
    height: 620px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.96));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-panel {
    margin-top: 0;
    padding-top: 20px;
    background: var(--slate-950);
  }

  .hero-search,
  .filter-top,
  .search-page-form {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search button,
  .search-page-form button {
    min-height: 46px;
  }

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

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

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

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

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

  .brand-text {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-stage {
    height: 560px;
  }

  .hero-content,
  .page-wrap,
  .page-hero > div,
  .detail-top > div {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-mini-grid,
  .movie-grid,
  .category-grid,
  .overview-grid,
  .ranking-list.columns {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .content-section.warm-panel,
  .detail-card,
  .side-card {
    padding: 20px;
    border-radius: 20px;
  }

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

  .ranking-item {
    grid-template-columns: 34px 70px minmax(0, 1fr);
  }
}
