/* Explicit admin opt-in. Table values, colors, inputs, filters and column order
   remain the application's. No browser zoom, clipping, or hidden data rows. */
.sp-stream-toggle[aria-pressed="true"]{background:#00aeef!important;color:#051521!important;border:1px solid #00aeef!important}
.sp-stream-mode > header > .ct,
.sp-stream-mode > nav > .ct,
.sp-stream-mode > main.ct{max-width:none;width:100%;padding-left:8px!important;padding-right:8px!important}
.sp-stream-mode > header > .ct{padding-top:4px!important;padding-bottom:4px!important}
.sp-stream-mode > header .header-title{font-size:20px!important;line-height:1.25}
.sp-stream-mode > nav{position:sticky;top:var(--stream-header-height,44px);z-index:49;background:#101c2b}
.sp-stream-mode > nav > .ct{padding-top:4px!important;padding-bottom:4px!important;gap:8px;flex-wrap:wrap}
.sp-stream-mode > nav > .ct > :first-child{min-width:0;max-width:100%;padding-left:0!important;flex:1 1 auto}
.sp-stream-mode > nav .btn{flex-shrink:0;white-space:nowrap;font-size:clamp(16px,1vw,18px);line-height:1.25;padding:6px 8px}
.sp-stream-mode > main.ct{padding-top:8px!important;padding-bottom:12px!important}
body[data-sp-ui="mlb"] .sp-stream-mode > main .sp-page-title{font-size:20px!important;line-height:1.25;margin:0!important}
.sp-stream-mode > main > .fc{gap:6px}
.sp-stream-mode > footer{display:none}
.sp-stream-mode .sp-stream-legend{padding:6px 10px;margin-bottom:6px}
.sp-stream-mode .sp-stream-subtitle{margin-top:4px!important;font-size:18px}
/* SPAGS and Sims: make the players and key figures readable in a video share.
   Keep every row and the existing local horizontal scroll on narrower screens. */
@media(min-width:1000px){
  body[data-sp-ui="mlb"] .sp-stream-mode > main .sp-page-title{font-size:clamp(28px,2.5vw,36px)!important}
  .sp-stream-mode[data-stream-tab="stacks"] .mgrid-top > .gc > div:nth-child(2) > div > .fm{font-size:14px!important}
  .sp-stream-mode[data-stream-tab="stacks"] .mgrid-top > .gc > div:nth-child(2) > div > div:nth-child(n+4){font-size:16px!important}
  .sp-stream-mode[data-stream-tab="simulator"] main > .fc > .fc > .gl > .ox > table > tbody > tr.hr{height:var(--stream-player-row,96px)}
  .sp-stream-mode[data-stream-tab="simulator"] main > .fc > .fc > .gl > .ox > table > tbody > tr.hr > td{font-size:clamp(20px,1.7vw,32px)!important;padding:8px 6px!important;line-height:1.3;vertical-align:middle}
  .sp-stream-mode[data-stream-tab="simulator"] main > .fc > .fc > .gl > .ox > table > tbody > tr.hr > td:first-child{font-size:clamp(26px,2.2vw,40px)!important;font-weight:600!important;white-space:normal;min-width:180px}
  .sp-stream-mode[data-stream-tab="simulator"] main > .fc > .fc > .gl > .ox > table > thead th{font-size:15px!important;padding:6px!important}
  .sp-stream-mode[data-stream-tab="simulator"] main > .fc > .fc > .gl > .ox > table > tbody > tr.hr > td:nth-child(2) > span{font-size:clamp(16px,1.25vw,21px)!important}
  /* SPAGS is a five-player broadcast view, not a density preset. Remaining
     players stay in the same table below the fold; sorting/editing are intact. */
  .sp-stream-mode[data-stream-tab="projections"] main tbody tr{height:var(--stream-player-row,96px)}
  .sp-stream-mode[data-stream-tab="projections"] main td{font-size:clamp(20px,1.7vw,32px)!important;padding:8px 6px!important;line-height:1.3;vertical-align:middle}
  .sp-stream-mode[data-stream-tab="projections"] main td:first-child{font-size:clamp(26px,2.2vw,40px)!important;white-space:normal;min-width:160px}
  .sp-stream-mode[data-stream-tab="projections"] main td :is(.edit-input,.team-badge){font-size:inherit!important}
  .sp-stream-mode[data-stream-tab="projections"] main th{font-size:15px;padding:6px}
  .sp-stream-mode[data-stream-tab="projections"] main .edit-input{width:4.3em;max-width:100%}
  /* Give HR the same five-player focus, while fitting every comparison column.
     Names carry the strongest type; dense secondary rates scale to the width. */
  .sp-stream-mode[data-stream-tab="hrprob"] main table{table-layout:fixed;min-width:0}
  .sp-stream-mode[data-stream-tab="hrprob"] main tbody tr{height:var(--stream-player-row,96px)}
  .sp-stream-mode[data-stream-tab="hrprob"] main :is(th,td){padding:7px 4px!important;font-size:clamp(18px,1.5vw,28px)!important;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
  .sp-stream-mode[data-stream-tab="hrprob"] main th{font-size:14px!important;line-height:1.25}
  .sp-stream-mode[data-stream-tab="hrprob"] main :is(th,td):first-child{width:15%}
  .sp-stream-mode[data-stream-tab="hrprob"] main :is(th,td):nth-child(3){width:13%}
  .sp-stream-mode[data-stream-tab="hrprob"] main :is(th,td):last-child{width:6%;white-space:nowrap}
  .sp-stream-mode[data-stream-tab="hrprob"] main td:first-child{font-size:clamp(26px,2.2vw,40px)!important;line-height:1.2;overflow-wrap:normal}
  .sp-stream-mode[data-stream-tab="hrprob"] main td:nth-child(13){font-weight:700}
  .sp-stream-mode[data-stream-tab="hrprob"] main td:last-child{font-size:clamp(16px,1.2vw,22px)!important}
  /* Shrink toolbar type/spacing before wrapping. Overflow remains visible
     so the existing Quick Fav dropdown is never clipped by its parent. */
  .sp-stream-mode .mlb-lineups-controls{flex-wrap:wrap;gap:2px;overflow:visible}
  .sp-stream-mode .mlb-lineups-controls > :is(div,span.flex){flex-wrap:nowrap}
  .sp-stream-mode .mlb-lineups-controls :is(button,a,label,input,select,span){font-size:clamp(10px,.75vw,13px)!important}
  .sp-stream-mode .mlb-lineups-controls :is(button,a.btn,label.btn){padding:4px 3px!important}
  .sp-stream-mode .mlb-lineups-controls :is(input:not([type=file]),select){padding:4px!important}
  .sp-stream-mode[data-stream-tab="lineups2"] main table td div[title]{font-size:clamp(15px,1.18vw,20px)!important;min-width:72px!important;line-height:1.25!important}
  .sp-stream-mode[data-stream-tab="lineups2"] main table td > div > .flex span{font-size:11px!important}
  .sp-stream-mode[data-stream-tab="lineups2"] main table td{padding-top:7px!important;padding-bottom:7px!important}
  .sp-stream-mode[data-stream-tab="lineups2"] main table th{font-size:12px!important}
  .sp-stream-mode[data-stream-tab="lineups2"] main table td:nth-last-child(-n+4){font-size:clamp(12px,1vw,16px)!important}
}
@media(max-width:999px){
  .sp-stream-mode > nav .hd-mobile{display:inline!important}
  .sp-stream-mode > nav > .ct > :last-child{display:none}
  .sp-stream-mode > header > .ct{gap:4px}
  .sp-stream-mode > header .header-title{font-size:17px!important}
  .sp-stream-mode[data-stream-tab="stacks"] main > .fc > .flex > .flex{min-width:0;max-width:100%}
  .sp-stream-mode[data-stream-tab="stacks"] main > .fc > .flex > .flex > select{min-width:0}
  .sp-stream-mode[data-stream-tab="simulator"] main > .fc > .flex > .flex:first-child{flex-wrap:wrap}
}
