:root {
  

  --spartan:  #9BFF17;
  --void:     #000000;

  
  --bg:       #0E0F0E;                 
  --bg-2:     #131312;                 
  --bg-3:     #111211;                 
  --surface:  #1E241A;                 

  
  --line:      rgba(182 199 161 / 0.24);  
  --line-soft: rgb(16 17 16);  

  
  --text:     #E9F1E1;                 
  --text-dim: rgb(233 241 225 / .55);  
  --muted:    #7C8A71;                 

  
  --accent:    #84CC16;                
  --accent-2:  #5C9E0A;                
  --on-accent: #0B0D0A;                

  
  --pos:        #84CC16;               
  --pos-deep:   #5C9E0A;               
  --neg:        #FF2E4D;               
  --neg-soft:   #FF7A8C;               
  --neg-dark:   #5A1522;               
  --warn:       #FFC400;               
  --warn-lt:    #FFE066;               
  --info:       #00D9FF;               
  --info-soft:  #7FE9FF;               
  --live:       #FF5C35;               
  --cat-purple: #B98CFF;
  --cat-pink:   #FF5C9E;               

  
  --row-hover:  rgba(117 117 117 / 0.17);

  
  --accent-rgb:      132 204 22;
  --pos-rgb:         132 204 22;
  --text-rgb:        233 241 225;
  --neg-rgb:         255 46 77;
  --warn-rgb:        255 196 0;
  --info-rgb:        0 217 255;
  --live-rgb:        255 92 53;
  --cat-purple-rgb:  185 140 255;
  --cat-pink-rgb:    255 92 158;
}

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

body {
  font-family: "Motiva Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
}

.app { display: flex; height: 100vh; overflow: hidden; }

.content { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: 84px; transition: margin-left .28s cubic-bezier(.4,0,.2,1); }
.sidebar:not(.collapsed) ~ .content { margin-left: 248px; }

.sidebar {
  position: fixed; left: 12px; top: 12px; bottom: 12px;
  width: 220px;
  background: rgb(11 13 10 / 0.9);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgb(var(--accent-rgb) / 0.132);
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,.65), inset 0 1px 0 rgb(var(--text-rgb) / 0.04);
  display: flex; flex-direction: column;
  padding: 20px 0 16px;
  z-index: 100; overflow: hidden;
  transition: width .28s cubic-bezier(.4,0,.2,1);
}

.sidebar.collapsed { width: 60px; }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-item em { display: none; }

.sidebar.collapsed .nav-item {
  font-size: 0; justify-content: center; gap: 0;
  width: 40px; height: 40px; padding: 0; margin: 0 auto; border-radius: 11px;
}
.sidebar.collapsed .nav-item .ico,
.sidebar.collapsed .nav-item .ico-svg { width: 19px; height: 19px; }
.sidebar.collapsed .brand { justify-content: center; padding: 2px 0 16px; gap: 0; }

.sidebar.collapsed .nav-top {
  padding: 0 0 10px; margin: 0 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.sidebar.collapsed .nav { padding: 0; gap: 3px; align-items: center; }
.sidebar.collapsed .nav-loading { display: none; }
.sidebar.collapsed .sidebar-foot { padding: 10px 0 2px; margin: 4px 12px 0; }

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 18px 20px; font-size: 13.5px; letter-spacing: 2px;
  color: var(--text); font-weight: 300; cursor: pointer; user-select: none;
}
.brand-text { white-space: nowrap; transition: opacity .2s, max-width .28s; max-width: 200px; }
.brand strong { color: var(--accent); font-weight: 600; }
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 22px rgb(var(--text-rgb) / 0.25);
}

.brand-dot.loading { animation: brand-pulse 1s ease-in-out infinite; }
@keyframes brand-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .35; transform: scale(.7); }
}

.nav-label {
  padding: 0 18px 5px; font-size: 8.5px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-dim); white-space: nowrap; transition: opacity .2s;
}
.nav {
  display: flex; flex-direction: column; gap: 1px; padding: 0 8px;
  overflow-y: auto; flex: 1;
}
.nav::-webkit-scrollbar { width: 0; }
.nav-loading { padding: 12px 14px; font-size: 12px; color: var(--text-dim); }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; color: var(--text-dim);
  text-align: left; padding: 10px 12px; border-radius: 10px;
  font-size: 13px; cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap; overflow: hidden;
}
.nav-top { padding: 0 8px 10px; margin-bottom: 2px; }
.nav-item .ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; flex-shrink: 0; }
.ico-svg { width: 16px; height: 16px; display: block; }
.nav-item:hover:not(.disabled) { background: rgb(var(--accent-rgb) / 0.125); color: var(--text); }
.nav-item.active { background: rgb(var(--accent-rgb) / 0.182); color: var(--accent); }
.nav-item.disabled { opacity: .28; cursor: default; }
.nav-item em {
  margin-left: auto; font-size: 9px; font-style: normal; letter-spacing: .5px;
  background: rgb(var(--accent-rgb) / 0.165); color: var(--text-dim); padding: 2px 5px; border-radius: 4px;
  text-transform: uppercase; min-width: 18px; text-align: center; transition: opacity .2s;
}
.nav-item.active em { background: rgb(var(--text-rgb) / 0.12); color: var(--accent); }

