/* ScoreProb basketball v1 (10 Nov 2026): the "Court" colour layer and basketball components.
   Approved design: design/basketball-plan-20261110.md, section 7. Same site, warm palette. */
/* colors-v1 (owner, 16 Nov 2026): football's colours for every sport. Home is football's home blue, away its away
   amber, the total its over green; page, cards, lines, text, accent, live and the header are football's. */
body.sport-bb {
  --bb-bg: #ffffff; --bb-card: #ffffff; --bb-ink: #18212f; --bb-muted: #667085; --bb-line: #e3e8ef; --bb-soft: #f5f7fa;
  --bb-accent: #2857d9; --bb-accent-deep: #173da8; --bb-accent-soft: #e6edfc; --bb-on-accent: #ffffff;
  --bb-home: #2857d9; --bb-home-soft: #e6edfc; --bb-away: #a86f0e; --bb-away-soft: #fbf1dd;
  --bb-total: #128a64; --bb-total-soft: #e3f5ee; --bb-hit: #1a8c54; --bb-hit-bg: rgba(26, 140, 84, .10);
  --bb-miss: #c8372d; --bb-miss-bg: rgba(200, 55, 45, .08); --bb-live: #d92d20; --bb-on-live: #ffffff;
  --bb-track: #dbe2f0; --bb-court: #2857d9; --bb-header: rgba(255, 255, 255, .94); --bb-rowbg: #ffffff;
  --bb-shadow: none;
  background: var(--bb-bg); color: var(--bb-ink);
}
html[data-theme="dark"] body.sport-bb {
  --bb-bg: #0b1220; --bb-card: #111a29; --bb-ink: #ecf2ff; --bb-muted: #aab7ca; --bb-line: #34445b; --bb-soft: #182235;
  --bb-accent: #7397ff; --bb-accent-deep: #9fb7ff; --bb-accent-soft: #1b2a4d; --bb-on-accent: #0b1220;
  --bb-home: #82a0ff; --bb-home-soft: #1b2a4d; --bb-away: #eaa73c; --bb-away-soft: #33260f;
  --bb-total: #45d19d; --bb-total-soft: #12332a; --bb-hit: #3bbf7f; --bb-hit-bg: rgba(59, 191, 127, .12);
  --bb-miss: #f0746a; --bb-miss-bg: rgba(240, 116, 106, .10); --bb-live: #ff6b5f; --bb-on-live: #0b1220;
  --bb-track: #2a3850; --bb-court: #7397ff; --bb-header: rgba(11, 18, 32, .95); --bb-rowbg: #070c16; --bb-shadow: none;
}
/* the header, footer and sport switch are the site's own (football's): no basketball colours on them */

.bb { color: var(--bb-ink); font-size: 14px; line-height: 1.45; }
.bb a { color: var(--bb-accent); }
.bb a:hover { color: var(--bb-accent-deep); }
.bb .num, .bb-num { font-variant-numeric: tabular-nums; }
.bb-shell { max-width: 1180px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 18px; }
.bb-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-muted); }
.bb-card { background: var(--bb-card); border: 1px solid var(--bb-line); border-radius: 18px; box-shadow: var(--bb-shadow); }
.bb-pad { padding: 18px 20px; }
.bb h1, .bb h2, .bb h3 { color: var(--bb-ink); margin: 0; text-wrap: balance; }
.bb h2 { font-size: 17px; font-weight: 800; }
.bb-muted { color: var(--bb-muted); }
.bb-small { font-size: 12.5px; }
.bb-preview { background: var(--bb-accent-soft); color: var(--bb-accent-deep); font-size: 12.5px; font-weight: 600; padding: 8px max(16px, env(safe-area-inset-left, 0px)); text-align: center; border-bottom: 1px solid var(--bb-line); }

/* court lines motif */
.bb-courtbg { position: relative; overflow: hidden; }
.bb-courtbg > svg.bb-court { position: absolute; pointer-events: none; color: var(--bb-court); opacity: .10; }
.bb-courtbg > *:not(svg) { position: relative; }

/* hub hero */
.bb-hero { border-bottom: 1px solid var(--bb-line); }
.bb-hero svg.bb-court { right: -40px; top: -30px; width: 620px; height: 310px; opacity: .13; }
.bb-hero-in { max-width: 1180px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 12px; }
.bb-hero h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; max-width: 760px; }
.bb-hero-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--bb-muted); }
.bb-hero-stats b { color: var(--bb-ink); }
.bb-kicker { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-accent-deep); }

/* hub layout */
.bb-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.bb-side { flex: 1 1 236px; max-width: 100%; display: flex; flex-direction: column; gap: 18px; }
.bb-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--bb-line); background: var(--bb-card); color: var(--bb-ink) !important; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; }
.bb-chip.is-on, .bb-chip[aria-pressed="true"] { border-color: var(--bb-accent); background: var(--bb-accent-soft); color: var(--bb-accent-deep) !important; }
.bb-dot { width: 7px; height: 7px; border-radius: 9px; background: var(--bb-live); display: inline-block; }
.bb-leaguelist label { display: flex; align-items: center; gap: 9px; padding: 5px 2px; font-size: 13.5px; }
.bb-leaguelist input { accent-color: var(--bb-accent); }
.bb-legend { padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--bb-muted); }

