/* bb-boxscore.css — basketball live page styles (Stats Center)
 * Standalone tokens (prefixed --bb-) so it works even if site-theme.css changes.
 * Light mode: [data-theme="light"], .light, or Auto + prefers-color-scheme (unless forced dark).
 */
:root {
  --bb-bg: #12181B;
  --bb-panel: #1B2328;
  --bb-panel2: #212B30;
  --bb-line: #33363c;
  --bb-text: #F2EFE9;
  --bb-muted: #93A2AA;
  --bb-amber: #E8A33D;
  --bb-good: #4fcf70;
  --bb-bad: #ff6b5e;
  --team1-color: #5aa9ff;
  --team2-color: #f5a623;
  --team1-color-text: color-mix(in srgb, var(--team1-color) 72%, #fff);
  --team2-color-text: color-mix(in srgb, var(--team2-color) 72%, #fff);
  --team1-bar: var(--team1-color);
  --team2-bar: var(--team2-color);
  --bb-font-head: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --bb-font-num: "Chakra Petch", "Archivo Narrow", Arial, sans-serif;
  --bb-font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@supports (color: oklch(from red l c h)) {
  :root {
    --team1-color-text: oklch(from var(--team1-color) max(l, 0.78) c h);
    --team2-color-text: oklch(from var(--team2-color) max(l, 0.78) c h);
    --team1-bar: oklch(from var(--team1-color) max(l, 0.58) c h);
    --team2-bar: oklch(from var(--team2-color) max(l, 0.58) c h);
  }
}
:root[data-theme="light"],
body[data-theme="light"],
html:has(body[data-theme="light"]),
:root.light,
body.light,
html:has(body.light),
:root.theme-light,
body.theme-light,
html:has(body.theme-light),
:root[data-bs-theme="light"],
body[data-bs-theme="light"],
html:has(body[data-bs-theme="light"]),
:root[data-color-scheme="light"],
body[data-color-scheme="light"],
html:has(body[data-color-scheme="light"]) {
  --bb-bg: #F5F3EE; --bb-panel: #FFFFFF; --bb-panel2: #EEEBE3; --bb-line: rgba(18,24,27,0.14);
  --bb-text: #1B2328; --bb-muted: #5A6770; --bb-amber: #B36B00; --bb-good: #1d8a3c; --bb-bad: #c0392b;
  --team1-bar: var(--team1-color) !important; --team2-bar: var(--team2-color) !important;
  --team1-color-text: color-mix(in srgb, var(--team1-color) 58%, #000) !important;
  --team2-color-text: color-mix(in srgb, var(--team2-color) 58%, #000) !important;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not(:root[data-theme="dark"]):not(body[data-theme="dark"]):not(:root.dark):not(body.dark):not(:root.theme-dark):not(body.theme-dark):not(:root[data-bs-theme="dark"]):not(body[data-bs-theme="dark"]):not(:root[data-color-scheme="dark"]):not(body[data-color-scheme="dark"]):not(:root[data-theme="light"]):not(body[data-theme="light"]):not(:root.light):not(body.light):not(:root.theme-light):not(body.theme-light):not(:root[data-bs-theme="light"]):not(body[data-bs-theme="light"]):not(:root[data-color-scheme="light"]):not(body[data-color-scheme="light"]):not(:has(body[data-theme])):not(:has(body.light)):not(:has(body.dark)) {
  --bb-bg: #F5F3EE; --bb-panel: #FFFFFF; --bb-panel2: #EEEBE3; --bb-line: rgba(18,24,27,0.14);
  --bb-text: #1B2328; --bb-muted: #5A6770; --bb-amber: #B36B00; --bb-good: #1d8a3c; --bb-bad: #c0392b;
  --team1-bar: var(--team1-color) !important; --team2-bar: var(--team2-color) !important;
  --team1-color-text: color-mix(in srgb, var(--team1-color) 58%, #000) !important;
  --team2-color-text: color-mix(in srgb, var(--team2-color) 58%, #000) !important;
    color-scheme: light;
  }
}
:root[data-theme="dark"], :root.dark, :root.theme-dark { color-scheme: dark; }

html, body.bb-page { background: var(--bb-bg); color: var(--bb-text); }
body.bb-page { margin: 0; font-family: var(--bb-font-body); font-size: 15px; line-height: 1.3; }
.bb-wrap { max-width: 1180px; margin: 0 auto; padding: 8px 10px 24px; }
.bb-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0 6px; }
.bb-topbar a { color: var(--bb-muted); text-decoration: none; font-family: var(--bb-font-head); letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.bb-topbar a:hover { color: var(--bb-amber); }
.bb-topbar .bb-logo-txt { font-family: "Russo One", var(--bb-font-head); color: var(--bb-amber); font-size: 17px; letter-spacing: .02em; }
.bb-muted { color: var(--bb-muted); }
.t1 { --tc: var(--team1-bar); --tt: var(--team1-color-text); }
.t2 { --tc: var(--team2-bar); --tt: var(--team2-color-text); }

/* banner */
.bb-banner { background: var(--bb-panel); border: 1px solid var(--bb-line); border-radius: 8px; padding: 6px 10px 4px; }
.bb-status { font-family: var(--bb-font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; color: var(--bb-muted); padding: 0 0 4px; }
.bb-status .bb-clock { color: var(--bb-text); font-family: var(--bb-font-num); font-size: 13px; letter-spacing: .03em; }
.bb-live { color: var(--bb-bad); font-weight: 700; }
.bb-final { color: var(--bb-muted); font-weight: 700; }
.bb-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: currentColor; }
.bb-dot.live { animation: bbpulse 1.4s infinite; }
.bb-dot.still { opacity: .6; animation: none; }
@keyframes bbpulse { 50% { opacity: .25; } }
.bb-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid var(--bb-line); }
.bb-row:first-of-type { border-top: 0; }
.bb-logo { width: 34px; height: 34px; object-fit: contain; }
.bb-logo-fb { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tc); color: #fff; font-family: "Russo One", var(--bb-font-head); font-size: 16px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.bb-name { font-family: var(--bb-font-head); font-weight: 700; font-size: 19px; line-height: 1.05; color: var(--tt); }
.bb-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--bb-muted); margin-top: 1px; }
.bb-tos { display: inline-flex; gap: 3px; }
.bb-tos i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--bb-muted); display: inline-block; }
.bb-tos i.on { background: var(--bb-amber); border-color: var(--bb-amber); }
.bb-fouls { font-family: var(--bb-font-num); font-size: 12px; }
.bb-bonus { font-family: var(--bb-font-num); font-size: 10.5px; letter-spacing: .06em; padding: 0 5px; border-radius: 3px; background: var(--bb-amber); color: #111; font-weight: 700; }
.bb-score { font-family: var(--bb-font-num); font-weight: 700; font-size: 38px; line-height: 1; min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.bb-row.lost .bb-score, .bb-row.lost .bb-name { opacity: .62; }
.bb-score.flash { animation: bbflash 1.6s ease-out; }
@keyframes bbflash { 0% { background: var(--tc); color: #fff; } 100% { background: transparent; } }

/* alerts */
.bb-alerts { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0; }
.bb-alert { font-family: var(--bb-font-head); font-size: 13px; letter-spacing: .02em; padding: 2px 8px; border-radius: 12px; background: var(--bb-panel2); border: 1px solid var(--bb-line); border-left: 3px solid var(--bb-amber); }
.bb-alert.run, .bb-alert.lead { border-left-color: var(--tc, var(--bb-amber)); }
.bb-alert.foul, .bb-alert.foulout { border-left-color: var(--bb-bad); }

/* recent plays */
.bb-recent { margin-top: 6px; background: var(--bb-panel); border: 1px solid var(--bb-line); border-radius: 8px; padding: 4px 10px 2px; }
.bb-recent h3, .bb-side h3, .bb-h3 { margin: 0; padding: 2px 0; font-family: var(--bb-font-head); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--bb-muted); }
.bb-recent ul, .bb-pbp { list-style: none; margin: 0; padding: 0; }
.bb-recent li, .bb-pbp li { display: grid; grid-template-columns: 64px 42px 1fr auto; gap: 8px; align-items: baseline; padding: 3px 0; border-top: 1px solid var(--bb-line); font-size: 14px; }
.bb-recent li:first-child, .bb-pbp li:first-child { border-top: 0; }
.bb-pt { font-family: var(--bb-font-num); font-size: 12px; color: var(--bb-muted); white-space: nowrap; }
.bb-pa { font-family: var(--bb-font-head); font-weight: 700; font-size: 12.5px; color: var(--tt); border-left: 3px solid var(--tc); padding-left: 5px; overflow: hidden; text-overflow: ellipsis; }
.bb-psc { font-family: var(--bb-font-num); font-size: 13px; white-space: nowrap; text-align: right; }
.bb-psc b.t1 { color: var(--team1-color-text); } .bb-psc b.t2 { color: var(--team2-color-text); }
li.scored .bb-ptx, li.k-score .bb-ptx { font-weight: 600; }
li.k-sub, li.k-timeout, li.k-foul { color: var(--bb-muted); }
li.k-foul .bb-ptx, li.k-timeout .bb-ptx { color: var(--bb-text); }
.bb-pbp-period { display: block !important; font-family: var(--bb-font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; color: var(--bb-amber); padding: 6px 0 2px !important; }
.bb-pbp em { font-style: normal; font-family: var(--bb-font-num); font-size: 10px; letter-spacing: .06em; padding: 0 4px; border-radius: 3px; margin-left: 4px; }
.bb-pbp em.lc { background: var(--bb-amber); color: #111; }
.bb-pbp em.tie { background: var(--bb-panel2); border: 1px solid var(--bb-line); }

/* layout + tabs */
.bb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 8px; }
.bb-side { display: none; background: var(--bb-panel); border: 1px solid var(--bb-line); border-radius: 8px; padding: 6px 10px 8px; align-self: start; }
@media (min-width: 1100px) {
  .bb-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .bb-side { display: block; }
  .bb-tab.tab-team { display: none; }
}
.bb-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 2px solid var(--bb-line); scrollbar-width: none; }
.bb-tab { appearance: none; background: none; border: 0; color: var(--bb-muted); font-family: var(--bb-font-head); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 6px 12px 5px; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.bb-tab:hover { color: var(--bb-text); }
.bb-tab.on { color: var(--bb-amber); border-bottom-color: var(--bb-amber); }
.bb-panel { background: var(--bb-panel); border: 1px solid var(--bb-line); border-top: 0; border-radius: 0 0 8px 8px; padding: 6px 10px 8px; min-height: 120px; }
.bb-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 0 6px; align-items: center; }
.bb-chip { appearance: none; background: var(--bb-panel2); border: 1px solid var(--bb-line); color: var(--bb-text); border-radius: 14px; padding: 2px 10px; font-family: var(--bb-font-head); font-size: 13px; cursor: pointer; }
.bb-chip.on { background: var(--bb-amber); border-color: var(--bb-amber); color: #111; font-weight: 700; }
.bb-sep { width: 8px; }
.bb-empty { color: var(--bb-muted); padding: 10px 0; margin: 0; }
.bb-note { color: var(--bb-muted); font-size: 12.5px; margin: 6px 0 0; }

/* tables */
.bb-scroll { overflow-x: auto; }
.bb-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.bb-table th { font-family: var(--bb-font-head); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--bb-muted); font-weight: 700; text-align: right; padding: 3px 6px; border-bottom: 1px solid var(--bb-line); white-space: nowrap; }
.bb-table td { text-align: right; padding: 2px 6px; border-bottom: 1px solid var(--bb-line); white-space: nowrap; font-family: var(--bb-font-num); font-size: 13px; }
.bb-table th.pl, .bb-table td.pl { text-align: left; }
.bb-table td.num, .bb-table th.num { text-align: left; color: var(--bb-muted); width: 26px; padding-right: 2px; }
.bb-table td.pl { font-family: var(--bb-font-body); font-size: 14.5px; position: sticky; left: 0; background: var(--bb-panel); }
.bb-table .pos { color: var(--bb-muted); font-size: 11px; margin-left: 5px; }
.bb-table td.pts { font-weight: 700; }
.bb-pl.starter td.num { box-shadow: inset 3px 0 0 var(--tc); }
.bb-pl.top td.pts { color: var(--bb-amber); }
.bb-pl.top .nm { font-weight: 700; }
.bb-on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bb-good); margin-right: 5px; }
.bb-table td.pf.trouble { color: var(--bb-amber); font-weight: 700; }
.bb-table td.pf.foulout { color: var(--bb-bad); font-weight: 700; }
.bb-pl.teamrow td { color: var(--bb-muted); }
.bb-table tfoot td { font-weight: 700; border-top: 2px solid var(--bb-line); border-bottom: 0; }
.bb-table tfoot tr.pcts td { font-weight: 400; color: var(--bb-muted); border-top: 0; font-size: 12px; }
.bb-boxteam h3 { margin: 6px 0 2px; font-family: var(--bb-font-head); font-size: 17px; color: var(--tt); display: flex; align-items: center; gap: 6px; }
.bb-boxteam .bb-chipc { width: 4px; height: 16px; background: var(--tc); border-radius: 2px; }
.bb-dnp { color: var(--bb-muted); font-size: 12.5px; margin: 3px 0 4px; }
.bb-linescore td.pts, .bb-linescore th:last-child { border-left: 1px solid var(--bb-line); }
.bb-linescore tr.t1 .nm { color: var(--team1-color-text); font-weight: 700; } .bb-linescore tr.t2 .nm { color: var(--team2-color-text); font-weight: 700; }

/* rosters (pre-game) */
.bb-prenote { padding: 6px 0 8px; color: var(--bb-muted); }
.bb-rosters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.bb-roster h3 { margin: 0 0 2px; font-family: var(--bb-font-head); font-size: 17px; color: var(--tt); }
.bb-roster ul { list-style: none; padding: 0; margin: 0; columns: 2; font-size: 14px; }
.bb-roster li { padding: 1px 0; break-inside: avoid; }
.bb-roster .num { display: inline-block; width: 24px; color: var(--bb-muted); font-family: var(--bb-font-num); font-size: 12px; }

/* facts */
.bb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 12px; margin: 8px 0 4px; }
.bb-facts > div { display: flex; flex-direction: column; border-left: 3px solid var(--tc, var(--bb-line)); padding-left: 7px; }
.bb-facts span { font-size: 11.5px; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .04em; font-family: var(--bb-font-head); }
.bb-facts b { font-family: var(--bb-font-num); font-size: 15px; }
.bb-scoresum h3 { margin: 8px 0 0; font-family: var(--bb-font-head); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--bb-amber); }