.sidebar-foot {
  padding: 8px; margin-top: 6px;
  border-top: 1px solid var(--line-soft);
}
.nav-logout { width: 100%; }
.nav-logout:hover:not(.disabled) {
  background: rgb(var(--neg-rgb) / 0.12); color: var(--neg);
}

.chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 0 28px 14px; margin: 0 16px;
}
.chip {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-dim);
  padding: 6px 13px; border-radius: 14px; font-size: 12px; cursor: pointer;
  transition: all .12s; white-space: nowrap;
}
.chip:hover { background: var(--bg-3); color: var(--text); }
.chip.active {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700;
}

.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px 16px;
}
.topbar h1 { font-size: 22px; font-weight: 500; color: var(--text); }

.subtitle { display: none; font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.refresh {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--on-accent); border: none; padding: 9px 18px; border-radius: 4px;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: filter .12s;
}
.refresh:hover { filter: brightness(1.1); }
.refresh:active { transform: translateY(1px); }
.refresh.loading { opacity: .6; pointer-events: none; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.popout {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  background: var(--bg-2); color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 4px;
  cursor: pointer; transition: color .12s, border-color .12s, background .12s;
}
.popout:hover { color: var(--text); border-color: var(--accent); background: rgb(var(--accent-rgb) / 0.125); }
.popout:active { transform: translateY(1px); }
.popout .ico-svg { width: 17px; height: 17px; }

.table-head, .row {
  display: grid;
  grid-template-columns: 84px 1fr 120px 120px 120px 120px 70px;
  align-items: center;
}
.table-head {
  padding: 10px 28px; margin: 0 16px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--text-dim); border-bottom: 1px solid var(--line);
}
.col-odd, .col-books { text-align: center; }

.rows { flex: 1; overflow-y: auto; padding: 6px 16px 20px; }
.row {
  padding: 13px 28px; margin: 2px 0; border-radius: 6px;
  background: var(--bg-2); border: 1px solid transparent;
  transition: background .1s, border-color .1s;
}
.row:hover { background: var(--row-hover); border-color: var(--line); }

.col-time { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.col-time .day { color: var(--accent); font-size: 11px; }
.col-match { font-size: 14px; color: var(--text); }
.col-match .league {
  display: block; font-size: 10.5px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px;
}
.col-match .teams { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.col-match .vs { color: var(--text-dim); margin: 0 4px; font-size: 12px; }
.team { display: inline-flex; align-items: center; gap: 7px; }
.team-logo {
  width: 20px; height: 20px; object-fit: contain;
  flex-shrink: 0; border-radius: 3px;
}
.team-logo.placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--line);
  font-size: 8.5px; font-weight: 700; color: var(--text-dim);
  letter-spacing: .3px;
}
.team-name { font-size: 14px; }

.odd {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 5px;
  padding: 6px 0; min-width: 92px;
}
.odd .val { font-size: 15px; font-weight: 700; color: var(--text); }
.odd .book { font-size: 9.5px; color: var(--text-dim); margin-top: 2px; }
.odd.empty-odd { color: var(--text-dim); }
.odd.empty-odd .val { color: var(--text-dim); font-weight: 400; }

.col-books { text-align: center; font-size: 13px; color: var(--pos); font-weight: 700; }

.col-poly { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 0 4px; }
.poly-bar { width: 100%; height: 6px; border-radius: 3px; background: var(--bg-3); display: flex; overflow: hidden; }
.poly-fill { height: 100%; }
.poly-h { background: var(--pos); }
.poly-d { background: var(--muted); }
.poly-a { background: var(--neg); }
.poly-labels { display: flex; justify-content: space-between; align-items: center; }
.poly-lh, .poly-la { font-size: 10px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.poly-team { color: rgb(var(--text-rgb) / 0.4); font-weight: 500; }
.poly-pct-h { color: var(--pos); }
.poly-pct-a { color: var(--neg); }
.poly-ld { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.poly-na { font-size: 11px; color: var(--text-dim); text-align: center; }

.score-live, .score-final {
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px; font-size: 12px;
}
.score-live { color: var(--live); }
.score-final { color: var(--text-dim); }
.sc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.sc-num { font-weight: 700; font-size: 13px; color: var(--text); }
.score-final .sc-num { color: var(--text-dim); }
.sc-clock { font-size: 11px; color: var(--neg-soft); }
.sc-inning { font-size: 11px; font-weight: 700; color: var(--live); font-variant-numeric: tabular-nums; }
.sc-ft { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; }

.opps-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 4px 12px 24px;
}
@media (max-width: 940px) { .opps-grid { grid-template-columns: 1fr; } }

.opp-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-top: 2px solid var(--line); border-radius: 10px;
  padding: 13px 15px; display: flex; flex-direction: column; gap: 10px;
}
.opp-card.is-arb { border-top-color: var(--pos); }
.opp-card.is-ev { border-top-color: var(--accent); }

.opp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.opp-tags { display: flex; gap: 5px; }
.opp-tag { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: .3px; }
.opp-tag.arb { background: rgb(var(--pos-rgb) / 0.14); color: var(--pos); }
.opp-tag.ev { background: rgb(var(--info-rgb) / 0.14); color: var(--accent); }
.opp-when { font-size: 11px; color: var(--text-dim); white-space: nowrap; }

