
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #0b1220;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --brand: #22d3ee;
  --brand-2: #3b82f6;
  --brand-3: #0891b2;
  --accent: rgba(6, 182, 212, 0.20);
  --shadow: 0 18px 60px rgba(2, 6, 23, 0.54);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(180deg, #020617 0%, #040b17 44%, #020617 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 26px 0 4px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.section-title h2, .section-title h1 { margin: 0; font-size: clamp(22px, 2.5vw, 32px); letter-spacing: .2px; }
.section-title p { margin: 6px 0 0; color: var(--muted); line-height: 1.65; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(34, 211, 238, 0.10); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, 0.18); font-size: 12px; letter-spacing: .3px; }
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px); background: rgba(2, 6, 23, 0.74); border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 28px rgba(34, 211, 238, 0.22); display: grid; place-items: center; color: white; font-weight: 800; }
.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 18px; line-height: 1.1; background: linear-gradient(90deg, #a5f3fc, #60a5fa 60%, #e0f2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a { padding: 10px 13px; border-radius: 14px; color: var(--muted-2); border: 1px solid transparent; transition: .22s ease; }
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(34, 211, 238, 0.10); border-color: rgba(34, 211, 238, 0.18); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.search-mini { display: flex; align-items: center; gap: 10px; width: min(340px, 34vw); padding: 11px 14px; border-radius: 16px; background: rgba(15, 23, 42, 0.82); border: 1px solid rgba(148, 163, 184, 0.16); }
.search-mini input { width: 100%; border: 0; outline: none; background: transparent; color: white; }
.search-mini input::placeholder { color: #64748b; }
.menu-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.16); background: rgba(15, 23, 42, 0.82); color: white; display: none; place-items: center; }
.mobile-menu { display: none; padding: 0 0 16px; }
.mobile-menu .nav-links { flex-direction: column; align-items: stretch; }
.mobile-menu .nav-links a { display: block; }
.mobile-search { margin-top: 12px; width: 100%; }
.hero { padding: 28px 0 18px; }
.hero-shell { position: relative; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 34px; background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.16), transparent 28%), radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.16), transparent 24%), linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98)); box-shadow: var(--shadow); }
.hero-shell:before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0.04), transparent 28%, transparent 70%, rgba(255,255,255,0.03)); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding: 28px; }
.hero-copy { padding: 8px 4px 8px 6px; }
.hero-copy .badge { margin-bottom: 16px; }
.hero-copy h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: .2px; }
.hero-copy p { margin: 18px 0 0; max-width: 62ch; color: #cbd5e1; line-height: 1.8; font-size: 15px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.stat { padding: 14px 16px; border-radius: 18px; background: rgba(15, 23, 42, 0.62); border: 1px solid rgba(148, 163, 184, 0.14); }
.stat strong { display: block; font-size: 20px; margin-bottom: 5px; }
.stat span { color: var(--muted); font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 16px; border: 1px solid transparent; transition: .22s ease; font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; box-shadow: 0 16px 30px rgba(34, 211, 238, 0.18); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: rgba(15, 23, 42, 0.82); border-color: rgba(148, 163, 184, 0.16); color: white; }
.btn-ghost:hover { background: rgba(15, 23, 42, 1); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-tags a, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.14); color: #dbeafe; font-size: 13px; }
.hero-panel { display: grid; gap: 12px; align-content: start; }
.hero-carousel { position: relative; min-height: 480px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.16); background: rgba(15, 23, 42, 0.62); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .5s ease, transform .5s ease; display: grid; align-items: end; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-poster { position: absolute; inset: 0; background-image: var(--poster), linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.10), rgba(2, 6, 23, 0.96)); background-size: cover; background-position: center; }
.hero-poster:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,.16), rgba(2,6,23,.78) 70%, rgba(2,6,23,.98)); }
.hero-content { position: relative; z-index: 2; padding: 18px 18px 20px; }
.hero-content .kicker { color: #7dd3fc; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.hero-content h3 { margin: 10px 0 8px; font-size: 28px; line-height: 1.15; }
.hero-content p { margin: 0; color: #dbeafe; line-height: 1.7; font-size: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-meta .tag { background: rgba(15, 23, 42, 0.70); }
.hero-controls { position: absolute; inset: 14px 14px auto auto; z-index: 3; display: flex; gap: 8px; }
.hero-controls button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(2, 6, 23, 0.42); color: white; backdrop-filter: blur(12px); }
.hero-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-card { position: relative; overflow: hidden; min-height: 126px; border-radius: 20px; border: 1px solid rgba(148, 163, 184, 0.15); background: rgba(15, 23, 42, 0.66); }
.mini-card .hero-poster { position: absolute; inset: 0; }
.mini-card .hero-content h3 { font-size: 16px; margin: 8px 0 0; }
.mini-card .hero-content p { font-size: 12px; line-height: 1.6; opacity: .95; }
.cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(148, 163, 184, 0.16); background: rgba(15, 23, 42, 0.72); box-shadow: 0 14px 34px rgba(2, 6, 23, 0.20); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; min-height: 100%; }
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.28); box-shadow: 0 20px 44px rgba(2, 6, 23, 0.34); }
.poster { position: relative; aspect-ratio: 3/4; overflow: hidden; background-image: var(--poster), linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.10), rgba(2, 6, 23, 0.96)); background-size: cover; background-position: center; }
.poster:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,.12), rgba(2,6,23,.84)); }
.card .body { padding: 14px 14px 16px; }
.card h3 { margin: 0; font-size: 15px; line-height: 1.42; }
.card .meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.card .desc { margin: 10px 0 0; color: #cbd5e1; font-size: 13px; line-height: 1.7; min-height: 3.4em; }
.card .more { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; color: #a5f3fc; font-size: 13px; }
.page-hero { padding: 28px 0 18px; }
.page-banner { border-radius: 32px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.16); background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98)); box-shadow: var(--shadow); padding: 22px; }
.page-banner h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.page-banner p { margin: 12px 0 0; color: #cbd5e1; line-height: 1.8; }
.page-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1.22fr; gap: 18px; align-items: start; }
.player-shell, .detail-panel, .box { border-radius: 28px; border: 1px solid rgba(148, 163, 184, 0.16); background: rgba(15, 23, 42, 0.72); box-shadow: var(--shadow); }
.player-shell { overflow: hidden; position: relative; }
.player-top { position: relative; aspect-ratio: 16/9; background: #000; }
.player-top video { width: 100%; height: 100%; display: block; background: #000; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; background: linear-gradient(180deg, rgba(2,6,23,.12), rgba(2,6,23,.60)); transition: opacity .2s ease, visibility .2s ease; }
.player-shell.playing .player-overlay { opacity: 0; visibility: hidden; }
.play-button { width: 86px; height: 86px; border-radius: 999px; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; display: grid; place-items: center; box-shadow: 0 20px 40px rgba(34, 211, 238, 0.24); }
.player-captions { padding: 18px; }
.player-captions h2 { margin: 0; font-size: 22px; }
.player-captions p { margin: 10px 0 0; color: #cbd5e1; line-height: 1.75; }
.player-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; }
.progress { height: 6px; background: rgba(148, 163, 184, 0.16); border-radius: 999px; overflow: hidden; flex: 1; }
.progress span { display: block; width: 42%; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.detail-panel { padding: 20px; }
.detail-panel h1 { margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }
.detail-panel .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); }
.detail-panel .sections { margin-top: 18px; display: grid; gap: 14px; }
.box { padding: 16px; }
.box h2, .box h3 { margin: 0 0 10px; font-size: 18px; }
.box p { margin: 0; color: #cbd5e1; line-height: 1.8; }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rank-list { display: grid; gap: 12px; }
.rank-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: rgba(15, 23, 42, 0.72); border: 1px solid rgba(148, 163, 184, 0.16); }
.rank-item .num { width: 76px; height: 102px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(34, 211, 238, 0.20), rgba(59, 130, 246, 0.18)); border: 1px solid rgba(148, 163, 184, 0.16); font-size: 26px; font-weight: 800; color: #ecfeff; }
.category-shell { display: grid; gap: 16px; }
.category-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-tile { padding: 18px; border-radius: 22px; background: rgba(15, 23, 42, 0.70); border: 1px solid rgba(148, 163, 184, 0.16); }
.category-tile strong { display: block; font-size: 18px; }
.category-tile span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.7; }
.category-tile em { display: block; margin-top: 14px; font-style: normal; color: #93c5fd; }
.footer { margin-top: 32px; padding: 24px 0 40px; color: var(--muted); }
.footer .foot { border-top: 1px solid rgba(148, 163, 184, 0.16); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); border-radius: 24px; border: 1px dashed rgba(148, 163, 184, 0.22); background: rgba(15, 23, 42, 0.54); }
.search-page { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.search-panel, .search-results { border-radius: 28px; border: 1px solid rgba(148, 163, 184, 0.16); background: rgba(15, 23, 42, 0.72); box-shadow: var(--shadow); }
.search-panel { padding: 18px; }
.search-panel h1 { margin: 0; font-size: 30px; }
.search-panel p { margin: 12px 0 0; color: #cbd5e1; line-height: 1.8; }
.search-input { width: 100%; margin-top: 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.16); background: rgba(2, 6, 23, 0.40); color: white; outline: none; }
.search-results { padding: 18px; }
.search-results .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .hero-grid, .detail-layout, .search-page { grid-template-columns: 1fr; } .hero-carousel { min-height: 420px; } .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .search-results .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nav-links, .search-mini { display: none; } .menu-btn { display: grid; } .mobile-menu.open { display: block; } }
@media (max-width: 720px) { .wrap { width: min(var(--max), calc(100% - 22px)); } .hero-grid { padding: 18px; } .hero-stats { grid-template-columns: 1fr; } .hero-mini { grid-template-columns: 1fr; } .cards, .related-grid, .search-results .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .category-tiles { grid-template-columns: 1fr; } .rank-item { grid-template-columns: 1fr; } .rank-item .num { width: 100%; height: 92px; } }
@media (max-width: 520px) { .cards, .related-grid, .search-results .cards { grid-template-columns: 1fr; } .hero-copy h1 { font-size: 32px; } .page-banner h1 { font-size: 28px; } }