/* team stats */
.bb-tsw { display: block; }
.bb-tshead, .bb-tsm { display: grid; grid-template-columns: 1fr 1.6fr 1fr; text-align: center; }
.bb-tshead span { font-family: var(--bb-font-head); font-weight: 700; font-size: 16px; padding-bottom: 2px; }
.bb-tshead .t1 { color: var(--team1-color-text); text-align: left; } .bb-tshead .t2 { color: var(--team2-color-text); text-align: right; }
.bb-tsm { margin-top: -3px; font-family: var(--bb-font-num); font-size: 11.5px; color: var(--bb-muted); }
.bb-tsm span:first-child { text-align: left; } .bb-tsm span:last-child { text-align: right; }
.bb-ts { display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: baseline; padding-top: 3px; font-variant-numeric: tabular-nums; }
.bb-ts .v { font-family: var(--bb-font-num); font-size: 14px; }
.bb-ts .v.a { text-align: left; } .bb-ts .v.b { text-align: right; }
.bb-ts .v.win { font-weight: 700; color: var(--bb-text); }
.bb-ts .v:not(.win) { color: var(--bb-muted); }
.bb-ts .lb { text-align: center; font-family: var(--bb-font-head); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--bb-muted); }
.bb-ts .bar { grid-column: 1 / -1; display: flex; gap: 2px; height: 4px; margin: 1px 0 2px; }
.bb-ts .bar i { display: block; height: 100%; border-radius: 2px; }
.bb-ts .bar i.a { background: var(--team1-bar); } .bb-ts .bar i.b { background: var(--team2-bar); }
.bb-tsw.compact .bb-ts .lb { font-size: 12px; }

