:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #1e293b;
  --panel-strong: #334155;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --dim: #64748b;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.18);
  --emerald: #34d399;
  --rose: #fb7185;
  --cyan: #22d3ee;
  --border: rgba(245, 158, 11, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
    linear-gradient(180deg, #0f172a 0%, #020617 42%, #0f172a 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.86);
  border-bottom: 1px solid var(--border);
  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,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-text {
  white-space: nowrap;
  font-size: 20px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 52%, #f97316);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: #cbd5e1;
  font-size: 14px;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber);
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 10px 12px;
}

.header-search button {
  border: 0;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 10px 13px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber);
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 64px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 700ms ease, transform 700ms ease;
}

.hero-slide::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: blur(2px) saturate(1.1);
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-overlay {
  position: absolute;
  inset: -80px calc(50% - 50vw);
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.82), rgba(146, 64, 14, 0.24)),
    radial-gradient(circle at 26% 45%, rgba(245, 158, 11, 0.24), transparent 28rem);
}

.hero-content {
  padding: 48px 0;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 13px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 48px);
  color: #fff7ed;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 19px;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}

.hero-tags span,
.tag-list a,
.detail-meta span {
  color: #fde68a;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

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

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

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

.btn.primary {
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: rgba(15, 23, 42, 0.66);
}

.btn.soft {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 0 10px rgba(245, 158, 11, 0.06);
  transform: rotate(1.2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 600ms ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  width: min(1280px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-dots button {
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.86);
  padding: 9px 14px;
  white-space: nowrap;
  cursor: pointer;
}

.hero-dots button.is-active,
.hero-dots button:hover {
  color: #0f172a;
  background: #f59e0b;
}

.feature-bar {
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 28px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-bar a {
  padding: 18px;
  text-align: center;
  color: #fde68a;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 20px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-bar a:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.62);
}

.content-section,
.split-section,
.page-main,
.detail-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

.no-top-pad {
  padding-top: 28px;
}

.alt-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1280px) / 2));
  padding-right: max(16px, calc((100vw - 1280px) / 2));
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.88));
}

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

.section-heading h2 {
  margin: 0;
  color: #fbbf24;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
}

.section-heading p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.compact-grid {
  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: rgba(30, 41, 59, 0.86);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(51, 65, 85, 0.88);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.12);
}

.poster-wrap {
  position: relative;
  height: 260px;
  margin: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
}

.small-card .poster-wrap {
  height: 210px;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.78));
}

.year-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  color: #0f172a;
  background: #f59e0b;
  padding: 5px 10px;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  color: #fef3c7;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.24);
  padding: 6px 10px;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.32;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
}

.movie-meta span {
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.86);
  border-radius: 999px;
}

.split-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  padding: 72px 0;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.74);
  transition: transform 180ms ease, border-color 180ms ease;
}

.compact-card:hover {
  transform: translateX(5px);
  border-color: rgba(52, 211, 153, 0.46);
}

.compact-card img {
  width: 104px;
  height: 72px;
  object-fit: cover;
  border-radius: 13px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: #d1fae5;
  font-size: 16px;
  line-height: 1.35;
}

.compact-card em {
  margin-top: 8px;
  color: var(--dim);
  font-size: 13px;
  font-style: normal;
}

.rank-list,
.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li + li,
.ranking-list li + li {
  margin-top: 12px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 48px 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.8);
}

.rank-index,
.ranking-number {
  color: #fb7185;
  font-weight: 950;
}

.rank-list img {
  width: 68px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: #fff1f2;
  line-height: 1.35;
}

.rank-info em {
  margin-top: 5px;
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 9rem),
    rgba(15, 23, 42, 0.86);
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.55);
}

.category-tile span,
.category-tile em {
  display: block;
}

.category-tile span {
  color: #67e8f9;
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-main,
.detail-main {
  padding: 36px 0 72px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 64px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 32px;
  background:
    linear-gradient(120deg, rgba(2, 6, 23, 0.94), rgba(30, 41, 59, 0.74)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.slim-hero {
  min-height: auto;
  background:
    radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.72));
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 14px;
  align-items: end;
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
}

.filter-panel label span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 6, 23, 0.76);
  padding: 0 14px;
}

.filter-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: #f59e0b;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 900;
}

.empty-state {
  display: none;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.34);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.75);
}

.category-image img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  color: #fbbf24;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a,
.sibling-links a {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
}

.sibling-links {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
}

.sibling-links h2 {
  margin: 0 0 14px;
  color: #67e8f9;
}

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

.ranking-section {
  margin-top: 32px;
}

.ranking-row a {
  display: grid;
  grid-template-columns: 72px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.78);
  transition: transform 180ms ease, border-color 180ms ease;
}

.ranking-row a:hover {
  transform: translateX(5px);
  border-color: rgba(251, 113, 133, 0.42);
}

.ranking-row img {
  width: 110px;
  height: 138px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-copy strong,
.ranking-copy em,
.ranking-copy span {
  display: block;
}

.ranking-copy strong {
  color: #fff1f2;
  font-size: 22px;
}

.ranking-copy em {
  margin: 8px 0;
  color: var(--muted);
  font-style: normal;
}

.ranking-copy span {
  color: var(--dim);
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.15), transparent 20rem),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 16px;
  color: #fbbf24;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 19px;
}

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

.player-section {
  margin: 36px 0;
}

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

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.play-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 0 0 18px rgba(245, 158, 11, 0.12), 0 18px 46px rgba(0, 0, 0, 0.42);
}

.player-shell.is-playing .player-cover {
  display: none;
}

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

.detail-article article {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(30, 41, 59, 0.72);
}

.detail-article h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 17px;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

.related-section {
  width: 100%;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.82);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 0.9fr;
  gap: 28px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fbbf24;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--muted);
  font-size: 14px;
}

.footer-grid p {
  margin: 12px 0 0;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

  .header-search input {
    width: 150px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-slide,
  .hero-slide.is-active {
    position: relative;
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 740px;
    padding: 42px 0 110px;
  }

  .hero-slide:not(.is-active) {
    display: none;
  }

  .hero-poster {
    width: min(280px, 82vw);
    margin: 0 auto;
  }

  .feature-bar,
  .split-section,
  .category-overview-grid,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-bar {
    margin-top: 20px;
  }

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

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

  .page-hero {
    padding: 38px 24px;
    border-radius: 24px;
  }

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

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

  .category-image img {
    width: 120px;
    height: 160px;
  }

  .detail-hero {
    padding: 22px;
  }

  .detail-poster {
    max-width: 300px;
  }

  .ranking-row a {
    grid-template-columns: 52px 86px 1fr;
  }

  .ranking-row img {
    width: 86px;
    height: 112px;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .content-section,
  .split-section,
  .page-main,
  .detail-main,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

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

  .hero h1 {
    font-size: 36px;
  }

  .hero h2,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 30px;
  }

  .hero p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

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

  .poster-wrap,
  .small-card .poster-wrap {
    height: 320px;
  }

  .category-overview-card,
  .ranking-row a {
    grid-template-columns: 1fr;
  }

  .category-image img,
  .ranking-row img {
    width: 100%;
    height: 240px;
  }

  .detail-poster {
    max-width: none;
  }

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

  .play-orb {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
