:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.24);
  --amber: #f59e0b;
  --amber-2: #f97316;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(2, 6, 23, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--text);
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #020617, #0f172a 48%, #111827);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.28);
}

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

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

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #111827;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.brand-text strong,
.brand-text em {
  display: block;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

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

.nav-link {
  color: #e2e8f0;
  font-size: 14px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 300px;
}

.header-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  color: var(--white);
  background: rgba(15, 23, 42, 0.86);
}

.header-search button,
.filter-panel button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #111827;
  background: var(--amber);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  width: 42px;
  height: 42px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: #e2e8f0;
}

.hero {
  min-height: 640px;
  position: relative;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  transition: opacity 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: white;
  padding-top: 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.eyebrow.dark {
  background: #fff7ed;
  color: #c2410c;
}

.hero-content h1 {
  width: min(760px, 100%);
  margin: 22px 0 16px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  width: min(660px, 100%);
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.tag-row span {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 28px;
  font-weight: 900;
}

.primary-btn {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #111827;
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
}

.primary-btn.small {
  min-height: 42px;
  padding: 0 20px;
  margin-top: 18px;
}

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

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.46);
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.hero-arrow.prev {
  left: 28px;
}

.hero-arrow.next {
  right: 28px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

.section {
  margin-top: 64px;
}

.intro-section {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.intro-section h2,
.section-head h2,
.split-section h2,
.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.intro-section p,
.split-section p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 720px;
}

.section-link,
.section-head a {
  color: #b45309;
  font-weight: 900;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head.light h2,
.section-head.light a {
  color: white;
}

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

.movie-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.poster-wrap img,
.movie-card > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.score-badge,
.type-badge,
.card-score {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 13px;
}

.score-badge,
.card-score {
  left: 12px;
  background: var(--amber);
  color: #111827;
}

.type-badge {
  right: 12px;
  background: rgba(2, 6, 23, 0.72);
  color: white;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

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

.meta-line {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.meta-line span {
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
}

.dark-panel {
  background: linear-gradient(135deg, #0f172a, #020617);
  border-radius: 32px;
  padding: 34px;
  box-shadow: var(--shadow);
}

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

.compact-card {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.compact-card > a {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 150px;
}

.compact-card > a > img {
  min-height: 150px;
}

.compact-card .card-body h3 {
  color: white;
}

.compact-card .card-body p {
  color: #cbd5e1;
}

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

.category-tile {
  min-height: 170px;
  border-radius: 24px;
  padding: 22px;
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-tile span {
  color: var(--amber-2);
  font-size: 13px;
  font-weight: 900;
}

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

.category-tile em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  background: white;
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.wide-card img {
  width: 130px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
}

.wide-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.wide-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

.wide-card span {
  color: #b45309;
  font-size: 13px;
  font-weight: 800;
}

.page-main {
  padding-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #64748b;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #b45309;
  font-weight: 800;
}

.breadcrumb span::before,
.breadcrumb a + span::before,
.breadcrumb a + a::before {
  content: "/";
  color: #94a3b8;
  margin-right: 10px;
}

.breadcrumb.light {
  color: #cbd5e1;
}

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

.page-hero {
  border-radius: 34px;
  padding: 56px;
  color: white;
  background: radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.30), transparent 28%), linear-gradient(135deg, #111827, #020617);
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}

.page-hero p {
  color: #cbd5e1;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 30px;
  color: white;
  display: flex;
  align-items: end;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52);
}

.category-card div {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.category-card span {
  color: var(--amber);
  font-weight: 900;
}

.category-card h2 {
  margin: 8px 0;
  font-size: 30px;
}

.category-card p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.7;
}

.filter-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  margin-bottom: 26px;
}

.filter-panel input,
.filter-panel select {
  color: #0f172a;
  background: #f8fafc;
}

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

.rank-row {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.rank-row a {
  display: grid;
  grid-template-columns: 74px 118px 1fr 80px;
  gap: 18px;
  align-items: center;
  padding: 14px 20px 14px 14px;
}

.rank-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 900;
}

.rank-row img {
  width: 118px;
  height: 82px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.rank-score {
  color: #b45309;
  font-size: 24px;
  text-align: right;
}

.detail-main {
  padding-bottom: 20px;
}

.detail-hero {
  min-height: 620px;
  color: white;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
  padding: 64px 0;
}

.detail-poster {
  width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  color: #e2e8f0;
  font-size: 19px;
  line-height: 1.8;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.player-section {
  margin-top: 52px;
}

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

.video-node,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-node {
  object-fit: contain;
  background: #000;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #111827;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.36);
  cursor: pointer;
}

.player-start span {
  transform: translateX(4px);
  font-size: 36px;
  font-weight: 900;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr 340px;
  gap: 20px;
  margin-top: 36px;
}

.content-card {
  background: white;
  border-radius: 26px;
  padding: 26px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
}

.content-card p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.info-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 16px;
}

.info-card dt {
  color: #64748b;
}

.info-card dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  padding: 52px 0 24px;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #cbd5e1;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 20px;
  margin-bottom: 16px;
}

.site-footer p {
  line-height: 1.8;
  color: #94a3b8;
}

.site-footer h3 {
  color: white;
  margin: 0 0 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

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

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

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

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

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

  .header-search {
    max-width: 320px;
  }

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

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

  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
  }

  .brand-text em,
  .header-search {
    display: none;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content p {
    font-size: 17px;
  }

  .intro-section,
  .section-head,
  .split-section,
  .detail-hero-grid,
  .detail-content {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .dark-panel,
  .page-hero {
    border-radius: 24px;
    padding: 24px;
  }

  .compact-card > a {
    grid-template-columns: 96px 1fr;
  }

  .wide-card {
    grid-template-columns: 100px 1fr;
  }

  .wide-card img {
    width: 100px;
    height: 110px;
  }

  .rank-row a {
    grid-template-columns: 46px 80px 1fr;
    padding: 12px;
  }

  .rank-score {
    display: none;
  }

  .rank-row img {
    width: 80px;
    height: 100px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

  .filter-panel {
    flex-direction: column;
  }
}
