/* ============ The Edge — dark premium theme ============ */
:root {
  --bg: #0a0e16;
  --bg-card: rgba(22, 28, 42, 0.72);
  --bg-card-hover: rgba(28, 36, 54, 0.85);
  --border: rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 255, 255, 0.14);
  --text: #e8ecf4;
  --text-dim: #8b94a8;
  --text-faint: #5a6275;
  --accent: #4f8cff;
  --accent-glow: rgba(79, 140, 255, 0.35);
  --green: #2fd47e;
  --green-bg: rgba(47, 212, 126, 0.12);
  --red: #ff5d6c;
  --gold: #ffc94d;
  --radius: 16px;
  --mono: "JetBrains Mono", monospace;
  --card: #182030;          /* solid card (inline-styled panels in app.js) */
  --dim: var(--text-dim);
}

/* ============ light mode ============ */
[data-theme="light"] {
  --bg: #eef1f6;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border: rgba(20, 30, 55, 0.10);
  --border-bright: rgba(20, 30, 55, 0.2);
  --text: #18213a;
  --text-dim: #4a5568;
  --text-faint: #7a8497;
  --accent: #2f6fe4;
  --accent-glow: rgba(47, 111, 228, 0.25);
  --green: #127a47;
  --green-bg: rgba(22, 138, 82, 0.1);
  --red: #cf3247;
  --gold: #a06b10;
  --card: #ffffff;
}
[data-theme="light"] .bg-glow { background: radial-gradient(ellipse at center, rgba(47, 111, 228, 0.10), transparent 65%); }
[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.85); }
[data-theme="light"] .tab.active { color: var(--text); }
[data-theme="light"] .hero h1 { background: linear-gradient(90deg, #18213a, #44507a); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .modal { background: #ffffff; }
[data-theme="light"] #tooltip { background: #ffffff; color: #18213a; }
[data-theme="light"] .sim-select { background: #ffffff; }
[data-theme="light"] .featured-card {
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.95)),
    linear-gradient(115deg, var(--team-a, #2f6fe4) 0%, transparent 45%, transparent 55%, var(--team-b, #7b5cff) 100%);
  box-shadow: 0 14px 40px rgba(30, 45, 90, 0.12);
}
[data-theme="light"] .game-card:hover { box-shadow: 0 12px 30px rgba(30, 45, 90, 0.12); }
[data-theme="light"] .key-banner { color: #6b5417; }
[data-theme="light"] .sim-disclaimer { color: #8a6a1e; }
[data-theme="light"] .team-logo { filter: none; }
[data-theme="light"] .feat-logo { filter: drop-shadow(0 3px 8px rgba(30,45,90,0.2)); }

.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer; font-size: 15px;
  transition: border-color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--accent); }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ambient glow behind everything */
.bg-glow {
  position: fixed;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(79, 140, 255, 0.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ============ top bar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(10, 14, 22, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #7b5cff);
  border-radius: 10px;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 0 22px var(--accent-glow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: 2.5px; }
.brand-sub { font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.4px; }

.league-tabs { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.tab {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.22), rgba(123, 92, 255, 0.22));
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: 0 0 16px rgba(79, 140, 255, 0.18);
}

.topbar-right { display: flex; align-items: center; gap: 8px; min-width: 130px; justify-content: flex-end; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.updated { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* ============ layout ============ */
.container { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 36px 24px 60px; }

.hero { margin-bottom: 28px; }
.hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, #aab8d8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-dim); margin-top: 6px; font-size: 15px; }

.stats-row { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.stat {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 22px;
  min-width: 110px;
}
.stat-num { font-family: var(--mono); font-size: 24px; font-weight: 700; }
.stat-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 1px; }
.live-stat .stat-num { color: var(--green); text-shadow: 0 0 14px rgba(47,212,126,0.4); }
.stat-click { cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
#pensView .st-team, .pen-table .bx-name { text-transform: capitalize; }
.pen-more { color: var(--accent); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
/* every clickable row, everywhere: hand cursor + hover glow */
tr.spl-click { cursor: pointer; }
tr.spl-click:hover td { background: rgba(79, 140, 255, 0.07); }
.pen-mix { font-size: 10.5px; color: var(--text-dim); white-space: nowrap; }
.pen-l3 { white-space: nowrap; min-width: 132px; }
.pen-day { display: inline-flex; flex-direction: column; align-items: center; min-width: 38px; padding: 2px 5px; margin-right: 5px; border-radius: 6px; border: 1px solid var(--border); cursor: default; }
.pen-day-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); font-weight: 700; line-height: 1.3; }
.pen-day-val { font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.pen-day-hot { border-color: var(--gold); background: rgba(212, 160, 23, 0.08); }
.pen-day-hot .pen-day-val { color: var(--gold); font-weight: 700; }
.info-i {
  cursor: help; font-size: 9px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 50%;
  padding: 0 3px; vertical-align: middle;
}
.info-i:hover { color: var(--accent); border-color: var(--accent); }
.pp-link { cursor: pointer; border-bottom: 1px dotted var(--text-faint); }
.pp-link:hover { color: var(--accent); border-color: var(--accent); }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-bottom: 6px; }
.pp-cell { padding: 10px 12px; text-align: center; }
.pp-val { font-family: var(--mono); font-size: 17px; font-weight: 700; }
.pp-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-faint); margin-top: 3px; }
.pp-arsenal { margin-top: 4px; }
.pp-reasons { margin: 0 0 14px 18px; font-size: 13px; color: var(--text-dim); line-height: 1.8; }

/* props sub-tabs */
.prop-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.prop-tab {
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 9px 18px; border-radius: 12px;
  cursor: pointer; transition: all 0.15s ease;
}
.prop-tab:hover { color: var(--text); border-color: var(--border-bright); }
.prop-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7b5cff);
  border-color: transparent;
}
/* calculator */
.calc-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.calc-head { margin-bottom: 2px; }
.calc-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); font-weight: 700; padding-left: 4px; }
@media (max-width: 760px) { .calc-head { display: none; } }
.calc-desc { flex: 3; min-width: 160px; }
.calc-num { flex: 1; min-width: 84px; font-family: var(--mono); }
@media (max-width: 760px) { .calc-row { flex-wrap: wrap; } .calc-desc { min-width: 100%; } }

#tooltip {
  position: fixed; z-index: 300;
  max-width: 280px;
  background: #1d2740;
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12.5px; line-height: 1.55; color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  pointer-events: none;
}
.stat-click:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ============ featured spotlight ============ */
.featured { margin-bottom: 24px; }
.featured-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border-bright);
  background:
    linear-gradient(rgba(12,16,26,0.88), rgba(12,16,26,0.94)),
    linear-gradient(115deg, var(--team-a, #4f8cff) 0%, transparent 45%, transparent 55%, var(--team-b, #7b5cff) 100%);
  overflow: hidden;
  padding: 26px 28px 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  animation: rise 0.45s ease both;
}
.feat-badge {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 800; letter-spacing: 2.5px; color: var(--text-faint);
}
.feat-live { color: var(--green); animation: pulse 1.6s infinite; }
.feat-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 14px 0 10px; }
.feat-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.feat-logo { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.55)); }
.feat-name { font-size: 17px; font-weight: 700; }
.feat-record { font-size: 12px; color: var(--text-dim); }
.feat-score { font-family: var(--mono); font-size: 44px; font-weight: 700; line-height: 1.1; }
.feat-center { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 170px; }
.feat-status { font-size: 13px; font-weight: 700; color: var(--text); }
.feat-vs { font-size: 22px; color: var(--text-faint); font-weight: 800; }
.feat-line {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  color: var(--gold);
  background: rgba(255,201,77,0.1);
  border: 1px solid rgba(255,201,77,0.3);
  padding: 5px 12px; border-radius: 999px;
}
.feat-venue { font-size: 11.5px; color: var(--text-faint); text-align: center; }
.feat-play {
  font-size: 13px; color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding: 12px 4px;
}

.last-play { padding: 0 20px 14px; font-size: 12.5px; color: var(--text-dim); }
.line-src { color: var(--text-faint); letter-spacing: 0.4px; }

.key-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(255, 201, 77, 0.1), rgba(255, 201, 77, 0.04));
  border: 1px solid rgba(255, 201, 77, 0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #e9d9ae;
}
.key-banner a { color: var(--gold); }
.key-banner code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 6px;
  border-radius: 5px;
}
.hidden { display: none !important; }

/* ============ game cards ============ */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); gap: 16px; }
.games .empty-state, .games .loading { grid-column: 1 / -1; }

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.4s ease both;
}
.game-card::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--team-a, transparent), var(--team-b, transparent));
  opacity: 0.85;
}
.game-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
/* spotlight = top game (best live / next up): accent ring, same size as the rest */
.game-card.spotlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 28px rgba(79, 140, 255, 0.18);
}
.game-card.spotlight::before { width: 4px; opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}
.game-status { display: flex; align-items: center; gap: 8px; font-weight: 600; }
/* SV-137: the date/time never breaks; a long venue drops to its own line instead of squeezing beside it */
.game-head { flex-wrap: wrap; gap: 2px 10px; }
.game-status { white-space: nowrap; }
.game-status.live { color: var(--green); }
.game-status.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 7px var(--green);
  animation: pulse 1.6s infinite;
}
.game-status.final { color: var(--text-faint); }
.game-meta { color: var(--text-faint); }

.matchup { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 16px 20px; }

.team-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.team-logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.team-logo.placeholder {
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  font-size: 13px; font-weight: 700; color: var(--text-dim);
}
.team-name { font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.team-rank { font-size: 10.5px; color: var(--gold); font-weight: 700; }
.team-record { font-size: 12px; color: var(--text-faint); }
.team-row.winner .team-name { color: var(--text); font-weight: 800; }
.team-row.loser .team-name, .team-row.loser .team-score { color: var(--text-faint); }

.scores-col { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-left: 18px; }
.team-score {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  text-align: right;
  min-width: 44px;
  font-variant-numeric: tabular-nums;
}

/* ============ odds strip ============ */
.odds-strip { border-top: 1px solid var(--border); padding: 14px 20px 16px; }
.odds-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-faint);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.odds-grid { display: flex; gap: 10px; flex-wrap: wrap; }

.odds-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 14px;
  min-width: 108px;
  transition: all 0.15s ease;
}
.odds-pill:hover { background: rgba(255, 255, 255, 0.06); }
.odds-pill.best {
  background: var(--green-bg);
  border-color: rgba(47, 212, 126, 0.45);
  box-shadow: 0 0 14px rgba(47, 212, 126, 0.12);
}
.odds-pill .pill-label { font-size: 10.5px; color: var(--text-faint); font-weight: 600; }
.odds-pill .pill-value { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.odds-pill.best .pill-value { color: var(--green); }
.odds-pill .pill-book { font-size: 10px; color: var(--text-dim); }
.best-tag {
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  color: var(--green);
}

.movement { font-family: var(--mono); font-size: 11px; }
.movement.up { color: var(--green); }
.movement.down { color: var(--red); }

/* ============ view nav ============ */
.view-nav {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 18px 24px 0;
  max-width: 1180px; margin: 0 auto;
}
.view-btn {
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 9px 22px; border-radius: 12px;
  cursor: pointer; transition: all 0.18s ease;
  white-space: nowrap;
}
.view-btn:hover { color: var(--text); border-color: var(--border-bright); }
.view-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7b5cff);
  border-color: transparent;
  box-shadow: 0 4px 18px var(--accent-glow);
}

/* ============ standings ============ */
.group-title { font-size: 16px; font-weight: 700; margin: 26px 0 12px; color: var(--text); }
.group-title:first-child { margin-top: 0; }
.standings-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}
.standings-table th {
  text-align: center; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-faint); padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
