:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e6e8eb;
  --text: #1f2329;
  --muted: #8a9099;
  --brand: #ff4d4f;
  --bili: #fb7299;
  --douyin: #25f4ee;
  --tag: #fff1f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { font-size: 30px; }
.topbar h1 { font-size: 20px; margin: 0; }
.sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.controls input,
.controls select {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}
.controls button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.controls button:hover { opacity: 0.9; }
main { max-width: 960px; margin: 0 auto; padding: 20px 16px 60px; }
.status { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rank { font-weight: 700; color: var(--muted); font-size: 14px; min-width: 22px; }
.badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
}
.badge.B站 { background: var(--bili); }
.badge.抖音 { background: #000; }
.style-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 500;
  white-space: nowrap;
}
.aud-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}
.aud-badge.startup { background: #f97316; }
.aud-badge.health { background: #16a34a; }
.topic-title { font-weight: 600; font-size: 16px; flex: 1; }
.heat { font-size: 12px; color: var(--muted); white-space: nowrap; }
.src-link { font-size: 12px; color: var(--brand); text-decoration: none; margin-left: 6px; }
.script { background: #fafbfc; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; }
.script .row { margin-bottom: 8px; }
.script .row:last-child { margin-bottom: 0; }
.label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 2px; letter-spacing: 1px; }
.val { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.val.title { font-weight: 600; color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: var(--tag); color: var(--brand); font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.copy-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.copy-btn {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text);
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.show { opacity: 1; }

/* 提词器全屏覆盖层（录制用，深色高对比） */
.prompter {
  position: fixed;
  inset: 0;
  background: #0d0f12;
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.prompter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #000;
}
.prompter-title { font-size: 14px; opacity: 0.8; }
.prompter-close {
  background: transparent;
  border: 1px solid #555;
  color: #fff;
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 14px;
}
.prompter-stage {
  flex: 1;
  overflow: hidden;
  padding: 4vh 8vw;
  display: flex;
  align-items: flex-start;
}
.prompter-text {
  line-height: 1.5;
  white-space: pre-wrap;
  max-width: 960px;
  margin: 0 auto;
  font-weight: 600;
}
.prompter-text.mirror { transform: scaleX(-1); transform-origin: center; }
.prompter-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  flex-wrap: wrap;
  background: #000;
}
.prompter-controls button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 14px;
}
.prompter-controls label { font-size: 13px; display: flex; gap: 6px; align-items: center; }
