:root {
  color-scheme: dark;
  --bg: #10141b;
  --bg-2: #181e28;
  --line: #2c3544;
  --text: #edf1f7;
  --muted: #93a0b4;
  --gold: #e8b15a;
  --gold-2: #8a5a1e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1200px 400px at 10% -10%, #2a2116, transparent 50%), var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(16, 20, 27, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.top-bar { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 12px 22px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--gold); white-space: nowrap; }
.brand span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--gold); color: #1a1208; font-size: 12px; }
.menu { order: 3; display: flex; gap: 8px 18px; width: 100%; flex-wrap: wrap; padding: 8px 0 12px; }
.menu a, .menu button { color: var(--muted); white-space: nowrap; }
.menu button { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
.menu a:hover, .menu a.on, .menu button:hover, .menu button.on { color: var(--gold); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0 22px 12px; }
.subnav[hidden] { display: none; }
.subnav a { color: var(--muted); font-size: 13px; }
.subnav a:hover, .subnav a.on { color: var(--gold); }
.search { margin-left: auto; display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { width: 220px; border: 0; background: transparent; color: var(--text); padding: 8px 14px; outline: none; }
.search button, .play-btn, .filters button, .pager a {
  border: 0;
  background: var(--gold);
  color: #1a1208;
  font-weight: 700;
  cursor: pointer;
}
.search button { padding: 0 14px; }
.history { position: relative; }
.history > button, .ops a, .eps a, .line-tabs a, .chips a {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.history-pop {
  position: absolute;
  right: 0;
  top: 40px;
  width: 260px;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
}
.history-pop a { color: var(--text); }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 40px; }
.band { margin-top: 28px; }
.section-head, .crumb, .facts, .ops, .filters, .pager { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.section-head { justify-content: space-between; }
.section-head h1, .section-head h2, .detail h1, .playlist h1 { margin: 0; }
.section-head span, .facts, .sub, .foot, .muted, .player-status { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.card { display: grid; gap: 8px; }
.poster { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #243041; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster em {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-style: normal;
  font-size: 12px;
  text-align: right;
}
.name { font-weight: 650; }
.filters select, .filters button { height: 36px; border-radius: 8px; }
.filters select { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); padding: 0 8px; }
.filters button, .play-btn { padding: 8px 14px; border-radius: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pager { margin-top: 18px; }
.pager a { padding: 6px 12px; border-radius: 8px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.detail { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 24px; }
.detail-poster img { width: 100%; border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; background: #243041; }
.facts strong { color: var(--gold); }
.desc { line-height: 1.7; color: #d5dbe6; }
.eps { display: flex; flex-wrap: wrap; gap: 8px; }
.eps a.on, .line-tabs a.on { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.stage { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.screen { position: relative; background: #000; border-radius: 14px; overflow: hidden; }
.screen video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-status { position: absolute; left: 12px; bottom: 48px; margin: 0; }
.playlist { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.line-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.foot { width: min(1180px, calc(100% - 32px)); margin: 0 auto 28px; font-size: 13px; }
.foot a { color: var(--gold); }
@media (max-width: 800px) {
  .top-bar { flex-wrap: wrap; }
  .search, .search input { width: 100%; }
  .search { order: 2; margin-left: 0; }
  .detail, .stage { grid-template-columns: 1fr; }
  .detail-poster { max-width: 220px; }
}
