:root {
  --bg: #0A0B0E;
  --surface: #101216;
  --surface-2: #161922;
  --surface-3: #1C202B;
  --line: #242a36;
  --line-soft: #1a1e28;
  --text: #EDEFF3;
  --text-dim: #949cad;
  --text-faint: #5c6474;
  --brand: #7B61FF;
  --brand-dim: #6a52e6;
  --brand-glow: rgba(123, 97, 255, 0.35);
  --danger: #ff5c5c;

  --pos-QB: #ff7a6b;
  --pos-RB: #59b0ff;
  --pos-WR: #7ddc7d;
  --pos-TE: #f2c14e;
  --pos-DST: #c98bff;

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;
  --gutter: 22px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Oswald", var(--font);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(123, 97, 255, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv05", "ss01";
}

button, input, textarea { font-family: inherit; }

.mono { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */

.topbar {
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 14, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff, #b9acff 70%, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand-glow);
}
.brand-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  font-weight: 600;
}

.controls { display: flex; align-items: center; gap: 14px; }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 12px; color: var(--text-faint); pointer-events: none; }
#search {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 12px 9px 34px;
  border-radius: 999px;
  font-size: 14px;
  width: 230px;
  transition: border-color .15s, box-shadow .15s;
}
#search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
#search::placeholder { color: var(--text-faint); }

.logout-link { color: var(--text-dim); font-size: 13px; text-decoration: none; white-space: nowrap; }
.logout-link:hover { color: var(--text); }

/* ---------- login ---------- */

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.login-box h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: 0.06em;
}
.login-sub { margin: 0 0 4px; color: var(--text-dim); font-size: 14px; }
.login-box input {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.login-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.login-box button {
  background: var(--brand);
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s;
}
.login-box button:hover { background: var(--brand-dim); }

/* ---------- tabs ---------- */

.tabs {
  display: flex;
  gap: 4px;
  padding: 16px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  white-space: nowrap;
  transition: all .15s;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 16px var(--brand-glow);
}

/* ---------- legend ---------- */

.legend-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 0 12px;
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .12s;
}
.legend-item:hover { color: var(--text); border-color: var(--line); }
.legend-item.active {
  color: #fff; border-color: var(--brand);
  background: var(--surface-3);
  box-shadow: 0 0 0 1px var(--brand);
}
.legend-clear {
  background: transparent; border: none; color: var(--brand);
  font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 8px;
}
.legend-clear:hover { text-decoration: underline; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  transition: all .15s;
}
.ghost-btn:hover { color: var(--text); border-color: var(--brand); }

.legend-editor {
  margin: 0 0 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.legend-editor.hidden { display: none; }
.legend-editor-rows { display: flex; flex-direction: column; gap: 8px; }
.legend-edit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.le-color, .legend-add input[type="color"] {
  width: 32px; height: 32px; border: 1px solid var(--line);
  border-radius: 8px; background: none; cursor: pointer; padding: 2px;
}
.le-label, .legend-add input[type="text"] {
  flex: 1; min-width: 180px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px;
}
.le-label:focus, .legend-add input:focus { outline: none; border-color: var(--brand); }
.le-hidden { display: flex; align-items: center; gap: 5px; color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.le-delete {
  background: transparent; border: 1px solid var(--line); color: var(--text-faint);
  border-radius: 8px; cursor: pointer; padding: 6px 10px; font-size: 13px;
}
.le-delete:hover { color: var(--danger); border-color: var(--danger); }
.legend-add {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.legend-add button {
  background: var(--brand); border: none; color: #fff;
  padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
}
.legend-add button:hover { background: var(--brand-dim); }

/* ---------- toolbar ---------- */

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 4px 0 14px;
}
.sort-group { display: flex; align-items: center; gap: 10px; }
.sort-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); font-weight: 600; }
.sort-buttons { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.sort-btn {
  background: transparent; border: none; color: var(--text-dim);
  padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all .12s;
}
.sort-btn:hover { color: var(--text); }
.sort-btn.active { color: #fff; background: var(--surface-3); }
.sort-btn.active::after { content: " ↑"; color: var(--brand); font-weight: 700; }
.sort-btn.active.desc::after { content: " ↓"; }

.toolbar-right { display: flex; align-items: center; gap: 16px; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  width: 38px; height: 22px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--line);
  position: relative; transition: background .15s, border-color .15s;
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--text-dim); transition: transform .15s, background .15s;
}
.switch input:checked + .switch-track { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(16px); background: #fff; }
.switch-text { font-size: 13px; color: var(--text-dim); }

.edit-toggle {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.edit-toggle:hover { border-color: var(--brand); }
.edit-toggle.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 16px var(--brand-glow); }

.edit-hint {
  margin: 0 0 10px; padding: 12px 16px;
  color: var(--text-dim); font-size: 13px; line-height: 1.5;
  background: linear-gradient(90deg, rgba(123,97,255,0.10), transparent);
  border: 1px solid var(--line-soft); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}
.edit-hint.hidden { display: none; }
.edit-hint strong { color: var(--text); }

/* ---------- table ---------- */

main { padding: 0 0 60px; }
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
table { border-collapse: collapse; width: 100%; }

thead th {
  text-align: left;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); font-weight: 700;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky; top: 0; z-index: 5;
}
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }

tbody tr {
  border-bottom: 1px solid var(--line-soft);
  transition: background .1s;
}
tbody tr:last-child { border-bottom: none; }
.player-row { cursor: pointer; }
.player-row:hover { background: var(--surface-2); }
.player-row.dragging { opacity: 0.5; background: var(--surface-3); }

td { padding: 11px 14px; font-size: 14px; white-space: nowrap; vertical-align: middle; }

.drag-col { width: 30px; padding-right: 0; }
.drag-handle { cursor: grab; color: var(--text-faint); font-size: 15px; }
.drag-handle:active { cursor: grabbing; }

.rk-cell {
  width: 44px; color: var(--text-faint);
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px;
}

.pos-badge {
  display: inline-block; min-width: 30px; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 5px;
  color: var(--text-dim);
  background: var(--surface-3);
  border: 1px solid var(--line);
}

.player-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tag-chip {
  width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
}
.tag-chip.editable { cursor: pointer; box-shadow: 0 0 0 2px var(--line); }
.tag-chip.editable:hover { box-shadow: 0 0 0 2px var(--brand); }

.row-hidden-tag { opacity: 0.45; }
.row-hidden-tag:hover { opacity: 0.75; }

.tag-menu {
  position: absolute; z-index: 60; width: 240px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.tag-menu-head {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); font-weight: 700; padding: 4px 8px 6px;
}
.tag-opt {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: none; border: none; color: var(--text);
  padding: 8px 8px; border-radius: 6px; cursor: pointer;
  font-size: 13px; text-align: left;
}
.tag-opt:hover { background: var(--surface-3); }
.tag-opt.current { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--brand); }
.tag-opt .dot { width: 11px; height: 11px; border-radius: 3px; }
.tag-opt.clear { color: var(--text-dim); margin-top: 2px; border-top: 1px solid var(--line-soft); border-radius: 0 0 6px 6px; }
.player-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.player-meta { color: var(--text-faint); font-size: 12px; white-space: nowrap; }


.note-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--surface-3); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; margin-left: 2px;
}

.fps-cell { font-weight: 700; font-variant-numeric: tabular-nums; }
.auc-cell { color: var(--text-dim); font-variant-numeric: tabular-nums; }

.empty-note { text-align: center; color: var(--text-dim); padding: 44px 12px; font-size: 14px; }

/* ---------- modal ---------- */

.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal.hidden { display: none; }
body.modal-open { overflow: hidden; }
.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  max-width: 480px; width: 100%; max-height: 84vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: var(--text-faint);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-head { margin-bottom: 18px; }
.modal-content h2 { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: 0.02em; }
.modal-player-sub { color: var(--text-dim); margin-top: 4px; font-size: 13px; letter-spacing: 0.02em; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-bottom: 22px; }
.stat-box {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 10px; text-align: center;
}
.stat-label { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat-value { font-size: 18px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }

.section-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); font-weight: 700; margin: 18px 0 10px; }
.comments-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); font-weight: 700; margin-bottom: 10px; }

/* injury dots */
.inj-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 6px; flex-shrink: 0; }
.inj-out { background: var(--danger); box-shadow: 0 0 8px rgba(255,92,92,0.5); }
.inj-warn { background: #f2c14e; box-shadow: 0 0 8px rgba(242,193,78,0.4); }

/* snapshot header */
.snapshot { max-width: 880px; }
.snap-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.snap-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.snap-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
  padding: 4px 10px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 600;
}
.snap-tag:hover { border-color: var(--brand); color: var(--text); }
.snap-tag-dot { width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.15); }

.snap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-items: start; }
.snap-col { min-width: 0; }
.snap-col .snap-section:first-child { margin-top: 0; }
.scrollbox { max-height: 300px; overflow-y: auto; }
@media (max-width: 720px) {
  .snap-cols { grid-template-columns: 1fr; }
  .scrollbox { max-height: none; }
}
.snap-photo {
  width: 72px; height: 72px; border-radius: 12px; object-fit: cover;
  background: var(--surface-2); border: 1px solid var(--line); flex-shrink: 0;
}
.snap-headinfo { min-width: 0; }
.snap-headinfo h2 { display: flex; align-items: center; }
.snap-bio { color: var(--text-dim); font-size: 12.5px; margin-top: 6px; line-height: 1.5; }