/* win probability */
.bb-wpnow { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0 4px; }
.bb-wpnow > div { display: flex; flex-direction: column; }
.bb-wpnow > div.t2 { text-align: right; }
.bb-wpnow span { font-family: var(--bb-font-head); font-size: 14px; color: var(--tt); font-weight: 700; }
.bb-wpnow b { font-family: var(--bb-font-num); font-size: 26px; line-height: 1; }
.bb-wpsvg { width: 100%; height: auto; display: block; }
.bb-wpsvg .grid { stroke: var(--bb-line); stroke-width: 1; }
.bb-wpsvg .grid.mid { stroke: var(--bb-muted); stroke-dasharray: 3 3; }
.bb-wpsvg .pdiv { stroke: var(--bb-line); stroke-width: 1; }
.bb-wpsvg .ax { fill: var(--bb-muted); font-size: 11px; font-family: var(--bb-font-num); }
.bb-wpsvg .area.t1 { fill: var(--team1-bar); opacity: .45; } .bb-wpsvg .area.t2 { fill: var(--team2-bar); opacity: .45; }
.bb-wpsvg .wpline { fill: none; stroke: var(--bb-text); stroke-width: 1.8; }
.bb-wpsvg .kp { fill: var(--bb-amber); stroke: var(--bb-bg); stroke-width: 1.5; }
.bb-wpsvg .lab { font-size: 12px; font-family: var(--bb-font-head); font-weight: 700; }
.bb-wpsvg .lab.t1 { fill: var(--team1-color-text); } .bb-wpsvg .lab.t2 { fill: var(--team2-color-text); }

