/* ===== Dugout Math — premium dark "hot/cold" theme ===== */
:root {
  /* surfaces */
  --bg: #06070b;
  --surface: #0e1016;
  --surface-2: #15181f;
  --elev: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);

  /* text */
  --text: #f4f6fa;
  --muted: #99a2b2;
  --faint: #6b7384;

  /* accents */
  --brand: #7c5cff;       /* violet primary */
  --brand-2: #4f8cff;     /* electric blue */
  --gold: #fbbf24;        /* money / highlights */
  --hot: #ff6a3d;         /* on fire */
  --cold: #42b9ff;        /* ice cold */
  --pos: #34d399;
  --neg: #f87171;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px -14px rgba(0, 0, 0, .7);
  --glow-brand: 0 0 0 1px rgba(124, 92, 255, .45), 0 14px 40px -10px rgba(124, 92, 255, .35);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(124, 92, 255, .18), transparent 60%),
    radial-gradient(800px 520px at -5% 8%, rgba(255, 106, 61, .10), transparent 55%),
    radial-gradient(700px 600px at 50% 120%, rgba(66, 185, 255, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

/* ---- App shell ---- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.sidebar {
  background: linear-gradient(180deg, rgba(20, 22, 30, .92), rgba(8, 9, 13, .92));
  border-right: 1px solid var(--line);
  padding: 1.2rem .85rem 1rem;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: .18rem;
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: .6rem; margin: .1rem .35rem 1.2rem; }
.brand .logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 18px -4px rgba(124, 92, 255, .6);
}
.brand .logo-mark svg { width: 20px; height: 20px; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
.brand-accent {
  background: linear-gradient(90deg, var(--hot), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-label {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700;
  color: var(--faint); padding: .9rem .75rem .35rem;
}
.nav-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .58rem .7rem; border-radius: 11px;
  color: var(--muted); cursor: pointer; font-weight: 500; font-size: .9rem;
  border: 1px solid transparent; user-select: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.nav-item:hover { background: var(--elev); color: var(--text); }
.nav-item.active {
  background: linear-gradient(100deg, rgba(124, 92, 255, .22), rgba(79, 140, 255, .12));
  color: #fff; border-color: rgba(124, 92, 255, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.nav-item .ico { width: 1.25rem; height: 1.25rem; display: grid; place-items: center; flex: 0 0 auto; }
.nav-item .ico svg { width: 18px; height: 18px; opacity: .9; }
.nav-item.active .ico svg { opacity: 1; color: var(--brand); }
.sidebar .spacer { flex: 1; }
.sidebar .foot { color: var(--faint); font-size: .72rem; padding: .6rem .75rem; line-height: 1.5; }
.sidebar .foot code { color: var(--muted); background: var(--elev); padding: .05rem .3rem; border-radius: 5px; }

.main { min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.6rem; border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 13, .55); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.topbar h2 { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.badge {
  background: var(--elev); border: 1px solid var(--line); color: var(--muted);
  padding: .35rem .75rem; border-radius: 999px; font-size: .76rem; font-weight: 500;
}
.content { padding: 1.6rem; max-width: 1380px; }

.view { display: none; }
.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
h3.section { margin: 1.7rem 0 .7rem; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); font-weight: 700; }

/* ===== Bento grid (Overview) ===== */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem; grid-auto-flow: dense; align-items: stretch;
}
.tile {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tile-hero    { grid-column: span 2; grid-row: span 2; }
.tile-stat    { grid-column: span 1; }
.tile-scores  { grid-column: span 2; }
.tile-leaders { grid-column: span 2; }
.tile-chart   { grid-column: span 2; }
.tile-explore { grid-column: span 2; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.tile-title { margin: 0; font-family: var(--display); font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }

/* hero tile — hottest player */
.tile-hero {
  display: flex; flex-direction: column;
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(255, 106, 61, .22), transparent 65%),
    radial-gradient(360px 260px at 0% 100%, rgba(124, 92, 255, .16), transparent 60%),
    var(--surface);
  border-color: rgba(255, 106, 61, .22);
  cursor: pointer;
}
.tile-hero:hover { transform: translateY(-3px); border-color: rgba(255, 106, 61, .5);
  box-shadow: 0 0 0 1px rgba(255, 106, 61, .3), 0 18px 50px -12px rgba(255, 106, 61, .35); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hot); }
.hero-eyebrow svg { width: 15px; height: 15px; }
.hero-body { display: flex; gap: 1.3rem; align-items: center; margin: 1.1rem 0 auto; }
.hero-body .headshot { width: 104px; height: 104px; border: 2px solid rgba(255, 106, 61, .5);
  box-shadow: 0 8px 24px -8px rgba(255, 106, 61, .5); }
.hero-score { font-family: var(--display); font-size: 4.2rem; font-weight: 700; line-height: .9;
  background: linear-gradient(135deg, var(--gold), var(--hot)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.hero-score-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.hero-name { font-family: var(--display); font-size: 1.65rem; font-weight: 600; letter-spacing: -.01em;
  display: flex; align-items: center; gap: .55rem; margin-top: .15rem; }
.hero-name .logo { width: 26px; height: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; align-items: center; margin-top: 1.1rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line); }
.hero-stat { display: flex; flex-direction: column; gap: .15rem; }
.hero-stat .v { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.hero-stat .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; }
.hero-cta { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--text); display: inline-flex; gap: .3rem; align-items: center; }

/* stat tiles */
.tile-stat { display: flex; flex-direction: column; justify-content: space-between; min-height: 122px; }
.tile-stat .stat-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--elev); border: 1px solid var(--line); color: var(--brand-2); margin-bottom: auto; }
.tile-stat .stat-ico svg { width: 18px; height: 18px; }
.tile-stat .value { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; margin-top: .9rem; }
.tile-stat .label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; margin-top: .35rem; font-weight: 600; }

