:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.13), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(249, 115, 22, 0.10), transparent 28rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand {
  font-size: 21px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.36);
  font-size: 14px;
  transform: translateZ(0);
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 28px;
}

.desktop-nav {
  display: flex;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fbbf24;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(30, 41, 59, 0.72);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #e2e8f0;
  border-radius: 9px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid var(--line);
}

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

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

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

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 45%, rgba(2, 6, 23, 0.78) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 120px 0 86px;
}

.hero-copy {
  width: min(760px, 100%);
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.2);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 820px;
}

.hero p {
  color: var(--muted-2);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  max-width: 760px;
  margin: 0 0 28px;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

.btn-ghost {
  background: rgba(15, 23, 42, 0.72);
  border-color: var(--line);
  color: #f8fafc;
  backdrop-filter: blur(12px);
}

.hero-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 64px 0 0;
}

.section.alt {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(30, 41, 59, 0.44));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  margin-top: 64px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-title h2,
.section-title h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-title p,
.page-lead {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 760px;
}

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

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

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

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

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

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.11);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-link:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36), 0 0 42px rgba(245, 158, 11, 0.12);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1e293b;
}

.movie-card.portrait .poster-wrap,
.movie-grid.compact .poster-wrap {
  aspect-ratio: 3 / 4;
}

.movie-card.large .poster-wrap {
  aspect-ratio: 21 / 9;
}

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

.card-link:hover img {
  transform: scale(1.1);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.2) 48%, rgba(2, 6, 23, 0.08) 100%);
}

.card-category,
.card-year,
.rank-no {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.card-category {
  left: 12px;
  background: rgba(245, 158, 11, 0.92);
  color: white;
}

.card-year {
  right: 12px;
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  backdrop-filter: blur(8px);
}

.rank-no {
  left: 12px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
}

.card-link:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.card-link:hover .card-body h3 {
  color: #fbbf24;
}

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

.meta-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 11px;
  color: #cbd5e1;
  font-size: 12px;
}

.meta-line span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

.horizontal-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-color: var(--amber) #1e293b;
}

.horizontal-strip .movie-card {
  flex: 0 0 260px;
}

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

.category-box {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.78));
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-box:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-box h2,
.category-box h3 {
  margin: 0;
  font-size: 24px;
}

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

.category-box span {
  color: #fbbf24;
  font-weight: 800;
}

.page-hero {
  padding: 136px 0 46px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.48), transparent),
    radial-gradient(circle at 12% 30%, rgba(245, 158, 11, 0.16), transparent 26rem);
}

.page-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.search-panel {
  margin: 28px 0 32px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.72);
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(245, 158, 11, 0.65);
}

.filter-note {
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  display: none;
  margin: 34px 0;
  padding: 34px;
  text-align: center;
  border-radius: 22px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  border-color: rgba(245, 158, 11, 0.42);
}

.rank-item span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.rank-item strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.detail-hero {
  padding: 118px 0 42px;
  position: relative;
  overflow: hidden;
  background: #020617;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-cover);
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(1.15);
  transform: scale(1.1);
  opacity: 0.24;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.82) 50%, rgba(2, 6, 23, 0.48) 100%);
}

.detail-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.breadcrumb {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.detail-copy .summary {
  color: var(--muted-2);
  line-height: 1.85;
  max-width: 850px;
  font-size: 17px;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.detail-meta span,
.tag-list span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.detail-meta span:first-child,
.tag-list span:first-child {
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
}

.video-section {
  padding-top: 48px;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
  color: #fff;
}

.play-layer.is-hidden {
  display: none;
}

.play-ring {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 0 0 16px rgba(245, 158, 11, 0.16), 0 24px 54px rgba(0, 0, 0, 0.42);
  font-size: 36px;
  padding-left: 6px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 30px;
  align-items: start;
}

.article-panel,
.side-panel {
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  padding: 26px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-panel p {
  color: var(--muted-2);
  line-height: 1.9;
  margin: 0 0 18px;
}

.side-panel .rank-item {
  grid-template-columns: 34px 1fr;
}

.side-panel .rank-item em {
  grid-column: 2;
}

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 110px 0 74px;
  }

  .hero-nav {
    display: none;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .section.alt {
    padding: 24px;
  }

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

  .detail-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-cover {
    width: min(260px, 70vw);
  }
}

@media (max-width: 540px) {
  .container,
  .nav-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

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

  .horizontal-strip .movie-card {
    flex-basis: 78vw;
  }

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

  .rank-item {
    grid-template-columns: 38px 1fr;
  }

  .rank-item em {
    grid-column: 2;
  }

  .article-panel,
  .side-panel {
    padding: 20px;
  }
}
