:root {
  --page-bg: #fffdf8;
  --paper: #ffffff;
  --paper-strong: #fff7ed;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --border: rgba(245, 158, 11, 0.22);
  --amber: #d97706;
  --amber-strong: #b45309;
  --orange: #ea580c;
  --dark: #111827;
  --shadow: 0 24px 80px rgba(146, 64, 14, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 32rem),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 44%, #fffdf8 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 237, 213, 0.95));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(146, 64, 14, 0.10);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: #1f2937;
  font-size: 20px;
  transition: color 0.2s ease;
}

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

.brand:hover .brand-text strong {
  color: var(--amber-strong);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.desktop-nav a,
.nav-drop > button {
  border: 0;
  padding: 9px 0;
  color: #374151;
  background: transparent;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.nav-drop:hover > button {
  color: var(--amber-strong);
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 180px;
  padding: 8px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.18s ease;
}

.nav-drop:hover .nav-drop-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-drop-menu a {
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-drop-menu a:hover {
  background: #fff7ed;
}

.top-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 999px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.88);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input {
  width: 248px;
  padding: 11px 16px;
}

.top-search button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 800;
}

.top-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 10px;
  background: #92400e;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

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

.mobile-panel nav a {
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #4b5563;
  font-weight: 700;
}

.mobile-search input {
  width: 100%;
  padding: 11px 16px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.22), transparent 28rem),
    linear-gradient(135deg, #111827, #431407 55%, #111827);
}

.hero-bg-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 45%, rgba(17, 24, 39, 0.36) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.1));
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.25) brightness(0.72);
  transform: scale(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
  padding: 74px 0 96px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(146, 64, 14, 0.28);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-copy h1,
.hero-copy h2,
.inner-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

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

.hero-title-line {
  margin-top: 14px !important;
  color: #fef3c7 !important;
  font-size: 24px !important;
  font-weight: 800;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.32);
}

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

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn.dark {
  border-color: rgba(217, 119, 6, 0.24);
  color: #92400e;
  background: #fff7ed;
}

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

.hero-poster,
.detail-poster,
.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

.hero-poster {
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

.hero-poster img,
.detail-poster img,
.poster-frame img,
.rank-cover img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 76px;
  font-weight: 900;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 12rem),
    linear-gradient(135deg, #92400e, #f59e0b);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  width: min(1280px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-controls > button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 28px;
  line-height: 1;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.is-active {
  width: 34px;
  background: #f59e0b;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.warm-section {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.74), rgba(255, 237, 213, 0.72));
}

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

.section-heading > div {
  display: grid;
  gap: 8px;
}

.section-heading span:first-child {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: var(--amber-strong);
  font-weight: 900;
}

.rail-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 2px 22px;
  scroll-snap-type: x mandatory;
}

.rail-scroll::-webkit-scrollbar {
  height: 10px;
}

.rail-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.28);
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.rail-card {
  width: 282px;
  flex: 0 0 282px;
  scroll-snap-align: start;
}

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(146, 64, 14, 0.18);
}