/* ---- KPI cards (used across other views) ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.kpi {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.kpi .value { font-family: var(--display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.kpi .label { color: var(--muted); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; margin-top: .35rem; font-weight: 600; }
.kpi.small .value { font-size: 1.1rem; }
.kpi.clickable { cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.kpi.clickable:hover { border-color: var(--brand); transform: translateY(-2px); }

/* ---- Latest-games scoreboard ---- */
.scoreboard { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.score-card {
  flex: 0 0 auto; min-width: 166px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem;
  cursor: pointer; transition: border-color .15s ease, transform .15s ease;
}
.score-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.score-card .ln { display: flex; align-items: center; gap: .5rem; padding: .18rem 0; }
.score-card .ln .nm { font-weight: 600; font-size: .9rem; }
.score-card .ln .sc { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.score-card .ln.win .nm, .score-card .ln.win .sc { color: var(--gold); }
.score-card .st { color: var(--faint); font-size: .66rem; margin-top: .4rem;
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* ---- League-leader feature cards ---- */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.leader-card {
  display: grid; grid-template-columns: 58px 1fr; gap: .85rem; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem; position: relative; overflow: hidden; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.leader-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.leader-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--hot)); }
.leader-card .headshot { width: 58px; height: 58px; }
.leader-card .cat { color: var(--muted); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .07em; font-weight: 700; }
.leader-card .big { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1; margin: .2rem 0 .3rem; }
.leader-card .who { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; }
.leader-card .who .sub { color: var(--muted); font-weight: 500; }
.leader-card .cat .qual {
  margin-left: .4rem; font-size: .64rem; font-weight: 600; color: var(--muted);
  background: var(--elev); border: 1px solid var(--line);
  padding: .03rem .35rem; border-radius: 999px; vertical-align: middle;
}

/* ---- quick-link cards ---- */
.quicklinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; }
.qlink { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.qlink:hover { border-color: var(--brand); transform: translateY(-2px); }
.qlink .t { font-family: var(--display); font-weight: 600; }
.qlink .d { color: var(--muted); font-size: .82rem; margin-top: .3rem; line-height: 1.45; }

/* ---- Controls ---- */
.controls { display: flex; gap: .9rem; flex-wrap: wrap; align-items: end; margin: .25rem 0 1.2rem; }
.controls label { display: flex; flex-direction: column; gap: .35rem;
  font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
select, input, button {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: .5rem .65rem; border-radius: 9px; font-size: .9rem; font-family: inherit;
  transition: border-color .15s ease;
}
select:focus, input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }
button { cursor: pointer; font-weight: 600; }
button:hover { border-color: var(--line-strong); }
button.primary { background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
button.primary:hover { filter: brightness(1.08); border-color: transparent; }

/* segmented toggle */
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; padding: 2px; background: var(--surface-2); }
.segmented button { border: none; border-radius: 999px; background: transparent;
  padding: .42rem 1rem; color: var(--muted); font-size: .82rem; }
.segmented button:hover { color: var(--text); border-color: transparent; }
.segmented button.active { background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; }

/* chips */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: .25rem 0 1rem; }
.chip { background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: .3rem .75rem; font-size: .8rem; display: inline-flex; gap: .4rem; align-items: center; }
.chip .x { cursor: pointer; color: var(--muted); font-weight: 800; }
.chip .x:hover { color: var(--hot); }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--surface); margin-top: .5rem; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { padding: .58rem .85rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { background: rgba(255, 255, 255, .025); position: sticky; top: 0; color: var(--muted);
  font-weight: 600; user-select: none; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text); }
