:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #172033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --teal-900: #134e4a;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
  --shadow-strong: 0 24px 60px rgba(2, 6, 23, 0.35);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--slate-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--stone-100);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  border-bottom: 1px solid rgba(217, 119, 6, 0.28);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.03em;
}

.brand-text small {
  color: var(--stone-300);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: var(--stone-100);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--amber-500);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-300);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

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

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-nav-link {
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--stone-100);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--amber-300);
  background: rgba(217, 119, 6, 0.18);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--slate-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 78% 25%, rgba(245, 158, 11, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.82) 46%, rgba(15, 23, 42, 0.2));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 760px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0 0 24px;
  color: var(--stone-200);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-meta span {
  color: var(--stone-100);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--amber-700);
}

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

.ghost-button:hover {
  transform: translateY(-2px);
  border-color: var(--amber-300);
  color: var(--amber-300);
}

.ghost-button.light {
  color: var(--stone-100);
}

.section-link {
  color: var(--amber-700);
  background: #fff7ed;
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.section-link:hover {
  color: var(--white);
  background: var(--amber-600);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 72px 0;
}

.dark-section {
  color: var(--white);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-700));
}

.soft-section {
  background: linear-gradient(180deg, var(--stone-50), var(--stone-100));
}

.light-section {
  background: var(--stone-50);
}

.accent-section {
  color: var(--white);
  background: linear-gradient(120deg, var(--teal-900), var(--slate-900) 45%, var(--slate-800));
}

.ranking-section,
.masonry-section {
  color: var(--white);
  background: var(--slate-900);
}

.section-head {
  margin-bottom: 30px;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.center-head {
  max-width: 760px;
  text-align: center;
}

.center-head .section-kicker {
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--slate-600);
  font-size: 17px;
}

.dark-section .section-head p,
.ranking-section .section-head p,
.masonry-section .section-head p {
  color: var(--stone-300);
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.feature-card {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
  isolation: isolate;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.feature-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.9));
}

.feature-label,
.feature-title {
  position: relative;
  z-index: 2;
  display: block;
  margin-left: 18px;
  margin-right: 18px;
}

.feature-label {
  margin-bottom: 58px;
  padding: 4px 10px;
  width: fit-content;
  color: var(--white);
  background: rgba(217, 119, 6, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.feature-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 20px;
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.tile-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.86));
}

.category-tile strong {
  font-size: 20px;
}

.category-tile em {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--stone-200);
  font-size: 13px;
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.accent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 42px;
}

.accent-copy {
  padding: 36px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.45);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.accent-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 48px);
}

.accent-copy p {
  color: var(--stone-200);
  font-size: 17px;
}

.accent-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

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

.accent-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: var(--slate-900);
  background: var(--amber-400);
  border-radius: 999px;
  font-size: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--slate-800);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: var(--stone-50);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--slate-800);
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.72));
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--slate-900);
  background: var(--amber-400);
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: scale(1);
}

.card-region,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 9px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(2, 6, 23, 0.74);
}

.card-content {
  padding: 16px;
}

.card-meta {
  margin-bottom: 10px;
}

.card-meta span {
  color: var(--slate-600);
  background: var(--stone-100);
}

.card-content h3 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-content h3 a:hover {
  color: var(--amber-700);
}

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

.tag-row span {
  color: var(--amber-700);
  background: #fff7ed;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 38px;
  align-items: start;
}

.ranking-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.ranking-copy p {
  color: var(--stone-300);
  font-size: 17px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 60px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  background: rgba(217, 119, 6, 0.18);
}

.rank-num {
  color: var(--amber-400);
  font-size: 24px;
  font-weight: 900;
}

.rank-row img {
  width: 60px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-text {
  display: grid;
  gap: 4px;
}

.rank-text strong {
  color: var(--white);
}

.rank-text small {
  color: var(--stone-300);
}

.masonry-grid {
  columns: 4 220px;
  column-gap: 22px;
}

.masonry-grid .movie-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 22px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 30%, rgba(245, 158, 11, 0.24), transparent 30%),
    linear-gradient(120deg, var(--slate-950), var(--slate-800) 54%, var(--teal-900));
}

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

.compact-hero {
  padding: 82px 0 74px;
}

.category-hero,
.ranking-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.overview-cover {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: var(--slate-800);
}

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