.bb-foot { margin-top: 8px; color: var(--bb-muted); font-size: 12.5px; text-align: center; }
.bb-err { background: var(--bb-panel); border: 1px solid var(--bb-bad); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.bb-stale { color: var(--bb-amber); font-size: 12px; text-align: right; margin: 2px 0 0; }

@media (max-width: 560px) {
  .bb-score { font-size: 32px; }
  .bb-name { font-size: 17px; }
  .bb-recent li, .bb-pbp li { grid-template-columns: 56px 36px 1fr auto; gap: 6px; font-size: 13.5px; }
  .bb-tab { padding: 6px 9px 5px; font-size: 14px; }
}

/* banner clock / period block */
.bb-bwrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: stretch; }
.bb-rows { min-width: 0; }
.bb-clockbox { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-width: 108px; padding: 2px 4px 2px 14px; border-left: 1px solid var(--bb-line); gap: 1px; }
.bb-per { font-family: var(--bb-font-head); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-amber); }
.bb-per.sub { color: var(--bb-muted); font-size: 11.5px; letter-spacing: .05em; }
.bb-bigclock { font-family: var(--bb-font-num); font-weight: 700; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.bb-bigstate { font-family: var(--bb-font-num); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: .03em; color: var(--bb-muted); }
.bb-bigstate.sm { font-size: 20px; color: var(--bb-text); }
.bb-upd { font-size: 10.5px; color: var(--bb-muted); margin-top: 3px; white-space: nowrap; }
@media (max-width: 560px) {
  .bb-clockbox { min-width: 84px; padding-left: 8px; }
  .bb-bigclock { font-size: 30px; }
  .bb-bigstate { font-size: 22px; }
  .bb-per { font-size: 12.5px; }
}

/* recent + trends */
.bb-twocol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 6px; }
@media (min-width: 860px) { .bb-twocol:not(.one) { grid-template-columns: minmax(0, 1fr) 320px; } }
.bb-twocol .bb-recent, .bb-twocol .bb-trends { margin-top: 0; }
.bb-trends { background: var(--bb-panel); border: 1px solid var(--bb-line); border-radius: 8px; padding: 4px 10px 4px; }
.bb-trends h3 { margin: 0; padding: 2px 0; font-family: var(--bb-font-head); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--bb-muted); }
.bb-trends ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.bb-trends li { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 0; background: var(--bb-panel2); border-radius: 4px; font-size: 14px; }
.bb-trends li .bb-pa { min-width: 38px; }
.bb-trends li.hot .bb-ptx { color: var(--bb-good); font-weight: 600; }
.bb-trends li.cold .bb-ptx { color: var(--bb-bad); font-weight: 600; }
.bb-chip.sm { font-size: 12px; padding: 1px 8px; }