.stat-box.hero { background: linear-gradient(160deg, rgba(123,97,255,0.18), var(--surface-2)); border-color: rgba(123,97,255,0.35); }

.snap-section { margin-top: 4px; }
.section-link { float: right; font-size: 11px; font-weight: 600; color: var(--brand); text-decoration: none; text-transform: none; letter-spacing: 0; }
.section-link:hover { text-decoration: underline; }
.summary-body {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: 12px 14px;
}
.summary-para { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; }
.summary-para.muted { color: var(--text-dim); }
.summary-para:last-of-type { margin-bottom: 0; }
.summary-attr { margin-top: 10px; font-size: 11px; color: var(--text-faint); }
.summary-attr a { color: var(--text-dim); }
.career-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.career-table { width: 100%; border-collapse: collapse; min-width: 320px; }
.career-table th { position: static; background: var(--surface-2); font-size: 10px; padding: 8px 10px; }
.career-table td { padding: 8px 10px; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.career-table tr:last-child td { border-bottom: none; }

/* news */
.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-item {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--surface-2); transition: border-color .12s;
}
.news-item:hover { border-color: var(--brand); }
.news-title { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.news-summary { font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.news-meta { font-size: 11px; color: var(--text-faint); margin-top: 6px; }

/* trending modal */
#trending-modal .modal-content { max-width: 640px; }
.trend-title { font-family: var(--display); font-size: 26px; margin: 0; }
.trend-sub { color: var(--text-dim); font-size: 12.5px; margin: 4px 0 12px; }
.trend-windows { display: inline-flex; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 18px; }
.trend-win { background: transparent; border: none; color: var(--text-dim); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; }
.trend-win:hover { color: var(--text); }
.trend-win.active { color: #fff; background: var(--brand); }
.trend-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.section-head.up { color: var(--tag-priority, #2ecc71); }
.section-head.down { color: var(--danger); }
.trend-list { display: flex; flex-direction: column; gap: 4px; }
.trend-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: var(--radius-sm); font-size: 13px;
}
.trend-row.link { cursor: pointer; }
.trend-row.link:hover { background: var(--surface-2); }
.trend-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-team { color: var(--text-faint); font-size: 11px; flex-shrink: 0; }
.trend-count { color: var(--text-dim); font-variant-numeric: tabular-nums; font-size: 12px; flex-shrink: 0; min-width: 34px; text-align: right; }
.trend-row .pos-badge { flex-shrink: 0; }
@media (max-width: 560px) { .trend-cols { grid-template-columns: 1fr; } }
.comments-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.comment-empty { color: var(--text-faint); font-size: 13px; }
.comment-item {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--surface-2);
}
.comment-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.comment-meta { font-size: 12px; color: var(--text-faint); }
.comment-author { color: var(--brand); font-weight: 600; }
.comment-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.comment-item:hover .comment-actions { opacity: 1; }
.comment-act {
  background: none; border: none; color: var(--text-faint);
  cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 5px;
}
.comment-act:hover { color: var(--text); background: var(--surface-3); }
.comment-act.del:hover { color: var(--danger); }
.comment-body { font-size: 14px; white-space: pre-wrap; line-height: 1.45; }
.comment-edit-area {
  width: 100%; background: var(--bg); border: 1px solid var(--brand); color: var(--text);
  border-radius: var(--radius-sm); padding: 8px 10px; font-size: 14px; resize: vertical; min-height: 56px;
}

#comment-form { display: flex; flex-direction: column; gap: 10px; }
#comment-text {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: 11px 13px; border-radius: var(--radius-sm); font-size: 14px; min-height: 74px; resize: vertical;
}
#comment-text:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.comment-form-actions { display: flex; align-items: center; gap: 12px; }
#comment-form button[type="submit"] {
  background: var(--brand); border: none; color: #fff;
  padding: 9px 18px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
}
#comment-form button[type="submit"]:hover { background: var(--brand-dim); }
.comment-error { color: var(--danger); font-size: 13px; }
.comment-error.hidden { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .topbar { padding: 14px 16px; }
  #search { width: 150px; }
  .brand-sub { display: none; }
  .player-meta { display: none; }
  td, thead th { padding: 10px 10px; }
  .auc-cell, th.auc-col { display: none; }
}
