:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --white: #ffffff;
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.18);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

.site-header-inner,
.mobile-nav,
.container,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
}

.logo-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.main-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.mobile-nav {
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 0 18px;
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-position: center;
  background-size: cover;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.18));
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.98));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 110px;
}

.hero-copy {
  max-width: 680px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.meta-row,
.tag-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.meta-row span {
  color: rgba(255, 255, 255, 0.86);
}

.tag-row span,
.tag-pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.button,
.button-secondary,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button {
  padding: 13px 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 14px 24px rgba(245, 158, 11, 0.35);
}

.button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.button-secondary {
  padding: 12px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-arrows,
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-arrows button,
.hero-dots button {
  border: 0;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-arrows button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  font-size: 22px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

main {
  min-height: 60vh;
}

.container {
  padding: 56px 0;
}

.section-block {
  margin-bottom: 64px;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.section-head p,
.page-lead {
  margin: 8px 0 0;
  color: var(--gray-500);
  max-width: 760px;
}

.section-more {
  padding: 10px 16px;
  color: var(--slate-900);
  background: var(--white);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

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

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

.movie-card {
  position: relative;
  display: grid;
  gap: 12px;
  color: var(--slate-800);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--slate-800);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-md);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

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

.movie-card:hover .poster {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.2);
  filter: saturate(1.08);
}

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

.score,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

.score {
  right: 10px;
  top: 10px;
  padding: 5px 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 30px;
  height: 30px;
  color: var(--slate-950);
  background: #fde68a;
}

.movie-info {
  display: grid;
  gap: 4px;
}

.movie-info strong {
  color: var(--slate-800);
  font-size: 15px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info strong {
  color: var(--amber-600);
}

.movie-info span,
.movie-info em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.movie-info em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.35), transparent 32%), linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.category-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px 150px 160px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.hero-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 14px;
  outline: 0;
  color: var(--slate-800);
  background: var(--white);
  font: inherit;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  padding: 0 14px;
}

.hero-search {
  display: flex;
  gap: 10px;
  width: min(560px, 100%);
  margin-top: 24px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-width: 0;
  padding: 0 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.hero-search button {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.rank-num {
  font-size: 25px;
  font-weight: 950;
  color: var(--amber-600);
  text-align: center;
}

.rank-cover {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  background-color: var(--slate-800);
}

.rank-main strong {
  display: block;
  margin-bottom: 4px;
  color: var(--slate-800);
  font-size: 18px;
}

.rank-main span,
.rank-main p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
}

.page-hero {
  color: var(--white);
  background: radial-gradient(circle at 18% 12%, rgba(251, 191, 36, 0.28), transparent 28%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero .container {
  padding-top: 66px;
  padding-bottom: 70px;
}

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
}

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

.play-action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.42);
  cursor: pointer;
  font-size: 34px;
}

.player-caption,
.detail-card,
.side-card {
  padding: 24px;
}

.player-caption h2,
.detail-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--slate-800);
}

.player-caption p,
.detail-card p {
  margin: 0;
  color: var(--gray-500);
}

.detail-card {
  margin-top: 24px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  background: #f8fafc;
  font-weight: 800;
  font-size: 13px;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-md);
}

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

.related-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-thumb {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  background-color: var(--slate-800);
}

.related-item strong {
  display: block;
  color: var(--slate-800);
  line-height: 1.35;
}

.related-item span {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 13px;
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-950);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 32px;
  padding: 42px 0 28px;
}

.footer-logo {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 950;
}

.footer-inner p {
  margin: 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: end;
}

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #64748b;
  text-align: center;
  font-size: 13px;
}

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 620px;
  }

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

  .hero-search,
  .section-head,
  .footer-inner {
    display: grid;
  }

  .hero-controls {
    bottom: 20px;
  }

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

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

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

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

  .rank-row {
    grid-template-columns: 48px 86px minmax(0, 1fr);
  }

  .rank-row .button-secondary,
  .rank-row .button {
    grid-column: 2 / -1;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .mobile-nav,
  .container,
  .footer-inner,
  .footer-bottom,
  .hero-content,
  .hero-controls {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 18px;
  }

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

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

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

  .hero-arrows {
    display: none;
  }

  .rank-row {
    grid-template-columns: 40px 76px minmax(0, 1fr);
    gap: 10px;
  }

  .player-caption,
  .detail-card,
  .side-card {
    padding: 18px;
  }
}