.opp-match { display: flex; align-items: center; gap: 7px; color: var(--text); }
.opp-match .team-logo { width: 18px; height: 18px; }
.opp-match .team-name { font-size: 13px; }
.opp-match .vs { font-size: 11px; margin: 0 2px; }

.viz {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg); border-radius: 8px; padding: 10px 12px;
}
.viz-row { display: flex; align-items: center; gap: 9px; }
.viz-lbl { font-size: 10.5px; color: var(--text-dim); width: 50px; flex-shrink: 0; }
.viz-track { flex: 1; height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.viz-fill { height: 100%; border-radius: 4px; }
.viz-fill.ev { background: var(--accent); }
.viz-fill.fair { background: var(--text-dim); }
.viz-num { font-size: 12px; font-weight: 700; color: var(--text); width: 34px; text-align: right; }

.stake-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); }
.stake-bar { display: flex; height: 16px; border-radius: 4px; overflow: hidden; gap: 2px; }
.stake-bar .seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--on-accent); min-width: 0;
}
.seg.s0 { background: var(--pos); }
.seg.s1 { background: var(--accent); }
.seg.s2 { background: var(--warn); }

.seg.minor { background: var(--neg); color: var(--text); }
.legs { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.leg { font-size: 11.5px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.leg .dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.dot.s0 { background: var(--pos); }
.dot.s1 { background: var(--accent); }
.dot.s2 { background: var(--warn); }
.dot.minor { background: var(--neg); }
.leg b { color: var(--text); }
.leg .muted { color: var(--text-dim); }

.opp-foot {
  display: flex; align-items: center; gap: 7px; margin-top: auto;
  font-size: 12.5px; color: var(--text);
}
.opp-foot .ico-svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.opp-foot b { color: var(--text); }

.empty {
  text-align: center; color: var(--text-dim); padding: 60px 20px; font-size: 14px;
}
.group-divider {
  display: flex; align-items: center; gap: 9px;
  padding: 16px 28px 8px; margin: 8px 12px 0;
  font-size: 14px; font-weight: 500; color: var(--text);
  border-top: 1px solid var(--line);
}
.group-divider:first-child { border-top: none; margin-top: 0; }
.group-divider .ico-svg { width: 16px; height: 16px; color: var(--accent); }
.league-divider {
  padding: 10px 28px 5px; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-dim);
}

.inj-cross {
  font-size: 11px; font-weight: 700; cursor: pointer;
  margin-left: 5px; line-height: 1;
  transition: transform .1s;
  display: inline-block;
}
.inj-cross:hover { transform: scale(1.3); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.65); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
}
.modal-box {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; width: 480px; max-width: 92vw;
  max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px; border-bottom: 1px solid var(--line);
}
.modal-title { font-size: 14px; font-weight: 500; color: var(--text); }
.modal-close {
  background: none; border: none; color: var(--text-dim);
  font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body { overflow-y: auto; padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.inj-row { display: flex; align-items: flex-start; gap: 12px; }
.inj-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.inj-info { display: flex; flex-direction: column; gap: 3px; }
.inj-player { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inj-name { font-size: 14px; font-weight: 500; color: var(--text); }
.inj-pos { font-size: 11px; background: var(--bg-3); color: var(--text-dim); padding: 1px 6px; border-radius: 3px; }
.inj-status { font-size: 12px; font-weight: 700; }
.inj-type { font-size: 12px; color: var(--text-dim); }
.inj-return { font-size: 11px; color: var(--text-dim); font-style: italic; }
.inj-empty { font-size: 13px; color: var(--text-dim); text-align: center; padding: 20px 0; }

.rows::-webkit-scrollbar { width: 10px; }
.rows::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
.rows::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

.rt-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 8px;
  background: var(--text-dim);
}
.rt-dot.rt-live { background: var(--pos); box-shadow: 0 0 6px rgb(155 255 23 / .6); }
.rt-dot.rt-connecting { background: var(--warn); }
.rt-dot.rt-error { background: var(--neg); }

@keyframes odds-flash {
  0%, 100% { opacity: 1; }
  40%       { opacity: 0.2; }
}
.odds-flash { animation: odds-flash .7s ease; }

.news-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px; padding: 4px 12px 24px;
}
.news-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.news-card:hover { border-color: rgb(var(--text-rgb) / 0.35); transform: translateY(-2px); }
.news-thumb { width: 100%; height: 138px; overflow: hidden; background: var(--bg-3); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.news-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.news-tag {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  letter-spacing: .3px; text-transform: uppercase;
}
.news-tag.sports { background: rgb(var(--info-rgb) / 0.14); color: var(--accent); }
.news-tag.racing { background: rgb(var(--pos-rgb) / 0.16); color: var(--pos); }
.news-when { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.news-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }
.news-summary {
  font-size: 12px; color: var(--text-dim); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-foot { margin-top: auto; padding-top: 4px; }
.news-source { font-size: 11px; color: var(--text-dim); font-weight: 600; }

.mkt-wrap { padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 4px; }
.mkt-section-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim); padding: 14px 0 8px;
}
.mkt-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 10px;
}
.mkt-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; display: flex; flex-direction: column; gap: 6px;
}
.mkt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mkt-name { font-size: 13px; font-weight: 600; color: var(--text); }
.mkt-sym { font-size: 10.5px; color: var(--text-dim); font-weight: 600; letter-spacing: .3px; }
.mkt-price { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.1; letter-spacing: -.5px; }
.mkt-chg { font-size: 12px; font-weight: 700; display: flex; align-items: baseline; gap: 6px; }
.mkt-chg.up { color: var(--pos); }
.mkt-chg.down { color: var(--neg); }
.mkt-chg-abs { font-size: 11px; font-weight: 500; opacity: .75; }
.mkt-closed {
  font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  vertical-align: middle; margin-left: 8px; padding: 2px 6px; border-radius: 4px;
  background: rgb(var(--text-rgb) / 0.1); color: var(--text-dim);
}
.mkt-range { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.mkt-range-head { font-size: 9px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); }
.mkt-range-track { position: relative; height: 4px; background: var(--bg-3); border-radius: 3px; }
.mkt-range-dot {
  position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgb(var(--text-rgb) / 0.5);
}
.mkt-range-lbls { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-dim); }
.mkt-cur { font-size: 11px; font-weight: 500; color: var(--text-dim); }
.mkt-spark { width: 100%; height: 30px; display: block; margin: 2px 0; }
.mkt-foot {
  display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 6px;
  border-top: 1px solid var(--line); font-size: 10.5px; color: var(--text-dim);
}
.mkt-foot b { color: var(--text); font-weight: 600; }
.mkt-card { cursor: pointer; transition: border-color .15s, transform .15s; }
.mkt-card:hover { border-color: rgb(var(--text-rgb) / 0.35); transform: translateY(-2px); }

