
:root {
  --bg: #070b14;
  --bg-2: #0b1020;
  --panel: rgba(13, 19, 34, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #9aa8c7;
  --brand: #8b5cf6;
  --brand-2: #06b6d4;
  --brand-3: #f97316;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 18px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.20), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(6, 182, 212, 0.16), transparent 28%),
    radial-gradient(circle at 20% 85%, rgba(249, 115, 22, 0.12), transparent 30%),
    linear-gradient(180deg, #050814 0%, #070b14 48%, #090d17 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: rgba(139, 92, 246, 0.32);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(6, 10, 18, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(6, 182, 212, 0.9)),
    linear-gradient(180deg, #fff, #fff);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.32);
  color: #fff;
}

.brand-title {
  display: grid;
  line-height: 1.1;
}

.brand-title strong {
  font-size: 1.02rem;
}

.brand-title span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.14);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 10px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.55)),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 34%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(6, 182, 212, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7e3ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  color: #c0cce4;
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-actions,
.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  color: #0b1020;
  background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 35%, #c4b5fd 100%);
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.18);
}

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

.btn-ghost {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

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

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.stat {
  min-width: 138px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-carousel {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 12px;
}

.hero-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.hero-rail::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  min-height: 540px;
  border-radius: 32px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.08), rgba(7, 11, 20, 0.92)),
    var(--slide-bg);
  background-size: cover;
  background-position: center;
}

.hero-slide .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  mix-blend-mode: screen;
}

.hero-slide .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 10, 18, 0.95) 0%, rgba(6, 10, 18, 0.68) 42%, rgba(6, 10, 18, 0.18) 72%, rgba(6, 10, 18, 0.60) 100%),
    linear-gradient(180deg, transparent 0%, rgba(7, 11, 20, 0.10) 50%, rgba(7, 11, 20, 0.88) 100%);
}

.hero-slide .content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  display: grid;
  gap: 12px;
}

.hero-slide h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.7rem);
  line-height: 1.08;
  max-width: 18ch;
}

.meta-row,
.info-row,
.breadcrumbs,
.tag-row,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.chip,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #dce7fb;
  font-size: 0.84rem;
}

.meta-pill {
  color: #c7d2e8;
}

.hero-slide p {
  margin: 0;
  max-width: 68ch;
  color: #d3def4;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.icon-btn:hover {
  background: rgba(139, 92, 246, 0.18);
}

.section {
  padding: 18px 0 0;
}

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

.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: 1.4rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(16, 23, 40, 0.92), rgba(11, 16, 32, 0.92));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
  min-height: 100%;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 163, 184, 0.28);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .body {
  padding: 14px 14px 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
  min-height: 2.5em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card .foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.small-link {
  color: #dce7fb;
  font-size: 0.88rem;
  font-weight: 700;
}

.small-link:hover {
  color: #fff;
}

.page-hero {
  padding: 26px 0 8px;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.panel {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel h3,
.panel h4 {
  margin: 0 0 12px;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.filter-list {
  display: grid;
  gap: 10px;
}

.filter-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: #dbe5fb;
  background: rgba(255, 255, 255, 0.03);
}

.filter-list a:hover,
.filter-list a.active {
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.12);
}

.page-main {
  min-width: 0;
}

.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.search-bar input,
.search-bar select {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.search-bar input {
  flex: 1 1 320px;
}

.search-bar select {
  min-width: 140px;
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: rgba(139, 92, 246, 0.40);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.detail-hero {
  margin-top: 18px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58)),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 32%);
  box-shadow: var(--shadow);
}

.detail-hero .wrap {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  align-items: start;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111827;
  aspect-ratio: 2 / 3;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}

.detail-copy .intro {
  color: #d0dcf6;
  font-size: 1.03rem;
  margin: 0;
}

.detail-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
}

.detail-section {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 20px;
}

.detail-section h2,
.detail-section h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.detail-section p {
  margin: 0;
  color: #d1dbf0;
}

.player-shell {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 12, 21, 0.14), rgba(8, 12, 21, 0.86)),
    #0b1020;
}

.player-preview {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center;
}

.player-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.18) 0%, rgba(6, 10, 18, 0.82) 100%);
}

.player-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}

.control-bar {
  display: grid;
  gap: 8px;
}

.timeline {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.timeline span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.control-row {
  display: flex;
  justify-content: space-between;
  color: #d7e3ff;
  font-size: 0.88rem;
  gap: 10px;
}

.footer {
  margin-top: 28px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer .inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.pagination a:hover,
.pagination .current {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.24);
}

.notice {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.18);
  color: #d8f6ff;
}

.muted {
  color: var(--muted);
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

@media (max-width: 1100px) {
  .hero-shell,
  .page-shell,
  .detail-hero .wrap,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .hero-slide {
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  .site-header .inner {
    min-height: 68px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    padding: 0 0 16px;
  }

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

  .site-nav a,
  .site-nav button {
    width: 100%;
    justify-content: center;
  }

  .hero-copy,
  .detail-hero .wrap,
  .detail-section,
  .panel {
    padding: 16px;
  }

  .hero-slide {
    min-height: 430px;
  }

  .hero-slide .content {
    padding: 18px;
  }

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

  .detail-hero {
    border-radius: 24px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--max), calc(100% - 20px));
  }

  .grid.featured,
  .grid.cards {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2rem;
  }

  .hero-slide h2 {
    max-width: 14ch;
  }
}
