:root {
  color-scheme: dark;
  --bg: #11100e;
  --text: #f7f1e8;
  --muted: #bcb2a2;
  --line: rgba(255,255,255,.13);
  --accent: #d6a13a;
  --shadow: 0 18px 42px rgba(0,0,0,.36);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(130deg, rgba(214,161,58,.14), transparent 34%), radial-gradient(circle at 88% 12%, rgba(75,176,168,.16), transparent 32%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(17,16,14,.84); backdrop-filter: blur(18px); }
.bar { width: min(1480px, calc(100vw - 36px)); margin: 0 auto; padding: 18px 0; display: grid; grid-template-columns: minmax(220px,1fr) minmax(260px,520px) auto; gap: 14px; align-items: center; }
h1 { margin: 0; font-size: clamp(25px,3.4vw,48px); line-height: 1; letter-spacing: 0; }
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--text); }
.stats { margin-top: 8px; color: var(--muted); font-size: 14px; }
.search { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.07); color: var(--text); padding: 0 14px; font-size: 16px; outline: none; }
.filters { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
button, .actions a { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.06); color: var(--text); padding: 0 12px; cursor: pointer; font: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button.active { border-color: rgba(214,161,58,.72); background: rgba(214,161,58,.18); color: #ffe1a2; }
main { width: min(1480px, calc(100vw - 36px)); margin: 0 auto; padding: 26px 0 46px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 20px; }
.card { position: relative; min-width: 0; color: inherit; text-decoration: none; }
.poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 8px; background: #24211c; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.09); }
.poster img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.card:hover img { transform: scale(1.045); filter: saturate(1.08) contrast(1.04); }
.play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; color: rgba(255,255,255,.92); opacity: 0; background: rgba(0,0,0,.18); transition: opacity .2s ease; }
.card:hover .play { opacity: 1; }
.quality { position: absolute; top: 9px; left: 9px; border-radius: 6px; padding: 4px 8px; background: rgba(0,0,0,.68); border: 1px solid rgba(255,255,255,.18); font-size: 12px; font-weight: 700; }
.copy { position: absolute; inset: auto 0 0; padding: 46px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.zh { font-size: 18px; line-height: 1.18; font-weight: 800; overflow-wrap: anywhere; }
.en { margin-top: 5px; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.empty { display: none; border: 1px solid var(--line); border-radius: 8px; padding: 34px; color: var(--muted); text-align: center; background: rgba(255,255,255,.04); }
.watch { width: min(1320px, calc(100vw - 36px)); }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.player-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #050505; box-shadow: var(--shadow); }
video { display: block; width: 100%; max-height: calc(100vh - 130px); background: #000; }
.details { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: rgba(255,255,255,.055); }
.detail-poster { width: 120px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); margin-bottom: 14px; }
.details h1 { font-size: 26px; line-height: 1.1; margin-bottom: 6px; }
.details h2 { margin: 0 0 14px; color: var(--muted); font-size: 15px; font-weight: 500; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 12px; color: #ffe1a2; background: rgba(214,161,58,.12); }
.details p { color: var(--muted); line-height: 1.5; }
.note { color: #ffdca0 !important; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 900px) {
  .bar, .player-layout { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  main, .watch, .bar { width: min(100vw - 24px, 1480px); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 14px; }
  .zh { font-size: 16px; }
}