.mkt-modal-box { width: 640px; max-width: 92vw; }
.mkt-detail-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mkt-detail-price { font-size: 30px; font-weight: 700; color: var(--text); letter-spacing: -.5px; }
.mkt-detail-top .mkt-chg { font-size: 15px; }
.mkt-detail-chart { width: 100%; height: 160px; display: block; background: var(--bg); border-radius: 8px; }
.mkt-detail-nochart { padding: 40px; text-align: center; color: var(--text-dim); background: var(--bg); border-radius: 8px; font-size: 13px; }
.mkt-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
}
.mkt-stat { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: var(--bg-2); }
.mkt-stat-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); }
.mkt-stat-val { font-size: 14px; font-weight: 600; color: var(--text); }

.cr-pct.up,  .cr-fund.up  { color: var(--pos); }
.cr-pct.down,.cr-fund.down{ color: var(--neg); }
.cr-pct, .cr-fund { font-weight: 600; white-space: nowrap; }

.cr-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin-bottom: 14px;
}
.cr-tile { background: var(--bg-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.cr-tile-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); }
.cr-tile-val { font-size: 18px; font-weight: 700; color: var(--text); }
.cr-tile-sub { font-size: 11px; color: var(--text-dim); }
.cr-mov { display: flex; align-items: baseline; gap: 8px; }
.cr-mov b { color: var(--text); }
.cr-tile-fng { grid-column: span 2; }   

.cr-fng-row { display: flex; align-items: baseline; gap: 8px; }
.cr-fng-num { font-size: 26px; font-weight: 800; line-height: 1; }
.cr-fng-class { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.cr-fng-track {
  position: relative; height: 7px; border-radius: 4px; margin-top: 4px;
  background: linear-gradient(90deg, var(--neg) 0%, var(--warn) 28%, var(--warn-lt) 50%, var(--pos) 72%, var(--pos-deep) 100%);
}
.cr-fng-mark {
  position: absolute; top: 50%; width: 3px; height: 15px; background: var(--text);
  border-radius: 2px; transform: translate(-50%, -50%); box-shadow: 0 0 5px rgba(0,0,0,.7);
}
.cr-fng-scale { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-dim); margin-top: 2px; }

.cr-dom-track { height: 4px; border-radius: 2px; background: rgb(var(--text-rgb) / 0.08); overflow: hidden; margin-top: 2px; }
.cr-dom-track span { display: block; height: 100%; border-radius: 2px; }

.cr-sortbar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cr-sortlbl { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }

.cr-table-wrap { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cr-table thead th {
  text-align: right; padding: 9px 12px; font-size: 10px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-dim); background: var(--bg-3); border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
.cr-table thead th.cr-th-coin { text-align: left; }
.cr-table tbody td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.cr-row { cursor: pointer; transition: background .12s; }
.cr-row:hover { background: var(--row-hover); }
.cr-table tbody td.cr-rank { text-align: left; color: var(--text-dim); font-size: 12px; }
.cr-table tbody td.cr-coin { text-align: left; }
.coin-logo {
  width: 20px; height: 20px; object-fit: contain;
  border-radius: 50%; flex-shrink: 0;
  vertical-align: middle; margin-right: 8px;
}
.coin-logo.placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--line);
  font-size: 9px; font-weight: 700; color: var(--text-dim);
}
.cr-coin b { display: inline-block; min-width: 52px; color: var(--text); font-size: 13px; vertical-align: middle; }
.cr-coin-name { color: var(--text-dim); font-size: 11px; vertical-align: middle; }
.cr-num { font-variant-numeric: tabular-nums; }
.cr-price { color: var(--text); font-weight: 600; }
.cr-ath-chg { color: var(--neg); font-size: 11px; }
.cr-spark-cell { width: 110px; padding: 4px 10px !important; }
.cr-spark-cell .mkt-spark { width: 100px; height: 26px; }
.cr-detail-note { font-size: 10px; color: var(--text-dim); text-align: center; margin: -4px 0 8px; }
.cr-detail-win { font-size: 10px; color: var(--text-dim); font-weight: 500; margin-left: 4px; }

