
:root {
  --bg: #020617;
  --bg-soft: #0b1220;
  --panel: rgba(15, 23, 42, 0.92);
  --panel-strong: #111827;
  --panel-soft: rgba(30, 41, 59, 0.74);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e5eefb;
  --muted: #93a4bd;
  --muted-2: #64748b;
  --accent: #06b6d4;
  --accent-2: #f97316;
  --accent-3: #8b5cf6;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-lg: 0 24px 70px rgba(2, 6, 23, 0.56);
  --shadow-md: 0 18px 40px rgba(2, 6, 23, 0.36);
  --shadow-sm: 0 10px 24px rgba(2, 6, 23, 0.28);
  --max: 1320px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.15), transparent 26%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 30%),
    linear-gradient(180deg, #020617 0%, #070d1a 45%, #020617 100%);
  color: var(--text);
  font-family: Inter, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-shell {
  min-height: 100vh;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.navbar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
}

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

.nav-links a,
.nav-links button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 11px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .22s ease;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links a.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.searchbox {
  position: relative;
  min-width: min(420px, 48vw);
}

.searchbox input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  border-radius: 999px;
  padding: 13px 18px 13px 44px;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.searchbox input:focus {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.10);
}

.searchbox svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.hero {
  padding: 28px 0 12px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(17, 24, 39, 0.82) 0%, rgba(15, 23, 42, 0.88) 45%, rgba(2, 6, 23, 0.92) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-lg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 22px;
  padding: 28px;
  min-height: 560px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 18px 10px 18px 8px;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.22);
  color: #d8fbff;
  font-size: 0.88rem;
}

.badge.alt {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.22);
  color: #ffe7d5;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-title .grad {
  background: linear-gradient(90deg, #fff 0%, #bff9ff 45%, #fed7aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  transition: all .22s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 182, 212, 0.28);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #22d3ee 60%, var(--accent-2) 100%);
  border-color: transparent;
  color: #03111c;
  font-weight: 800;
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: stretch;
}

.featured-slide,
.featured-mini {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
  min-height: 260px;
  box-shadow: var(--shadow-md);
}

.featured-slide {
  grid-column: 1 / -1;
  min-height: 310px;
}

.featured-slide img,
.featured-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
  filter: saturate(1.03) contrast(1.02);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.68) 70%, rgba(2, 6, 23, 0.92) 100%);
}

.featured-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featured-content h3 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.2;
}

.featured-content p {
  margin: 0;
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.92rem;
}

.featured-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.1);
  color: #edf7ff;
  border: 1px solid rgba(255,255,255,0.1);
}

.section {
  padding: 18px 0 32px;
}

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

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

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

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

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

.card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.26);
  box-shadow: var(--shadow-md);
}

.poster {
  position: relative;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(249, 115, 22, 0.12));
}

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

.card:hover .poster img {
  transform: scale(1.05);
}

.poster .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0) 32%, rgba(2,6,23,.85) 100%);
}

.poster .badge-top {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.poster .badge-top.right {
  left: auto;
  right: 12px;
  background: rgba(6, 182, 212, 0.18);
}

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

.card h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.28;
  min-height: 2.6em;
}

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

.meta-line {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.8rem;
}

.meta-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #c7d2fe;
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.74rem;
}

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

.toolbar .select,
.toolbar .filter {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
  padding: 11px 14px;
  outline: none;
}

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

.breadcrumb a {
  color: #d2f8ff;
}

.detail-hero {
  padding: 26px 0 18px;
}

.detail-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow-lg);
}

.detail-poster {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 5 / 7;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(2,6,23,0.6);
}

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

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.detail-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148, 163, 184, 0.13);
  color: #eaf6ff;
}

.summary {
  max-width: 86ch;
  color: #d4dceb;
}

.player-wrap {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #000;
  box-shadow: var(--shadow-md);
}

.player-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(15,23,42,0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

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

.panel {
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow-sm);
}

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

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

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

.kv .item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.12);
}

.kv .item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.kv .item strong {
  font-size: 1rem;
}

.footer {
  padding: 34px 0 40px;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 28px;
}

.footer .foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.notice {
  padding: 16px;
  border-radius: 20px;
  background: rgba(249,115,22,0.10);
  border: 1px solid rgba(249,115,22,0.18);
  color: #ffe6cf;
}

.slide-indicators {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.slide-dot {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148,163,184,0.26);
  cursor: pointer;
  transition: all .2s ease;
}

.slide-dot.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 48px;
}

.mobile-only {
  display: none;
}

.hidden {
  display: none !important;
}

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

.search-summary {
  color: var(--muted);
  margin-bottom: 14px;
}

.empty-state {
  padding: 42px;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed rgba(148,163,184,0.24);
  color: var(--muted);
}

@media (max-width: 1200px) {
  .grid.cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .detail-card {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 880px) {
  :root {
    --header: 68px;
  }
  .searchbox {
    min-width: 0;
    width: 100%;
  }
  .navbar {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .nav-links {
    display: none;
  }
  .mobile-only {
    display: inline-flex;
  }
  .grid.cards,
  .results-grid,
  .kv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-card {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    padding: 18px;
  }
  .hero-copy {
    padding: 6px 4px 0;
  }
  .featured-slide {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 18px));
  }
  .hero-card {
    border-radius: 24px;
  }
  .hero-grid {
    min-height: auto;
  }
  .grid.cards,
  .results-grid,
  .kv {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .card {
    border-radius: 18px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .hero-title {
    font-size: 2rem;
  }
}


.hero-stage {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 26px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-stage .featured-slide {
  height: 100%;
  min-height: 100%;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.12);
  color: #eaf6ff;
}
