:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(126, 34, 206, 0.32);
  --line-hot: rgba(251, 191, 36, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #fbbf24;
  --amber-dark: #b45309;
  --purple: #7e22ce;
  --purple-soft: #c084fc;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126, 34, 206, 0.28), transparent 32rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(126, 34, 206, 0.28);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #1f1300;
  background: linear-gradient(135deg, #fbbf24, #a855f7);
  box-shadow: 0 0 36px rgba(251, 191, 36, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--amber);
  background: rgba(126, 34, 206, 0.22);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 14px;
  color: var(--amber);
  background: rgba(15, 23, 42, 0.78);
  cursor: pointer;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 76vh;
  border-bottom: 1px solid rgba(126, 34, 206, 0.26);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(88, 28, 135, 0.58), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at 78% 20%, rgba(251, 191, 36, 0.24), transparent 24rem),
    linear-gradient(135deg, #020617, #581c87 46%, #0f172a);
}

.hero-glow {
  position: absolute;
  inset: auto -8rem -12rem auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.16);
  filter: blur(24px);
}

.hero-carousel {
  position: relative;
  min-height: 76vh;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
  min-height: 76vh;
  padding: 56px 0 72px;
}

.hero-slide.is-active {
  display: grid;
  animation: heroFade 0.72s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(15, 23, 42, 0.58);
}

.hero-title {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.hero-title span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #fde68a, #c084fc 62%, #f8fafc);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #e9d5ff;
  border: 1px solid rgba(192, 132, 252, 0.26);
  background: rgba(88, 28, 135, 0.34);
}

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

.primary-button,
.secondary-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 22px;
  color: #1f1300;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #a855f7);
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.28);
}

.secondary-button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.36);
  background: rgba(15, 23, 42, 0.72);
}

.small-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(15, 23, 42, 0.74);
}

.primary-button:hover,
.secondary-button:hover,
.small-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(126, 34, 206, 0.24);
}

.hero-search {
  display: flex;
  width: min(100%, 560px);
  margin-top: 28px;
  padding: 7px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--text);
  background: transparent;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #1f1300;
  font-weight: 800;
  background: var(--amber);
  cursor: pointer;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-poster {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: min(100%, 430px);
  aspect-ratio: 3 / 4.25;
  margin-left: auto;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
}

.hero-poster img,
.movie-card img,
.rank-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after,
.poster-wrap::after,
.detail-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.74));
  pointer-events: none;
}

.hero-stack-card {
  position: absolute;
  right: 280px;
  bottom: 70px;
  z-index: 3;
  width: 250px;
  padding: 18px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-stack-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--amber);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

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

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

.page-hero {
  padding: 70px 0 42px;
  border-bottom: 1px solid rgba(126, 34, 206, 0.26);
  background:
    radial-gradient(circle at top left, rgba(126, 34, 206, 0.3), transparent 28rem),
    linear-gradient(135deg, rgba(2, 6, 23, 0.4), rgba(88, 28, 135, 0.18));
}

.page-hero h1,
.section-heading h2,
.detail-copy h1 {
  margin: 0;
  color: #fffbeb;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.9;
}

.section-block {
  padding: 56px 0;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.horizontal-scroll {
  overflow-x: auto;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) #0f172a;
}

.horizontal-track {
  display: flex;
  gap: 18px;
  min-width: max-content;
}

.horizontal-track .movie-card {
  width: 300px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(126, 34, 206, 0.24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.86));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.48);
  box-shadow: 0 24px 70px rgba(251, 191, 36, 0.1);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(15, 23, 42, 0.88);
}

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

.poster-wrap img {
  transition: transform 0.45s ease;
}

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #1f1300;
  background: var(--amber);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-title {
  margin: 0;
  color: #fef3c7;
  font-size: 18px;
  line-height: 1.35;
}

.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #c4b5fd;
  font-size: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(126, 34, 206, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(126, 34, 206, 0.24), rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.15), transparent 14rem);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.44);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  color: #fef3c7;
}

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

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 78px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(126, 34, 206, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(251, 191, 36, 0.44);
}

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

.rank-cover {
  overflow: hidden;
  width: 78px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.84);
}

.rank-title {
  margin: 0 0 6px;
  color: #fffbeb;
  font-size: 18px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin: 28px 0 30px;
  padding: 14px;
  border: 1px solid rgba(126, 34, 206, 0.28);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(126, 34, 206, 0.24);
  border-radius: 14px;
  outline: none;
  padding: 0 14px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.74);
}

.empty-note {
  display: none;
  padding: 34px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 22px;
  color: var(--amber);
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  padding: 48px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 40px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 30px;
  aspect-ratio: 3 / 4.2;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-copy .lead {
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0;
}

.player-section {
  padding: 20px 0 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #1f1300;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding-left: 5px;
  font-size: 34px;
  background: linear-gradient(135deg, #fbbf24, #a855f7);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

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

.content-panel {
  padding: 30px;
  border: 1px solid rgba(126, 34, 206, 0.24);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
}

.content-panel h2 {
  margin: 0 0 14px;
  color: #fef3c7;
}

.content-panel p {
  color: var(--soft);
  line-height: 1.95;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.site-footer {
  margin-top: 36px;
  padding: 34px 0;
  border-top: 1px solid rgba(126, 34, 206, 0.26);
  color: var(--muted);
  text-align: center;
  background: rgba(2, 6, 23, 0.54);
}

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

@media (max-width: 980px) {
  .hero-slide,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-poster {
    margin: 0 auto;
  }

  .hero-stack-card {
    right: 8%;
    bottom: 28px;
  }

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

  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: 64px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(126, 34, 206, 0.34);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero-section,
  .hero-carousel,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 38px 0 78px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-stack-card {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 42px;
  }

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

  .rank-row {
    grid-template-columns: 44px 62px 1fr;
  }

  .rank-row .small-button {
    grid-column: 2 / 4;
  }

  .rank-cover {
    width: 62px;
  }

  .content-panel {
    padding: 22px;
  }
}