.cr-chart { width: 100%; height: 220px; display: block; margin: 6px 0 12px; cursor: crosshair; }
.cr-chart .cr-grid { stroke: var(--line); stroke-width: 1; opacity: .4; }
.cr-chart .cr-axis-y { fill: var(--text-dim); font-size: 9px; text-anchor: start; font-variant-numeric: tabular-nums; }
.cr-chart .cr-axis-x { fill: var(--text-dim); font-size: 9px; }
.cr-chart .cr-hi { fill: var(--pos-deep); }
.cr-chart .cr-lo { fill: var(--neg); }
.cr-chart .cr-cross, .cr-chart .cr-tip { pointer-events: none; }
.cr-chart .cr-cross-x { stroke: rgb(var(--text-rgb) / 0.45); stroke-width: 1; stroke-dasharray: 3 3; }
.cr-chart .cr-cross-dot { stroke: var(--text); stroke-width: 1.5; }
.cr-chart .cr-tip-bg { fill: var(--void); opacity: .85; stroke: var(--line); }
.cr-chart .cr-tip-price { fill: var(--text); font-size: 11px; font-weight: 700; text-anchor: middle; font-variant-numeric: tabular-nums; }

.row-clickable { cursor: pointer; }

.row-popout {
  background: transparent; border: none; color: var(--text-dim);
  font-size: 14px; line-height: 1; cursor: pointer; padding: 2px 6px;
  margin-right: 2px; border-radius: 4px; opacity: 0;
  transition: opacity .12s, background .12s, color .12s;
}
.row:hover .row-popout { opacity: .7; }
.row-popout:hover { opacity: 1; background: rgb(var(--accent-rgb) / 0.14); color: var(--accent); }
.row-chev { display: inline-block; margin-right: 6px; color: var(--text-dim); transition: transform .15s; transform: rotate(0deg); }
.row.expanded { background: var(--row-hover); }
.row.expanded .row-chev { transform: rotate(90deg); color: var(--text); }

.row-detail {
  padding: 14px 18px 18px 18px; background: var(--bg-2);
  border-left: 2px solid var(--accent); border-bottom: 1px solid var(--line);
  animation: bkSlide .16s ease;
}
@keyframes bkSlide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.bk-block-title { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); margin: 0 0 8px; }

