:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --blue-500: #3b82f6;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  --radius: 22px;
  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: var(--slate-50);
  color: var(--text);
  min-height: 100vh;
}

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;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.24);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fb923c, var(--orange-600));
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  letter-spacing: 0.04em;
  font-size: 20px;
}

.brand-copy small {
  color: #cbd5e1;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #e2e8f0;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 32vw);
}

.top-search input,
.hero-search input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  outline: none;
  padding: 13px 14px;
  transition: 0.25s ease;
  background: var(--white);
  color: var(--text);
}

.top-search input {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
}

.top-search input::placeholder {
  color: #cbd5e1;
}

.top-search button,
.hero-search button {
  border: 0;
  border-radius: 14px;
  color: var(--white);
  padding: 13px 16px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
  cursor: pointer;
  white-space: nowrap;
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  background: var(--white);
  color: var(--text);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
  max-height: 410px;
  overflow: auto;
  z-index: 80;
}

.search-panel.open {
  display: block;
}

.search-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.search-panel a:hover {
  background: #fff7ed;
}

.search-panel img {
  width: 46px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.search-panel strong {
  display: block;
  line-height: 1.3;
}

.search-panel small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-700) 45%, #7c2d12);
  color: var(--white);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.2;
  pointer-events: none;
}

.hero-orb.one {
  width: 340px;
  height: 340px;
  left: 8%;
  top: 16%;
  background: var(--orange-500);
}

.hero-orb.two {
  width: 420px;
  height: 420px;
  right: 6%;
  bottom: 8%;
  background: var(--blue-500);
}

.hero-track {
  position: relative;
  min-height: 610px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.74), rgba(124, 45, 18, 0.78));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1020px, calc(100% - 36px));
  padding-top: 54px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fed7aa;
  font-weight: 700;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  max-width: 860px;
}

.hero p {
  margin: 0 0 24px;
  max-width: 760px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.7;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #ffedd5;
  color: #9a3412;
}

.hero-tags span {
  color: var(--white);
  background: rgba(249, 115, 22, 0.22);
  border: 1px solid rgba(251, 146, 60, 0.28);
}

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

.primary-btn,
.ghost-btn,
.text-link,
.rank-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.25s ease;
}

.primary-btn {
  padding: 13px 20px;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 42px rgba(249, 115, 22, 0.34);
}

.primary-btn.small {
  padding: 10px 14px;
  font-size: 14px;
}

.ghost-btn {
  padding: 13px 20px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dot.active {
  width: 38px;
  background: var(--orange-500);
}

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-search input {
  border: 0;
}

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

.slate-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(16px, calc((100vw - 1220px) / 2));
  padding-right: max(16px, calc((100vw - 1220px) / 2));
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--white);
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head.left {
  text-align: left;
}

.section-head span,
.rank-title span,
.sub-hero span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--orange-600);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head.light span,
.section-head.light p {
  color: #fed7aa;
}

.section-head h2,
.rank-title h2,
.sub-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.section-head p,
.sub-hero p {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-head.left p {
  margin-left: 0;
}

.slate-section .section-head p,
.slate-section .section-head h2 {
  color: var(--white);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.slate-section .movie-card {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.7;
  overflow: hidden;
  background: #e2e8f0;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.34);
}

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

.movie-card h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 12px 0 8px;
}

.movie-card .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}

.slate-section .movie-card .meta,
.slate-section .movie-card .desc {
  color: #cbd5e1;
}

.movie-card .desc {
  color: #475569;
  line-height: 1.65;
  min-height: 78px;
  margin: 0 0 14px;
}

.movie-card.compact .desc {
  min-height: 58px;
}

.text-link {
  color: var(--orange-600);
  font-size: 14px;
}

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

.category-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--slate-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

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

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.48;
}

.category-card span {
  position: absolute;
  inset: auto 18px 18px 18px;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card strong {
  font-size: 24px;
  margin-bottom: 8px;
}

.category-card small {
  color: #e2e8f0;
  line-height: 1.55;
}

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

.rank-panel {
  position: sticky;
  top: 96px;
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rank-panel.full-rank {
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.rank-title h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-number {
  font-weight: 900;
  color: var(--orange-600);
  font-size: 20px;
}

.rank-item img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  background: #e2e8f0;
}

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

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

.rank-info small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.rank-more {
  margin-top: 18px;
  width: 100%;
  padding: 12px 16px;
  color: var(--white);
  background: var(--slate-800);
}

.sub-hero {
  color: var(--white);
  text-align: center;
  padding: 92px 18px;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800) 52%, #7c2d12);
}

.sub-hero p {
  color: #e2e8f0;
}

.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.category-overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
}

.category-overview-cover img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  background: #e2e8f0;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 28px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: var(--white);
  background: var(--slate-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(124, 45, 18, 0.72));
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 56px 0;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 2.8;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #fed7aa;
}

.detail-copy h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.detail-one-line {
  max-width: 820px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.detail-section {
  padding-top: 62px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--slate-950);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.66));
  cursor: pointer;
  transition: 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-500);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.36);
  font-size: 34px;
  padding-left: 5px;
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 34px;
}

.detail-article,
.detail-side {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

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

.detail-side dl {
  margin: 0;
}

.detail-side dt {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}

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

.site-footer {
  padding: 58px 0 24px;
  color: #cbd5e1;
  background: var(--slate-900);
}

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

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  margin: 0 0 16px;
}

.site-footer p {
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

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

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

.copyright {
  width: min(1220px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

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

@media (max-width: 1100px) {
  .movie-grid,
  .small-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .rank-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

@media (max-width: 860px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .top-search {
    order: 4;
    width: 100%;
  }

  .hero {
    min-height: 760px;
  }

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

  .hero-search {
    flex-direction: column;
  }

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

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

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

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

  .toolbar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .movie-grid,
  .small-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-controls {
    bottom: 135px;
  }

  .section {
    padding: 52px 0;
  }

  .rank-item {
    grid-template-columns: 34px 54px minmax(0, 1fr);
  }
}
