:root {
  --bg: #12141c;
  --panel: #1b1e2a;
  --line: #2a2e3d;
  --text: #e8eaf2;
  --muted: #9aa0b4;
  --accent: #e85d4c;
  --hot: #f0c14b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: 0; }
.wrap { width: min(1200px, calc(100% - 24px)); margin: 0 auto; }
.top { background: linear-gradient(135deg, #3a1c12 0%, #1a1230 80%); padding: 14px 0 18px; }
.top-row { display: flex; align-items: center; gap: 28px; }
.logo { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 1px; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a { padding: 6px 12px; border-radius: 4px; color: #d7d9e4; }
.nav a.on, .nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.hotline { margin-top: 12px; color: var(--muted); font-size: 13px; }
.hotline a { margin-right: 12px; color: #d7d9e4; }
.hotline a:hover { color: var(--hot); }
.sec { margin: 22px 0; }
.sec-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sec-hd h2 { margin: 0; font-size: 20px; font-weight: 650; }
.sec-hd a { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 12px; }
.card .poster { display: block; position: relative; padding-top: 140%; border-radius: 6px;
  background: #0d0f16; overflow: hidden; }
.card .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .poster .tag { position: absolute; top: 6px; left: 6px; background: #3b82c4;
  color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; }
.card .poster .res { position: absolute; right: 6px; bottom: 6px; color: #fff; font-size: 12px;
  text-shadow: 0 1px 2px #000; }
.card .name { margin: 8px 0 2px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title { margin: 18px 0 8px; font-size: 22px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumbs a { color: #c9cde0; }
.player-box { background: #0b0c12; border-radius: 8px; overflow: hidden; }
.player-frame { position: relative; padding-top: 56.25%; background: #000; }
.player-frame iframe, .player-frame .ph { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-frame .ph { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.detail { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin: 18px 0; }
.side { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.side h1 { margin: 0 0 8px; font-size: 18px; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.6; }
.eps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.eps a, .eps span { display: inline-block; min-width: 64px; text-align: center; padding: 6px 8px;
  background: #232636; border-radius: 4px; font-size: 13px; }
.eps .on { background: var(--accent); color: #fff; }
.intro { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 16px 0 18px; }
.intro h3 { margin: 0 0 8px; }
.intro p { margin: 0 0 10px; color: #c5c9d8; line-height: 1.75; }
.relk { font-size: 13px; }
.relk a { color: #9ec1ff; margin-right: 10px; }
.qa dl { margin: 0; }
.qa dt { color: #fff; margin: 10px 0 4px; }
.qa dd { margin: 0; color: #c5c9d8; line-height: 1.6; }
.cols { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
.hotbox { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.hotbox h3 { margin: 0 0 8px; font-size: 16px; }
.hotbox ol { margin: 0; padding-left: 20px; }
.hotbox li { margin: 6px 0; }
.hotbox a { color: #d7d9e4; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.pager a { min-width: 36px; text-align: center; padding: 6px 8px; background: #232636; border-radius: 4px; }
.pager a.on { background: var(--accent); color: #fff; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
  text-align: center; padding: 20px 0 28px; margin-top: 20px; }
.review { min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 40px 16px; background: #2c3636; }
.review h1 { font-weight: 400; font-size: 28px; margin: 0 0 16px; }
.review p { max-width: 520px; color: #ddd; line-height: 1.7; }
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
  .nav a { padding: 5px 8px; font-size: 13px; }
}