.category-overview-card:hover .overview-cover img {
  transform: scale(1.07);
}

.overview-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.9);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.overview-content {
  padding: 24px;
}

.overview-content h2 {
  margin: 0 0 10px;
  color: var(--slate-900);
}

.overview-content p {
  margin: 0 0 16px;
  color: var(--slate-600);
}

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

.overview-links a {
  padding: 6px 10px;
  color: var(--amber-700);
  background: #fff7ed;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.top-rank-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 0.9fr);
  gap: 22px;
}

.top-rank-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 24px;
  color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  isolation: isolate;
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.92));
}

.top-rank-card:hover img {
  transform: scale(1.06);
}

.top-rank-num {
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  color: var(--slate-900);
  background: var(--amber-400);
  border-radius: 999px;
  font-weight: 900;
}

.top-rank-card strong {
  font-size: 28px;
  line-height: 1.15;
}

.top-rank-card em {
  margin-top: 8px;
  color: var(--stone-300);
  font-style: normal;
}

.ranking-stack {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.1);
}

.ranking-cover {
  overflow: hidden;
  border-radius: 14px;
}

.ranking-cover img {
  width: 128px;
  height: 172px;
  object-fit: cover;
}

.ranking-info {
  display: grid;
  align-content: center;
}

.ranking-index {
  color: var(--amber-600);
  font-size: 22px;
  font-weight: 900;
}

.ranking-info h2 {
  margin: 4px 0 8px;
  color: var(--slate-900);
  font-size: 24px;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--slate-600);
}

.detail-hero {
  min-height: 660px;
  padding: 34px 0 70px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.08);
  transform: scale(1.05);
  opacity: 0.38;
}

.detail-bg-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.97), rgba(15, 23, 42, 0.78));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0 34px;
  color: var(--stone-300);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

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

.detail-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: var(--slate-900);
  background: var(--amber-400);
  border-radius: 999px;
  font-size: 28px;
}

.detail-intro h1 {
  color: var(--white);
}

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--slate-950);
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--slate-950);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76));
  cursor: pointer;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: var(--slate-900);
  background: var(--amber-400);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.player-overlay strong {
  font-size: clamp(20px, 3vw, 34px);
}

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

.prose-card,
.prose-side {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.1);
}

.prose-card h2,
.prose-side h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
}

.prose-card p {
  margin: 0;
  color: var(--slate-700);
  font-size: 16px;
}

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

.prose-side dl div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stone-200);
}

.prose-side dt {
  color: var(--slate-500);
  font-weight: 800;
}

.prose-side dd {
  margin: 0;
  color: var(--slate-800);
}

.prose-side a {
  color: var(--amber-700);
  font-weight: 800;
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--slate-600);
  background: var(--white);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

[data-filter-card].is-hidden {
  display: none;
}

.site-footer {
  color: var(--stone-300);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  border-top: 1px solid rgba(217, 119, 6, 0.28);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 42px;
  padding: 48px 0;
}

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

.footer-brand p {
  max-width: 520px;
  color: var(--stone-400);
}

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

.footer-column h3 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 16px;
}

.footer-column a {
  color: var(--stone-300);
  font-size: 14px;
}

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

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

.footer-cats h3 {
  grid-column: 1 / -1;
}

.footer-bottom {
  padding: 18px 0;
  color: var(--stone-400);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

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

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

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

  .prose-side {
    grid-column: 1 / -1;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    max-width: calc(100% - 64px);
  }

  .hero-arrow {
    display: none;
  }

  .split-head,
  .accent-layout,
  .ranking-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-head {
    align-items: start;
  }

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

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

  .filter-search {
    grid-column: 1 / -1;
  }

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

  .detail-layout {
    gap: 28px;
  }

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

  .brand-text small {
    font-size: 10px;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    max-width: calc(100% - 24px);
  }

  .hero-tags span:nth-child(n + 3) {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .horizontal-scroll {
    grid-auto-columns: 78%;
  }

  .category-grid,
  .movie-grid,
  .library-grid,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

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

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

  .overview-cover {
    min-height: 220px;
  }

  .ranking-cover img {
    width: 100%;
    height: 260px;
  }

  .detail-hero {
    min-height: auto;
    padding-bottom: 52px;
  }

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

  .player-shell {
    border-radius: 16px;
  }

  .player-button {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }

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