th.sorted { color: var(--brand-2); }
th.sorted::after { content: " ▾"; }
th.sorted.asc::after { content: " ▴"; }
td.text-col, th.text-col { text-align: left; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: rgba(124, 92, 255, .07); }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .012); }
.rank { color: var(--faint); font-weight: 700; }
tr.top1 td { background: linear-gradient(90deg, rgba(251, 191, 36, .12), transparent 70%); }

/* ---- Team logos / badges / headshots ---- */
.logo { width: 22px; height: 22px; vertical-align: middle; object-fit: contain; }
.logo.lg { width: 46px; height: 46px; }
.badge-team {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; font-size: .6rem; font-weight: 800; color: #fff; }
.badge-team.lg { width: 46px; height: 46px; border-radius: 10px; font-size: .9rem; }
.team-cell { display: inline-flex; align-items: center; gap: .5rem; }
.headshot { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line);
  object-fit: cover; background: var(--surface-2); }

/* ---- Charts ---- */
.chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.chart-wrap h4 { margin: 0 0 .7rem; font-family: var(--display); font-size: .88rem; color: var(--text); font-weight: 600; }
.chart-wrap canvas { max-height: 300px; }
.tile-chart canvas { max-height: 230px; }
.chart-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; }
#ht-scatter-wrap { margin-top: 1rem; }
#ht-scatter-wrap canvas { max-height: 440px; }
.quad-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; font-size: .8rem; color: var(--muted); }
.quad-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: middle; }

/* Clickable player name */
.player-link { cursor: pointer; border-bottom: 1px dotted transparent; transition: color .12s ease; }
.player-link:hover { color: var(--brand-2); border-bottom-color: var(--brand-2); }

/* ---- Player profile page ---- */
.player-header { display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.player-header .headshot { width: 96px; height: 96px; border-radius: 50%; background: var(--surface-2); }
.pl-name { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.55rem; font-weight: 600; }
.pl-name .logo { width: 28px; height: 28px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .55rem 0; }
.pl-chip { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  padding: .22rem .65rem; border-radius: 999px; font-size: .76rem; }
.pl-note { color: var(--gold); font-size: .8rem; margin-bottom: .4rem; }
.pl-pills { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: .3rem; }
.pl-pill { display: flex; flex-direction: column; gap: .25rem; }
.pl-pill-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.net-wrap { position: relative; }
.net-tip { position: absolute; pointer-events: none; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: .35rem .55rem; font-size: .76rem; color: var(--text); display: none; z-index: 5; }
#pl-arsenal, #pl-spray { max-height: 360px; }
#pl-sequence, #pl-zone-p, #pl-zone-h { width: 100%; max-height: 340px; }
.lb-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* ---- Games master-detail ---- */
.games-layout { display: grid; grid-template-columns: 360px 1fr; gap: 1.2rem; align-items: start; }
.game-list { display: flex; flex-direction: column; gap: .9rem; max-height: 78vh; overflow-y: auto; padding-right: .25rem; }
.date-group .date-label { font-size: .74rem; color: var(--brand-2); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin: .5rem 0 .4rem; }
.game-card {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: .65rem .8rem; cursor: pointer; transition: border-color .12s ease, transform .12s ease; }
.game-card:hover { border-color: var(--brand); transform: translateX(2px); }
.game-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.game-card .team-row { display: flex; align-items: center; gap: .5rem; }
.game-card .team-row .nm { font-weight: 600; font-size: .9rem; }
.game-card .score { font-family: var(--display); font-weight: 700; font-size: 1rem; text-align: right; }
.game-card .winner { color: var(--gold); }
.game-card .status { grid-column: 1 / -1; color: var(--faint); font-size: .72rem; }

.detail-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow); }
.matchup-header { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: .5rem 0 1rem; }
.matchup-header .side { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.matchup-header .side .nm { font-weight: 700; }
.matchup-header .side .sc { font-family: var(--display); font-size: 2rem; font-weight: 700; }
.matchup-header .vs { color: var(--faint); font-weight: 700; }
details.plays { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .2rem 1rem; }
details.plays summary { cursor: pointer; color: var(--brand-2); font-weight: 600; padding: .55rem 0; }

/* ---- Rankings: slider, score cell, methodology ---- */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; width: 100%;
  background: linear-gradient(90deg, var(--cold), var(--brand), var(--hot));
  border-radius: 999px; border: none; padding: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); cursor: pointer; }