/* notes */
.bb-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.bb-notecol h3 { margin: 4px 0 4px; font-family: var(--bb-font-head); font-size: 17px; color: var(--tt); display: flex; align-items: center; gap: 6px; }
.bb-notecol .bb-chipc { width: 4px; height: 16px; background: var(--tc); border-radius: 2px; }
.bb-card { background: var(--bb-panel2); border: 1px solid var(--bb-line); border-top: 2px solid var(--tc); border-radius: 6px; padding: 3px 9px 5px; margin-bottom: 8px; }
.bb-card h4 { margin: 2px 0 3px; font-family: var(--bb-font-head); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-muted); }
.bb-kv { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 2px 0; border-top: 1px solid var(--bb-line); font-size: 14px; align-items: baseline; }
.bb-kv:first-of-type { border-top: 0; }
.bb-kv .k { font-family: var(--bb-font-head); font-size: 12.5px; color: var(--bb-muted); text-transform: uppercase; letter-spacing: .04em; }
.bb-kv.hi { grid-template-columns: 40px 1fr auto; }
.bb-kv.hi b { font-family: var(--bb-font-num); font-size: 17px; }
.bb-sublog tr.out td { color: var(--bb-muted); font-style: italic; }
.bb-sublog td.pl { font-size: 13.5px; }
.bb-sublog td { font-size: 12.5px; }