/* rows */
.bb-group-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; flex-wrap: wrap; }
.bb-lbadge { width: 34px; height: 34px; border-radius: 10px; background: var(--bb-accent-soft); color: var(--bb-accent-deep); display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; text-align: center; line-height: 1.05; }
.bb-row { display: grid; grid-template-columns: 76px minmax(0, 1.5fr) minmax(0, 1.35fr) 92px 160px; align-items: center; column-gap: 18px; row-gap: 10px; padding: 12px 18px; border-top: 1px solid var(--bb-line); color: var(--bb-ink) !important; text-decoration: none; }
a.bb-row:hover { background: var(--bb-soft); }
.bb-row .bb-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bb-row .bb-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bb-row .bb-team span.nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-row .bb-team .sc { font-size: 15px; font-variant-numeric: tabular-nums; }
.bb-crest { width: 26px; height: 26px; border-radius: 8px; flex: none; object-fit: contain; background: var(--bb-soft); }
.bb-abbr { width: 26px; height: 26px; border-radius: 8px; flex: none; background: var(--bb-soft); border: 1px solid var(--bb-line); display: grid; place-items: center; font-size: 9px; font-weight: 800; color: var(--bb-muted); }
.bb-barcell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bb-pcts { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bb-pcts .h { color: var(--bb-home); } .bb-pcts .a { color: var(--bb-away); }
.bb-bar { display: flex; height: 8px; border-radius: 9px; overflow: hidden; background: var(--bb-track); gap: 2px; }
.bb-bar .h { background: var(--bb-home); } .bb-bar .a { background: var(--bb-away); flex: 1; }
.bb-note { font-size: 12px; color: var(--bb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-exp { display: flex; flex-direction: column; gap: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.bb-exp b { font-weight: 700; } .bb-exp span { font-size: 11.5px; color: var(--bb-muted); }
.bb-time { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.bb-time b { font-size: 14px; font-variant-numeric: tabular-nums; }
.bb-time span { font-size: 11.5px; color: var(--bb-muted); font-weight: 600; }
.bb-live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; background: var(--bb-live); color: var(--bb-on-live); font-size: 11px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.bb-pill.hit { color: var(--bb-hit); background: var(--bb-hit-bg); }
.bb-pill.miss { color: var(--bb-miss); background: var(--bb-miss-bg); }
.bb-pill.saved { color: var(--bb-accent-deep); background: var(--bb-accent-soft); }
.bb-pill.none { color: var(--bb-muted); background: var(--bb-soft); }
.bb-pillcell { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }   /* busyday-v1b: room for "Saved 18:16 UTC" and the star */
.bb-empty { padding: 26px 20px; text-align: center; color: var(--bb-muted); }
@media (max-width: 860px) {
  .bb-row { grid-template-columns: 60px minmax(0, 1fr) 108px; }
  .bb-row .bb-barcell { grid-column: 2 / 4; }
  .bb-row .bb-exp { display: none; }
}

/* game page */
.bb-crumbs { font-size: 13px; color: var(--bb-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.bb-crumbs a { text-decoration: none; }
.bb-ghero { padding: 22px 26px 20px; }
.bb-ghero svg.bb-court { left: 50%; top: 50%; width: 820px; height: 410px; transform: translate(-50%, -50%); opacity: .09; }
.bb-ghero-in { display: flex; flex-direction: column; gap: 18px; }
.bb-ghero-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.bb-stamp { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--bb-hit-bg); color: var(--bb-hit); font-size: 12.5px; font-weight: 700; }
.bb-matchup { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; }
.bb-side-team { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; color: var(--bb-ink) !important; }
.bb-side-team.away { justify-content: flex-end; text-align: right; }
.bb-side-team b { font-size: clamp(18px, 2.2vw, 23px); line-height: 1.15; letter-spacing: -.01em; display: block; }
.bb-bigcrest { width: 64px; height: 64px; border-radius: 18px; flex: none; object-fit: contain; padding: 6px; box-sizing: border-box; }
.bb-bigcrest.h, .bb-bigabbr.h { background: var(--bb-home-soft); color: var(--bb-home); }
.bb-bigcrest.a, .bb-bigabbr.a { background: var(--bb-away-soft); color: var(--bb-away); }
.bb-bigabbr { width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center; font-weight: 900; font-size: 17px; }
.bb-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 18px; border-radius: 14px; background: var(--bb-soft); border: 1px solid var(--bb-line); text-align: center; }
.bb-mid .big { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bb-bigp { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.bb-bigp .h { color: var(--bb-home); font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.bb-bigp .a { color: var(--bb-away); font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.bb-bigbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 3px; background: var(--bb-track); }
.bb-bigbar .h { background: var(--bb-home); } .bb-bigbar .a { background: var(--bb-away); flex: 1; }
.bb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bb-tile { padding: 11px 14px; border-radius: 12px; background: var(--bb-soft); display: flex; flex-direction: column; gap: 2px; }
.bb-tile b { font-size: 20px; font-variant-numeric: tabular-nums; }
.bb-tile .t { color: var(--bb-total); } .bb-tile .aw { color: var(--bb-away); } .bb-tile .hm { color: var(--bb-home); }
.bb-recline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--bb-muted); }
.bb-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bb-line); background: var(--bb-card); color: var(--bb-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.bb-btn.primary { background: var(--bb-accent); color: var(--bb-on-accent); border-color: var(--bb-accent); }
.bb-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--bb-line); padding: 0 4px; position: sticky; top: var(--sp-header-h, 0px); background: var(--bb-bg); z-index: 3; }
.bb-tabs a { color: var(--bb-muted) !important; text-decoration: none; font-weight: 700; font-size: 13.5px; padding: 12px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.bb-tabs a:hover, .bb-tabs a.is-on { color: var(--bb-ink) !important; border-bottom-color: var(--bb-accent); }
.bb-gcols { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 22px; align-items: start; }
.bb-gmain, .bb-gside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bb-mk3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bb-mk { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.bb-mk .head { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bb-line { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.bb-line .lv { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.bb-track { height: 6px; border-radius: 9px; background: var(--bb-track); }
.bb-track > i { display: block; height: 100%; border-radius: 9px; }
.bb-sub { font-size: 12.5px; color: var(--bb-muted); border-top: 1px solid var(--bb-line); padding-top: 10px; }
.bb-margin { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 8px 10px; align-items: center; }
.bb-margin .l { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.bb-margin .r { display: flex; align-items: center; gap: 8px; }
.bb-margin i { height: 18px; display: block; }
.bb-margin .l i { background: var(--bb-home); border-radius: 6px 3px 3px 6px; }
.bb-margin .r i { background: var(--bb-away); border-radius: 3px 6px 6px 3px; }
.bb-margin .v { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bb-margin .l .v { color: var(--bb-home); } .bb-margin .r .v { color: var(--bb-away); }
.bb-margin .c { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--bb-muted); font-variant-numeric: tabular-nums; }
.bb-why { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--bb-line); }
.bb-tag { display: grid; place-items: center; min-height: 26px; padding: 0 6px; border-radius: 8px; font-size: 11px; font-weight: 800; }
.bb-tag.h { background: var(--bb-home-soft); color: var(--bb-home); } .bb-tag.a { background: var(--bb-away-soft); color: var(--bb-away); }
.bb-tag.t { background: var(--bb-total-soft); color: var(--bb-total); } .bb-tag.n { background: var(--bb-soft); color: var(--bb-muted); }
.bb-cmp { display: grid; grid-template-columns: 72px minmax(0, 1fr) 150px minmax(0, 1fr) 72px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--bb-line); font-variant-numeric: tabular-nums; }
.bb-cmp .nm { text-align: center; font-size: 12.5px; color: var(--bb-muted); font-weight: 600; }
.bb-cmp .lb { display: flex; justify-content: flex-end; } .bb-cmp .rb { display: flex; }
.bb-cmp .lb i { height: 8px; border-radius: 9px; background: var(--bb-home); display: block; }
.bb-cmp .rb i { height: 8px; border-radius: 9px; background: var(--bb-away); display: block; }
.bb-cmp .rv { text-align: right; }
.bb-q4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bb-q { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--bb-card); border: 1px solid var(--bb-line); }
.bb-q .vals { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bb-qbox { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bb-soft); display: flex; flex-direction: column; gap: 10px; }
.bb-h2h { display: grid; grid-template-columns: 96px minmax(0, 1fr) 92px minmax(0, 1fr) 44px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--bb-line); font-size: 13.5px; }
.bb-h2h .sc { text-align: center; font-weight: 800; padding: 3px 0; border-radius: 8px; background: var(--bb-soft); font-variant-numeric: tabular-nums; }
.bb-trust { display: grid; grid-template-columns: minmax(0, 1.1fr) 70px minmax(0, 1.6fr) 72px 72px; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bb-trust.here { background: var(--bb-accent-soft); outline: 1px solid var(--bb-accent); }
.bb-trust .tr { position: relative; height: 8px; border-radius: 9px; background: var(--bb-track); }
.bb-trust .tr i { display: block; height: 100%; border-radius: 9px; background: var(--bb-accent); }
.bb-trust .tr s { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--bb-ink); }
.bb-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.bb-badge.bt { background: var(--bb-total-soft); color: var(--bb-total); } .bb-badge.lv { background: var(--bb-hit-bg); color: var(--bb-hit); }
.bb-call { border-color: var(--bb-accent); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.bb-call .opts { display: flex; gap: 8px; }
.bb-call button { flex: 1 1 0; min-height: 44px; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; padding: 8px 10px; border: 1px solid var(--bb-line); background: var(--bb-card); color: var(--bb-ink); }
.bb-call button[aria-pressed="true"] { border: 2px solid var(--bb-accent); background: var(--bb-accent); color: var(--bb-on-accent); }
.bb-call .res { padding: 13px 14px; border-radius: 12px; background: var(--bb-accent-soft); display: flex; flex-direction: column; gap: 8px; }
.bb-call .res b.ag { font-size: 14.5px; color: var(--bb-accent-deep); }
.bb-call .reset { align-self: flex-start; border: 0; background: transparent; color: var(--bb-accent-deep); font-weight: 700; padding: 4px 0; text-decoration: underline; min-height: 0; flex: none; }
.bb-life { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bb-life li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding-bottom: 12px; }
.bb-life li:last-child { padding-bottom: 0; }
.bb-life .dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 9px; background: var(--bb-hit); }
.bb-life .dot.open { background: transparent; border: 2px solid var(--bb-line); box-sizing: border-box; }
.bb-qt { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.bb-qt th, .bb-qt td { padding: 8px 4px; }
.bb-qt tbody tr { border-top: 1px solid var(--bb-line); }
.bb-qt th[scope="row"] { text-align: left; }
.bb-after { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 13px; border-radius: 12px; }
.bb-after.hit { background: var(--bb-hit-bg); } .bb-after.miss { background: var(--bb-miss-bg); }
.bb-after .ok { color: var(--bb-hit); font-weight: 800; font-size: 13px; } .bb-after .no { color: var(--bb-miss); font-weight: 800; font-size: 13px; }
.bb-scroll { overflow-x: auto; }
.bb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bb-table th { text-align: left; font-size: 12px; color: var(--bb-muted); font-weight: 700; padding: 8px 8px; white-space: nowrap; }
.bb-table td { padding: 8px 8px; border-top: 1px solid var(--bb-line); white-space: nowrap; }
.bb-table td.tm { white-space: normal; min-width: 160px; }
.bb-table td.tm a { color: var(--bb-ink); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.bb-table tr.me td { background: var(--bb-accent-soft); }
.bb-form { display: flex; gap: 4px; flex-wrap: wrap; }
.bb-form span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.bb-form .W { background: var(--bb-hit-bg); color: var(--bb-hit); } .bb-form .L { background: var(--bb-miss-bg); color: var(--bb-miss); }
.bb-foot { font-size: 12.5px; color: var(--bb-muted); max-width: 760px; }
@media (max-width: 1060px) { .bb-gcols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .bb-mk3 { grid-template-columns: minmax(0, 1fr); }
  .bb-cmp { grid-template-columns: 52px minmax(0, 1fr) 104px minmax(0, 1fr) 52px; gap: 8px; }
  .bb-h2h { grid-template-columns: 70px minmax(0, 1fr) 76px minmax(0, 1fr) 30px; font-size: 12.5px; }
  .bb-trust { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 56px 56px; font-size: 12.5px; }
}
@media (max-width: 640px) {
  .bb-matchup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bb-mid { grid-column: 1 / 3; order: -1; }
  .bb-side-team { flex-direction: column; align-items: center; text-align: center; }
  .bb-side-team.away { flex-direction: column-reverse; text-align: center; justify-content: flex-start; }
  .bb-bigp .h, .bb-bigp .a { font-size: 26px; }
  .bb-q4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-ghero { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .bb * { transition: none !important; animation: none !important; } }
.bb button:focus-visible, .bb a:focus-visible, .bb input:focus-visible { outline: 2px solid var(--bb-accent); outline-offset: 2px; }

/* league and team pages */
.bb-dayhead { padding: 9px 18px; background: var(--bb-soft); border-top: 1px solid var(--bb-line); font-size: 13px; }
.bb-dayhead b { font-size: 13px; }
.bb-teamhead { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bb-hero .bb-crumbs { margin-bottom: -2px; }
.bb [hidden] { display: none !important; }
.bb-row[hidden], .bb-card[hidden] { display: none !important; }
.bb-flash { animation: bbflash 1.2s ease-out; }
@keyframes bbflash { 0% { background: var(--bb-accent-soft); } 100% { background: transparent; } }
@media (max-width: 640px) { .bb-teamhead .bb-bigcrest, .bb-teamhead .bb-bigabbr { width: 52px; height: 52px; } }
/* phone fixes after the first render check (10 Nov, 19:45) */
.bb-h2h > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .bb-h2h { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr) 26px; row-gap: 3px; }
  .bb-h2h > :first-child { grid-column: 1 / -1; font-size: 12px; }
  .bb-trust { grid-template-columns: 64px 42px minmax(0, 1fr) 50px 50px; gap: 8px; padding: 8px; }
  .bb-trust > :first-child { white-space: nowrap; }
  .bb-cmp .nm { font-size: 11.5px; }
}
/* row and live-badge fixes after the render check (10 Nov, 19:55) */
.bb-time .bb-live-badge { color: var(--bb-on-live); font-size: 10.5px; white-space: nowrap; }
.bb-gside .bb-trust { grid-template-columns: 62px 42px minmax(0, 1fr) 50px 50px; gap: 8px; padding: 8px; font-size: 12.5px; }
.bb-gside .bb-trust > :first-child { white-space: nowrap; }
@media (max-width: 860px) {
  .bb-row .bb-pillcell { grid-column: 3; grid-row: 1; }
  .bb-row .bb-barcell { grid-row: 2; }
}
@media (max-width: 640px) {
  .bb-row { grid-template-columns: 66px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; padding: 12px 14px; }
  .bb-row .bb-barcell { grid-column: 2; grid-row: 2; }
  .bb-row .bb-pillcell { grid-column: 2; grid-row: 3; justify-content: flex-start; }
  .bb-time .bb-live-badge { font-size: 10px; padding: 3px 5px; }
  .bb-group-head { padding: 12px 14px; }
}

/* basketball-v2: live centre (game flow, quarters, team stats, players, key moments, verdict) */
.bb-centre { overflow: hidden; scroll-margin-top: calc(var(--sp-header-h, 64px) + 52px); }
.bb-ctabs { display: flex; gap: 2px; overflow-x: auto; padding: 6px 10px 0; border-bottom: 1px solid var(--bb-line); background: var(--bb-soft); scrollbar-width: none; }
.bb-ctabs::-webkit-scrollbar { display: none; }
.bb-ctabs button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--bb-muted); padding: 11px 12px 10px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; }
.bb-ctabs button:hover { color: var(--bb-ink); }
.bb-ctabs button[aria-selected="true"] { color: var(--bb-ink); border-bottom-color: var(--bb-accent); }
.bb-cpanel { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bb-ch { font-size: 15px; font-weight: 800; margin: 0; }
.bb-vlines { display: flex; flex-direction: column; gap: 4px; }
.bb-vlines p { margin: 0; font-size: 14.5px; max-width: 70ch; }
.bb-vlines p:first-child { font-size: 16px; font-weight: 700; }
.bb-best { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.bb-bestc { padding: 12px 14px; border-radius: 12px; background: var(--bb-soft); display: flex; flex-direction: column; gap: 3px; border-left: 4px solid var(--bb-home); min-width: 0; }
.bb-bestc.a { border-left-color: var(--bb-away); }
.bb-flowhead { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.bb-flowhead b { font-size: 16px; }
.bb-flowbox { position: relative; height: 230px; }
.bb-flowbox svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.bb-flowbox svg * { vector-effect: non-scaling-stroke; }
.bb-flowbox .gap { fill: var(--bb-soft); }
.bb-flowbox .run.h { fill: var(--bb-home); opacity: .12; }
.bb-flowbox .run.a { fill: var(--bb-away); opacity: .12; }
.bb-flowbox .gl { stroke: var(--bb-line); stroke-dasharray: 3 4; }
.bb-flowbox .ql { stroke: var(--bb-line); }
.bb-flowbox .zl { stroke: var(--bb-muted); stroke-width: 1; }
.bb-flowbox .ah { fill: var(--bb-home); opacity: .26; }
.bb-flowbox .aa { fill: var(--bb-away); opacity: .26; }
.bb-flowbox .ln { fill: none; stroke: var(--bb-ink); stroke-width: 1.6; stroke-linejoin: round; }
.bb-flowbox .now { stroke: var(--bb-live); stroke-width: 2; }
.bb-flowbox .cur { stroke: var(--bb-accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.bb-flowbox .ax { position: absolute; left: 0; transform: translateY(-50%); font-size: 10.5px; font-weight: 700; color: var(--bb-muted); font-variant-numeric: tabular-nums; }
.bb-flowbox .qlab { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: var(--bb-muted); }
.bb-flowbox .mk { position: absolute; width: 10px; height: 10px; border-radius: 9px; transform: translate(-50%, -50%); border: 2px solid var(--bb-card); }
.bb-flowbox .mk.h { background: var(--bb-home); }
.bb-flowbox .mk.a { background: var(--bb-away); }
.bb-flowlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--bb-muted); margin-top: 6px; }
.bb-flowlegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bb-flowlegend i.h { background: var(--bb-home); opacity: .6; }
.bb-flowlegend i.a { background: var(--bb-away); opacity: .6; }
.bb-flowlegend i.r { background: var(--bb-muted); opacity: .25; }
.bb-rewind { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--bb-soft); }
.bb-rewind input[type="range"] { width: 100%; accent-color: var(--bb-accent); }
.bb-rwout { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font-size: 14px; }
.bb-qtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bb-qtile { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--bb-line); background: var(--bb-card); border-top: 4px solid var(--bb-line); min-width: 0; }
.bb-qtile.h { border-top-color: var(--bb-home); background: linear-gradient(var(--bb-home-soft), transparent 70%); }
.bb-qtile.a { border-top-color: var(--bb-away); background: linear-gradient(var(--bb-away-soft), transparent 70%); }
.bb-qtile.soon { opacity: .6; }
.bb-qtile .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.bb-qtile .sc { font-size: 22px; font-weight: 800; }
.bb-cmp small { font-weight: 500; font-size: 11.5px; }
.bb-box td.tm { min-width: 140px; font-weight: 600; }
.bb-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bb-events li { display: grid; grid-template-columns: 58px 16px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--bb-line); font-size: 13.5px; }
.bb-events li:first-child { border-top: 0; }
.bb-events .t { color: var(--bb-muted); font-weight: 700; font-size: 12.5px; }
.bb-events .dot { width: 10px; height: 10px; border-radius: 9px; background: var(--bb-line); justify-self: center; }
.bb-events li.h .dot { background: var(--bb-home); }
.bb-events li.a .dot { background: var(--bb-away); }
.bb-events li.run .x, .bb-events li.lead .x { font-weight: 700; }
.bb-events li.qend, .bb-events li.final { background: var(--bb-soft); border-radius: 8px; border-top-color: transparent; padding-left: 8px; padding-right: 8px; }
.bb-events li.final .x { font-weight: 800; }
.bb-events .sc { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .bb-cpanel { padding: 14px; }
  .bb-flowbox { height: 190px; }
  .bb-events li { grid-template-columns: 48px 12px minmax(0, 1fr) auto; gap: 8px; }
}

/* basketball-v3: section pages (leagues, markets, performance, methodology) */
.bb-lead { margin: 0; max-width: 66ch; color: var(--bb-muted); font-size: 15px; }
.bb-lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.bb-lcard { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bb-lcard-head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bb-ink) !important; min-width: 0; }
.bb-lcard-head b { font-size: 16px; }
.bb-lstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bb-lstats > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--bb-soft); min-width: 0; }
.bb-lstats b { font-size: 17px; }
.bb-lstats .bb-eyebrow { font-size: 10px; letter-spacing: .05em; }
.bb-lrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 10px; font-size: 13.5px; align-items: baseline; }
.bb-lrow > :nth-child(3) { grid-column: 2; font-size: 12.5px; }
.bb-lrow a { text-decoration: none; font-weight: 700; color: var(--bb-ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 16px; }
.bb-mkcard { overflow: hidden; display: flex; flex-direction: column; }
.bb-mkcard-head { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 10px; text-decoration: none; color: var(--bb-ink) !important; }
.bb-mkcard-rec { padding: 0 18px 12px; color: var(--bb-muted); }
.bb-mkcard-more { padding: 12px 18px; border-top: 1px solid var(--bb-line); font-weight: 700; font-size: 13.5px; text-decoration: none; margin-top: auto; }
.bb-mrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 210px); gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--bb-line); color: var(--bb-ink) !important; text-decoration: none; }
a.bb-mrow:hover { background: var(--bb-soft); }
.bb-mrow .bb-teams { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bb-mrow .bb-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bb-mrow .bb-team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-mcell { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-variant-numeric: tabular-nums; }
.bb-mcell b { font-size: 15px; } .bb-mcell .hm { color: var(--bb-home); } .bb-mcell .aw { color: var(--bb-away); } .bb-mcell .t { color: var(--bb-total); }
.bb-prose { display: flex; flex-direction: column; gap: 10px; }
.bb-prose p, .bb-prose li { margin: 0; max-width: 72ch; font-size: 14.5px; line-height: 1.6; }
.bb-prose ul, .bb-prose ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.bb-prose section, .bb-prose[id] { scroll-margin-top: calc(var(--sp-header-h, 64px) + 12px); }
.bb-faq { border-top: 1px solid var(--bb-line); padding: 10px 0; }
.bb-faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
.bb-faq p { margin-top: 8px; color: var(--bb-muted); }
.bb-prow { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--bb-line); color: var(--bb-ink) !important; text-decoration: none; font-size: 13.5px; }
a.bb-prow:hover { background: var(--bb-soft); }
.bb-formula { padding: 12px 14px; border-radius: 12px; background: var(--bb-soft); font-weight: 700; font-size: 14px; }
.bb-code { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--bb-soft); overflow-x: auto; font-size: 12.5px; line-height: 1.5; }
.bb-code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.bb-toc { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--sp-header-h, 64px) + 12px); }
.bb-toc a { padding: 6px 0; border-top: 1px solid var(--bb-line); text-decoration: none; font-weight: 600; font-size: 13.5px; color: var(--bb-ink) !important; }
@media (max-width: 1060px) { .bb-toc { position: static; } }
@media (max-width: 640px) {
  .bb-mgrid { grid-template-columns: minmax(0, 1fr); }
  .bb-mrow { grid-template-columns: 56px minmax(0, 1fr); padding: 12px 14px; }
  .bb-mrow .bb-mcell { grid-column: 2; }
  .bb-lstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-prow { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 14px; }
  .bb-prow > :first-child { grid-column: 1 / -1; }
}

