/* NBA admin stream presentation (order 166, Iris, 14 Oct 2026), to NFL's and MLB's standard (nfl/ and mlb/stream-presentation.css).
   Explicit admin opt-in: the page's existing Stream button sets .sp-stream-mode on the page root, data-stream-tab = active tab.
   Table values, colours, inputs, filters, sorting and column order remain the application's. No browser zoom, no clipping, no
   hidden rows. The join band and its QR are hidden, as on NFL and MLB, and so is the Sims tab's Late swap panel (Chris's picks,
   15 Oct 2026); their markup stays in the page. NFL and MLB size the five broadcast rows by measuring the page in script; NBA has
   no script for it, so the rows come from the compact chrome's height below (--nba-stream-chrome: header + nav + title row +
   table head) and the band's (--nba-stream-band, 0px now that the band is hidden). */
.sp-stream-toggle[aria-pressed="true"]{background:#00aeef!important;color:#051521!important;border:1px solid #00aeef!important}

.sp-stream-mode{--nba-stream-chrome:184px;--nba-stream-band:0px;padding-bottom:var(--nba-stream-band)!important}

/* Chrome: compact header and nav (padding only; the logo and title are the header's), full-width content, no footer. */
.sp-stream-mode > header > .ct,.sp-stream-mode > nav > .ct{max-width:none;padding-left:12px!important;padding-right:12px!important}
.sp-stream-mode > header > .ct{padding-top:4px!important;padding-bottom:4px!important}
.sp-stream-mode > nav > .ct{padding-top:4px!important;padding-bottom:4px!important}
.sp-stream-mode > main.ct{max-width:none;width:100%;padding:8px 12px 8px!important}
.sp-stream-mode > div.sp-app-main,.sp-stream-mode > div.ct{max-width:none;width:100%;padding:8px 12px 8px!important}
.sp-stream-mode > main.ct:empty{padding:0!important}
.sp-stream-mode > footer{display:none}
body:has(.sp-stream-mode) > .sp-seo-intro{display:none}

/* Page heading and tool rows: one tight line. */
.sp-stream-mode > :is(main,div.sp-app-main,div.ct) :is(.fc.g4,.fc.g3){gap:8px}
.sp-stream-mode > :is(main,div.sp-app-main,div.ct) h2.fd.t2x{font-size:clamp(28px,2.5vw,36px)!important;line-height:1.15!important;margin:0!important}
.sp-stream-mode > :is(main,div.sp-app-main,div.ct) .flex.ac.jb.fw:has(h2.fd.t2x){margin-bottom:0!important;row-gap:6px}
.sp-stream-mode > :is(main,div.sp-app-main,div.ct) .flex.ac.jb.fw:has(h2.fd.t2x) :is(.btn,input,select){min-height:30px}

/* The join band and its QR: hidden, as NFL and MLB retired theirs on 23 September. CSS only: the words, link and prices stay in
   the page's markup. The toast goes back to where it sits outside stream mode. */
.sp-stream-mode > .stream-cta,.sp-stream-mode > .stream-qr{display:none}
.sp-stream-mode > .toast{bottom:24px!important}
/* Sims: the Late swap panel (its own data-sp-late-swap="panel") is an admin tool, hidden on stream. The Lineup news panel has no
   selector of its own, so it stays, compacted below. */
.sp-stream-mode[data-stream-tab="simulator"] > main [data-sp-late-swap="panel"]{display:none}

@media(min-width:1000px){
  /* SPAGS: a five-player broadcast view, not a density preset. The rest of the players stay in the same table below;
     sorting and admin editing are intact. Rows with fewer cells (none today) keep their own height. */
  .sp-stream-mode[data-stream-tab="proj"] > main table tbody tr:has(> td:nth-child(8)){height:max(64px,calc((100vh - var(--nba-stream-chrome) - var(--nba-stream-band) - 8px) / 5))}
  .sp-stream-mode[data-stream-tab="proj"] > main table tbody td{font-size:clamp(20px,1.7vw,32px)!important;padding:8px 6px!important;line-height:1.25;vertical-align:middle}
  .sp-stream-mode[data-stream-tab="proj"] > main table tbody td:first-child{font-size:clamp(24px,2.1vw,40px)!important;font-weight:600!important;white-space:normal;min-width:180px}
  .sp-stream-mode[data-stream-tab="proj"] > main table tbody td .txs{font-size:clamp(13px,.95vw,18px)!important;line-height:1.2}
  .sp-stream-mode[data-stream-tab="proj"] > main table tbody td span.rd.txs.fw6{font-size:clamp(14px,1.1vw,20px)!important;line-height:1.3;min-width:2.8em}
  .sp-stream-mode[data-stream-tab="proj"] > main table thead th{font-size:15px!important;padding:6px!important}
  /* Sims: the same five-player focus on the results table once a sim has run. Filters, sort and sim controls are untouched;
     the Lineup news panel and the legend are compacted. */
  .sp-stream-mode[data-stream-tab="simulator"] > main table tbody tr:has(> td:nth-child(8)){height:max(64px,calc((100vh - var(--nba-stream-chrome) - var(--nba-stream-band) - 8px) / 5))}
  .sp-stream-mode[data-stream-tab="simulator"] > main table tbody tr:has(> td:nth-child(8)) > td{font-size:clamp(20px,1.7vw,32px)!important;padding:8px 6px!important;line-height:1.25;vertical-align:middle}
  .sp-stream-mode[data-stream-tab="simulator"] > main table tbody tr:has(> td:nth-child(8)) > td:first-child{font-size:clamp(24px,2.1vw,40px)!important;font-weight:600!important;white-space:normal;min-width:180px}
  .sp-stream-mode[data-stream-tab="simulator"] > main table thead th{font-size:15px!important;padding:6px!important}
  .sp-stream-mode[data-stream-tab="simulator"] > main .gl.rx.mb4[style*="padding: 8px 10px"]{padding:6px 12px!important}
  .sp-stream-mode[data-stream-tab="simulator"] > main .gl.rx.p6.mb4{padding:8px 16px!important}
  /* Matrix: position grouping, labels, heat meanings and column order stay; the cards share the screen in two rows and the
     type grows with the width. Header and row cells keep one width per column, set in px/vw. */
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc{height:max(200px,calc((100vh - var(--nba-stream-chrome) - var(--nba-stream-band) - 4px) / 2))!important}
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc > div:first-child .fd{font-size:clamp(20px,1.6vw,28px)!important}
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc .flex.ac.g1{font-size:clamp(13px,1.05vw,17px)!important;padding:5px 6px!important}
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc .flex.ac.g1.tc.fm{font-size:clamp(11px,.8vw,13px)!important}
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc .flex.ac.g1 > :not(.f1){flex:0 0 var(--mx-col,clamp(42px,3.1vw,58px));width:var(--mx-col,clamp(42px,3.1vw,58px))!important;min-width:0!important;padding:0 2px!important;box-sizing:border-box}
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc .flex.ac.g1 > :nth-child(2){flex-basis:clamp(54px,3.9vw,72px);width:clamp(54px,3.9vw,72px)!important}
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc .flex.ac.g1 > .f1{font-weight:600;font-size:clamp(14px,1.1vw,18px)!important;min-width:7.5em;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.15}
}
/* Under about 1100px the header's own row wraps to two lines (83px, not 45px; measured at 1093px with the lab admin's name),
   so the table starts 34 to 38px lower. */
@media(min-width:1000px) and (max-width:1119px){.sp-stream-mode{--nba-stream-chrome:222px}}
/* Below 1500px the three-across row keeps all five cards on one screen: numeric columns and figures step down first. */
@media(min-width:1000px) and (max-width:1499px){
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc .flex.ac.g1{font-size:14px!important}
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc .flex.ac.g1 > :not(.f1){--mx-col:40px}
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc .flex.ac.g1 > :nth-child(2){flex-basis:56px;width:56px!important}
  .sp-stream-mode[data-stream-tab="matrix"] > main .mc .flex.ac.g1 > .f1{font-size:14px!important}
}

/* Matchups (Iris, 26 Oct 2026): the game head and each team's line and comparison, sized to read on the stream. */
.sp-stream-mode .nmu-badge.nmu-lg{font-size:2rem}
.sp-stream-mode .nmu-hname{font-size:1.3rem}
.sp-stream-mode .nmu-time{font-size:1.1rem}
.sp-stream-mode .nmu-ouv{font-size:2.1rem}
.sp-stream-mode .nmu-badge{font-size:.95rem}
.sp-stream-mode .nmu-badge.nmu-md{font-size:1.35rem}
.sp-stream-mode .nmu-name{font-size:1.2rem}
.sp-stream-mode .nmu-l{font-size:.75rem}
.sp-stream-mode .nmu-v{font-size:1.9rem}
.sp-stream-mode .nmu-c{font-size:1.02rem}
.sp-stream-mode .nmu-hd .nmu-c{font-size:.76rem}
.sp-stream-mode .nmu-rh{font-size:.92rem}