#rk-trust-label { color: var(--brand-2); font-weight: 700; }
.score-cell { display: inline-flex; align-items: center; gap: .5rem; justify-content: flex-end; }
.score-num { font-family: var(--display); font-weight: 700; min-width: 2.6rem; text-align: right; }
.score-bar { width: 60px; height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.score-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.method-body { color: var(--muted); font-size: .85rem; line-height: 1.6; padding: .3rem .2rem .5rem; }
.method-body code { color: var(--text); background: var(--surface-2); padding: .05rem .35rem; border-radius: 5px; }
.method-body b { color: var(--text); }

/* ---- numeric / trend cells ---- */
td.mono, th.mono { font-variant-numeric: tabular-nums; }
td.pos { color: var(--pos); }
td.neg { color: var(--neg); }

/* ---- verdict / status pills + odds input ---- */
.verdict-pill {
  display: inline-block; padding: .12rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.vp-sell { background: rgba(248, 113, 113, .15); color: #f0a0a0; border-color: rgba(248, 113, 113, .4); }
.vp-buy  { background: rgba(52, 211, 153, .15); color: #8fdca6; border-color: rgba(52, 211, 153, .4); }
.vp-fair { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.odds-input {
  width: 5rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 7px; padding: .25rem .4rem; font: inherit; font-variant-numeric: tabular-nums; }
.odds-input:focus { outline: none; border-color: var(--gold); }
.status-pill {
  display: inline-block; padding: .12rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.st-scorching { background: rgba(255, 106, 61, .18); color: #ff9d63; border-color: rgba(255, 106, 61, .5); }
.st-hot       { background: rgba(251, 191, 36, .16); color: var(--gold); border-color: rgba(251, 191, 36, .45); }
.st-warm      { background: rgba(52, 211, 153, .16); color: var(--pos); border-color: rgba(52, 211, 153, .4); }
.st-steady    { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.st-cooling   { background: rgba(66, 185, 255, .12); color: #79c2ec; border-color: rgba(66, 185, 255, .35); }
.st-cold      { background: rgba(66, 185, 255, .18); color: #9ed4f2; border-color: rgba(66, 185, 255, .5); }

/* ---- filter range inputs ---- */
.rng { display: inline-flex; gap: .3rem; }
.rng input { width: 4.3rem; }
.controls select { min-width: 8rem; }

/* ---- misc states ---- */
.hint { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.empty { color: var(--muted); padding: 1.4rem; text-align: center; }
.loading { color: var(--muted); padding: 1.4rem; text-align: center; }
.loading::after { content: ""; width: 14px; height: 14px; margin-left: .5rem; display: inline-block;
  vertical-align: middle; border: 2px solid var(--line-strong); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pager { display: flex; gap: .6rem; align-items: center; margin-top: .8rem; }
.search { min-width: 220px; }

/* ---- responsive ---- */
@media (max-width: 1180px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-hero { grid-column: span 2; grid-row: span 1; }
  .tile-stat { grid-column: span 1; }
  .tile-scores, .tile-leaders, .tile-chart, .tile-explore { grid-column: span 2; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap;
    align-items: center; gap: .3rem; }
  .sidebar .brand { width: 100%; margin-bottom: .4rem; }
  .sidebar .nav-label { width: 100%; padding: .4rem .4rem .1rem; }
  .sidebar .spacer, .sidebar .foot { display: none; }
  .nav-item { padding: .45rem .7rem; }
  .games-layout { grid-template-columns: 1fr; }
  .game-list { max-height: none; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-hero, .tile-stat, .tile-scores, .tile-leaders, .tile-chart, .tile-explore { grid-column: span 1; }
  .hero-score { font-size: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