/* basketball-v4: power ranking, team numbers, league profile, leaders, team rating, splits, players */
.bb-spark { display: block; }
.bb-spark .z { stroke: var(--bb-line); stroke-dasharray: 2 3; }
.bb-spark .l { fill: none; stroke: var(--bb-accent); stroke-width: 1.6; stroke-linejoin: round; }
.bb-spark.dn .l { stroke: var(--bb-miss); }
.bb-table small { font-size: 11px; }
.bb-sortable th[data-sort] { cursor: pointer; user-select: none; }
.bb-sortable th[data-sort]:hover { color: var(--bb-ink); }
.bb-sortable th[aria-sort="descending"]::after { content: " ▼"; font-size: 9px; }
.bb-sortable th[aria-sort="ascending"]::after { content: " ▲"; font-size: 9px; }
.bb-leaders { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.bb-leaders .row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--bb-line); font-size: 13.5px; }
.bb-leaders .nm { display: flex; flex-direction: column; min-width: 0; }
.bb-leaders .nm b, .bb-leaders .nm a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.bb-q .num { font-size: 16px; }
.bb-tile .hm { color: var(--bb-home); } .bb-tile .aw { color: var(--bb-away); }
.bb-rchart svg { width: 100%; height: auto; display: block; }
.bb-rchart .z { stroke: var(--bb-muted); stroke-dasharray: 3 4; }
.bb-rchart polyline { fill: none; stroke-linejoin: round; }
.bb-rchart .net { stroke: var(--bb-accent); stroke-width: 2.6; }
.bb-rchart .att { stroke: var(--bb-home); stroke-width: 1.4; opacity: .55; stroke-dasharray: 5 3; }
.bb-rchart .def { stroke: var(--bb-away); stroke-width: 1.4; opacity: .55; stroke-dasharray: 5 3; }
.bb-rchart .ax { font-size: 10.5px; fill: var(--bb-muted); font-weight: 700; }
.bb-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.bb-ranks .r { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--bb-soft); }
.bb-ranks b { font-size: 17px; }
.bb-splits { display: flex; flex-direction: column; }
.bb-splits .r { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1.2fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--bb-line); font-size: 13.5px; }
.bb-splits .bar { height: 8px; border-radius: 9px; background: var(--bb-miss-bg); overflow: hidden; }
.bb-splits .bar i { display: block; height: 100%; background: var(--bb-hit); border-radius: 9px; }
@media (max-width: 640px) { .bb-splits .r { grid-template-columns: minmax(0, 1fr) 52px 80px; gap: 8px; } }
.bb-gside .bb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bb-gside .bb-tile b { font-size: 18px; }

