:root {
  --bg: #0c1018;
  --bg-2: #141a26;
  --ink: #f3ead7;
  --muted: #c4b8a1;
  --gold: #d4a24a;
  --gold-2: #f0d59a;
  --line: rgba(212, 162, 74, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

.glow {
  position: fixed;
  inset: -20vh auto auto 50%;
  width: 80vw;
  height: 50vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212,162,74,0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.hero { padding: 56px 0 28px; text-align: center; }
.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 12px;
}
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.05; }
h2 { font-size: 1.8rem; margin-bottom: 10px; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 10px; color: var(--gold-2); }
.player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  min-height: 34px;
}
.player-meta h3 {
  flex: 1;
  margin: 0;
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-2);
}
.player-meta-empty { visibility: hidden; }
.yt-open {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  text-decoration: none;
  border: 0;
}
.yt-open:hover { background: var(--gold-2); }
.yt-open-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #1a1408;
}
.lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 38rem;
  margin: 16px auto 28px;
}
.section-note { color: var(--muted); margin: 0 0 18px; }

.ctas, .more { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.more { flex-direction: column; align-items: center; text-align: center; padding: 40px 0 20px; gap: 14px; }
.more p { color: var(--muted); margin: 0 0 16px; }

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn.gold { background: var(--gold); color: #1a1408; }
.btn.ghost { color: var(--gold-2); border-color: var(--line); }

section { padding: 18px 0 28px; }

.player { margin-top: 8px; }
.frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card { background: var(--bg-2); padding: 10px 10px 16px; border-radius: 16px; border: 1px solid var(--line); }
.foot {
  padding: 32px 0 48px;
  color: #8e8474;
  font-size: 0.85rem;
  text-align: center;
}
.foot-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-link:hover { color: var(--gold-2); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.socials .btn { padding: 8px 14px; font-size: 0.9rem; }

.pause-banner {
  background: #3a2a12;
  border-bottom: 1px solid var(--gold);
  color: var(--gold-2);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.92rem;
  position: relative;
  z-index: 2;
}
.pause-banner a { color: var(--gold); }
.panel-body { background: #0a0e16; }
.panel-body .pause-banner {
  border: 1px solid var(--gold);
  border-radius: 12px;
  margin: 16px 0 0;
}
.panel-nav {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 22px 0 8px;
}
.panel-nav a {
  color: var(--gold-2); text-decoration: none; padding: 8px 14px;
  border-radius: 999px; border: 1px solid transparent;
}
.panel-nav a.on { background: var(--gold); color: #1a1408; font-weight: 600; }
.sub-nav {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 4px 0 12px;
}
.sub-nav a {
  color: var(--muted); text-decoration: none; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--line); font-size: 0.92rem;
}
.sub-nav a.on {
  color: var(--gold); border-color: var(--gold); font-weight: 600;
}
.top { display:flex; justify-content:space-between; align-items:center; padding: 12px 0 8px; gap:12px; flex-wrap:wrap; }
.ranges a { color: var(--gold-2); margin-right: 12px; text-decoration:none; }
.ranges a.on { color: var(--gold); font-weight:700; }
.stats-bots { margin: 10px 0 0; font-size: 0.95rem; }
.stats-bots input { width: auto; margin: 0; }
.pulse {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0 0;
}
@media (min-width: 640px) {
  .pulse { grid-template-columns: 1fr 1fr; }
}
.pulse-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 15px;
}
.pulse-kicker {
  margin: 0 0 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pulse-ago {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--gold-2);
}
.pulse-what {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pulse-when {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.pulse-card.hot { border-color: rgba(212, 162, 74, 0.55); }
.pulse-card.warm .pulse-ago { color: var(--ink); }
.pulse-card.stale .pulse-ago { color: var(--muted); }
.kpis { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap:12px; margin: 16px 0 28px; }
.kpi { background: var(--bg-2); border:1px solid var(--line); border-radius:14px; padding:16px; }
.kpi b { display:block; font-size:1.8rem; font-family:"Cormorant Garamond",serif; }
.kpi > span { color: var(--muted); font-size:0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.info { position: relative; display: inline-flex; vertical-align: middle; }
.info-btn {
  width: 18px; height: 18px; padding: 0; margin: 0;
  border-radius: 999px; border: 1px solid var(--line);
  background: #0c1018; color: var(--gold-2);
  font: 700 11px/18px "Source Sans 3", sans-serif;
  cursor: pointer; flex: 0 0 auto;
}
.info-btn:hover, .info.open .info-btn { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.info-pop {
  display: none !important; position: fixed; z-index: 40;
  padding: 10px 12px; background: #1a2233;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-size: 0.82rem; font-weight: 400;
  line-height: 1.45; font-family: "Source Sans 3", sans-serif;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  white-space: pre-wrap;
}
.info.open .info-pop { display: block !important; }
h1 .info, h2 .info { margin-left: 8px; }
.cols { display:grid; grid-template-columns:1fr; gap:18px; }
@media(min-width:900px){ .cols { grid-template-columns: 1fr 1fr; } }
table { width:100%; border-collapse: collapse; font-size:0.9rem; }
th, td {
  text-align:left; padding: 7px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top;
  word-break: normal; overflow-wrap: break-word; hyphens: none;
}
.nowrap { white-space: nowrap; }
.dup {
  display: inline-block;
  margin: 4px 0 0 0;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(232, 160, 160, 0.5);
  color: #e8a0a0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.dup[hidden] { display: none !important; }
th { color: var(--gold); font-weight:600; }
.barwrap { display:inline-block; width: 72px; height: 8px; background:#1c2333; border-radius: 6px; overflow:hidden; vertical-align:middle; margin-right:8px; }
.bar { display:block; height:100%; background: var(--gold); }
table.bars { width: 100%; }
table.bars .bar-label { width: 1%; white-space: nowrap; padding-right: 10px; }
table.bars .bar-cell { width: 99%; vertical-align: middle; }
table.bars .bar-cell .barwrap {
  display: block; width: 100%; height: 10px; margin-right: 0;
}
table.bars .bar-n { width: 1%; white-space: nowrap; text-align: right; padding-left: 10px; }
table.bars-compact .bar-cell { width: 80px; max-width: 80px; }
table.bars-compact .bar-cell .barwrap { width: 72px; height: 8px; }
.funnel { display: flex; flex-direction: column; gap: 12px; }
.funnel-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; }
.funnel-bar { width: 100%; height: 14px; display: block; }
.box { background: var(--bg-2); border:1px solid var(--line); border-radius:14px; padding:16px; overflow:auto; margin-bottom: 16px; }
.full { grid-column: 1 / -1; }
.bot { opacity: 0.45; }
a.dim-link { color: var(--gold-2); text-decoration: none; }
a.dim-link:hover { color: var(--gold); text-decoration: underline; }
.ip-trunc {
  display: inline-block;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  vertical-align: bottom;
}
.explore-find {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin: 0 0 18px;
}
.explore-find input { max-width: 320px; margin: 0; }
.explore-find .btn { margin: 0; }
a.sort-h { color: var(--gold); text-decoration: none; font-weight: 600; white-space: nowrap; }
a.sort-h.on { color: var(--gold-2); }
.login { max-width: 360px; margin: 12vh auto; background: var(--bg-2); padding: 28px; border-radius: 16px; border: 1px solid var(--line); }
.pw-wrap { display: flex; gap: 8px; align-items: stretch; }
.pw-wrap input { flex: 1; }
.pw-toggle {
  margin: 0; width: auto; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #0c1018; color: var(--gold-2);
  font: inherit; cursor: pointer; white-space: nowrap;
}
label { display: block; margin: 12px 0 6px; color: var(--muted); }
input, textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #0c1018; color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
button { margin-top: 8px; cursor: pointer; }
.err { color: #e8a0a0; }
.ok { color: #b7d7a8; background: #1a2a18; padding: 10px 14px; border-radius: 10px; }
.hint { color: var(--muted); font-size: 0.92rem; margin: 0 0 12px; }
.feat { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; padding: 8px 12px 14px; }
.feat legend {
  color: var(--gold); padding: 0 6px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.feat-handle {
  cursor: grab; user-select: none; color: var(--gold-2);
  font-size: 1.05rem; letter-spacing: -0.08em; padding: 2px 6px;
}
.feat.dragging { opacity: 0.45; }
.feat.dragging .feat-handle { cursor: grabbing; }
.feat.is-off { opacity: 0.55; border-style: dashed; }
.feat-switch {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 0 8px; color: var(--muted); font-weight: 500; cursor: pointer;
}
.feat-switch input { width: auto; margin: 0; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.edit .btn { margin: 8px 0 40px; }
.link-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(180px, 1.4fr);
  gap: 10px 14px;
  margin: 8px 0 4px;
}
@media (max-width: 640px) {
  .link-row { grid-template-columns: 1fr; }
}
