:root {
  --ink: #0e1116;
  --panel: #161b23;
  --panel-2: #1d232d;
  --gold: #d8b26a;
  --red: #b3352f;
  --text: #e8e4dc;
  --muted: #8d95a3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 20% -10%, #1b2431 0%, var(--ink) 55%) fixed;
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

.site-head {
  display: flex; align-items: center; gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(216, 178, 106, 0.18);
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 17, 22, 0.82);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 10px; }
.seal {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(160deg, var(--red), #7d1f1b);
  color: #f6e7c8; font-weight: 700; font-size: 20px;
  box-shadow: 0 4px 14px rgba(179, 53, 47, 0.35);
}
.brand-text { font-size: 19px; letter-spacing: 3px; color: var(--gold); }

.search { display: flex; margin-left: auto; }
.search input {
  width: 240px; padding: 9px 14px;
  background: var(--panel); color: var(--text);
  border: 1px solid #2a3240; border-right: 0; border-radius: 8px 0 0 8px;
  outline: none;
}
.search input:focus { border-color: var(--gold); }
.search button {
  padding: 9px 16px; border: 0; border-radius: 0 8px 8px 0;
  background: var(--gold); color: #241a08; font-weight: 600; cursor: pointer;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 26px 20px 60px; }

.page-head { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 20px; }
.page-head h1 { margin: 0; font-size: 22px; letter-spacing: 1px; }
.muted { color: var(--muted); font-size: 13px; }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.card {
  background: var(--panel); border-radius: 12px; overflow: hidden;
  border: 1px solid #232a35;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 178, 106, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.cover { position: relative; aspect-ratio: 16 / 10; background: var(--panel-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute; right: 8px; top: 8px;
  padding: 2px 8px; border-radius: 999px; font-size: 12px;
  background: rgba(0, 0, 0, 0.62); color: var(--gold);
  border: 1px solid rgba(216, 178, 106, 0.4);
}

.card-body { padding: 10px 12px 14px; }
.card-body h3 {
  margin: 0 0 6px; font-size: 15px; font-weight: 500; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.meta { margin: 0; color: var(--muted); font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.score { color: var(--gold); }

.pager { display: flex; gap: 16px; justify-content: center; margin-top: 34px; font-size: 14px; }
.pager a { padding: 8px 16px; border: 1px solid #2a3240; border-radius: 8px; }
.pager a:hover { border-color: var(--gold); color: var(--gold); }

.detail { display: flex; gap: 28px; margin-bottom: 34px; flex-wrap: wrap; }
.detail-cover { width: 320px; border-radius: 12px; overflow: hidden; flex-shrink: 0; border: 1px solid #232a35; }
.detail-cover img { width: 100%; display: block; }
.detail-info { flex: 1; min-width: 260px; }
.detail-info h1 { margin: 0 0 8px; font-size: 26px; }
.sub { margin: 0 0 10px; color: var(--gold); font-size: 14px; }
.desc { color: #b9c0cc; line-height: 1.8; font-size: 14px; max-width: 760px; }

.btn {
  display: inline-block; margin-top: 16px; padding: 11px 26px;
  border-radius: 8px; font-weight: 600; font-size: 14px;
}
.btn.primary { background: linear-gradient(160deg, var(--red), #8a2420); color: #fff2dd; }
.btn.primary:hover { filter: brightness(1.12); }

.section-title { font-size: 16px; font-weight: 500; color: var(--gold); margin: 28px 0 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 14px; border-radius: 8px; font-size: 13px;
  background: var(--panel); border: 1px solid #262e3a; color: #cfd5df;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: rgba(216, 178, 106, 0.15); border-color: var(--gold); color: var(--gold); }

.player-wrap {
  background: #000; border-radius: 12px; overflow: hidden;
  border: 1px solid #232a35;
}
.player-wrap video { width: 100%; max-height: 72vh; display: block; background: #000; }
.now-playing { margin: 18px 0 6px; }
.now-playing h1 { font-size: 20px; margin: 0 0 8px; }
.hint { color: var(--red); font-size: 13px; min-height: 18px; }

.empty { color: var(--muted); grid-column: 1 / -1; padding: 40px 0; text-align: center; }
code { background: #232a35; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

.site-foot {
  border-top: 1px solid rgba(216, 178, 106, 0.12);
  padding: 20px; text-align: center; color: #5f6774; font-size: 12px;
}

@media (max-width: 640px) {
  .site-head { padding: 14px 16px; gap: 12px; }
  .search input { width: 130px; }
  .wrap { padding: 18px 14px 40px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .detail-cover { width: 100%; }
}