/* on court */
.bb-oncourt .bb-sub2 { font-family: var(--bb-font-body); font-weight: 400; font-size: 12px; color: var(--bb-muted); margin-left: 4px; }

.bb-card .bb-scroll { max-height: 360px; overflow-y: auto; }
.bb-sublog thead th { position: sticky; top: 0; background: var(--bb-panel2); }

/* ---- condensed banner: score next to names, line score box on the right ---- */
.bb-bwrap { grid-template-columns: minmax(0, 400px) minmax(0, 1fr) auto auto; align-items: end; }
.bb-bwrap .bb-rows { grid-column: 1; align-self: end; }
.bb-bwrap .bb-lsbox { grid-column: 3; align-self: end; margin: 0 0 3px 0; }
.bb-bwrap .bb-clockbox { grid-column: 4; align-self: stretch; }
.bb-row { min-height: 50px; box-sizing: border-box; }
.bb-lsbox { background: var(--bb-panel2); border: 1px solid var(--bb-line); border-radius: 6px; padding: 0 6px; }
.bb-ls { border-collapse: collapse; font-family: var(--bb-font-num); font-variant-numeric: tabular-nums; }
.bb-ls th { font-family: var(--bb-font-head); font-size: 11.5px; letter-spacing: .05em; color: var(--bb-muted); font-weight: 700; padding: 3px 9px 2px; text-align: center; height: 18px; }
.bb-ls td { text-align: center; padding: 0 9px; height: 50px; font-size: 17px; border-top: 1px solid var(--bb-line); }
.bb-ls td.tot, .bb-ls th.tot { border-left: 1px solid var(--bb-line); font-weight: 700; }
.bb-ls tr.t1 td.tot { color: var(--team1-color-text); } .bb-ls tr.t2 td.tot { color: var(--team2-color-text); }
.bb-ls th.cur, .bb-ls td.cur { color: var(--bb-amber); }
.bb-ls td.cur { font-weight: 700; }
@media (max-width: 760px) { .bb-lsbox { display: none; } .bb-bwrap { grid-template-columns: minmax(0, 1fr) auto; } .bb-bwrap .bb-clockbox { grid-column: 2; } }

/* ---- scoring facts on a single line ---- */
.bb-facts { display: flex; flex-wrap: nowrap; gap: 0 16px; overflow-x: auto; margin: 8px 0 4px; padding-bottom: 2px; scrollbar-width: thin; }
.bb-facts > div { flex-direction: row; align-items: baseline; gap: 6px; white-space: nowrap; flex: 0 0 auto; }
.bb-facts span { font-size: 11px; }
.bb-facts b { font-size: 14px; }
@media (max-width: 700px) { .bb-facts { flex-wrap: wrap; overflow: visible; } }

/* alignment pass */
.bb-bwrap { margin-top: -20px; }
.bb-bwrap .bb-lsbox { margin: 0; align-self: end; }
.bb-status { position: relative; z-index: 1; }
.bb-recent li, .bb-pbp li { grid-template-columns: 64px 68px 1fr auto; }
@media (max-width: 760px) { .bb-bwrap { margin-top: 0; } }
@media (max-width: 560px) { .bb-recent li, .bb-pbp li { grid-template-columns: 56px 60px 1fr auto; } }
.bb-ls td { height: 49px; }
.bb-bwrap .bb-lsbox { margin-bottom: -2px; }
.bb-bwrap .bb-lsbox { margin-bottom: 0; }