.poster-frame {
  height: 310px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.movie-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.movie-title {
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-meta,
.movie-desc,
.movie-genres {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.movie-desc {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-genres {
  color: var(--amber-strong);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(146, 64, 14, 0.08);
}

.category-tile {
  padding: 20px;
}

.category-tile > a {
  display: grid;
  gap: 10px;
}

.category-tile strong {
  color: #111827;
  font-size: 22px;
}

.category-tile span,
.category-mini-links a {
  color: var(--muted);
  line-height: 1.7;
}

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-mini-links a {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber-strong);
  font-size: 12px;
  font-weight: 800;
}

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

.rank-panel,
.detail-side {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.rank-panel h2,
.detail-side h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

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

.full-rank-list {
  gap: 14px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.full-rank-list .rank-item {
  background: #fff;
  color: #111827;
}

.rank-num {
  width: 54px;
  flex: 0 0 54px;
  text-align: center;
  color: #fbbf24;
  font-weight: 900;
  font-size: 20px;
}

.rank-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px 10px 0;
  flex: 1 1 auto;
}

.rank-cover {
  position: relative;
  width: 62px;
  height: 84px;
  overflow: hidden;
  flex: 0 0 62px;
  border-radius: 12px;
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.rank-text {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.rank-text strong,
.rank-text em,
.rank-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-text em {
  color: #fbbf24;
  font-size: 12px;
  font-style: normal;
}

.full-rank-list .rank-text em {
  color: var(--amber-strong);
}

.rank-text small {
  color: #9ca3af;
}

.inner-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 40px;
  color: #fff;
}

.inner-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.30), transparent 25rem),
    linear-gradient(135deg, #111827, #431407 62%, #111827);
}

.inner-hero,
.detail-hero {
  position: relative;
}

.inner-hero p {
  max-width: 760px;
}

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

.category-overview-card {
  padding: 24px;
}

.category-overview-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

.category-overview-top h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.category-overview-top p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-bar input {
  flex: 1 1 auto;
  padding: 13px 18px;
}

.filter-bar select {
  padding: 13px 18px;
}

.search-status {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

.big-search {
  max-width: 720px;
  margin-top: 28px;
}

.big-search input {
  width: 100%;
  padding: 15px 18px;
}

.big-search button {
  padding: 15px 24px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding: 76px max(16px, calc((100vw - 1280px) / 2)) 70px;
  color: #fff;
  overflow: hidden;
}

.detail-poster {
  height: 470px;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.36);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff7ed;
  font-weight: 800;
}

.player-section {
  width: min(1280px, calc(100% - 32px));
  margin: -48px auto 0;
  position: relative;
  z-index: 5;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 18rem),
    rgba(0, 0, 0, 0.36);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.35);
  font-size: 30px;
  padding-left: 4px;
}

.play-layer strong {
  max-width: min(80%, 680px);
  font-size: clamp(22px, 4vw, 42px);
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
}

.detail-article {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(146, 64, 14, 0.08);
  padding: 30px;
}

.detail-article h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-article h2 + p {
  margin-top: 0;
}

.detail-article p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side {
  background: #fff;
  color: #111827;
}

.detail-side dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-side dd {
  margin: -8px 0 2px;
  line-height: 1.6;
  font-weight: 700;
}

.detail-side a {
  color: var(--amber-strong);
}

.site-footer {
  margin-top: 46px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 24px;
}

.site-footer p {
  max-width: 560px;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #9ca3af;
  transition: color 0.2s ease;
}

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

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  font-size: 14px;
}

.is-filter-hidden {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-weight: 800;
}

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

  .desktop-nav a:nth-of-type(n+5),
  .nav-drop {
    display: none;
  }

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

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

@media (max-width: 900px) {
  .top-search,
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-content,
  .detail-hero,
  .two-column-section,
  .detail-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 34px;
    padding-top: 44px;
  }

  .hero-poster,
  .detail-poster {
    height: auto;
    aspect-ratio: 2 / 3;
    max-width: 340px;
  }

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

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

@media (max-width: 640px) {
  .nav-shell {
    width: min(100% - 24px, 1280px);
    height: 64px;
  }

  .brand-text small {
    display: none;
  }

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

  .hero-slider,
  .hero-content {
    min-height: 740px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .inner-hero h1,
  .detail-copy h1 {
    font-size: 40px;
  }

  .hero-copy > p,
  .inner-hero p,
  .detail-copy > p {
    font-size: 16px;
  }

  .section-heading,
  .category-overview-top,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .preview-grid,
  .related-grid,
  .category-movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    height: 420px;
  }

  .rail-card {
    width: 260px;
    flex-basis: 260px;
  }

  .player-section {
    width: min(100% - 20px, 1280px);
  }

  .detail-article {
    padding: 22px;
  }
}