/* ---- basketball-v5: follow stars and buttons (customer hub) ---- */
.bb-row { position: relative; }
.bb-row:hover { background: var(--bb-soft); }
.bb-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bb-cover:focus-visible { outline: 2px solid var(--bb-accent); outline-offset: -2px; }
.bb-row .sp-st, .bb-side-team .sp-st, .bb-namestar .sp-st, .bb-table td.tm .sp-st { z-index: 3; }
.bb-pillcell { align-items: center; gap: 6px; }
.bb-side-team { position: relative; }
.bb-side-team .bb-cover { inset: -6px; border-radius: 14px; }
@media (hover: hover) { .bb-side-team:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; } }
.bb-namestar { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.bb-table td.tm .sp-st { margin-left: 2px; }
.bb-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bb-follow-row { margin-top: 16px; }
.bb.bb .sp-follow:not(.fx-btn) { min-height: 38px; border-radius: 10px; border-color: var(--bb-line); background: var(--bb-card); color: var(--bb-ink); }
.bb.bb .sp-follow:not(.fx-btn):hover { border-color: var(--bb-accent); color: var(--bb-accent-deep); }
.bb.bb .sp-follow.is-on, .bb.bb .sp-follow.is-on:hover { border-color: var(--bb-accent); background: var(--bb-accent-soft); color: var(--bb-accent-deep); }
.bb.bb .sp-follow.is-on .sp-follow-ico { fill: var(--bb-accent); stroke: var(--bb-accent); }
.bb.bb .sp-follow:focus-visible { outline: 3px solid var(--bb-accent-soft); outline-offset: 2px; }
.bb.bb .sp-follow-msg { color: var(--bb-miss); }
.bb-table td.tm a { vertical-align: middle; }
.bb-ghero .sp-follow:not(.fx-btn) { background: var(--bb-soft); }

/* ------------------------------------------------------------------------------------------------------------------
   bbpicks-v1 (15 Nov 2026, owner: layout B on phones and in the app, the picks card on desktop). Every game row
   (_row.blade.php, class bb-r3): the three picks with ✓/✗ and the hits total; the game flow (score difference from our
   own live snapshots: orange = home ahead, teal = away ahead, a red line now while live).
   Desktop: time · teams · bar with the game flow under it · expected · picks card · star.
   Phone and tablet (up to 860 px): top line star · status · game flow; teams and bar on the left, the picks box right.
   ------------------------------------------------------------------------------------------------------------------ */
.bb-r3 { --bb-pk-bg: color-mix(in srgb, var(--bb-soft) 45%, var(--bb-card)); --bb-amber: #b7791f;
  --bb-m-hit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9'/%3E%3C/svg%3E");
  --bb-m-miss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5.4 5.4l5.2 5.2M10.6 5.4l-5.2 5.2'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .bb-r3 { --bb-amber: #eaa73c; }
.bb-row.bb-r3 { grid-template-columns: 76px minmax(0, 1.7fr) minmax(0, 1fr) 78px 184px 24px; grid-template-areas: "time teams bar exp pk star" "time teams flow exp pk star"; column-gap: 14px; row-gap: 4px; }
.bb-r3 > .bb-time .bb-live-badge { white-space: normal; line-height: 1.25; }
.bb-r3 > .bb-time { grid-area: time; }
.bb-r3 > .bb-teams { grid-area: teams; }
.bb-r3 > .bb-barcell { grid-area: bar; align-self: end; }
.bb-r3 > .bb-flow { grid-area: flow; align-self: start; height: 20px; min-width: 0; }
.bb-r3 > .bb-exp { grid-area: exp; }
.bb-r3 > .bb-pk { grid-area: pk; }
.bb-r3 > .bb-pillcell { grid-area: star; justify-content: center; }
.bb-r3 > .bb-st, .bb-r3 .bb-expl { display: none; }

/* the game-flow strip */
.bb-fl { display: block; width: 100%; max-width: 230px; height: 20px; overflow: visible; }
.bb-fl .z, .bb-fl .q { stroke: var(--bb-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bb-fl .h { fill: var(--bb-home); opacity: .38; }
.bb-fl .a { fill: var(--bb-away); opacity: .38; }
.bb-fl .l { fill: none; stroke: var(--bb-muted); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bb-fl .n { stroke: var(--bb-live); stroke-width: 1.6; vector-effect: non-scaling-stroke; }

/* the picks card (desktop) / box (phone) */
.bb-pk { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 8px; min-width: 0; padding: 6px 10px; border: 1px solid var(--bb-line); border-radius: 10px; background: var(--bb-pk-bg); }
.bb-pk-h { grid-column: 1; grid-row: 1; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-muted); line-height: 18px; }
.bb-pk-t, .bb-pk-lv { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; white-space: nowrap; }
.bb-pk-k { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; height: 20px; min-width: 0; }
.bb-pk-k.c-home { color: var(--bb-home); }
.bb-pk-k.c-away { color: var(--bb-away); }
.bb-pk-k.c-total { color: var(--bb-total); }
.bb-pk-k b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font-size: 13px; font-weight: 700; }
.bb-pk-k em { font-style: normal; font-size: 12.5px; color: var(--bb-muted); font-variant-numeric: tabular-nums; }
.bb-pk-k > i { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; }
.bb-pk-k > i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bb-pk-k.is-hit > i::before { width: 100%; height: 100%; background: var(--bb-hit); }
.bb-pk-k.is-miss > i::before { width: 100%; height: 100%; background: var(--bb-miss); }
.bb-pk-k.is-hit > i::after, .bb-pk-k.is-miss > i::after { content: ""; position: absolute; inset: 0; background: var(--bb-card); -webkit-mask: var(--bb-m-hit) center / 100% 100% no-repeat; mask: var(--bb-m-hit) center / 100% 100% no-repeat; }
.bb-pk-k.is-miss > i::after { -webkit-mask-image: var(--bb-m-miss); mask-image: var(--bb-m-miss); }
.bb-pk-t { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 7px; border-radius: 999px; background: var(--bb-soft); font-size: 11px; color: var(--bb-muted); }
.bb-pk-t b { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bb-pk-t b.h0 { color: var(--bb-miss); }
.bb-pk-t b.h1 { color: var(--bb-amber); }
.bb-pk-t b.h2, .bb-pk-t b.h3 { color: var(--bb-hit); }
.bb-pk-lv { display: inline-flex; align-items: center; gap: 5px; color: var(--bb-live); font-size: 11.5px; font-weight: 700; }
.bb-pk-lv > i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bb-pk-none { grid-column: 1 / -1; font-size: 12px; color: var(--bb-muted); }
.bb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* phone and tablet: layout B */
@media (max-width: 860px) {
  .bb-row.bb-r3 { grid-template-columns: minmax(0, 1fr) 118px; grid-template-areas: "top top" "teams pk" "bar pk"; column-gap: 10px; row-gap: 5px; padding: 9px 12px 11px; }
  .bb-r3 > .bb-time, .bb-r3 > .bb-exp { display: none; }
  .bb-r3 > .bb-pillcell { grid-area: top; justify-self: start; align-self: center; justify-content: flex-start; }
  .bb-r3 > .bb-st { display: flex; grid-area: top; justify-self: start; align-self: center; align-items: center; gap: 6px; min-height: 24px; margin-left: 30px; white-space: nowrap; }
  .bb-r3 > .bb-st b { font-size: 13px; font-variant-numeric: tabular-nums; }
  .bb-r3 > .bb-st b.fin { color: var(--bb-muted); }
  .bb-r3 > .bb-st span:not(.bb-live-badge) { font-size: 11.5px; color: var(--bb-muted); font-weight: 600; }
  .bb-r3 > .bb-st .bb-live-badge { font-size: 10.5px; padding: 3px 6px; }
  .bb-r3 > .bb-flow { grid-area: top; justify-self: end; align-self: center; width: 118px; height: 22px; }
  .bb-r3 > .bb-flow .bb-fl { height: 22px; }
  .bb-r3 > .bb-barcell { grid-area: bar; align-self: start; gap: 4px; }
  .bb-r3 .bb-pcts { font-size: 12px; }
  .bb-r3 .bb-bar { height: 7px; }
  .bb-r3 .bb-expl { display: block; font-size: 11.5px; color: var(--bb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bb-r3 .bb-teams { gap: 4px; }
  .bb-r3 .bb-team { gap: 8px; }
  .bb-r3 .bb-team .bb-crest, .bb-r3 .bb-team .bb-abbr { width: 22px; height: 22px; border-radius: 6px; font-size: 8px; }
  .bb-r3 .bb-team span.nm { font-size: 14.5px; }
  .bb-r3 > .bb-pk { display: flex; flex-direction: column; align-self: stretch; padding: 3px 6px 5px 7px; }
  .bb-r3 .bb-pk-h { font-size: 9.5px; line-height: 16px; }
  .bb-r3 .bb-pk-k { height: 18px; gap: 4px; }
  .bb-r3 .bb-pk-k b { font-size: 12px; }
  .bb-r3 .bb-pk-k em { display: none; }
  .bb-r3 .bb-pk-t, .bb-r3 .bb-pk-lv { margin-top: auto; align-self: flex-start; padding: 0; background: none; }
  .bb-r3 .bb-pk-t { font-size: 11px; height: 16px; }
  .bb-r3 .bb-pk-t b { font-size: 13.5px; }
}
@media (max-width: 359px) {
  .bb-row.bb-r3 { grid-template-columns: minmax(0, 1fr) 112px; padding: 9px 10px 11px; }
  .bb-r3 > .bb-flow { width: 96px; }
  .bb-r3 .bb-pk-k b { font-size: 11.5px; }
}

/* bbday-v1 (owner, 16 Nov 2026): the basketball day on phones and tablets (narrower than the two columns): one
   scrolling line of days, one of Filters, Jump to and the day's leagues, the Time view only, the title on one line,
   How to read a row under Our basketball record. Desktop keeps its side column (and opens in the Time view). */
.bb-mtop, .bb-legend-m { display: none; }
.bb-ibtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 34px; padding: 0; border: 1px solid var(--bb-line); border-radius: 999px; background: var(--bb-card); color: var(--bb-ink); cursor: pointer; }
.bb-ibtn:hover { border-color: var(--bb-accent); }
.bb-lgc .bb-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--bb-line); color: var(--bb-ink); font-size: 11.5px; font-weight: 800; }
.bb-lgc[aria-pressed="true"] .bb-n { background: var(--bb-accent); color: #fff; }
.bb-main > section, .bb-main > .bb-legend-m { scroll-margin-top: 84px; }
.bb-jsheet .sd-sheet-panel { height: auto; max-height: 82vh; }
.bb-jsheet .sd-sheet-body { overflow-y: auto; padding: 4px 10px max(18px, env(safe-area-inset-bottom, 0px)); }
.bb-jlist { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 2px; }
.bb-jlist button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border: 0; border-radius: 12px; background: none; color: var(--bb-ink); font: inherit; font-size: 15px; font-weight: 650; text-align: left; cursor: pointer; }
.bb-jlist button:hover, .bb-jlist button:focus-visible { background: var(--bb-line); }
.bb-jlist .s { color: var(--bb-muted); font-weight: 500; font-size: 13px; }
.bb-jlist .n { margin-left: auto; color: var(--bb-muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bb-jlist .lv::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--bb-live); vertical-align: 1px; }
@media (max-width: 860px) {
  .bb-side { display: none; }
  .bb-mtop { display: flex; flex-direction: column; gap: 10px; }
  .bb-legend-m { display: flex; }
  .bb-scroll { display: flex; align-items: center; gap: 7px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * max(16px, env(safe-area-inset-right, 0px))) 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    padding: 2px max(16px, env(safe-area-inset-right, 0px)) 2px max(16px, env(safe-area-inset-left, 0px)); }
  .bb-scroll::-webkit-scrollbar { display: none; }
  .bb-scroll > * { flex: none; white-space: nowrap; }
  .bb-scroll .bb-chip { height: 34px; padding: 0 13px; }
  .bb-mtools .sp-fx-open { width: 36px; height: 34px; padding: 0; border-radius: 999px; }
  .bb-mtools .sp-fx-open-label { display: none; }
  .bb-mtools .sp-fx-open .sp-fx-badge { position: absolute; top: -4px; right: -4px; }
  .bb-fxslot:empty { display: none; }
  .bb-hero-in { gap: 9px; padding-top: 16px; padding-bottom: 14px; }
  .bb-hero h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; line-height: 1.2; font-size: clamp(17px, 5.4vw, 22px); }
  .bb-hero h1 .bb-h1b { display: none; }   /* option B (owner, 16 Nov 18:38): up to the colon on phones; search engines read it all */
}

/* sportsday-v1 (owner, 16 Nov 2026): on phones the cards run edge to edge, as football's sections do */
@media (max-width: 860px) {
  .bb-main { gap: 10px; }
  .bb-main > .bb-card { margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .bb-main > .bb-card.bb-pad, .bb-main > .bb-legend-m { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* colors-v1: game rows on football's row colour (in dark: darker than the section, as football's list) */
:where(.bb-main, .bb) .bb-row { background: var(--bb-rowbg); }

/* nba-v1 (17 Nov 2026): the NBA game clock, player pages, standings, rosters, the NBA live-centre extras */
.bb-live-badge.is-stopped { background: var(--bb-muted); }
.bb-clockst { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.bb-clockst.is-running { color: var(--bb-hit); }
.bb-clockst.is-stopped { color: var(--bb-muted); }
.nba-initials { font-size: 22px; }
.nba-tiles { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.nba-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid var(--bb-line); font-size: 13.5px; }
.nba-kv:first-of-type { border-top: 0; }
.nba-kv span { color: var(--bb-muted); }
.nba-kv b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.nba-confs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.nba-st td.tm { white-space: nowrap; }
.bb-gcols.nba-pcols { grid-template-columns: minmax(0, 1fr); }
.nba-pcols .bb-gside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 760px) { .nba-pcols .bb-gside { grid-template-columns: minmax(0, 1fr); } }
.nba-divs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nba-st td.tm a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; }
.nba-st td.tm a span { overflow: hidden; text-overflow: ellipsis; max-width: 190px; white-space: nowrap; }
.nba-st tr.nba-po td:first-child { box-shadow: inset 3px 0 0 var(--bb-hit); }
.nba-st tr.nba-pi td:first-child { box-shadow: inset 3px 0 0 var(--bb-muted); }
.nba-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; }
.nba-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: -8px; }
.nba-legend span.po { background: var(--bb-hit); }
.nba-legend span.pi { background: var(--bb-muted); }
.nba-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; padding-top: 8px; border-top: 1px solid var(--bb-line); }
.nba-info div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.nba-info span { color: var(--bb-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.nba-log td.tm { white-space: nowrap; }
@media (max-width: 1100px) { .nba-divs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .nba-confs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .nba-divs { grid-template-columns: minmax(0, 1fr); }
  .nba-hs { display: none; }
  .nba-st td.tm a span { max-width: 130px; }
}