/* team stats: shots sit beside the pct, toward the center */
.bb-ts .v { display: flex; align-items: baseline; gap: 7px; }
.bb-ts .v.a { justify-content: flex-start; } .bb-ts .v.b { justify-content: flex-end; }
.bb-ts .v em { font-style: normal; }
.bb-ts .v small { font-size: 11px; font-weight: 400; color: var(--bb-muted); font-family: var(--bb-font-num); }
.bb-ts .lb { white-space: nowrap; }
.bb-tsw.compact .bb-ts .lb { font-size: 12px; letter-spacing: .02em; }

/* ---- compact header: scoreboard left, recent plays top right, tabs right below ---- */
.bb-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@media (min-width: 1150px) { .bb-top:not(.one) { grid-template-columns: minmax(0, 1fr) 400px; align-items: stretch; } }
.bb-topleft { display: flex; flex-direction: column; min-width: 0; }
.bb-topleft .bb-banner { flex: 0 0 auto; }
.bb-top .bb-recent { margin: 0; display: flex; flex-direction: column; }
.bb-top .bb-recent ul { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.bb-alerts { margin-top: 5px; }
.bb-layout { margin-top: 6px; }
/* banner columns: names+score | line score | clock */
.bb-bwrap { grid-template-columns: minmax(0, 340px) auto auto; justify-content: space-between; column-gap: 12px; }
.bb-bwrap .bb-rows { grid-column: 1; }
.bb-bwrap .bb-lsbox { grid-column: 2; }
.bb-bwrap .bb-clockbox { grid-column: 3; }
@media (max-width: 760px) { .bb-bwrap { grid-template-columns: minmax(0, 1fr) auto; } .bb-bwrap .bb-clockbox { grid-column: 2; } }
/* trends: sidebar on wide screens, inline strip otherwise */
.bb-side { display: block; }
.bb-sidecol { display: none; align-self: start; }
@media (min-width: 1100px) { .bb-sidecol { display: flex; flex-direction: column; gap: 6px; } .bb-trends-inline { display: none; } }
.bb-trends-inline { margin-top: 6px; }

/* recent plays in the header: one line per play, five rows on wide screens */
.bb-top .bb-recent .bb-ptx { min-width: 0; overflow-wrap: anywhere; }
.bb-top .bb-recent li { align-items: start; }
.bb-top .bb-recent li.fit-hide { display: none !important; }
.bb-top .bb-recent li { padding: 2px 0; }

.bb-bwrap { grid-template-columns: minmax(0, 385px) auto auto; }
@media (max-width: 760px) { .bb-bwrap { grid-template-columns: minmax(0, 1fr) auto; } }

/* venue / officials / attendance live in the status row above the team names */
.bb-status { display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.bb-stline { flex: none; }
.bb-venue { color: var(--bb-muted); font-size: 12px; text-transform: none; letter-spacing: 0; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--bb-line); min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* theme toggle (injected by theme-toggle.js into .site-nav) */
.bb-topbar.site-nav { justify-content: flex-start; }
.bb-topbar a { margin-left: 0; }
.bb-topbar .bb-logo-txt { margin-right: auto; }
.bb-brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.bb-brand .bb-logo-txt { margin-right: 0; }
.bb-topbar a + a { margin-left: 8px; }
.bb-topbar .theme-toggle { margin-left: 16px; padding: 3px 11px; font-size: 12px; }

/* ---- quick print sheet: hidden on screen, the only thing shown when printing ---- */
.bb-printbtn { background: none; border: 1px solid var(--bb-line); color: var(--bb-muted); font-family: var(--bb-font-head); letter-spacing: .04em; text-transform: uppercase; font-size: 12px; border-radius: 999px; padding: 3px 11px; cursor: pointer; margin-left: 16px; }
.bb-printbtn:hover { color: var(--bb-amber); border-color: var(--bb-amber); }
.bb-printbtn[disabled] { opacity: .4; cursor: default; }
#bbprint { display: none; }
@media print {
  @page { size: letter portrait; margin: .45in; }
  html, body, body.bb-page { background: #fff !important; color: #000 !important; }
  .bb-wrap > *:not(#bbprint), .site-nav, .bb-topbar { display: none !important; }
  .bb-wrap { max-width: none; padding: 0; }
  #bbprint { display: block !important; }
}
.bb-ps { font-family: Arial, Helvetica, sans-serif; color: #000; font-size: 9.5pt; line-height: 1.2; }
.bb-ps h1 { font-size: 11pt; margin: 0; font-weight: 700; text-align: center; }
.bb-ps h2 { font-size: 10.5pt; margin: 14px 0 2px 4px; font-weight: 700; }
.bb-ps table { border-collapse: collapse; width: 100%; }
.bb-ps .pt th, .bb-ps .pt td { padding: 1px 4px; text-align: center; font-size: 9.5pt; white-space: nowrap; }
.bb-ps .pt th { font-weight: 400; }
.bb-ps .pt tr.h2 th { border-bottom: 1px solid #000; }
.bb-ps .pt .n { text-align: left; width: 22px; font-size: 8pt; }
.bb-ps .pt .l { text-align: left; }
.bb-ps .pt col.cl { width: 1.55in; }
.bb-ps .pt col.cn { width: 24px; }
.bb-ps .pt col.cs { width: 12px; }
.bb-ps .pt col.vl { border-left: 1px solid #000; }
.bb-ps .pt .st { width: 12px; text-align: right; }
.bb-ps .pt tr.tot td { border-top: 1px solid #000; }
.bb-ps table.pp { margin-top: 7px; }
.bb-ps .pp td { font-size: 7pt; padding: 0 4px; text-align: center; white-space: nowrap; }
.bb-ps .pp td.lab { text-align: right; padding-left: 14px; }
.bb-ps .pp td.rw, .bb-ps .pp td.pc { text-align: right; }
.bb-ps .pt td.bd { font-weight: 700; }
.bb-ps .pt tr.alt td { background: #ececec; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bb-ps .pp td.db { text-align: right; }
.bb-ps .pm { font-size: 9.5pt; margin: 8px 0 8px; }
.bb-ps .pbot { display: flex; gap: 30px; align-items: flex-start; margin: 10px 0 12px; }
.bb-ps .psc { width: 330px; border: 1px solid #000; }
.bb-ps .psc th, .bb-ps .psc td { border: 1px solid #000; padding: 2px 4px; text-align: center; font-size: 9pt; }
.bb-ps .psc th.l, .bb-ps .psc td.l { text-align: left; }
.bb-ps .psc th { font-weight: 700; }
.bb-ps .ppt { width: auto; }
.bb-ps .ppt th, .bb-ps .ppt td { font-size: 8pt; font-weight: 400; padding: 1px 6px; text-align: center; line-height: 1.1; }
.bb-ps .pfacts { display: flex; justify-content: space-between; font-size: 8pt; margin-top: 6px; }
.bb-ps .pfacts .r { margin-right: 60px; }

/* rebound folded into the missed shot's line */
.bb-rebtx { color: var(--bb-muted); }

/* team logos sit on a white disc so dark/transparent logos stay readable on dark pages (same as the schedule cards) */
img.bb-logo { box-sizing: border-box; width: 36px; height: 36px; padding: 3px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,.12); }
.bb-logo-fb { width: 36px; height: 36px; }

/* pregame has no line score beside the teams, so the team rows must not be pulled up over the status line */
.bb-bwrap.bb-pre { margin-top: 0; }

/* sponsor logo centered at the foot of the quick-print page: clearly visible, not filling the white space */
.bb-ps-sponsor { text-align: center; }
.bb-ps-sponsor .cap { font: 7pt Arial, Helvetica, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #666; margin-bottom: 3px; }
.bb-ps-sponsor img { display: inline-block; height: .6in; width: auto; max-width: 2.6in; object-fit: contain; }
@media print { .bb-ps-sponsor { position: fixed; left: 0; right: 0; bottom: 0; } }

/* share-card button bar (under the top bar) */
.bb-sharebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 4px 0 10px; }
.bb-sharebar .lbl { font-family: var(--bb-font-head); letter-spacing: .04em; text-transform: uppercase; font-size: 12px; color: var(--bb-muted); }
.bb-sharebar button { background: none; border: 1px solid var(--bb-line); color: var(--bb-muted); font-family: var(--bb-font-head); letter-spacing: .04em; text-transform: uppercase; font-size: 12px; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.bb-sharebar button:hover { color: var(--bb-amber); border-color: var(--bb-amber); }
.bb-sharebar button[disabled] { opacity: .5; cursor: default; }
@media print { .bb-sharebar { display: none !important; } }
.bb-sharebar[hidden] { display: none; }
