:root {
  --bg: #090a14;
  --bg-soft: #111321;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #a5b4c6;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #22d3ee;
  --card: #141728;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --radius: 26px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 4%, rgba(139, 92, 246, 0.36), transparent 28rem),
    radial-gradient(circle at 84% 12%, rgba(236, 72, 153, 0.28), transparent 24rem),
    linear-gradient(180deg, #070812 0%, #0d1020 45%, #070812 100%);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 18, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 28px rgba(139, 92, 246, 0.42);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link,
.mobile-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: 0.22s ease;
}
.nav-link:hover,
.nav-link.active,
.mobile-links a:hover,
.mobile-links a.active {
  color: #fff;
  background: var(--panel-strong);
}
.menu-toggle {
  display: none;
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--panel-strong);
  font-weight: 800;
}
.mobile-links {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 14px;
  gap: 8px;
  flex-wrap: wrap;
}
.hero {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto 0;
}
.hero-stage {
  position: relative;
  min-height: 620px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.22)), var(--bg-soft);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 34px;
  align-items: center;
  padding: 64px;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(34, 211, 238, 0.22), transparent 20rem),
    radial-gradient(circle at 20% 70%, rgba(236, 72, 153, 0.22), transparent 24rem),
    linear-gradient(120deg, rgba(3, 5, 16, 0.92), rgba(12, 14, 32, 0.58));
}
.hero-copy,
.hero-poster,
.hero-side {
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 38px);
}
.hero-copy p {
  max-width: 650px;
  color: #d6deec;
  font-size: 18px;
  line-height: 1.85;
}
.meta-pills,
.tag-row,
.filter-row,
.hero-actions,
.quick-cats,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.meta-pills span,
.tag-row span,
.detail-tags span,
.quick-cats a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 750;
}
.hero-actions {
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 32px rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(139, 92, 246, 0.45);
}
.btn.alt {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.hero-poster {
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.hero-poster img {
  height: 100%;
  object-fit: cover;
}
.hero-dots {
  position: absolute;
  z-index: 4;
  left: 64px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 38px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}
.hero-dots button.is-active {
  background: #fff;
}
.main-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 72px;
}
.section-block {
  margin-top: 42px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.section-head h2,
.page-title h1,
.detail-main h1 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
}
.text-link {
  color: #c4b5fd;
  font-weight: 900;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(255, 255, 255, 0.12);
}
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.14));
  overflow: hidden;
}
.poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}
.movie-card:hover .poster img {
  transform: scale(1.045);
}
.badge {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}
.year-badge {
  top: 10px;
  left: 10px;
}
.type-badge {
  right: 10px;
  bottom: 10px;
}
.card-body {
  padding: 16px;
}
.card-body h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}
.card-body p,
.page-title p,
.category-card p,
.rank-text p,
.detail-main p,
.prose p {
  color: var(--muted);
  line-height: 1.72;
}
.mini-meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  color: #a7f3d0;
  font-size: 13px;
  margin-bottom: 12px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.category-card,
.panel,
.detail-card,
.rank-card {
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}
.category-card {
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.category-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -52px;
  bottom: -52px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.42), transparent 68%);
}
.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.page-title {
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(236, 72, 153, 0.12)), var(--panel);
  border: 1px solid var(--line);
}
.filter-panel {
  margin-top: 22px;
  padding: 18px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.filter-row input,
.filter-row select {
  min-height: 46px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.filter-row input {
  flex: 1 1 300px;
}
.filter-row select {
  flex: 0 0 170px;
}
.rank-list {
  display: grid;
  gap: 14px;
}
.rank-card {
  display: grid;
  grid-template-columns: 54px 86px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}
.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.rank-cover {
  width: 78px;
  height: 108px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.rank-cover img {
  height: 100%;
  object-fit: cover;
}
.rank-text h3 {
  margin: 0 0 8px;
}
.detail-hero {
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: stretch;
}
.detail-cover {
  border-radius: 30px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.detail-cover img {
  height: 100%;
  min-height: 510px;
  object-fit: cover;
}
.detail-main {
  padding: 36px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.08)), var(--panel);
  border: 1px solid var(--line);
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.player-box {
  margin-top: 28px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #020617;
  box-shadow: var(--shadow);
}
.player-box video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #020617;
}
.prose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.prose .panel {
  padding: 24px;
}
.prose h2,
.panel h2 {
  margin: 0 0 12px;
}
@media (max-width: 1080px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-slide {
    grid-template-columns: 1fr 280px;
    padding: 44px;
  }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .mobile-links.is-open {
    display: flex;
  }
  .hero-stage {
    min-height: 760px;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .hero-poster {
    max-width: 230px;
  }
  .hero-dots {
    left: 30px;
  }
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .detail-hero,
  .prose {
    grid-template-columns: 1fr;
  }
  .rank-card {
    grid-template-columns: 42px 68px 1fr;
  }
  .rank-card .btn {
    grid-column: 2 / 4;
  }
}
@media (max-width: 480px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-main,
  .page-title {
    padding: 24px;
  }
}
