:root {
  --bg: #f7f6f2;
  --surface: #fffdf8;
  --ink: #14213d;
  --muted: #5b6577;
  --line: #e3ded3;
  --accent: #b5651d;
  --accent-ink: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1626;
    --surface: #17203a;
    --ink: #eef0f4;
    --muted: #a3acbd;
    --line: #2a3555;
    --accent: #e8a25c;
    --accent-ink: #14213d;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
}
header {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
header .tag {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card, .status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.site { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.favicon { width: 20px; height: 20px; border-radius: 4px; }
h1 { font-size: 24px; line-height: 1.3; margin: 8px 0 12px; overflow-wrap: anywhere; }
h2 { font-size: 18px; margin: 0 0 4px; }
p { margin: 0; color: var(--muted); }
.source {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.embed { width: 100%; border: 0; border-radius: 14px; background: #000; }
.embed-video { aspect-ratio: 16 / 9; }
.embed-steam { height: 200px; background: transparent; }
.actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.status-blocked { border-color: #c0392b55; }
.address { font-size: 13px; overflow-wrap: anywhere; }
.address code { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; color: var(--ink); }
.disclaimer { font-size: 12px; }
.loading { color: var(--muted); }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.chip { color: #fff; font-weight: 700; border-radius: 6px; padding: 1px 8px; }
.kind { border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.media-stack { display: flex; flex-direction: column; gap: 12px; }
.cover { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.media-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  opacity: 0.9;
}
.player-vertical { display: flex; justify-content: center; }
/* 竖屏：按 9:16 自适应，手机上不超过 70% 视口高，桌面上最高 640px，居中 */
.embed-vertical {
  aspect-ratio: 9 / 16;
  height: auto;
  width: min(100%, calc(70svh * 9 / 16), 360px);
  border-radius: 14px;
  background: #000;
}
.status-citation { border-style: dashed; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; background: transparent; }
button.btn-primary { background: var(--accent); }
.status-offer { border-color: var(--accent); }
.status-paid { border-color: #2f8f5b; }
