:root {
  --bg: #08101f;
  --bg-2: #0d162b;
  --card: rgba(12, 18, 35, .82);
  --card-2: rgba(16, 24, 45, .9);
  --line: rgba(148, 163, 184, .14);
  --text: #e5eefc;
  --muted: #94a3b8;
  --accent: #14b8a6;
  --accent-2: #22d3ee;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(20, 184, 166, .16), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(34, 211, 238, .14), transparent 24%),
    linear-gradient(180deg, #050913 0%, #08101f 38%, #09111e 100%);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.site-body { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 19, .65);
  border-bottom: 1px solid rgba(148,163,184,.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

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

.logo-mark {
  width: 40px; height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018;
  box-shadow: 0 10px 30px rgba(20,184,166,.35);
}

.logo-text {
  font-size: 1.02rem;
  background: linear-gradient(90deg, #fff, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: .2s ease;
}

.site-nav a:hover {
  background: rgba(20,184,166,.12);
  color: #d9ffff;
}

.hero {
  padding: 26px 0 10px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(148,163,184,.12);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(13,22,43,.9), rgba(7,11,23,.88));
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 540px;
  isolation: isolate;
}

.hero-slide.active { display: block; }

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.13), transparent 20%),
    linear-gradient(135deg, var(--c1), var(--c2));
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,9,19,.92) 0%, rgba(5,9,19,.72) 34%, rgba(5,9,19,.22) 100%),
    linear-gradient(180deg, rgba(5,9,19,.15), rgba(5,9,19,.8));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
  min-height: 540px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #d7fdf7;
  font-size: .88rem;
}

.hero-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 4.7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.hero-copy p {
  margin: 0;
  max-width: 54ch;
  color: rgba(228, 241, 255, .84);
  font-size: 1.02rem;
}

.hero-tags, .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-tags span, .card-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #d9efff;
  font-size: .86rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #021017;
  box-shadow: 0 16px 30px rgba(20,184,166,.24);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,.18);
  color: #f4fbff;
  background: rgba(255,255,255,.06);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
  display: block;
}

.hero-visual-copy {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 3px solid rgba(255,255,255,.18);
}

.hero-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-nav {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #f7fdff;
  background: rgba(5, 9, 19, .42);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: .2s ease;
  font-size: 1.2rem;
}

.hero-nav:hover {
  background: rgba(20,184,166,.2);
  transform: translateY(-1px);
}

.poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 22px 40px rgba(0, 0, 0, .28);
}

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

.poster-lg { aspect-ratio: 5 / 7; }
.poster-sm { aspect-ratio: 16 / 10; }

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.28)),
    radial-gradient(circle at top, rgba(255,255,255,.2), transparent 30%);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 800;
  color: rgba(255,255,255,.92);
  letter-spacing: .08em;
}

.poster-glow {
  position: absolute;
  inset: auto -18% -14% -18%;
  height: 46%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
  filter: blur(26px);
  pointer-events: none;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

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

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

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

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

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

.card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, rgba(15,20,37,.82), rgba(10,16,30,.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(20,184,166,.34);
  box-shadow: 0 26px 60px rgba(0,0,0,.42);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}

.card-title {
  margin: 12px 0 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  min-height: 2.8em;
}

.panel {
  background: linear-gradient(180deg, rgba(14,20,36,.86), rgba(10,14,25,.94));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.08);
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
}

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

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.searchbox {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 18px;
}

.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.searchbox input::placeholder {
  color: #7b8ba5;
}

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

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(148,163,184,.1);
  color: #d6e8ff;
}

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

.list-card {
  display: block;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.1);
  transition: .2s ease;
}

.list-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20,184,166,.28);
}

.list-card strong {
  display: block;
  margin-top: 10px;
}

.list-card span, .list-card small {
  color: var(--muted);
}

.detail-shell {
  padding: 28px 0 40px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

.detail-panel {
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15,20,37,.86), rgba(10,16,30,.94));
  border: 1px solid rgba(148,163,184,.12);
  box-shadow: var(--shadow);
}

.player {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.08);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  background:
    radial-gradient(circle at 40% 20%, rgba(255,255,255,.15), transparent 26%),
    linear-gradient(135deg, rgba(10,14,24,.85), rgba(5,9,19,.92));
  z-index: 2;
}

.player-cover .play-btn {
  border: 0;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #041018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(20,184,166,.28);
  font-size: 1.05rem;
  font-weight: 800;
}

.player-cover p {
  color: rgba(231,243,255,.88);
  margin-top: 14px;
}

.detail-title {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  line-height: 1.08;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #d9edf8;
}

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

.detail-section {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.1);
}

.detail-section h3 {
  margin: 0 0 12px;
}

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

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: block;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.1);
}

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid rgba(148,163,184,.08);
  margin-top: 18px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr .9fr;
  gap: 22px;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #eef8ff;
  margin-bottom: 10px;
}

.footer-grid h4 {
  margin: 0 0 10px;
  color: #eef8ff;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.page-head {
  padding: 26px 0 12px;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .grid-hero, .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; width: min(100%, 340px); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .wrap { width: min(100% - 22px, 1200px); }
  .nav-wrap { align-items: start; flex-direction: column; }
  .site-nav { width: 100%; }
  .site-nav a { padding: 9px 12px; }
  .hero-slide, .hero-inner { min-height: auto; }
  .hero-inner { padding: 18px; }
  .hero-copy h2 { font-size: 2rem; }
  .grid-hero, .grid-3, .grid-2, .list-grid, .related-grid, .stat-strip { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .searchbox { width: 100%; }
  .card-desc { min-height: 0; }
}