.standings-table td { text-align: center; padding: 9px 8px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover td { background: rgba(255,255,255,0.025); }
.st-team { text-align: left !important; padding-left: 16px !important; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.st-logo { width: 22px; height: 22px; object-fit: contain; }

/* ============ news ============ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.news-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.news-card:hover { transform: translateY(-2px); border-color: var(--border-bright); }
.news-img { width: 100%; height: 160px; object-fit: cover; }
.news-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.news-headline { font-size: 15px; font-weight: 700; line-height: 1.35; }
.news-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.news-date { font-size: 11px; color: var(--text-faint); }

/* ============ modal ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 8, 14, 0.75);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 24px;
}
.modal {
  position: relative;
  width: 100%; max-width: 640px; max-height: 84vh;
  overflow-y: auto;
  background: #111726;
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: rise 0.25s ease both;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-card-hover, #1c2436);
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  color: var(--text); cursor: pointer; font-size: 16px; font-weight: 700;
  z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.modal-close:hover { color: #fff; background: var(--accent); border-color: transparent; }
/* keep header content clear of the close button */
.tn-pc-hd, .tn-mh { padding-right: 44px; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.modal-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-faint); margin: 20px 0 10px; }
.modal-empty { color: var(--text-dim); font-size: 14px; padding: 12px 0; }

.linescore { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.linescore th { color: var(--text-faint); font-weight: 500; padding: 5px 7px; text-align: center; font-size: 11px; }
.linescore td { padding: 5px 7px; text-align: center; border-top: 1px solid var(--border); }
.ls-team { font-weight: 700; text-align: left !important; }
.ls-total { font-weight: 700; color: var(--accent); }

.leaders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.leader { display: flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.leader-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-faint); }
.leader-name { font-size: 13px; font-weight: 600; }
.leader-val { font-family: var(--mono); font-size: 12px; color: var(--accent); }

.stat-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stat-table th { color: var(--text-faint); padding: 6px; font-size: 11px; }
.stat-table td { padding: 6px; border-top: 1px solid var(--border); }
.stat-table .num { font-family: var(--mono); text-align: center; width: 90px; }
.stat-label-cell { text-align: center; color: var(--text-dim); font-size: 12px; }

.inj-team { font-weight: 700; font-size: 13.5px; margin: 12px 0 6px; }
.inj-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.inj-pos { color: var(--text-faint); font-size: 11px; }
.inj-status { color: var(--red); font-weight: 600; }

/* ============ predictions ============ */
.pred-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.date-btn {
  width: 36px; height: 36px;
  background: var(--bg-card); border: 1px solid var(--border-bright);
  border-radius: 10px; color: var(--text); cursor: pointer; font-size: 12px;
}
.date-btn:hover { background: var(--bg-card-hover); }
.date-input {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--text); background: var(--bg-card);
  border: 1px solid var(--border-bright); border-radius: 10px;
  padding: 8px 12px; color-scheme: dark;
}
.pred-day { font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.pred-key { color: var(--text-faint); }
.key-green { color: var(--green); font-weight: 700; }
.key-red { color: var(--red); font-weight: 700; }

.pred-record {
  font-size: 13.5px; color: var(--text-dim); margin-bottom: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 16px; display: inline-block;
}
.pred-record strong { font-family: var(--mono); color: var(--text); }

.pred-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; font-size: 13.5px;
}
.pred-table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-faint); padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.pred-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pred-table tr:last-child td { border-bottom: none; }
.pred-table tr.pred-hit td { background: rgba(47, 212, 126, 0.07); }
.pred-table tr.pred-miss td { background: rgba(255, 93, 108, 0.07); }
.pred-time { font-family: var(--mono); font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.pred-matchup { font-weight: 600; line-height: 1.5; }
.pred-at { display: block; font-size: 11px; color: var(--text-faint); font-weight: 400; }
.pred-pick { font-weight: 700; }
.pred-score { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.won-green { color: var(--green); font-weight: 700; }
.won-red { color: var(--red); font-weight: 700; }
.pred-na { color: var(--text-faint); }
.pred-live { color: var(--green); font-size: 12.5px; font-family: var(--mono); }
.pred-sp { font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.pred-engine { font-size: 11px; color: var(--text-faint); margin-top: 12px; line-height: 1.6; }

/* ============ splits ============ */
.spl-legend {
  font-size: 12.5px; color: var(--text-dim); line-height: 1.7;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 14px;
}
.spl-sharp-tag { color: var(--gold); }
.spl-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  font-size: 12.5px;
}
.spl-table th {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-faint); padding: 8px 6px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.spl-table td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.spl-team { text-align: left !important; font-weight: 600; padding-left: 14px !important; white-space: nowrap; font-size: 13.5px; line-height: 1.35; }
.spl-team .spl-ln { display: flex; align-items: center; gap: 6px; }
.spl-team .spl-ln + .spl-ln { margin-top: 2px; }
.spl-team .spl-vs { color: var(--text-faint); font-weight: 500; font-size: 11px; width: 10px; text-align: center; }
.spl-team .spl-logo { width: 18px; height: 18px; object-fit: contain; flex: none; }
.spl-team .spl-abbr { display: none; }
.spl-kick { font-size: 11px; color: var(--text-dim); white-space: nowrap; padding-left: 12px !important; line-height: 1.35; }
.spl-mobile-note { display: none; font-size: 11px; color: var(--text-dim); margin: 0 0 8px 2px; }
.spl-kick strong { color: var(--text); font-weight: 600; display: block; }
.spl-away td { border-bottom: none; }
.spl-home td { border-bottom: 1px solid var(--border-bright); }
.spl-line { font-family: var(--mono); color: var(--text-dim); font-size: 11.5px; }
.spl-pct { font-family: var(--mono); font-weight: 700; }
.spl-dim { color: var(--text-dim); font-weight: 500; }
/* NCAAB conference tournament brackets — computed-position single-elim bracket */
.cb-block { margin-bottom: 30px; }
.cb-title { font-weight: 800; font-size: 16px; margin: 16px 0 8px; }
.cb-champ { color: #d4a017; font-size: 13px; font-weight: 700; margin-left: 8px; }
.cb-note { font-size: 12.5px; color: var(--text-dim); margin: 0 0 10px; max-width: 760px; line-height: 1.4; }
.cb-wrap { overflow-x: auto; padding-bottom: 12px; }
.cb-headers { position: relative; height: 22px; margin-bottom: 6px; }
.cb-colhdr { position: absolute; top: 0; text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); }
.cb-canvas { position: relative; }
.cb-lines { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; }
.cb-game { position: absolute; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.cb-game .bkt2-team { width: 100%; padding: 5px 8px; font-size: 12.5px; gap: 5px; }
.cb-game .bkt2-abbr { flex: 1; }
.cb-game .bkt2-logo { width: 16px; height: 16px; }
.cb-clic { cursor: pointer; }
.cb-clic:hover .bkt2-team { border-color: var(--border-bright); }
.conf-picker { margin-top: 10px; font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.conf-picker .sim-select { max-width: 320px; }
.ncaab-champ { color: #d4a017; font-weight: 800; }
.ncaab-runner { color: var(--text); font-weight: 700; }
.ncaab-made { color: var(--text-dim); font-weight: 600; }
.spl-sharp { color: var(--gold); text-shadow: 0 0 12px rgba(255,201,77,0.3); }
.spl-na { color: var(--text-faint); }
.spl-date { font-size: 11px; color: var(--text-dim); white-space: nowrap; padding-left: 12px !important; }
.mv-up { color: var(--green); font-family: var(--mono); font-size: 10.5px; }
.mv-down { color: var(--red); font-family: var(--mono); font-size: 10.5px; }
.mv-flat { color: var(--text-faint); font-size: 10.5px; }
.mv-table td { font-variant-numeric: tabular-nums; }
.mv-date { color: var(--text-faint); font-size: 11px; font-weight: 600; margin-right: 4px; }

/* ============ my bets ============ */
.bet-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.bet-form .sim-select { flex: 2; min-width: 220px; }
.bet-form .bet-narrow { flex: 1; min-width: 110px; }
input.sim-select::placeholder { color: var(--text-faint); }
.bet-del { border: none; background: transparent; font-size: 13px; }

/* ============ guide ============ */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-bottom: 10px; }
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.guide-term { font-weight: 800; font-size: 14px; margin-bottom: 6px; color: var(--accent); }
.guide-def { font-size: 13px; color: var(--text-dim); line-height: 1.65; }

/* ============ signals ============ */
.sig-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  animation: rise 0.3s ease both;
}
.sig-quiet { border-color: rgba(255, 201, 77, 0.35); box-shadow: 0 0 18px rgba(255, 201, 77, 0.07); }
.sig-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.sig-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-bright);
}
.sig-steam { color: var(--gold); }
.sig-rlm { color: var(--accent); }
.sig-handle { color: var(--green); }
.sig-line { color: var(--text-dim); }
.sig-exp { font-size: 11.5px; color: var(--text-dim); }
.sig-time { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.sig-matchup { font-weight: 700; font-size: 14.5px; }
.sig-detail { font-family: var(--mono); font-size: 12.5px; color: var(--text); margin: 6px 0; }
.sig-read { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.sig-news { display: block; margin-top: 8px; font-size: 12.5px; color: var(--accent); text-decoration: none; }
.sig-why {
  margin-top: 6px; padding: 8px 12px;
  background: rgba(79, 140, 255, 0.06);
  border-left: 2px solid rgba(79, 140, 255, 0.5);
  border-radius: 0 8px 8px 0;
}
.sig-news:hover { text-decoration: underline; }

/* ============ simulator ============ */
.sim-setup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.sim-setup h2 { font-size: 20px; font-weight: 800; }
.sim-note { font-size: 13px; color: var(--text-dim); margin: 8px 0 18px; line-height: 1.6; }
.sim-pickers { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sim-select {
  flex: 1; min-width: 200px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text);
  background: #0d1320;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
}
.sim-at { color: var(--text-faint); font-weight: 800; font-size: 16px; }
.sim-run {
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7b5cff);
  border: none; border-radius: 12px;
  padding: 12px 24px; cursor: pointer;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: transform 0.15s ease;
}
.sim-run:hover { transform: translateY(-1px); }

.sim-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 26px;
  animation: rise 0.35s ease both;
}
.sim-headline { font-size: 18px; margin-bottom: 18px; color: var(--text-dim); }
.sim-winner { font-weight: 800; color: #fff; font-size: 20px; }
.sim-bar-row { display: grid; grid-template-columns: 110px 1fr 60px; gap: 12px; align-items: center; margin-bottom: 10px; }
.sim-bar-label { font-size: 13px; font-weight: 600; }
.sim-bar { height: 22px; background: rgba(255,255,255,0.05); border-radius: 999px; overflow: hidden; }
.sim-bar-fill { height: 100%; border-radius: 999px; transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sim-bar-pct { font-family: var(--mono); font-size: 13px; font-weight: 700; text-align: right; }
.sim-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 20px 0; }
.sim-stat { display: flex; flex-direction: column; gap: 3px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.sim-stat-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }
.sim-stat-val { font-family: var(--mono); font-size: 14px; font-weight: 700; }
.sim-inputs { font-size: 11.5px; color: var(--text-faint); line-height: 1.6; border-top: 1px solid var(--border); padding-top: 14px; }
.sim-disclaimer { font-size: 11.5px; color: #c9a96a; margin-top: 10px; line-height: 1.6; }

.view-panel { animation: rise 0.3s ease both; }

/* ============ box score sim ============ */
.sim-run-alt { background: linear-gradient(135deg, #2fd47e, #1ea866); box-shadow: 0 4px 18px rgba(47,212,126,0.25); }
.box-final {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font-family: var(--mono); font-size: 34px; font-weight: 700;
  margin-bottom: 10px;
}
.box-winner { color: var(--green); text-shadow: 0 0 18px rgba(47,212,126,0.35); }
.box-dash { font-size: 12px; color: var(--text-faint); letter-spacing: 2px; }
.box-hint { font-size: 12px; color: var(--text-dim); text-align: center; margin-bottom: 18px; line-height: 1.6; }
.bx-clear {
  font-family: inherit; font-size: 11px; color: var(--red);
  background: transparent; border: 1px solid rgba(255,93,108,0.4);
  border-radius: 8px; padding: 2px 10px; cursor: pointer;
}
.box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .box-grid { grid-template-columns: 1fr; } }
.box-team-name { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.box-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 14px; }
.box-table th {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-faint); padding: 6px 5px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.box-table td { padding: 6px 5px; text-align: center; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.bx-name { text-align: left !important; font-weight: 600; white-space: nowrap; }
.bx-pos { color: var(--text-faint); font-size: 10px; font-weight: 400; }
.bx-dk { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.bx-row { cursor: pointer; transition: background 0.12s ease; }
.bx-row:hover td { background: rgba(255,93,108,0.08); }
.box-pitch { margin-top: -6px; }

/* ============ states ============ */
.loading, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--text-dim);
}
.spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state .empty-icon { font-size: 42px; }
.empty-state h3 { color: var(--text); font-size: 18px; }
.empty-state p { font-size: 14px; max-width: 420px; text-align: center; line-height: 1.6; }
.empty-state a { color: var(--accent); }

.footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 24px;
  font-size: 11.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

/* ============ responsive ============ */
@media (max-width: 760px) {
  /* mobile header: brand (left) + toggle (right) across the very top,
     sport tabs stacked on their own row underneath */
  .topbar { flex-wrap: wrap; padding: 10px 14px; gap: 8px; align-items: center; }
  .brand { margin-right: auto; }
  .theme-toggle { order: 2; }
  .topbar-right { display: none; }
  .league-tabs { order: 3; flex: 0 0 100%; justify-content: center; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
  .tab { white-space: nowrap; padding: 7px 13px; font-size: 12.5px; }
  .brand-sub { display: none; }

  .container { padding: 20px 12px 40px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13px; }

  /* view nav: wrapped grid — every tab visible, nothing hidden off-screen */
  .view-nav { padding: 12px 10px 0; justify-content: center; flex-wrap: wrap; gap: 6px; }
  .view-btn { white-space: nowrap; padding: 7px 12px; font-size: 11.5px; border-radius: 10px; }

  /* stats strip: compact 4-up */
  .stats-row { gap: 8px; margin-top: 12px; }
  .stat { min-width: 0; flex: 1; padding: 8px 10px; }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 9px; }

  /* game cards */
  .games { grid-template-columns: 1fr; gap: 12px; }
  .team-score { font-size: 20px; min-width: 34px; }
  .team-logo { width: 28px; height: 28px; }
  .team-name { font-size: 14px; }
  .game-head { padding: 10px 14px; }
  .matchup { padding: 12px 14px; }
  .odds-strip { padding: 10px 14px 12px; }
  .odds-pill { min-width: 92px; padding: 7px 10px; }

  /* featured */
  .feat-grid { grid-template-columns: 1fr auto; gap: 10px; }
  .feat-center { grid-column: 1 / -1; order: 3; min-width: 0; }
  .featured-card { padding: 20px 16px 4px; }
  .feat-logo { width: 48px; height: 48px; }
  .feat-name { font-size: 14px; }
  .feat-score { font-size: 30px; }
  .feat-team { flex-direction: row; gap: 10px; text-align: left; align-items: center; }

  /* wide tables become horizontal scrollers — splits, predictions, standings, box scores */
  .spl-table, .pred-table, .standings-table, .stat-table, .linescore, .mv-table {
    display: block; overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .spl-table td, .spl-table th { padding: 8px 3px; font-size: 11px; }
  .spl-table th { font-size: 9px; letter-spacing: .5px; }
  .spl-table td:last-child, .spl-table th:last-child { padding-right: 6px; }
  .spl-table .spl-line { font-size: 10.5px; }
  .spl-kick { font-size: 10px; padding-left: 6px !important; }
  /* phone (2026-10-04, owner): Tickets stays — it's half the read. Only Open hides; Kick/Line/Move/Tickets/Money fit at 390px with tighter cells. */
  .spl-table th:nth-child(3), .spl-table td:nth-child(3) { display: none; }
  .spl-table td, .spl-table th { padding: 8px 1px; }
  .spl-table th { font-size: 8px; letter-spacing: .2px; }
  .spl-table .spl-pct { font-size: 9.5px; letter-spacing: -0.5px; white-space: nowrap; }
  .spl-table .spl-pct .spl-bag { font-size: 8px; }
  .spl-kick { font-size: 9px; padding-left: 2px !important; line-height: 1.15; }
  .spl-kick strong { font-size: 9.5px; }
  .spl-kick .spl-ct { display: none; }
  .spl-team .spl-noabbr { font-size: 11px; line-height: 1.15; }
  .spl-table .spl-line { font-size: 10px; letter-spacing: -0.3px; }
  .spl-team { font-size: 12px; padding-left: 2px !important; max-width: 112px; }
  .spl-team .spl-logo { width: 14px; height: 14px; }
  .spl-table td:last-child .spl-bag, .spl-table .spl-pct .spl-bag { font-size: 8px; margin: 0; }
  .spl-table td:last-child, .spl-table th:last-child { padding-right: 3px; }
  /* stat tiles: a five-figure P/L ("+$22,503") ran off the card — let the number shrink and the tile share the row */
  .stats-row .stat { min-width: 0; overflow: hidden; flex: 1 1 calc(50% - 4px); }  /* two tiles per row on a phone */
  .stats-row .stat-num { font-size: clamp(16px, 5vw, 21px); letter-spacing: -0.5px; white-space: nowrap; }
  .stats-row .stat-label { font-size: 9px; letter-spacing: .4px; white-space: normal; }
  .spl-mobile-note { display: block; }
  .spl-kick strong { font-size: 10.5px; }
  .spl-table .spl-pct { font-size: 10.5px; letter-spacing: -0.3px; }
  .spl-team { min-width: 0; }
  .spl-team .spl-sharptag { font-size: .68em; }
  .spl-team .spl-vs { width: 8px; }
  .spl-kick { padding-left: 4px !important; }
  .spl-team .spl-logo { width: 16px; height: 16px; }
  .spl-team { padding-left: 4px !important; font-size: 12.5px; white-space: normal; min-width: 0; }
  .spl-team .spl-full { display: none; }
  .spl-team .spl-abbr { display: inline; }
  .spl-team .spl-abbr.spl-noabbr { white-space: normal; }
  .pred-table td { padding: 10px 10px; }
  .pred-matchup { white-space: normal; min-width: 140px; }
  .standings-table td, .standings-table th { padding: 8px 6px; font-size: 12px; }
  .st-team { max-width: 160px; overflow: hidden; }

  /* simulator */
  .sim-pickers { flex-direction: column; align-items: stretch; }
  .sim-select { min-width: 0; width: 100%; }
  .sim-run { width: 100%; padding: 13px; }
  .sim-at { display: none; }
  .sim-setup { padding: 16px; }
  .sim-card { padding: 16px; }
  .sim-bar-row { grid-template-columns: 80px 1fr 48px; gap: 8px; }
  .box-final { font-size: 26px; gap: 14px; }
  .box-grid { grid-template-columns: 1fr; }
  .box-table { font-size: 11px; }

  /* signals + guide + news */
  .sig-card { padding: 12px 14px; }
  .sig-time { width: 100%; margin-left: 0; order: 4; }
  .guide-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }

  /* modal: full-screen sheet */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 20px 16px; }

  /* predictions date controls */
  .pred-controls { flex-wrap: wrap; }
  .pred-day { width: 100%; font-size: 12px; }
}

/* very small phones */
@media (max-width: 390px) {
  .hero h1 { font-size: 19px; }
  .odds-pill { min-width: 84px; }
  .feat-score { font-size: 26px; }
}

/* daily report */
.report-wrap { max-width: 720px; }
.report-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.report-line { font-size: 14px; line-height: 1.75; color: var(--text-dim); margin: 6px 0; }
.report-line strong { color: var(--text); }

/* calculator grid: header + play rows share one column definition */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(150px, 3fr) 1fr 1fr 1fr 34px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.calc-grid .sim-select { width: 100%; min-width: 0; }
.calc-grid .calc-label { text-align: center; }
.calc-grid .calc-label:first-child { text-align: left; }
@media (max-width: 760px) {
  .calc-grid { grid-template-columns: 1fr 1fr 34px; }
  .calc-grid .calc-desc { grid-column: 1 / -1; }
}

/* World Cup standings: highlight the top-2 (advancing) rows */
.wc-advance td { background: rgba(47, 212, 126, 0.08); }
.wc-advance td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.wc-advance-key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: rgba(47,212,126,0.25); box-shadow: inset 2px 0 0 var(--green); vertical-align: middle; margin-right: 4px; }
.wc-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-bottom: 8px; }
.wc-group-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.wc-group-table { margin: 0; }
.wc-group-table th, .wc-group-table td { text-align: center; padding: 7px 8px; font-size: 12px; }
.wc-group-table th.st-team, .wc-group-table td.st-team { text-align: left; }
.golf-vol { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; opacity: 0.85; }
/* DEMO MODE: hide data-source attributions (footer + engine/methodology notes). Remove this block to restore. */
.footer, .pred-engine { display: none !important; }
/* golf — explainers & narrative */
.golf-howto { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.55; margin-bottom: 16px; }
/* World Cup What-If editor */
.wc-wi { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.wc-wi-head { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.wc-wi-head .pgbtn { margin-left: 8px; }
.wc-wi-note { font-size: 11.5px; line-height: 1.45; margin-bottom: 12px; }
.wc-wi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.wc-wi-grp { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.wc-wi-grp-h { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.wc-wi-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.wc-wi-team { font-size: 12px; font-weight: 600; width: 42px; }
.wc-wi-row .wc-wi-team:last-child { text-align: right; }
.wc-wi-in { width: 38px; padding: 3px 4px; text-align: center; font-size: 13px; background: var(--bg); color: var(--text); border: 1px solid var(--border-bright); border-radius: 5px; -moz-appearance: textfield; }
.wc-wi-in::-webkit-outer-spin-button, .wc-wi-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wc-wi-x { color: var(--text-faint); font-size: 12px; }
/* Tennis serve/return projection */
.tn-blend-note { font-size: 11px; text-align: center; margin: 4px 0 2px; }
.tn-serve-bar { margin-top: 4px; }
.tn-serve-bar .tn-pb-a { background: linear-gradient(90deg, #1f8a4c, #2ecc71); }
.tn-serve-bar .tn-pb-b { background: linear-gradient(90deg, #7a3ea8, #9b59b6); }
.tn-serve-foot { font-size: 12px; line-height: 1.5; margin-top: 8px; padding: 8px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px; }
.tn-serve-tag { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: #2ecc71; background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.3); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
/* tennis day stepper */
.tn-daybar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tn-daybtn { font-size: 12px; font-weight: 600; padding: 5px 12px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border-bright); border-radius: 7px; cursor: pointer; }
.tn-daybtn:hover { background: var(--bg-card-hover); }
.tn-daytoday { border-color: var(--accent); color: var(--accent); }
.tn-daylbl { font-size: 13px; font-weight: 700; min-width: 130px; text-align: center; }
/* serve surface toggle */
.tn-srf-toggle { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.tn-srf-btn { font-size: 12px; font-weight: 600; padding: 4px 12px; background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border-bright); border-radius: 999px; cursor: pointer; }
.tn-srf-btn:hover { background: var(--bg-card-hover); color: var(--text); }
.tn-srf-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tn-srf-meta { font-size: 11px; line-height: 1.45; margin-bottom: 8px; }
/* shot-quality court visuals */
.tn-court { width: 100%; max-width: 360px; height: auto; display: block; margin: 6px auto 2px; background: rgba(40,90,70,0.18); border: 1px solid var(--border-bright); border-radius: 6px; }
.tn-svg-pct { fill: var(--text); font-size: 13px; font-weight: 700; }
.tn-svg-lbl { fill: var(--text-dim); font-size: 9px; font-weight: 600; }
.tn-svg-cap { fill: var(--text-faint); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.tn-svg-note { font-size: 11px; line-height: 1.45; margin: 2px 0 6px; text-align: center; }
/* soccer/WC match-stat comparison bars (ESPN-style) */
.gsb-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; margin: 6px 0 12px; }
.gsb-logo { height: 16px; vertical-align: -3px; }
.gsb-row { margin-bottom: 12px; }
.gsb-vals { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 4px; }
.gsb-lbl { color: var(--text-dim); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.gsb-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg-card); gap: 2px; }
.gsb-f1 { background: var(--accent); border-radius: 4px 0 0 4px; }
.gsb-f2 { background: #e07b39; border-radius: 0 4px 4px 0; }
.gsb-empty { opacity: .5; }
.golf-record { background: rgba(47,212,126,0.10); border: 1px solid rgba(47,212,126,0.3); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.golf-thesis p { font-size: 14px; line-height: 1.6; margin: 6px 0 10px; }
.golf-fav { font-size: 14px; font-weight: 600; margin: 6px 0 4px; }
.golf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.golf-chip { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 12px; }
/* golf — cards */
.golf-cards, .golf-picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.golf-card, .golf-pick { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--card); }
.golf-card.golf-good, .golf-pick.golf-good { border-left: 3px solid var(--green); }
.golf-card.golf-bad, .golf-pick.golf-bad { border-left: 3px solid var(--red, #e5484d); }
.golf-card-head, .golf-pick-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.golf-card-name { font-weight: 700; font-size: 14.5px; }
.golf-player-link, .tennis-player-link { cursor: pointer; font-weight: 600; }
.golf-player-link:hover, .tennis-player-link:hover { color: var(--accent); }
/* tennis */
.tennis-modebar { display: flex; align-items: center; gap: 8px; max-width: 1200px; margin: 0 auto; padding: 10px 20px 0; }
.tn-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tn-table th { text-align: left; color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tn-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.tn-table tr:hover td { background: rgba(127,127,127,.06); }
.tn-win { font-weight: 800; }
.tn-scores { margin-left: 6px; }
.tn-set { display: inline-block; min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.tn-live { color: #ff4d4d; font-weight: 800; font-size: 11px; }
.tn-flag { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.tn-tname { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tn-slate { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); background: rgba(127,127,127,.12); padding: 3px 9px; border-radius: 999px; }
.tn-mp { width: 42%; }
.tn-st { white-space: nowrap; color: var(--text-dim); }
/* ---- tennis scoreboard: premium intelligence cards ---- */
.tn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.tn-chip { padding: 7px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); color: var(--text-dim); font-weight: 700; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.tn-chip:hover { color: var(--text); border-color: var(--border-bright); }
.tn-chip.on { background: linear-gradient(135deg, var(--accent), #7b5cff); color: #fff; border-color: transparent; box-shadow: 0 2px 14px var(--accent-glow); }
.tn-event { margin-bottom: 26px; }
.tn-event-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.tn-event-name { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.tn-event-meta { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.tn-surf { text-transform: capitalize; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tn-verified { font-size: 11px; font-weight: 800; color: #1f9d55; background: #e7f7ef; border: 1px solid #b6e6cd; padding: 2px 8px; border-radius: 999px; white-space: nowrap; cursor: help; }
.tn-bye .tn-bp-n { font-style: italic; opacity: .6; }

/* NBA Draft view (Board / Props Odds / Signals) */
.nd-best { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 10px 0; font-size: 13px; line-height: 1.7; }
.nd-rh { margin: 18px 0 8px; font-size: 15px; }
.nd-board { display: flex; flex-direction: column; gap: 4px; }
.nd-row { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; }
.nd-num { font-weight: 800; min-width: 26px; text-align: center; color: var(--text-dim); }
.nd-logo { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.nd-team { flex: 1; font-weight: 700; font-size: 13px; }
.nd-trade { font-size: 11px; color: var(--accent); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
a.nd-trade:hover { text-decoration: underline; }
.nd-pl { font-weight: 700; font-size: 13px; }
.nd-clock { font-size: 11px; font-weight: 800; color: #1f9d55; background: #e7f7ef; padding: 2px 8px; border-radius: 999px; }
.nd-live { color: #ff5d5d; font-weight: 800; }
.ndo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 12px; }
.ndo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.ndo-mk { font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.ndo-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13px; }
.ndo-odds { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-dim); }
.ndo-odds.fav { color: #1f9d55; }
.nds-list { display: flex; flex-direction: column; gap: 10px; }
.nds-row { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.nds-top { font-size: 14px; }
.nds-move { font-variant-numeric: tabular-nums; font-size: 13px; margin: 4px 0; font-weight: 600; }
.nds-move.up { color: #1f9d55; } .nds-move.down { color: #ff5d5d; }
.nds-exp { font-size: 12px; padding: 6px 8px; border-radius: 6px; margin-top: 4px; }
.nds-exp.has { background: #e7f7ef; color: #0f5132; } .nds-exp.no { background: var(--bg); color: var(--text-dim); }
.nds-exp a { color: inherit; }
.nds-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nds-time { margin-left: auto; font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nds-badge { font-size: 10px; font-weight: 800; letter-spacing: .4px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.nds-steam { background: #fde9d9; color: #9a4a16; } .nds-move { } .nds-badge.nds-move { background: #e6edfb; color: #1e3a8a; } .nds-pulled { background: #f3e1f7; color: #6b21a8; }
.nds-pull { color: #6b21a8; font-weight: 600; }
.nds-why { margin-top: 6px; border-top: 1px dashed var(--border); padding-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.nds-eli5 { font-size: 12.5px; color: var(--text); line-height: 1.45; }
.nds-detail { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.nds-eli5 b, .nds-detail b { color: var(--text); }
.nd-livetag { font-size: 11px; font-weight: 800; color: #c81e1e; background: #fde8e8; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ndn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.ndn-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.ndn-hd { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.ndn-lbl { font-size: 10px; font-weight: 800; letter-spacing: .5px; color: var(--text-dim); display: block; margin-bottom: 3px; }
.ndn-needs { font-size: 13px; margin-bottom: 8px; }
.ndn-pk { display: flex; gap: 8px; font-size: 12.5px; padding: 2px 0; }
.ndn-pknum { font-weight: 800; min-width: 34px; }
.bd-list { display: flex; flex-direction: column; gap: 12px; }
.bd-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.bd-hd { font-size: 14px; margin-bottom: 8px; }
.bd-changes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bd-ch { font-size: 11.5px; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.bd-ch.up { background: #e7f7ef; color: #0f5132; } .bd-ch.down { background: #fdeaea; color: #9a1c1c; }
.bd-ch.pull { background: #f3e1f7; color: #6b21a8; } .bd-ch.line { background: #e6edfb; color: #1e3a8a; }
.bd-concl { border-top: 1px dashed var(--border); padding-top: 8px; }
.bd-read { font-size: 12.5px; line-height: 1.5; margin: 2px 0; }
.bd-read.bd-big { font-weight: 700; color: var(--text); }
.bd-read.bd-pull { color: #6b21a8; } .bd-read.bd-swap { color: var(--text); }
.bd-head { font-size: 12px; margin-top: 7px; }
.bd-head.has { color: #0f5132; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: center; margin: 18px 0 6px; }
.pgbtn { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; }
.pgbtn:hover:not(:disabled) { border-color: var(--accent); }
.pgbtn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pgbtn:disabled { opacity: .4; cursor: default; }
.pgdots { color: var(--text-dim); padding: 0 2px; }
.pgcount { font-size: 11px; color: var(--text-dim); margin-left: 8px; }
.pr-list { display: flex; flex-direction: column; gap: 8px; }
.pr-row { display: flex; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px; padding: 10px 14px; }
.pr-row.pr-hit { border-left-color: #1f9d55; } .pr-row.pr-miss { border-left-color: #ff5d5d; } .pr-row.pr-pend { border-left-color: var(--border); }
.pr-pk { font-weight: 800; min-width: 64px; font-size: 13px; }
.pr-body { flex: 1; }
.pr-top { font-size: 14px; margin-bottom: 3px; }
.pr-why { font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.pr-missline { font-size: 12.5px; color: #b3401a; margin-top: 5px; }
.pr-insider { font-size: 12.5px; margin-top: 5px; background: #fff4e0; color: #8a5400; border: 1px solid #f0d28a; border-radius: 6px; padding: 5px 8px; }
.pr-insider b { color: #6b3e00; }
.pr-tag { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.pr-tag.ok { background: #e7f7ef; color: #0f5132; } .pr-tag.no { background: #fdeaea; color: #9a1c1c; }
.pr-conf { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 2px 6px; border-radius: 999px; background: var(--bg); color: var(--text-dim); }
.pr-conf.chigh { background: #e7f7ef; color: #0f5132; } .pr-conf.cmedium { background: #e6edfb; color: #1e3a8a; }
.tn-surf-grass { background: rgba(64,174,90,.16); color: #4fae5a; }
.tn-surf-clay { background: rgba(214,122,64,.16); color: #e08a4f; }
.tn-surf-hard { background: rgba(79,140,255,.16); color: #6ba6ff; }
.tn-cards2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.tn-card2 { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; transition: border-color .15s, transform .12s; cursor: pointer; }
.tn-card2:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.tn-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-faint, #8a93a6); margin-bottom: 10px; }
.tn-round2 { font-weight: 700; }
.tn-status { font-weight: 700; }
.tn-prow { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.tn-prow.win .tn-pname { font-weight: 800; }
.tn-prow.serving .tn-pname::after { content: ' 🎾'; }
.tn-pname { font-size: 14.5px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-seed { color: var(--text-faint, #8a93a6); font-weight: 700; font-size: 12px; margin-right: 6px; }
.tn-pright { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tn-odds { font-size: 12.5px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.tn-prob { font-size: 15px; font-weight: 800; color: var(--text-dim); min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.tn-prob.fav { color: var(--accent); }
.tn-dots { display: inline-flex; gap: 3px; }
.tn-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tn-dot.w { background: #2bd07c; } .tn-dot.l { background: rgba(255,255,255,.18); }
.tn-pbar { display: flex; height: 5px; border-radius: 4px; overflow: hidden; margin: 7px 0; background: rgba(255,255,255,.06); }
.tn-pbar-a { background: linear-gradient(90deg, var(--accent), #6ba6ff); }
.tn-pbar-b { background: rgba(255,255,255,.12); }
.tn-pbar-na { background: rgba(255,255,255,.05); }
.tn-angle { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.tn-angle-tag { font-size: 10px; font-weight: 800; letter-spacing: .5px; color: #ff8a4c; background: rgba(255,138,76,.13); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.tn-angle-txt { line-height: 1.35; }
.tn-setbox { display: inline-flex; gap: 6px; font-variant-numeric: tabular-nums; margin-left: auto; }
.tn-setbox b { min-width: 15px; text-align: center; font-weight: 700; font-size: 15px; color: var(--text-dim); }
.tn-setbox b.w { color: var(--text); }
.tn-setbox b.cur { color: var(--accent); position: relative; }
/* scoreboard intro / legend / read — the "voice" */
.tn-intro { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin-bottom: 20px; }
.tn-intro-h { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.tn-intro-p { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin: 6px 0 16px; max-width: 720px; }
.tn-legend2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; }
@media (max-width: 620px) { .tn-legend2 { grid-template-columns: 1fr; } }
.tn-legend2 > div { display: flex; align-items: center; gap: 12px; }
.tn-lg-k { flex: 0 0 78px; text-align: center; font-weight: 800; font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.tn-lg-v { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; }
.tn-lg-dots { display: inline-flex; gap: 4px; justify-content: center; }
.tn-lg-dots i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tn-lg-dots i.w { background: #2bd07c; } .tn-lg-dots i.l { background: rgba(150,150,150,.35); }
.tn-evtxt { color: #2bd07c; font-weight: 800; }
.tn-intro-tap { font-size: 12.5px; color: var(--text-faint, #8a93a6); margin: 16px 0 0; }
.tn-read { font-size: 13px; line-height: 1.5; color: var(--text-dim); margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--border); }
.tn-read b { color: var(--text); font-weight: 700; }
/* ---- trends cards ---- */
.tn-trends { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 13px; }
.tn-trend { padding: 14px 16px; border-left: 3px solid var(--border-bright); }
.tn-trend.tn-pos { border-left-color: #2bd07c; }
.tn-trend.tn-neg { border-left-color: #ff5d5d; }
.tn-trend-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tn-trend-d { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tn-trend.tn-pos .tn-trend-d { color: #2bd07c; } .tn-trend.tn-neg .tn-trend-d { color: #ff5d5d; }
.tn-trend-l { font-size: 13.5px; margin-bottom: 5px; }
.tn-trend-ctx { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
/* ---- predictions cards ---- */
/* predictions table — clean MLB-style rows */
.tn-ptable { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.tn-ptable thead th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.tn-ptable td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tn-ptable tbody tr { cursor: pointer; }
.tn-ptable tbody tr:last-child td { border-bottom: 0; }
.tn-ptable tbody tr:hover td { background: rgba(127,127,127,.05); }
.tn-pt-time { font-size: 13px; color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tn-pt-n { font-weight: 800; font-size: 15px; }
.tn-pt-n.wn { color: var(--accent); }
.tn-pt-vs { font-size: 12px; color: var(--text-dim); margin: 2px 0; }
.tn-pt-sub { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.tn-pt-pred b { font-weight: 800; font-size: 15px; white-space: nowrap; }
.tn-pt-pred div { font-size: 13px; color: var(--text-dim); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tn-pt-pred.tn-correct b { color: #2bd07c; } .tn-pt-pred.tn-miss b { color: #ff5d5d; }
.tn-pt-actual { font-size: 13px; white-space: nowrap; }
.tn-pred { max-width: 560px; }
.tn-pred-row { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; font-weight: 600; padding: 4px 0; }
.tn-pred-row b { font-variant-numeric: tabular-nums; }
.tn-probbar { height: 8px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; margin: 4px 0; }
.tn-probfill { height: 100%; background: linear-gradient(90deg, var(--accent), #6ba6ff); }
/* ---- player card ---- */
.tn-pc-hd { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.tn-form-big { margin-top: 2px; }
.tn-form-big { display: flex; gap: 4px; }
.tn-f { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.tn-f-w { background: #2bd07c; } .tn-f-l { background: rgba(255,255,255,.14); color: var(--text-dim); }
.tn-elo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.tn-elo { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }
.tn-elo span { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.tn-elo b { font-size: 19px; font-variant-numeric: tabular-nums; }
.tn-elo-best { border-color: #2bd07c; box-shadow: 0 0 0 1px rgba(43,208,124,.3) inset; }
.tn-elo-best b { color: #2bd07c; }
.tn-sec-l { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 9px; }
.tn-sec-l .dim { font-weight: 500; text-transform: none; letter-spacing: 0; }
.tn-srows { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-srow { background: var(--bg-card); border: 1px solid var(--border); border-radius: 9px; padding: 7px 13px; display: flex; gap: 8px; align-items: baseline; }
.tn-srow span:first-child { font-weight: 700; text-transform: capitalize; }
.tn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.tn-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; }
.tn-stat-v { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tn-stat-l { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; line-height: 1.3; }
.tn-stat-s { font-size: 11px; color: var(--text-faint, #8a93a6); margin-top: 3px; }
@media (max-width: 560px) { .tn-elo-row { grid-template-columns: repeat(2, 1fr); } }
.tn-scope { font-size: 12px; color: var(--text-dim); background: rgba(255,255,255,.04); border-radius: 8px; padding: 8px 11px; margin-bottom: 12px; }
.tn-back { background: var(--bg-card); border: 1px solid var(--border); color: var(--accent); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 9px; cursor: pointer; margin-bottom: 6px; }
.tn-back:hover { border-color: var(--accent); }
.tn-sfchips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.tn-sfchip { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.tn-sfchip b { color: var(--text); font-variant-numeric: tabular-nums; }
.tn-sfchip:hover { border-color: var(--border-bright); }
.tn-sfchip.on { background: var(--accent); border-color: transparent; color: #fff; }
.tn-sfchip.on b { color: #fff; }
.tn-toggle { display: inline-flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin-bottom: 14px; }
.tn-toggle button { background: none; border: 0; color: var(--text-dim); padding: 7px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.tn-toggle button.on { background: var(--accent); color: #fff; }
.tn-note-sm { font-size: 12px; color: var(--text-dim); margin: 4px 0 12px; line-height: 1.4; }
.tn-reality { font-size: 14px; line-height: 1.5; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.tn-stat.tn-click { cursor: pointer; transition: border-color .12s; }
.tn-stat.tn-click:hover { border-color: var(--accent); }
.tn-stat.tn-click.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tn-stat-x { font-size: 10px; color: var(--accent); margin-top: 5px; font-weight: 700; }
.tn-mlist { display: flex; flex-direction: column; gap: 1px; }
.tn-mrow { display: grid; grid-template-columns: 24px 80px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 6px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.tn-mres { font-weight: 800; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; color: #fff; }
.tn-mres.w { background: #2bd07c; } .tn-mres.l { background: rgba(255,255,255,.15); }
.tn-mo { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-mt { font-size: 11px; white-space: nowrap; }
.tn-msc { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) { .tn-mrow { grid-template-columns: 22px 1fr auto; } .tn-md, .tn-mt { display: none; } }
/* ---- draw / bracket ---- */
/* ---- bracket: nested-flex tree ---- */
.tn-phase-h { font-size: 16px; font-weight: 800; margin: 22px 0 6px; display: flex; align-items: center; gap: 10px; }
.tn-tree { display: flex; overflow-x: auto; padding: 4px 0 20px; align-items: stretch; }
.tn-rnd { display: flex; flex-direction: column; min-width: 218px; flex: 0 0 218px; }
.tn-rnd-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); padding: 4px 16px 8px 2px; white-space: nowrap; }
.tn-bcol-n { background: rgba(127,127,127,.16); border-radius: 999px; padding: 1px 7px; font-size: 10px; }
/* each round body distributes its tiles evenly over the full height → a round with half
   the matches centers each tile on the midpoint of its two feeders (the bracket tree) */
.tn-rnd-body { flex: 1; display: flex; flex-direction: column; }
.tn-mt { flex: 1; display: flex; align-items: center; position: relative; padding-right: 16px; min-height: 58px; }
.tn-mt-box { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
/* connectors: horizontal stub out of each tile + vertical line joining each pair */
.tn-rnd:not(.tn-rnd-last) .tn-mt::after { content: ''; position: absolute; right: 0; top: 50%; width: 16px; height: 2px; background: var(--border-bright); }
.tn-rnd:not(.tn-rnd-last) .tn-mt:nth-child(odd)::before { content: ''; position: absolute; right: 0; top: 50%; height: 50%; width: 2px; background: var(--border-bright); }
.tn-rnd:not(.tn-rnd-last) .tn-mt:nth-child(even)::before { content: ''; position: absolute; right: 0; top: 0; height: 50%; width: 2px; background: var(--border-bright); }
/* before a draw plays out we can't know feeds — show clean columns, no false elbows */
.tn-tree-flat .tn-mt::after, .tn-tree-flat .tn-mt::before { display: none; }
.tn-tree-flat .tn-mt { padding-right: 8px; }
.tn-draw-note { font-size: 12.5px; color: var(--text-dim); background: rgba(127,127,127,.08); border-radius: 8px; padding: 9px 12px; margin: 2px 0 12px; }
.tn-bm-post { border-color: var(--border-bright); }
.tn-bm-in { border-color: #ff5d5d; box-shadow: 0 0 0 1px rgba(255,93,93,.25); }
.tn-bp { display: flex; align-items: center; gap: 7px; padding: 8px 10px; font-size: 13px; }
.tn-bp + .tn-bp { border-top: 1px solid var(--border); }
.tn-bp.win { background: rgba(43,208,124,.10); }
.tn-bp.win .tn-bp-n { font-weight: 800; }
.tn-bp:not(.win) .tn-bp-n { color: var(--text-dim); }
.tn-bp-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.tn-bp-sc { display: inline-flex; gap: 3px; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-dim); flex-shrink: 0; }
.tn-set { min-width: 13px; text-align: center; }
.tn-bp.win .tn-bp-sc { color: var(--text); font-weight: 700; }
/* ---- matchup list cards ---- */
.tn-mu { cursor: pointer; padding: 13px 15px; }
.tn-mu:hover { border-color: var(--accent); }
.tn-mu-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-dim); margin-bottom: 9px; }
.tn-valtag { background: #2bd07c; color: #06231a; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 6px; }
.tn-mu-p { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.tn-mu-n { font-weight: 700; flex: 1; }
.tn-mu-r { font-weight: 700; font-variant-numeric: tabular-nums; }
.tn-ev { color: #2bd07c; font-weight: 800; }
.tn-evneg { color: #ff5d5d; }
.tn-mu-bar { height: 5px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden; margin: 5px 0; }
.tn-mu-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #6ba6ff); }
.tn-mu-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.tn-mu-cta { color: var(--accent); font-weight: 700; }
.tn-mu-when { font-size: 12px; color: var(--text-dim); margin: 2px 0 9px; font-weight: 600; }
/* ---- matchup modal ---- */
.tn-mh { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 6px; }
.tn-mh-p { display: flex; align-items: center; gap: 10px; }
.tn-mh-p.right { justify-content: flex-end; text-align: right; }
.tn-mh-n { font-size: 18px; font-weight: 800; }
.tn-mh-vs { color: var(--text-dim); font-weight: 800; }
.tn-mh-meta { font-size: 12px; text-transform: capitalize; margin-bottom: 14px; }
.tn-probbar2 { display: flex; height: 30px; border-radius: 9px; overflow: hidden; font-weight: 800; margin-bottom: 6px; }
.tn-pb-a { background: linear-gradient(90deg, var(--accent), #6ba6ff); color: #fff; display: flex; align-items: center; padding: 0 10px; }
.tn-pb-b { background: rgba(255,255,255,.14); color: var(--text); display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; margin-left: auto; }
.tn-lines { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.tn-linebox { flex: 1; min-width: 200px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; }
.tn-line-l { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-dim); margin-bottom: 7px; font-weight: 700; }
.tn-line-r { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.tn-nomkt { flex: 1; font-size: 12.5px; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.tn-h2h-sum { font-weight: 800; margin-bottom: 8px; }
.tn-h2h-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.tn-tape { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.tn-tape > div:first-child { text-align: right; } .tn-tape > div:last-child { text-align: left; }
.tn-tw { font-weight: 800; color: var(--accent); }
.tn-tl { text-align: center !important; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-dim); }
.tn-angles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .tn-angles2 { grid-template-columns: 1fr; } }
.tn-ang-nm { font-weight: 800; font-size: 13px; margin-bottom: 7px; }
.tn-ang { font-size: 12.5px; line-height: 1.4; padding: 7px 10px; border-radius: 8px; margin-bottom: 6px; border-left: 3px solid; }
.tn-ang-good { background: rgba(43,208,124,.08); border-left-color: #2bd07c; }
.tn-ang-bad { background: rgba(255,93,93,.08); border-left-color: #ff5d5d; }
.tn-ang-warn { background: rgba(255,194,77,.08); border-left-color: #ffc24d; }
.tn-ang-live { background: rgba(123,92,255,.1); border-left-color: #7b5cff; }
/* ---- value plays / best bets ---- */
.tn-play { cursor: pointer; padding: 13px 15px; }
.tn-play.val { border-color: rgba(43,208,124,.45); }
.tn-play:hover { border-color: var(--accent); }
.tn-play-top { display: flex; justify-content: space-between; align-items: center; }
.tn-play-back { font-size: 14px; }
.tn-play-ev { font-weight: 800; font-size: 14px; color: var(--text-dim); }
.tn-play-ev.pos { color: #2bd07c; }
.tn-play-meta { font-size: 12px; color: var(--text-dim); margin: 5px 0 9px; }
.tn-play-nums { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-dim); }
.tn-play-nums b { color: var(--text); font-variant-numeric: tabular-nums; }
.tn-play-why { font-size: 12.5px; color: var(--text-dim); margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border); line-height: 1.4; }
.bestbet .factor { display: flex; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.bestbet .factor .ic { color: var(--accent); }
.bestbet { cursor: pointer; }
.tn-rd { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: .4px; }
.tn-rd.good { background: rgba(43,208,124,.16); color: #2bd07c; }
.tn-rd.bad { background: rgba(255,93,93,.16); color: #ff5d5d; }
/* best bet hero card (theme-aware) */
.tn-bestbet { cursor: pointer; background: linear-gradient(135deg, rgba(43,208,124,.16), rgba(79,140,255,.10)); border: 1px solid rgba(43,208,124,.4); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.tn-bb-tag { display: inline-block; background: #2bd07c; color: #06231a; font-weight: 800; font-size: 11px; padding: 3px 10px; border-radius: 6px; letter-spacing: .5px; }
.tn-bb-pick { font-size: 24px; font-weight: 800; margin: 12px 0 3px; }
.tn-bb-odds { color: #2bd07c; }
.tn-bb-sub { font-size: 13px; color: var(--text-dim); }
.tn-bb-reasons { margin: 14px 0 6px; }
.tn-bb-reasons .factor { display: flex; gap: 10px; padding: 5px 0; font-size: 13.5px; line-height: 1.4; }
.tn-bb-reasons .ic { color: #2bd07c; font-weight: 800; }
.golf-card-line, .golf-pick-mkt, .golf-pick-price { font-size: 12.5px; margin-bottom: 6px; }
.golf-card-take { font-size: 12.5px; line-height: 1.5; color: var(--text-dim, #9aa); }
.golf-conv { font-size: 11px; font-weight: 800; letter-spacing: 0.4px; padding: 2px 8px; border-radius: 5px; border: 1px solid var(--border); }
/* golf — sortable field */
.golf-field-table th.golf-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.golf-field-table th.golf-sortable:hover { color: var(--accent); }
.golf-field-table th.sort-asc::after { content: ' ▲'; font-size: 9px; }
.golf-field-table th.sort-desc::after { content: ' ▼'; font-size: 9px; }
.golf-frow { cursor: pointer; }
.golf-frow:hover td { background: var(--border); }
.golf-frow-name { font-weight: 600; }
.golf-frow:hover .golf-frow-name { color: var(--accent); }
/* golf — player modal skill bars */
.golf-skills { display: flex; flex-direction: column; gap: 7px; }
.golf-skill-row { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 10px; font-size: 12.5px; }
.golf-skill-bar { background: var(--border); border-radius: 4px; height: 9px; overflow: hidden; }
.golf-skill-fill { display: block; height: 100%; border-radius: 4px; }
.golf-skill-fill.pos { background: var(--green); }
.golf-skill-fill.neg { background: var(--red, #e5484d); }
.golf-skill-val { font-family: var(--mono); font-weight: 700; text-align: right; }
.pp-sub { font-size: 10.5px; color: var(--text-dim, #9aa); margin-top: 2px; }
/* golf — weather */
.golf-wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.golf-wx-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--card); text-align: center; }
.golf-wx-card.golf-bad { border-color: rgba(229,72,77,0.4); }
.golf-wx-round { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.golf-wx-wind { font-family: var(--mono); font-size: 34px; font-weight: 800; line-height: 1; }
.golf-wx-unit { font-size: 14px; font-weight: 600; }
.golf-wx-sub { font-size: 12px; margin-top: 6px; }
.golf-wx-meta { font-size: 12px; color: var(--text-dim, #9aa); margin-top: 6px; }
/* golf — course */
.golf-dna { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-bottom: 16px; }
.golf-dna > div { border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; background: var(--card); }
.golf-dna-big { font-family: var(--mono); font-size: 26px; font-weight: 800; line-height: 1; }
.golf-dna-lbl { font-size: 11.5px; color: var(--text-dim, #9aa); margin-top: 6px; }
.golf-par3 td { background: rgba(79,140,255,0.06); }
.golf-par5 td { background: rgba(47,212,126,0.06); }
.golf-compass-row { display: flex; flex-wrap: wrap; gap: 14px; }
.golf-wind-compass { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: var(--card); }
.golf-compass-ring { width: 42px; height: 42px; border: 2px solid var(--border-bright); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.golf-compass-arrow { font-size: 22px; font-weight: 800; color: var(--accent); display: inline-block; }
.golf-compass-lbl { font-size: 12px; line-height: 1.3; }
/* golf — DFS */
.golf-lineups { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.golf-lineup { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--card); }
.golf-lineup-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.golf-lineup-rank { font-weight: 800; font-size: 15px; color: var(--accent); }
.golf-lineup-meta { font-size: 12px; color: var(--text-dim, #9aa); }
.golf-lineup-players { display: flex; flex-direction: column; gap: 4px; }
.golf-lp { font-size: 13px; cursor: pointer; }
.golf-lp:hover { color: var(--accent); }
/* in-view sub-tabs (e.g. MLB standings: League / Divisions / Playoffs) */
.sub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sub-tab { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.sub-tab:hover { border-color: var(--border-bright); }
.sub-tab.active { background: linear-gradient(135deg, var(--accent), #7b5cff); color: #fff; border-color: transparent; box-shadow: 0 0 14px var(--accent-glow); }
/* clickable team name + schedule modal */
.team-link { cursor: pointer; border-bottom: 1px dotted var(--text-faint); }
.team-link:hover { color: var(--accent); border-color: var(--accent); }
.tsch-list { display: flex; flex-direction: column; }
.tsch-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.tsch-row:last-child { border-bottom: none; }
.tsch-badge { font-weight: 800; font-size: 11px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: #fff; flex-shrink: 0; }
.tsch-win { background: var(--green); }
.tsch-loss { background: var(--red, #e5484d); }
.tsch-date { min-width: 50px; font-family: var(--mono); font-size: 12px; color: var(--text-dim, #9aa); }
.tsch-when { min-width: 150px; }
.tsch-opp { flex: 1; display: flex; align-items: center; gap: 5px; min-width: 0; }
.tsch-opp .st-logo { width: 18px; height: 18px; flex-shrink: 0; }
.tsch-score { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
/* sortable standings headers */
/* click-to-sort: every data table with a header row (see sortableTables in app.js) */
th.th-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.th-sortable:hover { color: var(--accent); }
th.sort-asc::after { content: ' ▲'; font-size: 9px; opacity: 0.8; }
th.sort-desc::after { content: ' ▼'; font-size: 9px; opacity: 0.8; }
.mlb-div-lead td { background: rgba(47,212,126,0.08); }
.mlb-div-lead td:first-child { box-shadow: inset 3px 0 0 var(--green); }
/* MLB playoff picture */
.mlb-po-table .mlb-seed-no { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.mlb-badge { font-size: 9px; font-weight: 800; background: #d4a017; color: #1a1400; padding: 1px 4px; border-radius: 3px; vertical-align: middle; }
.mlb-badge-pi { background: var(--green); color: #062a16; }
.mlb-bye td { background: rgba(212,160,23,0.10); }
.mlb-bye td:first-child { box-shadow: inset 3px 0 0 #d4a017; }
.mlb-div td { background: rgba(47,212,126,0.07); }
.mlb-div td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.mlb-wc td { background: rgba(79,140,255,0.07); }
.mlb-wc td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.mlb-cutline td { text-align: center; font-size: 11px; font-weight: 700; color: var(--red, #e5484d); letter-spacing: 1px; padding: 4px; background: transparent; }
.mlb-out td { opacity: 0.62; }
.mlb-howto { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 12.5px; line-height: 1.5; margin-bottom: 14px; }
/* MLB intro + BIG projected bracket */
.mlb-intro { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.mlb-intro-h { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.mlb-intro p { margin: 0; font-size: 13px; line-height: 1.65; }
.bkt2-key-div { color: var(--accent); font-weight: 700; }
.bkt2-key-wc { color: var(--green); font-weight: 700; }
.bkt2-wsttl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim, #9aa); text-align: center; }
.bkt2-bo { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.3px; color: var(--accent); margin-top: 2px; text-transform: none; }
.mlb-bracket2-wrap { overflow-x: auto; text-align: center; padding: 4px 0 8px; }
.mlb-bracket2 { display: inline-flex; align-items: center; gap: 24px; padding: 8px; }
.bkt2-stack { display: flex; flex-direction: column; gap: 30px; }
.bkt2-lgname { font-weight: 800; font-size: 13px; letter-spacing: 0.3px; margin-bottom: 8px; padding-left: 4px; }
.bkt2-half { display: flex; }
.bkt2-col { display: flex; flex-direction: column; justify-content: space-around; min-width: 178px; position: relative; padding-top: 24px; }
.bkt2-clbl { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim, #9aa); }
.bkt2-game { display: flex; flex-direction: column; gap: 4px; margin: 14px 11px; position: relative; }
.bkt2-team { display: flex; align-items: center; gap: 7px; background: var(--card); border: 1.5px solid var(--border); border-radius: 8px; padding: 7px 11px; font-size: 14px; white-space: nowrap; }
.bkt2-team.bkt2-div { border-left: 4px solid var(--accent); background: rgba(79,140,255,0.06); }
.bkt2-team.bkt2-wc { border-left: 4px solid var(--green); background: rgba(47,212,126,0.07); }
.bkt2-team.bkt2-win { background: rgba(47,212,126,0.14); border-color: var(--green); font-weight: 700; }
.bkt2-team.bkt2-champ { background: rgba(212,160,23,0.20); border-color: #d4a017; }
.bkt2-team.tbd { opacity: 0.45; font-style: italic; }
.bkt2-w { font-family: var(--mono); font-size: 15px; color: var(--text); }
.bkt2-game-clic { cursor: pointer; }
.bkt2-game-clic::after { content: '›'; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 16px; opacity: 0; transition: opacity 0.12s; }
.bkt2-game-clic:hover::after { opacity: 1; }
.bkt2-game-clic:hover .bkt2-team { border-color: var(--border-bright); }
.bkt2-champ { margin-top: 8px; font-weight: 800; font-size: 13px; color: #d4a017; text-align: center; }
.bkt2-ghost { visibility: hidden; }
.bkt2-glbl { position: absolute; left: 0; right: 0; top: -17px; text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); white-space: nowrap; }
.bkt2-pi { margin: 10px 11px 16px; }
.bkt2-pi .bkt2-game { margin: 4px 0 0; }
.bkt2-pi-lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.bkt2-pi-sub { font-size: 10.5px; color: var(--text-faint); margin-top: 3px; max-width: 200px; line-height: 1.35; }
.ser-win { font-weight: 800; color: var(--green); }
.bkt2-seed { font-family: var(--mono); font-weight: 700; font-size: 12px; min-width: 14px; color: var(--text-dim, #9aa); }
.bkt2-logo { width: 28px; height: 28px; flex-shrink: 0; }
.bkt2-abbr { font-weight: 700; letter-spacing: 0.3px; }
.bkt2-rec { margin-left: auto; font-size: 11px; color: var(--text-dim, #9aa); font-family: var(--mono); padding-left: 8px; }
.bkt2-adv { color: var(--green); font-weight: 800; }
/* mirror the NL side toward center */
.bkt2-mirror .bkt2-team { flex-direction: row-reverse; }
.bkt2-mirror .bkt2-rec { margin-left: 0; margin-right: auto; padding-left: 0; padding-right: 8px; }
.bkt2-mirror .bkt2-team.bkt2-div { border-left: 1.5px solid var(--border); border-right: 4px solid var(--accent); }
.bkt2-mirror .bkt2-team.bkt2-wc { border-left: 1.5px solid var(--border); border-right: 4px solid var(--green); }
/* subtle connector stubs */
.bkt2-half:not(.bkt2-mirror) .bkt2-col:not(:last-child) .bkt2-game::after { content: ''; position: absolute; right: -11px; top: 50%; width: 11px; height: 2px; background: var(--border-bright); }
.bkt2-mirror .bkt2-col:not(:last-child) .bkt2-game::after { content: ''; position: absolute; left: -11px; top: 50%; width: 11px; height: 2px; background: var(--border-bright); }
/* World Series center */
.bkt2-wsbox { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 18px; align-self: center; }
.bkt2-trophy { font-size: 42px; line-height: 1; }
.bkt2-wsgame { margin: 0; }
.bkt2-champlbl { text-align: center; font-size: 12.5px; line-height: 1.4; }
.golf-dfs-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.golf-dfs-controls label { font-size: 13px; font-weight: 600; }
.golf-dfs-controls input { width: 58px; margin-left: 6px; padding: 5px 8px; border: 1px solid var(--border-bright); border-radius: 6px; background: transparent; color: var(--text); font-family: var(--mono); }
.golf-regen { padding: 7px 14px; border-radius: 7px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.golf-regen:hover { box-shadow: 0 0 14px var(--accent-glow); }
.golf-ctl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.golf-ctl-chip { font-size: 11.5px; padding: 3px 9px; border-radius: 14px; border: 1px solid var(--border-bright); cursor: pointer; }
.golf-ctl-chip:hover { border-color: var(--red, #e5484d); color: var(--red, #e5484d); }
.golf-warn { background: rgba(229,72,77,0.1) !important; border-color: rgba(229,72,77,0.35) !important; }
.golf-lockcell { white-space: nowrap; }
.golf-lockbtn, .golf-exclbtn { background: none; border: none; cursor: pointer; font-size: 13px; opacity: 0.3; padding: 2px; }
.golf-lockbtn.on, .golf-exclbtn.on { opacity: 1; }
.golf-lockbtn:hover, .golf-exclbtn:hover { opacity: 0.8; }
.golf-excluded td { opacity: 0.4; }
#standingsView .standings-table td { text-align: center; }
#standingsView .standings-table td.st-team { text-align: left; }
.tsch-score-link { cursor: pointer; border-bottom: 1px dotted var(--text-faint); }
.tsch-score-link:hover { color: var(--accent); border-color: var(--accent); }
.tsch-back { margin-bottom: 12px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--text); font-weight: 700; cursor: pointer; font-size: 13px; }
.tsch-back:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- NIL Valuations (Athlete tab) ---------- */
.nil-statbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.nil-stat { flex: 1; min-width: 120px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-align: center; }
.nil-stat-num { display: block; font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.nil-stat-lbl { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.nil-disclaimer { background: rgba(255, 201, 77, 0.08); border: 1px solid rgba(255, 201, 77, 0.25); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); margin-bottom: 16px; }
.nil-disclaimer strong { color: var(--text); }
.nil-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.nil-tab { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); color: var(--text-dim); font-weight: 700; font-size: 13px; cursor: pointer; }
.nil-tab:hover { color: var(--text); border-color: var(--border-bright); }
.nil-tab.active { background: linear-gradient(135deg, var(--accent), #7b5cff); color: #fff; border-color: transparent; }
.nil-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.nil-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; transition: border-color 0.15s, transform 0.15s; }
.nil-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.nil-card-top { display: flex; align-items: center; gap: 12px; }
.nil-rank { flex: 0 0 auto; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-family: var(--mono); font-weight: 700; font-size: 14px; background: rgba(255, 255, 255, 0.06); color: var(--text-dim); }
.nil-rank-1 { background: linear-gradient(135deg, #ffd75e, #f0a92b); color: #2a1d00; }
.nil-rank-2 { background: linear-gradient(135deg, #d8dde6, #a6adba); color: #20242c; }
.nil-rank-3 { background: linear-gradient(135deg, #e0a878, #c47b40); color: #2a1500; }
.nil-card-id { flex: 1; min-width: 0; }
.nil-name { font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
.nil-name:hover { color: var(--accent); }
.nil-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.nil-pos { display: inline-block; background: rgba(79, 140, 255, 0.14); color: var(--accent); font-weight: 700; font-size: 10.5px; padding: 1px 6px; border-radius: 5px; letter-spacing: 0.3px; }
.nil-val { flex: 0 0 auto; font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--green); }
.nil-deals { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.nil-deal { font-size: 11px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-dim); padding: 2px 8px; border-radius: 999px; }
.nil-deal-none { font-size: 11px; color: var(--text-faint); font-style: italic; }
.nil-note { font-size: 11.5px; color: var(--text-faint); margin-top: 8px; line-height: 1.4; }
.nil-posblock { margin-bottom: 22px; }
.nil-poshead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.nil-postitle { font-size: 17px; font-weight: 700; color: var(--text); }
.nil-possub { font-size: 12px; color: var(--text-dim); }
.nil-table { width: 100%; }
.nil-school-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.nil-school-pick label { font-size: 13px; color: var(--text-dim); font-weight: 700; }
.nil-school-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.nil-school-name { font-size: 20px; font-weight: 800; color: var(--text); }
.nil-school-tot { font-size: 13px; color: var(--gold); font-weight: 700; }
.nil-foot { margin-top: 18px; }
.nil-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nil-year { max-width: 180px; font-weight: 700; }
.nil-updated { font-size: 12px; color: var(--text-faint); }

/* ---------- NIL: pay-first + active/former rework ---------- */
.nil-seg { display: inline-flex; gap: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.nil-segbtn { padding: 8px 18px; border: none; border-radius: 999px; background: transparent; color: var(--text-dim); font-weight: 700; font-size: 13px; cursor: pointer; }
.nil-segbtn:hover { color: var(--text); }
.nil-segbtn.active { background: linear-gradient(135deg, var(--accent), #7b5cff); color: #fff; }
.nil-paywrap { flex: 0 0 auto; text-align: right; }
.nil-pay { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--green); text-decoration: none; }
a.nil-pay:hover { text-decoration: underline; }
.nil-pay-none { color: var(--text-faint); font-weight: 600; font-size: 14px; font-style: italic; }
.nil-pay-term { font-size: 10.5px; color: var(--text-dim); margin-top: 1px; }
.nil-val-sec { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
.nil-td-pay { color: var(--green); }
.nil-tag { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; background: rgba(255,255,255,0.08); color: var(--text-faint); padding: 1px 5px; border-radius: 4px; vertical-align: middle; }
.nil-card-former { border-style: dashed; }
.nil-dest { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 8px; }
.nil-pay-cap { font-size: 9.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.4px; }
.nil-pay-past { color: var(--text-dim); }

/* ---------- golf matchups ---------- */
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; }
.gm-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.gm-tag { font-size: 11px; font-weight: 800; letter-spacing: .3px; margin-bottom: 8px; display: inline-block; }
.gm-row { padding: 6px 8px; border-radius: 8px; margin-bottom: 2px; }
.gm-line { display: flex; align-items: center; gap: 8px; }
.gm-form { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.gm-pos { font-family: var(--mono); color: var(--text-faint); font-weight: 700; }
.gm-par { font-family: var(--mono); color: var(--text-dim); }
.gm-pick { background: rgba(47, 212, 126, .10); border: 1px solid rgba(47, 212, 126, .25); }
.gm-name { flex: 1; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.gm-name:hover { color: var(--accent); }
.gm-pick .gm-name { color: var(--green); }
.gm-am { font-family: var(--mono); font-weight: 700; font-size: 13px; text-align: right; }
.gm-book { display: block; font-size: 9.5px; color: var(--text-faint); font-weight: 500; text-transform: uppercase; }
.gm-dg { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); width: 80px; text-align: right; }
.gm-ties { font-size: 10.5px; color: var(--text-faint); margin-top: 6px; }

/* ---------- golf AI matchups ---------- */
.ai-iso { background: rgba(79,140,255,.08); border: 1px solid rgba(79,140,255,.25); border-radius: 10px; padding: 11px 14px; font-size: 12.5px; line-height: 1.55; color: var(--text-dim); margin-bottom: 16px; }
.ai-iso strong { color: var(--text); }
.ai-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.ai-tier { font-size: 11px; font-weight: 800; letter-spacing: .4px; }
.ai-flag { font-size: 10px; font-weight: 800; letter-spacing: .3px; padding: 2px 7px; border-radius: 999px; }
.ai-value { background: rgba(47,212,126,.15); color: var(--green); }
.ai-vs { background: rgba(255,201,77,.15); color: var(--gold); }
.ai-luck { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.ai-hot { background: rgba(255,93,108,.14); color: #ff8a95; }
.ai-cold { background: rgba(79,140,255,.14); color: var(--accent); }
.ai-reason { font-size: 12px; color: var(--text-dim); margin-top: 8px; line-height: 1.5; border-top: 1px solid var(--border); padding-top: 8px; }

/* ---------- golf glossary ---------- */
.gloss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.gloss-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.gloss-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.gloss-term { font-weight: 700; font-size: 15.5px; }
.gloss-abbr { font-family: var(--mono); font-size: 11px; font-weight: 700; background: rgba(79,140,255,.14); color: var(--accent); padding: 1px 7px; border-radius: 5px; }
.gloss-short { font-size: 13px; color: var(--text); margin: 5px 0 8px; font-weight: 600; }
.gloss-detail { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }
.gloss-matters { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-top: 9px; border-top: 1px solid var(--border); padding-top: 8px; }
.gloss-matters strong { color: var(--green); }

/* ---------- golf Pre/Live mode toggle ---------- */
.golf-modebar { display: flex; align-items: center; gap: 8px; max-width: 1200px; margin: 0 auto; padding: 10px 20px 0; }
.gmode { padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); color: var(--text-dim); font-weight: 800; font-size: 13.5px; cursor: pointer; }
.gmode:hover { color: var(--text); border-color: var(--border-bright); }
.gmode.on { background: linear-gradient(135deg, var(--accent), #7b5cff); color: #fff; border-color: transparent; }
.gmode-note { font-size: 11.5px; color: var(--text-faint); margin-left: 4px; }

/* ---------- golf live form (full sortable field table) ---------- */
.lf-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.lf-filter { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim); cursor: pointer; }
.lf-filter:hover { color: var(--text); border-color: var(--border-bright); }
.lf-filter.on { background: var(--card2); color: var(--text); border-color: var(--border-bright); }
.lf-tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.lf-table { min-width: 920px; border: none; }
.lf-table th.lf-th { cursor: pointer; white-space: nowrap; user-select: none; }
.lf-table th.lf-th:hover { color: var(--text); }
.lf-table td, .lf-table th { text-align: right; padding: 8px 12px; }
.lf-table td.st-team, .lf-table th.st-team { text-align: left; }

/* ---------- golf DFS site/slate toggles ---------- */
.dfs-toggles { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dfs-seg { display: inline-flex; gap: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.dfs-segbtn { padding: 7px 15px; border: none; border-radius: 999px; background: transparent; color: var(--text-dim); font-weight: 700; font-size: 13px; cursor: pointer; }
.dfs-segbtn:hover { color: var(--text); }
.dfs-segbtn.on { background: linear-gradient(135deg, var(--accent), #7b5cff); color: #fff; }

/* ---------- golf live picks market toggle ---------- */
.lp-toggle { display: inline-flex; gap: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.lp-mbtn { padding: 6px 14px; border: none; border-radius: 999px; background: transparent; color: var(--text-dim); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.lp-mbtn:hover { color: var(--text); }
.lp-mbtn.on { background: linear-gradient(135deg, var(--accent), #7b5cff); color: #fff; }
.scores-daybar { margin: 2px 0 16px; }
.goal-scorers { font-size: 11px; color: var(--text-dim); margin-top: 3px; line-height: 1.4; }

/* ===== MOBILE TABLE RESCUE (2026-07-18 audit) =====
   body is overflow-x:hidden, so any table wider than a phone screen was CLIPPED (golf
   leaderboard bug report). Make every table inside a view panel or the games area its own
   horizontal scroll container on small screens — content stays reachable by swipe. */
@media (max-width: 760px) {
  .view-panel table, #games table, .pred-table, .tn-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .view-panel table::-webkit-scrollbar, #games table::-webkit-scrollbar { height: 4px; }
}

/* Mobile: the live-picks boards run 8 columns — drop THRU (col 4) and MKT (col 6, redundant
   with Best price) under 500px so Player/Score/Model/Value/Price fit without swiping.
   Scoped to the two picks views; the live-form table has different columns and already fits. */
@media (max-width: 500px) {
  #golflivepicksView .lf-table th:nth-child(4), #golflivepicksView .lf-table td:nth-child(4),
  #golflivepicksView .lf-table th:nth-child(6), #golflivepicksView .lf-table td:nth-child(6),
  #golfdgpicksView .lf-table th:nth-child(4), #golfdgpicksView .lf-table td:nth-child(4),
  #golfdgpicksView .lf-table th:nth-child(6), #golfdgpicksView .lf-table td:nth-child(6) { display: none; }
  #golflivepicksView .lf-table th, #golflivepicksView .lf-table td,
  #golfdgpicksView .lf-table th, #golfdgpicksView .lf-table td { padding: 7px 6px; font-size: 12px; }
  #golflivepicksView .gm-form, #golfdgpicksView .gm-form { display: none; }
}

/* Mobile: calculator rows spilled ~21px past the viewport (84px min-width numerics × several
   per row). Tighter minimum under 500px keeps every input on-screen. */
@media (max-width: 500px) {
  .calc-num { min-width: 62px; }
  .calc-row { gap: 6px; }
}

/* WC group tables: independent auto-sizing made P/W/D/L columns wander group-to-group when
   stacked — fixed layout keeps every group's columns on the same grid. */
.wc-group-table { table-layout: fixed; }
.wc-group-table th:first-child { width: 42%; }

/* 📤 share-as-image button on pick cards */
.share-btn { background: none; border: 1px solid var(--border, #2a3444); border-radius: 6px; color: var(--text-dim, #8a94a6); cursor: pointer; font-size: 13px; padding: 2px 8px; margin-left: 10px; }
.share-btn:hover { color: var(--text, #fff); border-color: var(--accent, #4ea1ff); }

/* Splits war-room layout (2026-09-01): one row per game, SHARP rows highlighted */
.spl-sharprow { background: rgba(220, 80, 80, .10); }
.spl-sharprow:hover { background: rgba(220, 80, 80, .18); }
.spl-sharptag { color: #e05555; font-weight: 800; font-size: .78em; letter-spacing: .04em; }
.spl-bagrow:not(.spl-sharprow) { background: rgba(245, 185, 66, .05); }
.spl-move { white-space: nowrap; font-weight: 600; }
.spl-filter { margin-right: 14px; cursor: pointer; user-select: none; }
.spl-filter input { vertical-align: -2px; margin-right: 4px; }
.spl-section-title { margin: 18px 0 8px; font-weight: 800; letter-spacing: .08em; font-size: 13px; color: var(--dim, #8a94a6); }
.spl-section-title .spl-conv { font-weight: 500; letter-spacing: 0; text-transform: none; margin-left: 10px; font-size: 11px; }
.spl-divider { margin: 26px 0 4px; border-top: 3px solid var(--border, #2a3245); }
.spl-toggle { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.spl-toggle .spl-filter { margin-left: 10px; }

/* Splits: finished games sink below the live board (2026-10-05) — dimmed, under a thick rule */
.spl-table tr.spl-done td { opacity: .55; }
.spl-table tr.spl-done-first td { border-top: 3px solid var(--border, #2a3245); }
.spl-table tr.spl-done-first td.spl-kick::before { content: 'COMPLETED'; display: block; font-size: 8px; letter-spacing: .8px; color: var(--text-dim); margin-bottom: 2px; }

/* Golf tables at phone width (2026-11-02): they scroll sideways inside their own box, but nothing said so and
   the right column looked cut off. Show a swipe hint and keep the Player column pinned while swiping. */
.golf-swipe { display: none; font-size: 12px; margin: 0 0 6px; }
/* The Field table scrolls inside .golf-tablewrap (like Live Form's .lf-tablewrap): with the table itself as the
   scroll box, WebKit pinned the header cell but not the body cells. --card is opaque (--bg-card is see-through). */
.golf-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .golf-swipe { display: block; }
  #golffieldView .golf-field-table { display: table; overflow: visible; }
  #golffieldView .golf-field-table td.st-team { display: table-cell; } /* .st-team is flex: a flex td isn't a real cell and won't pin */
  #golfliveformView .lf-table .st-team, #golflivepicksView .lf-table .st-team, #golfdgpicksView .lf-table .st-team,
  #golffieldView .golf-field-table th:nth-child(2), #golffieldView .golf-field-table td:nth-child(2) {
    position: sticky; left: 0; z-index: 1; background: var(--card);
  }
}

/* SV-056 (post-deploy auditor 2026-11-12): one line saying what the site is; phone tap targets >= 44px;
   until the script trims the view tabs to the league's own, only Scoreboard shows (the full list wrapped and jumped). */
.site-intro { color: var(--text-dim); font-size: 14px; margin: 0 0 10px; max-width: 760px; }
.hero p.site-intro { margin-top: 0; font-size: 14px; }
.view-nav.booting .view-btn:not([data-view="scores"]) { display: none; }
.view-btn { line-height: 21px; } /* same height whichever font has loaded */
@media (min-width: 761px) { .view-nav.booting { min-height: 108px; align-content: flex-start; } } /* two rows, what most leagues fill at desktop */
@media (max-width: 760px) {
  .tab, .view-btn, .tn-daybtn { min-height: 44px; }
  .theme-toggle { width: 44px; height: 44px; }
}
.hero h1 .hero-ico{-webkit-text-fill-color:initial;background:none}

/* SV-062/SV-064 (owner 2026-11-13: "One swipeable row"): on phones the view tabs are one sideways-scrolling row (the
   current one is scrolled into view by app.js) instead of a wrapped block filling two thirds of the first screen; desktop
   unchanged. The pinned top bar is solid on phones so page text doesn't show through it. */
@media (max-width: 760px) {
  .view-nav, .view-nav.booting { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 12px 12px 6px; }
  .view-nav::-webkit-scrollbar { display: none; }
  .view-btn { flex: 0 0 auto; scroll-snap-align: center; }
  .topbar, [data-theme="light"] .topbar { background: var(--bg); }
}

/* SV-066: three labeled line moves on football cards */
.mv3 { border-top: 1px solid var(--border); padding: 12px 20px 14px; }
.mv3 .odds-title { margin-bottom: 6px; }
.mv3-tag { font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--text-dim); }
.mv3-row { padding: 5px 0; min-height: 46px; box-sizing: border-box; font-size: 12.5px; }
.mv3-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mv3-lbl { color: var(--text-dim); }
.mv3-val { font-family: var(--mono); font-weight: 700; color: var(--text); white-space: nowrap; }
.mv3-na { color: var(--text-faint); font-family: inherit; font-weight: 400; }
.mv3-sub { color: var(--text-faint); font-size: 11px; font-family: var(--mono); margin-top: 2px; }
/* SV-075: a tap within 20px of the ⓘ still opens it (rows are 46px apart, so the areas don't overlap) */
.mv3 .info-i { position: relative; }
.mv3 .info-i::after { content: ''; position: absolute; inset: -17px -18px; }
@media (max-width: 760px) { .mv3 { padding: 10px 14px 12px; } .mv3-row { font-size: 12px; } }
/* SV-073: live Best Price tiles showed Over 229.5 / Under 240.5 with nothing saying the books were out of step */
.odds-live-note { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--text-dim); }

/* responsible-gambling line on every page (SV-073) */
.footer-rg { position: relative; z-index: 1; text-align: center; margin: 0 auto; padding: 18px 16px 28px; max-width: 760px; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.footer-rg a { color: inherit; text-decoration: underline; }

/* First phone screen (SV-073, SV-064; owner 11/15): header, league buttons in two rows, intro and a 2x2 count grid pushed
   the first game off the screen. One swipe row of leagues, a smaller intro, and the four counts on one line. */
@media (max-width: 760px) {
  .league-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .league-tabs::-webkit-scrollbar { display: none; }
  .league-tabs .tab { flex: 0 0 auto; }
  .hero p.site-intro { font-size: 12px; line-height: 1.4; margin-bottom: 6px; }
  #statsRow { flex-wrap: nowrap; gap: 6px; margin-top: 10px; }
  #statsRow .stat { flex: 1 1 0; padding: 6px 4px; text-align: center; }
  #statsRow .stat-num { font-size: 17px; }
  #statsRow .stat-label { font-size: 8.5px; letter-spacing: .2px; }
}
/* SV-074: the "Next game" pointer gets its own row on phones so Prev/Next keep one line */
@media (max-width: 760px) { .scores-daybar:has(.tn-daynext) { flex-wrap: wrap; } .scores-daybar .tn-daynext { flex: 1 0 100%; order: 9; } }

/* Predictions: market line and against-the-spread grade under the model's line (SV-073) */
.pred-mkt, .pred-ats { font-size: 12px; margin-top: 3px; line-height: 1.35; }

/* My books chooser above the game cards (SV-073) */
.mybooks-btn { margin-left: auto; }
.mybooks-say { font-size: 12px; color: var(--text-dim); flex: 0 0 100%; }
.mybooks-panel { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.mybooks-panel.hidden { display: none; }
.mybooks-opt { display: flex; align-items: center; gap: 6px; font-size: 14px; min-height: 44px; min-width: 132px; }
.mybooks-opt input { width: 20px; height: 20px; }
.scores-daybar { flex-wrap: wrap; }
/* Layout jump on load (desktop 0.12-0.34 after the gambling line and longer intro went in, 2026-11-16): keep the line
   below the first screen until the cards arrive, and give the intro room so it wraps the same before and after the font loads. */
.container { min-height: 100vh; }
.site-intro, .hero p.site-intro { max-width: 1000px; }
/* SV-077/078: the helpline number is one unbroken, tappable target (was 96x15 and broke after "1-") */
.footer-rg a { display: inline-block; white-space: nowrap; min-height: 44px; line-height: 44px; padding: 0 6px; }
/* SV-080: nothing on the first screen moves while it loads. (1) The tab row stays invisible (keeping its space) until
   the league's tabs are known, instead of showing a lone Scoreboard tab that then slides left. (2) Header text keeps the
   web fonts' own line height, so the fallback font takes the same room and the font swap doesn't push the page down. */
.view-nav.booting { visibility: hidden; }
.site-intro, .hero h1, .hero p, .stat-label, .tn-daylbl, .tn-daybtn { line-height: 1.21; }
.stat-num { line-height: 1.32; }
/* SV-079: My books note; Predictions swipe hint on phones; helpline tap area without a 44px line box (no loose gap) */
.odds-none { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.pred-swipe { display: none; }
@media (max-width: 760px) { .pred-swipe { display: block; font-size: 12px; color: var(--text-dim); margin: 0 0 8px; } }
.footer-rg a { line-height: 18px; min-height: 0; padding: 13px 0; margin: -13px 0; vertical-align: baseline; }

/* Track record block on the scoreboard (2026-11-16; reworked for SV-082). Its room is reserved (own waiting class: the
   site's .hidden is display:none and gave the space back), so the games don't move when it fills in. */
.track-record { min-height: 122px; margin: 0 0 10px; padding: 10px 14px; font-size: 13.5px; line-height: 1.5; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.track-record.tr-wait { visibility: hidden; }
.track-record.gone { display: none; }
.track-record .tr-k { color: var(--text-dim); }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 6px 0; }
.tr-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; font: inherit; font-size: 13px; color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: 10px; white-space: nowrap; cursor: pointer; }
.tr-chip.tr-static { cursor: default; color: var(--text-dim); }
/* SV-121: why it can't be tapped, on a second line so the chip is no wider (a wider chip wrapped the row at 1440) */
.tr-chip.tr-static { border-style: dashed; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; line-height: 1.25; }
.tr-off { font-size: 11px; }
.tn-daybtn:disabled { cursor: default; opacity: .6; }
.mybooks-pmt, .pred-matchup + .pred-mkt { margin-top: 6px; }
@media (max-width: 760px) {
  .track-record { font-size: 12.5px; min-height: 170px; }
  .tr-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tr-chips::-webkit-scrollbar { display: none; }
  .pred-mkt { white-space: normal; }
}
/* SV-083: "+N more →" over the right end of the phone's league row (no layout space) */
.track-record { position: relative; }
.tr-more { display: none; }
@media (max-width: 760px) {
  .tr-more { display: inline-flex; align-items: center; position: absolute; right: 8px; margin-top: -50px; height: 44px; padding: 0 10px 0 22px; font: inherit; font-size: 12px; font-weight: 700; color: var(--accent); border: 0; border-radius: 0 10px 10px 0; background: linear-gradient(90deg, transparent, var(--card) 18px); cursor: pointer; }
  .tr-more[hidden] { display: none; }
}
/* SV-083: on a phone the Tickets and Money columns ran together ("53%43%"), and the move into Tickets */
@media (max-width: 760px) {
  .spl-table td.spl-pct, .spl-table td.spl-na, .spl-table td.spl-move { padding-left: 8px; padding-right: 4px; }
  .spl-table td.spl-pct + td.spl-pct, .spl-table td.spl-pct + td.spl-na, .spl-table td.spl-na + td.spl-pct { border-left: 1px solid var(--border); }
}
/* SV-086: the "+N more" marker has its own space at the row's end (it covered the College football record); shorter
   college label on phones so two records read in full */
.tr-short { display: none; }
@media (max-width: 760px) {
  .tr-long { display: none; } .tr-short { display: inline; }
  .track-record { min-height: 190px; }
  /* plain hint text, not link-blue: it is not a control (SV-091); swiping the row is the action */
  .tr-more, .tr-more[hidden] { display: block; position: static; height: 18px; margin: -2px 0 4px; padding: 0; text-align: right; font-size: 12px; font-weight: 400; font-style: italic; color: var(--text-dim); background: none; cursor: default; pointer-events: none; }
  .tr-more.tr-more-none { visibility: hidden; }
}

/* SV-093: wind boxes are held while the wind call is out, then filled; a fixed label width keeps every box the same
   size whatever it says ("8mph from E", "99mph from NW", "no forecast"), so filling them never reflows the row */
.golf-wind-compass .golf-compass-lbl { width: 98px; }
@media (max-width: 420px) { .golf-wind-compass { padding: 10px; } .golf-compass-row { gap: 10px; } }

/* SV-098: the golf Course page's ⓘ tips get the same 44px tap area as .mv3 (16x13 was too small to hit on a phone) */
#golfcourseView .info-i { position: relative; }
#golfcourseView .info-i::after { content: ''; position: absolute; inset: -17px -18px; }

/* Best Bets tab on a league with no graded picks (owner 2026-11-16): plain note + where to look */
.bb-none-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.bb-none-go { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; font: inherit; }
.bb-none-go span { color: var(--text-dim); font-size: 13px; }
.bb-none-go:hover { border-color: var(--accent); }

/* Matchup Preview rebuild (owner 2026-11-16) */
.fbm-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.fbm-h { font-weight: 700; margin-bottom: 8px; }
.fbm-h .dim { font-weight: 400; font-size: 12px; margin-left: 6px; }
.fbm-head { text-align: center; }
.fbm-teams { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.fbm-team { display: flex; align-items: center; gap: 10px; font-size: 19px; text-align: left; }
.fbm-team div { display: flex; flex-direction: column; }
.fbm-team .dim { font-size: 13px; }
.fbm-at { color: var(--text-dim); font-size: 13px; }
.fbm-when { color: var(--text-dim); font-size: 13px; margin-top: 8px; }
.fbm-proj { margin-top: 8px; line-height: 1.6; }
.fbm-verdict { margin: 0 0 8px; line-height: 1.5; }
.fbm-caution { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--gold); color: var(--gold); font-size: 13px; }
.fbm-bets td, .fbm-bets th { white-space: nowrap; }
.fbm-sep td { border-top: 2px solid var(--border-bright); }
.fbm-grp { display: inline-block; min-width: 74px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.fbm-fine { font-size: 11px; margin-top: 8px; line-height: 1.5; }
.fbm-bar-row { display: grid; grid-template-columns: 62px 74px 1fr 74px; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.fbm-bar-l { color: var(--text-dim); }
.fbm-bar-n:last-child { text-align: right; }
.fbm-bar { height: 10px; border-radius: 6px; background: var(--border-bright); overflow: hidden; }
.fbm-bar i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 520px) { .fbm-bets th:nth-child(4), .fbm-bets td:nth-child(4) { display: none; } .fbm-bets td, .fbm-bets th { padding: 8px 4px; font-size: 12.5px; white-space: normal; } .fbm-bets td:last-child, .fbm-bets th:last-child { white-space: nowrap; } .fbm-bets { table-layout: auto; width: 100%; } .fbm-bets td:nth-child(2) .dim { display: block; } .fbm-team { font-size: 16px; } .fbm-grp { display: block; min-width: 0; } .fbm-bar-row { grid-template-columns: 52px 62px 1fr 62px; font-size: 12px; } }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 520px) { .fbm-teams { flex-direction: column; gap: 6px; } }

/* SV-105: tennis event/filter chips are 44px tall on a phone (31px missed taps 20px off centre) */
@media (max-width: 600px) { .tn-chip { min-height: 44px; } }

/* SV-108: golf model record, one line per tournament */
.golf-rec-ev { margin-top: 6px; line-height: 1.45; }
.golf-rec-more summary { margin-top: 8px; cursor: pointer; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
/* Simple predictions table (owner 2026-11-16): on a phone the time moves above the matchup so all three columns fit */
.pred-time-m { display: none; }
@media (max-width: 760px) {
  .pred-table.pred-simple { display: table; table-layout: fixed; width: 100%; min-width: 0; white-space: normal; overflow: visible; }
  .pred-simple th:first-child, .pred-simple td.pred-time { display: none; }
  .pred-simple td, .pred-simple th { padding: 10px 8px; font-size: 13px; overflow-wrap: anywhere; }
  .pred-simple .pred-score { font-size: 11.5px; }
  .pred-simple .pred-matchup, .pred-simple .pred-pick, .pred-simple td { white-space: normal; overflow-wrap: anywhere; }
  .pred-simple th:nth-child(2), .pred-simple td:nth-child(2) { width: 38%; }
  .pred-time-m { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-bottom: 3px; }
}

/* SV-115: simple Predictions table on a phone: names wrap inside their own column (the 140px min-width overflowed the
   38% column) and a score never breaks after its dash ("WIN 116.0–" / "111.3") */
.pred-num { white-space: nowrap; }
@media (max-width: 600px) { .pred-simple .pred-matchup { min-width: 0; } .pred-simple .pred-score { overflow-wrap: normal; } }
/* SV-114 */
.pred-rec-note { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* DFS Lab link at the end of the view row (2026-11-17): a link to its own page, so it is not a .view-btn (those switch views in app.js). */
.view-link { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--gold); background: var(--bg-card); border: 1px solid var(--border-bright); padding: 9px 22px; border-radius: 12px; white-space: nowrap; text-decoration: none; line-height: 21px; flex: 0 0 auto; display: inline-block; }
.view-link:hover { color: var(--text); }
.view-nav.booting .view-link { display: none; }
@media (max-width: 720px) { .view-link { padding: 7px 12px; font-size: 11.5px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; scroll-snap-align: center; } }