.bk-detail-cols {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.bk-col { min-width: 0; padding: 0 20px; }
.bk-col:first-child { padding-left: 0; }
.bk-col:last-child  { padding-right: 0; }
.bk-col + .bk-col   { border-left: 1px solid var(--line); }
.bk-col-info  { flex: 0 1 540px; }
.bk-col-inj   { flex: 0 1 320px; }
.bk-col-lines { flex: 1 1 500px; }

.bk-col .bk-standings-wrap { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.bk-col .bk-injuries { margin-bottom: 0; }
.bk-col-lines .bk-lines-section { border-bottom: none; margin-bottom: 0; padding: 0; }

.bk-col-lines .trader-layout { flex-direction: column; }
.bk-col-lines .trader-table-wrap { width: 100%; }
.bk-col-lines .trader-right { width: 100%; }

.bk-col-lines .trader-table { width: 100%; table-layout: auto; }
.bk-col-lines .trader-table .th-book,
.bk-col-lines .trader-table .td-book { width: 100%; }
.bk-col-lines .trader-table th:not(.th-book),
.bk-col-lines .trader-table td:not(.td-book) { white-space: nowrap; }

.bk-injuries { margin-bottom: 16px; }
.bk-inj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }

.bk-col-inj .bk-inj-grid { grid-template-columns: 1fr; gap: 14px; }
.bk-inj-team { min-width: 0; }
.bk-inj-head { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

.bk-standings { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bk-standings-wrap { }
.std-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.std-row:last-child { border-bottom: none; }
.std-league { font-size: 10px; font-weight: 700; color: var(--accent); background: rgb(var(--text-rgb) / 0.06); border-radius: 3px; padding: 1px 5px; flex-shrink: 0; }
.std-rank { color: var(--text-dim); font-variant-numeric: tabular-nums; width: 26px; flex-shrink: 0; }
.std-team { flex: 1; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-record { color: var(--text-dim); font-variant-numeric: tabular-nums; flex-shrink: 0; width: 52px; text-align: right; }
.std-pct-bar { width: 80px; height: 4px; background: var(--bg-3); border-radius: 2px; flex-shrink: 0; }
.std-pct-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.std-pct { color: var(--text-dim); font-variant-numeric: tabular-nums; width: 38px; flex-shrink: 0; text-align: right; font-size: 11px; }
.std-gb { color: var(--text-dim); font-size: 11px; flex-shrink: 0; width: 44px; text-align: right; }
.std-leader { color: var(--pos); font-size: 10px; font-weight: 600; flex-shrink: 0; width: 44px; text-align: right; }

.bk-poly-section { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.poly-chart-wrap { width: 100%; }
.poly-chart-area { width: 100%; }
.bk-sub { font-size: 11px; color: var(--text-dim); margin-bottom: 12px; }

.bk-props-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.props-meta { font-size: 10.5px; color: var(--text-dim); margin-bottom: 10px; }

.props-legend { margin: 2px 0 9px; }
.props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px 30px; }
.props-player { break-inside: avoid; padding: 3px 0 5px; }
.props-name { font-size: 12px; font-weight: 700; color: var(--text); margin: 4px 0 1px; }

.props-row {
  display: grid; grid-template-columns: 74px 30px 54px 54px auto;
  align-items: baseline; gap: 6px; padding: 1.5px 0;
  font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap;
  cursor: help; border-radius: 3px;
}
.props-row:hover { background: rgb(var(--accent-rgb) / 0.07); }

.prop-tip {
  position: fixed; z-index: 2000; display: none; pointer-events: none;
  max-width: 340px; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 11px; box-shadow: 0 10px 30px rgba(0,0,0,.55);
  font-size: 11px; line-height: 1.5;
}
.prop-tip .tip-t { font-weight: 700; color: var(--text); font-size: 12px; margin-bottom: 4px; }
.prop-tip .tip-r { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.prop-tip .tip-v { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line-soft); color: var(--text); }
.prop-tip .tip-good { color: var(--pos); font-weight: 700; }
.prop-tip .tip-mid { color: var(--text-dim); }
.props-row .pr-mkt  { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; }
.props-row .pr-line { color: var(--text); font-weight: 700; text-align: right; }
.props-row .pr-side { color: var(--text); }
.props-row .pr-hit  { display: inline-flex; gap: 9px; margin-left: 4px; }

.props-row i { font-style: normal; color: var(--text-dim); font-size: 8.5px; margin-right: 2px; }
.props-row .hit-hi { color: var(--pos); font-weight: 700; }
.props-row .hit-lo { color: var(--neg); font-weight: 700; }
.props-row .hit-mid { color: var(--text); }
.props-row .pr-dim { color: var(--text-dim); }

.bk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bk-card {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px; background: var(--bg-3);
  border: 1px solid var(--line);
}
.bk-card-name { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; font-size: 12px; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bk-card-odds { display: flex; gap: 6px; flex-shrink: 0; }
.bk-card-cell { display: flex; flex-direction: column; align-items: center; min-width: 36px; }
.bk-card-lbl { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 1px; }
.bk-od { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); }
.bk-od.bk-empty { color: var(--text-dim); }
.bk-od.best { color: var(--pos); font-weight: 700; }
.bk-name { display: flex; align-items: center; gap: 9px; color: var(--text); }
.bk-od { color: var(--text); }
.bk-od.bk-empty { color: var(--text-dim); }
.bk-od.best {
  color: var(--pos); font-weight: 700; position: relative;
  background: rgb(var(--pos-rgb) / 0.1);
}

.bk-logo { position: relative; display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; }
.bk-logo .bk-badge, .bk-logo img {
  position: absolute; inset: 0; width: 20px; height: 20px; border-radius: 5px;
}
.bk-badge {
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; color: var(--text); letter-spacing: -.3px;
}
.bk-logo img { object-fit: cover; background: var(--bg-3); }

.bk-mlb-section {
  margin-top: 14px;
}
.mlb-trader {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: rgb(11 13 10 / .5);
  font-variant-numeric: tabular-nums;
  width: 100%;
}
.mlb-row {
  display: grid;
  grid-template-columns: 1fr 168px 1fr;
  align-items: center;
  border-bottom: 1px solid rgb(var(--text-rgb) / 0.05);
}
.mlb-row:last-child { border-bottom: none; }
.mlb-row:nth-child(even):not(.mlb-head):not(.mlb-subhead) {
  background: rgb(var(--text-rgb) / 0.012);
}
.mlb-cell {
  padding: 6px 12px;
  font-size: .82rem;
  color: var(--text);
  text-align: center;
}
.mlb-cell:first-child { text-align: right; }
.mlb-cell:last-child  { text-align: left; }
.mlb-metric {
  padding: 6px 8px;
  font-size: .7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  background: rgb(var(--text-rgb) / 0.02);
  border-left: 1px solid rgb(var(--text-rgb) / 0.05);
  border-right: 1px solid rgb(var(--text-rgb) / 0.05);
}
.mlb-head {
  background: rgb(var(--text-rgb) / 0.04);
  border-bottom: 1px solid var(--line);
}
.mlb-head .mlb-cell {
  font-weight: 700;
  font-size: .88rem;
  padding: 9px 14px;
}
.mlb-head .mlb-metric { font-weight: 700; color: var(--text); }
.mlb-team-h { color: var(--pos); }
.mlb-team-a { color: var(--info); }
.mlb-subhead {
  background: rgb(var(--text-rgb) / 0.03);
}
.mlb-subhead .mlb-metric {
  color: var(--text);
  font-weight: 600;
  background: transparent;
}
.mlb-edge {
  background: rgb(var(--pos-rgb) / .10);
  font-weight: 700;
}
.mlb-sub { color: var(--text-dim); font-size: .74rem; }
.mlb-up { color: var(--pos); font-weight: 700; }
.mlb-dn { color: var(--neg-soft); font-weight: 700; }
.mlb-form-bar {
  display: inline-flex;
  gap: 3px;
  justify-content: inherit;
}
.mlb-cell:first-child .mlb-form-bar { justify-content: flex-end; }
.mlb-cell:last-child  .mlb-form-bar { justify-content: flex-start; }
.mlb-form {
  font-size: .68rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: default;
}
.mlb-form.mlb-w { background: rgb(var(--pos-rgb) / .18); color: var(--pos); }
.mlb-form.mlb-d { background: rgb(var(--text-rgb) / 0.16); color: var(--muted); }
.mlb-form.mlb-l { background: rgb(var(--neg-rgb) / 0.18); color: var(--neg-soft); }
.mlb-legend {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mlb-legend span {
  font-size: .6rem;
  color: var(--text-dim);
  line-height: 1.35;
}
.mlb-legend b {
  color: var(--text-dim);
  font-weight: 600;
}

.bk-lines-section {
  display: block;
  width: 100%;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.trader-body { padding: 8px 0 6px; }
.trader-layout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
}
.trader-table-wrap { flex: 0 0 auto; overflow-x: auto; min-width: 0; }
.trader-right      { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }

.trader-table {
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}
.trader-table th {
  color: var(--text-dim);
  font-weight: 500;
  text-align: center;
  padding: 3px 8px;
  border-bottom: 1px solid var(--line);
}
.th-book { text-align: left !important; }
.th-grp  {
  text-align: center;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid rgb(var(--accent-rgb) / 0.165);
  padding: 3px 12px;
}
.th-sub th {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 400;
  padding: 2px 6px;
  border-bottom: 1px solid var(--line);
}
.th-sub th:not(:first-child):nth-child(3n+2) { border-left: 1px solid rgb(var(--accent-rgb) / 0.165); }
.trader-table td { padding: 4px 7px; border-bottom: 1px solid rgb(var(--accent-rgb) / 0.083); vertical-align: middle; }
.trader-table tr:last-child td { border-bottom: none; }
.trader-table td:not(:first-child):nth-child(3n+2) { border-left: 1px solid rgb(var(--accent-rgb) / 0.099); }
.td-book { display: flex; align-items: center; gap: 6px; padding-right: 12px !important; }
.td-dot  { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.td-num  { text-align: right; font-variant-numeric: tabular-nums; font-size: 11.5px; }
.td-curr { color: var(--text); font-weight: 600; }
.td-dim  { color: var(--text-dim); }
.td-up   { color: var(--info); font-weight: 700; }
.td-dn   { color: var(--cat-pink); font-weight: 700; }
.td-flat { color: var(--text-dim); }

.trader-chart-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.trader-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 11px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.trader-tab.active {
  background: var(--surface);
  color: var(--text);
  border-color: rgb(var(--text-rgb) / 0.2);
}
.trader-pts { margin-left: auto; font-size: 10px; color: var(--text-dim); }

.trader-chart-wrap {
  position: relative;
  height: 220px;
  min-height: 180px;
  background: rgb(11 13 10 / .8);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.trader-canvas { display: block; width: 100%; height: 100%; }

.lines-modal-box {
  width: min(800px, 94vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}
.lines-modal-box .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lines-toggle {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.lines-tog {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lines-tog.active {
  background: var(--surface);
  color: var(--text);
  border-color: rgb(var(--text-rgb) / 0.25);
}
.lines-chart-wrap {
  flex: 1;
  min-height: 240px;
  max-height: 340px;
  padding: 12px 0 4px;
  position: relative;
}
#linesCanvas { display: block; width: 100%; }
.lines-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  height: 200px;
}
.lines-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--line);
}
.lines-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.lines-leg-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
}
.lines-leg-name { color: var(--text-dim); }
.lines-leg-val  { color: var(--text); font-weight: 600; }

.lines-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.lines-row:hover { background: var(--row-hover); }
.lines-row-time {
  font-size: 11px;
  color: var(--text-dim);
  min-width: 64px;
  text-align: center;
  flex: 0 0 64px;
}
.lines-row-match {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lines-row-teams {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lines-vs { color: var(--text-dim); font-weight: 400; margin: 0 4px; }
.lines-row-league {
  font-size: 11px;
  color: var(--text-dim);
}
.lines-row-odds {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.lines-odd-chip {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
}
.lines-odd-chip.away { color: var(--text-dim); }
.lines-row-cta {
  color: var(--text-dim);
  flex: 0 0 20px;
  display: flex;
  align-items: center;
}

@media (max-width: 900px) { .cr-hide-sm { display: none; } }

.auth-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.auth-card {
  width: 340px; max-width: 90vw;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.auth-brand {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  color: var(--text); letter-spacing: 2px; font-size: 15px; margin-bottom: 22px;
}
.auth-brand strong { color: var(--accent); }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; padding: 8px 0; border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--text-dim); cursor: pointer; font-size: 13px;
}
.auth-tab.active { background: rgb(var(--accent-rgb) / 0.182); color: var(--accent); border-color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-input {
  padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 13px; outline: none;
}
.auth-input:focus { border-color: var(--accent); }
.auth-error { color: var(--live); font-size: 12px; min-height: 15px; }
.auth-submit {
  padding: 11px 0; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--on-accent); font-weight: 700; font-size: 13px;
}
.auth-submit:disabled { opacity: .55; cursor: default; }
.auth-submit.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text-dim);
  margin-top: 14px; font-weight: 500;
}
.auth-note { color: var(--text-dim); font-size: 12px; line-height: 1.5; margin-top: 6px; text-align: center; }
.auth-status { text-align: center; }
.auth-status-icon { font-size: 40px; margin-bottom: 10px; }
.auth-status h2 { color: var(--text); font-size: 18px; margin: 0 0 6px; }

.mnav-toggle, .mnav-backdrop { display: none; }

@media (max-width: 760px) {
  
  .sidebar, .sidebar.collapsed {
    left: 0; top: 0; bottom: 0;
    width: 84vw; max-width: 310px;
    border-radius: 0 18px 18px 0;
    transform: translateX(-105%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
  }
  body.nav-open .sidebar { transform: translateX(0); }

  
  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .nav-label,
  .sidebar.collapsed .nav-item em { display: inline-block; }
  .sidebar.collapsed .nav-item {
    width: auto; height: auto; font-size: 13px;
    padding: 11px 12px; justify-content: flex-start; gap: 10px; margin: 0; border-radius: 10px;
  }
  .sidebar.collapsed .nav-top { display: block; border: none; margin: 0; padding: 0 8px 10px; }
  .sidebar .brand { padding-left: 56px; }   

  
  .content,
  .sidebar:not(.collapsed) ~ .content { margin-left: 0; }

  
  .mnav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    position: fixed; top: 13px; left: 13px; z-index: 101;
    width: 40px; height: 40px; padding: 0 9px;
    background: rgb(11 13 10 / 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid rgb(var(--accent-rgb) / 0.22); border-radius: 11px; cursor: pointer;
  }
  .mnav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .28s, opacity .2s; }
  body.nav-open .mnav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .mnav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .mnav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  
  .mnav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 90;
    background: rgba(0,0,0,.55); opacity: 0; visibility: hidden;
    transition: opacity .28s, visibility .28s;
  }
  body.nav-open .mnav-backdrop { opacity: 1; visibility: visible; }

  
  .topbar { padding-left: 62px; padding-right: 12px; }
  .topbar h1 { font-size: 17px; line-height: 1.25; }
  .subtitle { font-size: 11px; }
  .popout { display: none; }               

  
  .chips { padding-left: 12px; padding-right: 12px; gap: 6px; }

  
  .table-head, .row {
    grid-template-columns: 38px minmax(0, 1fr) 58px 58px 58px;
    gap: 3px; padding-left: 8px; padding-right: 8px;
  }
  .col-poly, .col-books { display: none; }
  .table-head { font-size: 8.5px; letter-spacing: .3px; }
  .row { font-size: 12px; }
  .rows { padding-left: 6px; padding-right: 6px; }

  
  .table-head > *, .row > * { min-width: 0; }

  .col-time { font-size: 11px; }
  .col-time .day { font-size: 9.5px; }
  .col-match { font-size: 12.5px; }
  .col-match .teams { gap: 3px; }
  .team-name { font-size: 12.5px; }
  .team-logo { width: 16px; height: 16px; }

  
  .odd { min-width: 0; width: 100%; padding: 5px 1px; }
  .odd .val { font-size: 13px; }
  .odd .book {
    font-size: 8px; max-width: 100%; padding: 0 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  
  .opps-grid, .news-grid, .mkt-grid, .cr-grid { grid-template-columns: 1fr !important; }

  
  
  .bk-detail-cols { flex-direction: column; }
  .bk-col { padding: 0; }
  .bk-col-info, .bk-col-inj, .bk-col-lines { flex: 1 1 auto; width: 100%; }
  .bk-col + .bk-col {
    border-left: none; border-top: 1px solid var(--line);
    padding-top: 14px; margin-top: 14px;
  }

  
  .expand-grid { grid-template-columns: 1fr; gap: 12px; }
  .bk-inj-grid { grid-template-columns: 1fr; gap: 14px; }
  .bk-grid     { grid-template-columns: 1fr; }
  .props-grid  { grid-template-columns: 1fr; }

  
  .props-row { grid-template-columns: 64px 24px 44px 44px auto; gap: 4px; font-size: 10px; }
  .props-row .pr-hit { gap: 5px; margin-left: 2px; }

  
  .mlb-row  { grid-template-columns: 1fr 104px 1fr; }
  .mlb-cell { padding: 5px 6px; font-size: .74rem; }

  
  .trader-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
