/* Spittr theme — warm black, cream text, signal red for action,
   gold for winners only. Cover hues live in the 10–55° warm band. */
:root {
  --bg: #121110;
  --surface: #1c1a17;
  --surface-2: #26241f;
  --text: #f2eee3;
  --dim: #a49d8d;
  --border: #35322b;
  --accent: #e8321e;
  --gold: #e8a33d;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 92px;
}
a { color: var(--text); }
.dim { color: var(--dim); font-size: 0.85em; }

/* masthead */
.masthead { background: #000; text-align: center; padding: 18px 12px 14px; }
.wordmark { max-width: min(560px, 88vw); width: 100%; height: auto; display: inline-block; }

.identity-bar {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.identity-bar select {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 8px;
}

.main-nav {
  display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
  padding: 10px 8px; border-bottom: 1px solid var(--border);
}
.main-nav a {
  text-decoration: none; padding: 7px 14px; border-radius: 999px; color: var(--dim);
  font-weight: 600;
}
.main-nav a.active { background: var(--accent); color: #fff; }

main { max-width: 880px; margin: 0 auto; padding: 20px 14px 30px; }

.hero { text-align: center; padding: 18px 6px 8px; }
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin: 0 0 8px; letter-spacing: 0.5px; }
.hero .accent-word { color: var(--accent); }
.hero p { color: var(--dim); font-size: 1.05rem; margin: 0 auto; max-width: 620px; }

.filters { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.filters button {
  background: var(--surface-2); color: var(--dim); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600;
}
.filters button.selected { background: #000; color: var(--text); border-color: var(--text); }

.track-card, .artist-card, .panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; margin-bottom: 12px;
}
.track-row { display: flex; gap: 14px; align-items: flex-start; }
.cover {
  width: 72px; height: 72px; border-radius: 10px; flex: 0 0 72px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; color: rgba(0,0,0,0.55);
}
.track-main { flex: 1; min-width: 0; }
.track-title { font-weight: 700; font-size: 1.08rem; }
.artist-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 3px 0; }
.badge {
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.badge-inside { background: var(--accent); color: #fff; }
.badge-verified { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.badge-video { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.track-video {
  width: 100%; max-height: 420px; display: block; margin-top: 10px;
  border-radius: 10px; background: #000;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 600;
}
.btn:hover { border-color: var(--dim); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.on { border-color: var(--gold); color: var(--gold); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.rank { font-size: 1.5rem; font-weight: 800; width: 44px; text-align: center; flex: 0 0 44px; }
.rank-1 { color: var(--gold); }
.gold-frame { border-color: var(--gold) !important; box-shadow: 0 0 0 1px var(--gold) inset; }
.winner-banner {
  border: 1px solid var(--gold); color: var(--gold); border-radius: 10px;
  padding: 10px 14px; text-align: center; font-weight: 800; margin-bottom: 14px;
  letter-spacing: 0.6px;
}

.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: rgba(0,0,0,0.55); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 88px; height: 88px; flex-basis: 88px; font-size: 1.5rem; }

form .field { margin-bottom: 14px; }
form label { display: block; font-weight: 600; margin-bottom: 5px; }
form input[type="text"], form textarea, form select {
  width: 100%; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px;
}
form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.notice { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.notice-error { border-color: var(--accent); color: #ffb3ab; }
.notice-ok { border-color: var(--gold); color: var(--gold); }

.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: #000; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
}
.player-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 1.1rem; flex: 0 0 44px;
}
.player-meta { min-width: 0; flex: 0 1 220px; }
.player-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#player-seek { flex: 1; accent-color: var(--accent); }
.site-footer { text-align: center; color: var(--dim); padding: 10px 14px 20px; font-size: 0.9rem; }
.comment { border-top: 1px solid var(--border); padding: 8px 0; }
h2.section { margin: 22px 0 10px; }
table.decisions { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.decisions td, table.decisions th { border-bottom: 1px solid var(--border); padding: 6px 8px; text-align: left; }
