:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-50: #fff1f2;
  --rose-500: #f43f5e;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --teal-500: #14b8a6;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50), var(--rose-50));
  min-height: 100vh;
}

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

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

img.image-hidden {
  opacity: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--rose-500));
  box-shadow: var(--shadow-md);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.brand {
  font-size: clamp(20px, 3vw, 28px);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  animation: softPulse 2.2s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.82;
  }
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

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

.mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  height: clamp(520px, 70vh, 760px);
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06));
}

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

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.18) 2px, transparent 0),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 42px 42px;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.hero-content > * {
  max-width: 680px;
}

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

.eyebrow {
  color: var(--white);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.hero p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-600);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff7d6;
}

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

.hero-actions {
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-link,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  padding: 12px 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.26);
}

.primary-button:hover,
.search-panel button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 38px rgba(249, 115, 22, 0.32);
}

.primary-button.full {
  width: 100%;
}

.ghost-button {
  padding: 10px 20px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.ghost-button.light {
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

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

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

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

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

.section-heading {
  margin-bottom: 26px;
}

.section-heading.centered {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 26px;
}

.section-heading.split {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 8px 0 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 900;
}

.section-heading p,
.page-hero p {
  margin: 14px 0 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.section-heading.inverse h2,
.section-heading.inverse .section-kicker {
  color: var(--white);
}

.text-link {
  color: var(--amber-600);
  min-height: auto;
}

.search-panel {
  display: flex;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--gray-900);
  background: transparent;
}

.search-panel button {
  border: 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  padding: 0 22px;
}

.empty-state {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 18px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.filter-chips button {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-700);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.filter-chips button.active,
.filter-chips button:hover {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

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

.category-tile,
.category-overview-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile {
  padding: 22px;
  min-height: 150px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 42%),
    var(--white);
}

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

.category-tile span,
.category-overview-body h2 {
  display: block;
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 900;
}

.category-tile p,
.category-overview-body p {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.65;
}

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

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

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

.movie-card a {
  display: block;
  height: 100%;
}

.cover-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

.cover-frame.video {
  aspect-ratio: 16 / 9;
}

.cover-frame.wide {
  aspect-ratio: 5 / 3;
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04));
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.hot-badge,
.play-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: var(--white);
  font-weight: 900;
}

.hot-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--amber-500);
  font-size: 12px;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%) scale(0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.26);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 900;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 46px;
  margin: 9px 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row,
.detail-meta,
.rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meta-row span,
.detail-meta span,
.rating-line span {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 9px;
  font-size: 12px;
}

.wide-band {
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-500), var(--teal-500));
  color: var(--white);
  box-shadow: inset 0 22px 50px rgba(0, 0, 0, 0.08);
}

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

.compact-card {
  position: relative;
  display: block;
  min-height: 184px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.compact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04));
}

.compact-card img {
  width: 100%;
  height: 100%;
  min-height: 184px;
  object-fit: cover;
  transition: transform 0.42s ease;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.compact-rank,
.compact-title,
.compact-meta {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  color: var(--white);
}

.compact-rank {
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.compact-title {
  bottom: 34px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-meta {
  bottom: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

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

.ranking-panel,
.detail-side > div,
.detail-card,
.player-shell,
.poster-card,
.related-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.ranking-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 86px;
}

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

.rank-list .compact-card {
  min-height: 96px;
}

.rank-list .compact-card img {
  min-height: 96px;
}

.page-hero {
  padding: 76px 0;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--rose-500));
}

.page-hero.small {
  padding: 62px 0;
}

.page-hero h1,
.page-hero p,
.page-hero .section-kicker {
  color: var(--white);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
}

.mini-feature-list,
.hero-rank-list {
  display: grid;
  gap: 12px;
}

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

.category-overview-card a {
  display: block;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

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

.category-overview-body span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--amber-600);
  font-weight: 900;
}

.detail-layout {
  padding: 38px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-600);
  font-weight: 800;
}

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

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

.player-shell {
  padding: 10px;
  background: #050505;
  overflow: hidden;
}

.player-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

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

.player-poster {
  position: absolute;
  inset: 0;
  border: 0;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.14));
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease;
}

.player-shell.is-playing .player-poster {
  opacity: 0;
  pointer-events: none;
}

.play-ring {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.35);
}

.player-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-stage:hover .player-toolbar,
.player-toolbar:focus-within {
  opacity: 1;
}

.player-toolbar button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--white);
  background: rgba(244, 63, 94, 0.9);
}

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

.detail-card h1 {
  margin-top: 0;
}

.detail-meta {
  margin-top: 14px;
}

.detail-meta span,
.rating-line span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-600);
}

.rating-line {
  margin: 18px 0;
}

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

.detail-card h2,
.related-card h2,
.poster-card h2 {
  margin: 24px 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.detail-card p,
.poster-card p {
  color: var(--gray-700);
  line-height: 1.85;
}

.review-text {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--amber-50), var(--orange-50));
}

.detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 86px;
}

.poster-card,
.related-card {
  padding: 20px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  transition: transform 0.3s ease;
}

.site-footer {
  padding: 56px 0 26px;
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

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

.footer-brand {
  margin-bottom: 16px;
  font-size: 22px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 14px;
}

.searchable-card.is-hidden {
  display: none;
}

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

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

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

  .ranking-panel,
  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero {
    height: 620px;
  }

  .hero-slide::before {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.18));
  }

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

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

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

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

  .brand {
    font-size: 20px;
  }

  .hero {
    height: 640px;
  }

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

  .search-panel {
    border-radius: 24px;
  }

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

  .page-hero {
    padding: 52px 0;
  }

  .detail-card,
  .poster-card,
  .related-card {
    padding: 18px;
  }
}
