/* STATBASKET CONSOLE UI V45 */
.team-btn{min-height:108px!important;padding:14px!important}
.team-btn>:not(.team-name){display:none!important}
.team-btn .team-name{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;font-size:clamp(24px,2.5vw,38px)!important;line-height:1.05!important;font-weight:1000!important}
.clock-box{background:#fff!important;color:#111827!important;border:2px solid #cbd5e1!important}
html[data-sb-theme="dark"] .clock-box,body.sb-v37-dark .clock-box{background:#1e293b!important;color:#fff!important;border-color:#475569!important}
#sbScorelineV39{grid-template-columns:minmax(130px,1fr) minmax(220px,1.35fr) minmax(130px,1fr)!important;align-items:stretch!important}
.sb-v45-score-wrap{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:0!important}
#sbHomeScoreWrapV45{grid-column:1!important;grid-row:1!important}
#sbScorelineV39>.sb-v39-clock-core{grid-column:2!important;grid-row:1!important}
#sbAwayScoreWrapV45{grid-column:3!important;grid-row:1!important}
.sb-v45-score-wrap .team-score{width:100%!important}
.sb-v45-score-meta{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:5px 10px!important;width:100%!important;font-size:clamp(12px,1.15vw,17px)!important;line-height:1!important;font-weight:1000!important;color:#334155!important}
.sb-v45-score-meta strong{font-size:1.35em!important;color:#0f172a!important}
.sb-v45-bonus{display:none;padding:4px 9px;border-radius:999px;background:#facc15;color:#111827;font-weight:1000}
.sb-v45-score-wrap.is-bonus .sb-v45-bonus{display:inline-flex!important}
html[data-sb-theme="dark"] .sb-v45-score-meta,body.sb-v37-dark .sb-v45-score-meta,html[data-sb-theme="dark"] .sb-v45-score-meta strong,body.sb-v37-dark .sb-v45-score-meta strong{color:#fff!important}
#sbMainLayoutV44>.topbar .ctrl{min-width:68px!important;height:58px!important;padding:0 10px!important;font-size:clamp(18px,1.6vw,24px)!important;line-height:1!important;font-weight:1000!important}
#actionsPanel .actions{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
#actionsPanel .action{font-size:clamp(42px,5vw,74px)!important;font-weight:1000!important}
#actionsPanel .action small{display:block;font-size:.25em;line-height:1;margin-top:4px}
#playersList .player-number{display:flex!important;align-items:center!important;justify-content:center!important;width:58px!important;height:58px!important;border:4px solid #fff!important;border-radius:50%!important;background:#fff!important;color:#0f172a!important;font-size:clamp(36px,3.8vw,56px)!important;line-height:1!important;font-weight:1000!important;box-shadow:0 3px 12px #0005!important}
#lastActionBar{display:flex!important;visibility:visible!important;opacity:1!important;min-height:92px!important;background:#fff!important;color:#0f172a!important;border:3px solid #22c55e!important;font-size:clamp(25px,2.7vw,40px)!important}
html[data-sb-theme="dark"] #lastActionBar,body.sb-v37-dark #lastActionBar{background:#1e293b!important;color:#fff!important}
@media(max-width:700px),(orientation:portrait) and (max-width:900px){
 .team-btn{min-height:76px!important;padding:7px!important}.team-btn .team-name{font-size:14px!important}
 #sbScorelineV39{grid-template-columns:minmax(72px,1fr) minmax(130px,1.25fr) minmax(72px,1fr)!important;gap:3px!important}
 .sb-v45-score-meta{gap:3px 5px!important;font-size:8px!important}.sb-v45-score-meta strong{font-size:11px!important}.sb-v45-bonus{padding:2px 5px!important}
 #sbMainLayoutV44>.topbar .ctrl{min-width:54px!important;height:48px!important;padding:0 6px!important;font-size:15px!important}
 body:not(.sb-layout-desktop) #actionsPanel .actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(5,minmax(0,1fr))!important}
 body:not(.sb-layout-desktop) #actionsPanel .action{font-size:34px!important}
 body:not(.sb-layout-desktop) #playersList .player-number{width:38px!important;height:38px!important;border-width:2px!important;font-size:26px!important}
 #lastActionBar{min-height:70px!important;font-size:21px!important}
}

/* VISIBLE JERSEY NUMBERS */
#playersList .player .player-number,#playersList .player-number{color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;opacity:1!important;visibility:visible!important;text-shadow:none!important}

/* V46 ACTION FLOW AND COMPLETE EVENT EDITOR */
#actionsPanel .action.p2,#actionsPanel .action.p3,#actionsPanel .action.ft{font-size:clamp(62px,7.2vw,108px)!important;line-height:.85!important}
#actionsPanel .actions{height:calc(100% - 174px)!important}
#actionsPanel .staff-box{bottom:16px!important;z-index:3!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
#actionsPanel .staff-btn{height:62px!important;font-size:clamp(17px,1.8vw,26px)!important;font-weight:1000!important}
#playersPanel.sb-v46-saving:after{content:"REGISTRAZIONE…";position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:#ffffffd9;color:#0f172a;font-size:clamp(28px,4vw,54px);font-weight:1000}
#playersPanel.sb-v46-saving{pointer-events:none!important}
#sbPlayerFoulsQuickV38{width:190px!important;min-width:190px!important;max-width:190px!important;padding:0 12px!important;white-space:normal!important;line-height:1.05!important;background:#7c3aed!important;color:#fff!important}
#eventsScreen{z-index:700000!important;background:#eef2f7!important;color:#0f172a!important}
#eventsScreen .nav-top{position:sticky!important;top:0!important;z-index:5!important}
.sb-v46-event-type{width:100%;height:58px;margin:0 0 14px;padding:0 14px;border:2px solid #cbd5e1;border-radius:15px;background:#fff;color:#0f172a;font-size:20px;font-weight:900}
@media(max-width:700px),(orientation:portrait) and (max-width:900px){
 body:not(.sb-layout-desktop) #actionsPanel .action.p2,body:not(.sb-layout-desktop) #actionsPanel .action.p3,body:not(.sb-layout-desktop) #actionsPanel .action.ft{font-size:52px!important}
 body:not(.sb-layout-desktop) #actionsPanel .actions{height:calc(100% - 120px)!important}
 body:not(.sb-layout-desktop) #actionsPanel .staff-box{bottom:7px!important;gap:6px!important}
 body:not(.sb-layout-desktop) #actionsPanel .staff-btn{height:42px!important;font-size:12px!important}
 #sbPlayerFoulsQuickV38{width:145px!important;min-width:145px!important;max-width:145px!important;font-size:12px!important}
}

/* V47 FIBA TECHNICAL / UNSPORTSMANLIKE STATUS */
#actionsPanel{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:12px!important}
#actionsPanel .sb-v43-actions-head{margin:0!important}
#actionsPanel .actions{position:static!important;height:auto!important;min-height:0!important;margin:0!important}
#actionsPanel .staff-box{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin:0!important}
#actionsPanel .staff-btn{height:60px!important}
#playersList .player{grid-template-columns:88px minmax(0,1fr)!important}
#playersList .player-number{width:78px!important;height:78px!important;font-size:62px!important}
#playersList .player-stats{display:flex!important;align-items:center!important;gap:5px!important}
#playersList .player-stats .tech,#playersList .player-stats .uns,#playersList .player-stats .gd{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:46px!important;min-height:36px!important;padding:5px 7px!important;border:2px solid #fff!important;border-radius:8px!important;color:#fff!important;font-size:clamp(16px,1.5vw,22px)!important;font-weight:1000!important}
#playersList .player-stats .tech{background:#7c3aed!important}
#playersList .player-stats .uns{background:#ea580c!important}
#playersList .player-stats .gd{background:#dc2626!important}
.sb-v45-staff-meta{flex-basis:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
.sb-v45-staff-meta .sb-v45-gd{display:none!important;padding:3px 7px;border-radius:7px;background:#dc2626;color:#fff!important}
.sb-v45-score-wrap.coach-ejected .sb-v45-gd{display:inline-flex!important}
@media(max-width:700px),(orientation:portrait) and (max-width:900px){
 body:not(.sb-layout-desktop) #actionsPanel{grid-template-rows:auto minmax(0,1fr) 44px!important;gap:6px!important}
 body:not(.sb-layout-desktop) #actionsPanel .actions{height:auto!important}
 body:not(.sb-layout-desktop) #actionsPanel .staff-box{position:static!important;inset:auto!important}
 body:not(.sb-layout-desktop) #actionsPanel .staff-btn{height:44px!important}
 body:not(.sb-layout-desktop) #playersList .player{grid-template-columns:58px minmax(0,1fr)!important}
 body:not(.sb-layout-desktop) #playersList .player-number{width:52px!important;height:52px!important;font-size:38px!important}
 body:not(.sb-layout-desktop) #playersList .player-stats .tech,body:not(.sb-layout-desktop) #playersList .player-stats .uns,body:not(.sb-layout-desktop) #playersList .player-stats .gd{min-width:30px!important;min-height:25px!important;padding:2px 3px!important;font-size:11px!important}
}

/* V48 CLEAN SCOREBOARD + ROYAL BLUE THEME */
#sbMainLayoutV44>.scoreboard,.scoreboard{background:transparent!important;background-color:transparent!important;border:0!important;box-shadow:none!important}
#sbMainLayoutV44>.scoreboard:before,#sbMainLayoutV44>.scoreboard:after,.scoreboard:before,.scoreboard:after{display:none!important;content:none!important}
.scoreboard>.clock-box{background:#fff!important;border-color:#cbd5e1!important;box-shadow:none!important}
html[data-sb-theme="royal"],html[data-sb-theme="royal"] body,body.sb-theme-royal{background:#0b2f78!important;color:#fff!important}
html[data-sb-theme="royal"] #sbMainMenuV44,
html[data-sb-theme="royal"] #sbMainLayoutV44>.topbar,
html[data-sb-theme="royal"] .guide,
html[data-sb-theme="royal"] #lastActionBar,
html[data-sb-theme="royal"] .clock-box,
html[data-sb-theme="royal"] #sbProDashboard,
html[data-sb-theme="royal"] .sbpro-tabs,
html[data-sb-theme="royal"] .sbpro-body,
html[data-sb-theme="royal"] .sbpro-footer,
html[data-sb-theme="royal"] .sbpro-card,
html[data-sb-theme="royal"] .sbpro-table-wrap,
html[data-sb-theme="royal"] .sbpro-pbp,
body.sb-theme-royal #sbMainMenuV44,
body.sb-theme-royal #sbMainLayoutV44>.topbar,
body.sb-theme-royal .guide,
body.sb-theme-royal #lastActionBar,
body.sb-theme-royal .clock-box,
body.sb-theme-royal #sbProDashboard,
body.sb-theme-royal .sbpro-tabs,
body.sb-theme-royal .sbpro-body,
body.sb-theme-royal .sbpro-footer,
body.sb-theme-royal .sbpro-card,
body.sb-theme-royal .sbpro-table-wrap,
body.sb-theme-royal .sbpro-pbp{background:#123f96!important;color:#fff!important;border-color:#5b8def!important}
html[data-sb-theme="royal"] .sbpro-tab,
html[data-sb-theme="royal"] .sbpro-stat,
html[data-sb-theme="royal"] .sbpro-pbp-row,
html[data-sb-theme="royal"] .qbox,
body.sb-theme-royal .sbpro-tab,
body.sb-theme-royal .sbpro-stat,
body.sb-theme-royal .sbpro-pbp-row,
body.sb-theme-royal .qbox{background:#194daf!important;color:#fff!important;border-color:#6998ed!important}
html[data-sb-theme="royal"] .sbpro-tab.active,
body.sb-theme-royal .sbpro-tab.active{background:#facc15!important;color:#10275b!important}
html[data-sb-theme="royal"] .sbpro-table th,
body.sb-theme-royal .sbpro-table th{background:#0d327d!important;color:#fff!important}
html[data-sb-theme="royal"] .sbpro-table td,
body.sb-theme-royal .sbpro-table td{background:#17489f!important;color:#fff!important;border-color:#4778cf!important}
html[data-sb-theme="royal"] .sbpro-pbp-row *,
body.sb-theme-royal .sbpro-pbp-row *{color:#fff!important}
html[data-sb-theme="royal"] .sb-v45-score-meta,
html[data-sb-theme="royal"] .sb-v45-score-meta strong,
body.sb-theme-royal .sb-v45-score-meta,
body.sb-theme-royal .sb-v45-score-meta strong{color:#fff!important}

/* V49 COMPACT PLAYERS + TWO-SIDED PLAY BY PLAY */
.sbpro-table th:nth-child(n+3),.sbpro-table td:nth-child(n+3){text-align:center!important;font-size:clamp(20px,2vw,30px)!important;font-weight:1000!important}
.sbpro-pbp{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px 14px!important;align-items:start!important}
.sbpro-pbp-row{min-width:0!important}
.sbpro-pbp-row.sb-pbp-home{grid-column:1!important;border-left:7px solid var(--home-color)!important}
.sbpro-pbp-row.sb-pbp-away{grid-column:2!important;border-left:7px solid var(--away-color)!important}
@media(max-width:700px){
 .sbpro-pbp{gap:5px!important}
 .sbpro-pbp-row{grid-template-columns:45px 32px minmax(0,1fr)!important;padding:7px!important;font-size:10px!important}
 .sbpro-pbp-score{display:none!important}
}

/* V50 BRAND, SERVER REFRESH AND ROOMIER POPUPS */
#sbBrandV50{order:-10!important;display:flex!important;align-items:center!important;align-self:stretch!important;margin-right:auto!important;padding:0 16px!important;border-radius:12px!important;background:#17489f!important;color:#fff!important;font-size:clamp(22px,2vw,32px)!important;line-height:1!important;font-weight:1000!important;letter-spacing:-.02em!important}
#sbRefreshV50{order:-9!important;min-width:112px!important;padding:0 14px!important;border:0!important;border-radius:12px!important;background:#16a34a!important;color:#fff!important;font-size:16px!important;font-weight:1000!important}
#sbRefreshV50:disabled{opacity:.65!important}
#actionsPanel{inset:4px!important;width:auto!important;height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important;padding:22px!important;gap:16px!important}
#actionsPanel .sb-v43-actions-head{grid-template-columns:minmax(0,1fr) auto auto!important;gap:14px!important}
#actionsPanel .actions{gap:18px!important}
#playersPanel .sb-v42-popup-head{grid-template-columns:minmax(0,1fr) auto auto!important}
.sb-v50-cancel{min-width:130px!important;height:72px!important;padding:0 15px!important;border:0!important;border-radius:15px!important;background:#dc2626!important;color:#fff!important;font-size:16px!important;font-weight:1000!important}
#playersPanel .sb-v50-cancel{height:64px!important}
@media(max-width:700px),(orientation:portrait) and (max-width:900px){
 #sbBrandV50{width:100%!important;min-height:38px!important;justify-content:center!important;margin:0!important;font-size:23px!important}
 #sbRefreshV50{min-width:88px!important;font-size:11px!important}
 body:not(.sb-layout-desktop) #actionsPanel{inset:2px!important;height:calc(100dvh - 4px)!important;max-height:calc(100dvh - 4px)!important;padding:7px!important;gap:6px!important}
 body:not(.sb-layout-desktop) #actionsPanel .sb-v43-actions-head,body:not(.sb-layout-desktop) #playersPanel .sb-v42-popup-head{grid-template-columns:minmax(0,1fr) 82px 68px!important;gap:4px!important}
 body:not(.sb-layout-desktop) #actionsPanel .actions{gap:8px!important}
 body:not(.sb-layout-desktop) .sb-v50-cancel{min-width:0!important;width:68px!important;height:50px!important;padding:0 4px!important;font-size:9px!important}
 body:not(.sb-layout-desktop) #playersPanel .sb-v50-cancel{height:48px!important}
}

/* V51 SMALLER STAFF LABELS, CLOCK STATUS, FONT CONTROLS, POINT EDITOR */
.sb-v45-staff-meta{font-size:clamp(9px,.85vw,13px)!important;line-height:1!important;gap:5px!important}
.sb-v45-staff-meta strong{font-size:1.15em!important}
#sbClockStateV51{margin-top:7px;padding:4px 10px;border-radius:999px;background:#dc2626;color:#fff;font-size:clamp(11px,1vw,15px);line-height:1;font-weight:1000;letter-spacing:.03em}
#sbClockStateV51.is-running{background:#16a34a!important}
#sbFontToolsV51{order:-8!important;display:grid!important;grid-template-columns:42px 58px 42px!important;height:38px!important;border-radius:11px!important;overflow:hidden!important;border:1px solid #94a3b8!important}
#sbFontToolsV51 button{min-width:0!important;width:auto!important;height:38px!important;min-height:38px!important;padding:0!important;border:0!important;border-radius:0!important;background:#e2e8f0!important;color:#0f172a!important;font-size:13px!important;font-weight:1000!important}
#sbFontToolsV51 button+button{border-left:1px solid #94a3b8!important}
.mini-edit-row{display:grid!important;grid-template-columns:1fr 110px 1fr!important;align-items:center!important}
.mini-point-value{height:64px;display:flex;align-items:center;justify-content:center;border:3px solid #2563eb;border-radius:18px;background:#fff;color:#0f172a;font-size:38px;font-weight:1000}
@media(max-width:700px){
 .sb-v45-staff-meta{font-size:7px!important;gap:3px!important}
 #sbClockStateV51{margin-top:3px;padding:3px 5px;font-size:7px}
 #sbFontToolsV51{grid-template-columns:30px 44px 30px!important;height:32px!important}
 #sbFontToolsV51 button{height:32px!important;min-height:32px!important;font-size:10px!important}
 .mini-edit-row{grid-template-columns:1fr 70px 1fr!important}.mini-point-value{height:54px;font-size:30px}
}

/* V52 CENTERED ACTION WINDOW */
#actionsPanel{inset:3dvh 2vw!important;width:96vw!important;height:94dvh!important;max-width:none!important;max-height:94dvh!important;margin:0 auto!important;padding:16px!important;gap:10px!important;border-radius:22px!important}
#actionsPanel .actions{gap:12px!important}
#actionsPanel .action{border-radius:16px!important}
@media(max-width:700px),(orientation:portrait) and (max-width:900px){
 body:not(.sb-layout-desktop) #actionsPanel{inset:1dvh 1vw!important;width:98vw!important;height:98dvh!important;max-height:98dvh!important;padding:6px!important;gap:5px!important;border-radius:12px!important}
 body:not(.sb-layout-desktop) #actionsPanel .actions{gap:6px!important}
}

/* V53 ACTION POPUP FITS ITS CONTENT */
@media(min-width:701px){
 #actionsPanel{
   top:2dvh!important;
   right:2vw!important;
   bottom:auto!important;
   left:2vw!important;
   width:96vw!important;
   height:auto!important;
   max-height:96dvh!important;
   grid-template-rows:auto auto auto!important;
   align-content:start!important;
   overflow:hidden!important;
 }
 #actionsPanel .actions{
   height:auto!important;
   grid-template-rows:repeat(2,minmax(135px,18dvh))!important;
   grid-auto-rows:minmax(135px,18dvh)!important;
 }
 #actionsPanel .staff-box{min-height:76px!important}
}

/* V54 NEAR-FULLSCREEN ACTION POPUP */
@media(min-width:701px){
 #actionsPanel{
   top:2dvh!important;
   right:1vw!important;
   bottom:auto!important;
   left:1vw!important;
   width:98vw!important;
   height:96dvh!important;
   max-height:96dvh!important;
   padding:18px!important;
   grid-template-rows:minmax(86px,12vh) minmax(0,1fr) minmax(76px,10vh)!important;
   align-content:stretch!important;
 }
 #actionsPanel .actions{
   height:auto!important;
   min-height:0!important;
   grid-template-rows:repeat(2,minmax(0,1fr))!important;
   grid-auto-rows:minmax(0,1fr)!important;
 }
 #actionsPanel .staff-box{height:auto!important;min-height:0!important}
 #actionsPanel .staff-btn{height:100%!important}
}

/* V55 FORCE ACTIONS TO FILL THE WHOLE POPUP */
@media(min-width:701px){
 #actionsPanel{
   display:flex!important;
   flex-direction:column!important;
   align-items:stretch!important;
   justify-content:stretch!important;
   top:1dvh!important;
   right:1vw!important;
   bottom:1dvh!important;
   left:1vw!important;
   width:98vw!important;
   height:auto!important;
   max-height:none!important;
   gap:12px!important;
 }
 #actionsPanel .sb-v43-actions-head{flex:0 0 clamp(86px,12dvh,125px)!important}
 #actionsPanel .actions{
   flex:1 1 auto!important;
   height:auto!important;
   min-height:0!important;
   grid-template-rows:repeat(2,minmax(0,1fr))!important;
   grid-auto-rows:minmax(0,1fr)!important;
 }
 #actionsPanel .action{height:100%!important;min-height:0!important}
 #actionsPanel .staff-box{flex:0 0 clamp(76px,10dvh,105px)!important;height:auto!important;min-height:0!important}
}

/* V56 ABSOLUTE FULL-PAGE ACTION LAYOUT - RESISTS INLINE DISPLAY:BLOCK */
@media(min-width:701px){
 #actionsPanel{position:fixed!important;inset:1dvh 1vw!important;width:98vw!important;height:98dvh!important;max-height:98dvh!important;padding:0!important;overflow:hidden!important}
 #actionsPanel .sb-v43-actions-head{position:absolute!important;top:14px!important;left:14px!important;right:14px!important;height:clamp(86px,12dvh,120px)!important;margin:0!important}
 #actionsPanel .actions{
   position:absolute!important;
   top:calc(clamp(86px,12dvh,120px) + 26px)!important;
   right:14px!important;
   bottom:calc(clamp(78px,10dvh,100px) + 26px)!important;
   left:14px!important;
   width:auto!important;
   height:auto!important;
   display:grid!important;
   grid-template-columns:repeat(5,minmax(0,1fr))!important;
   grid-template-rows:repeat(2,minmax(0,1fr))!important;
   gap:12px!important;
 }
 #actionsPanel .action{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important}
 #actionsPanel .staff-box{
   position:absolute!important;
   right:14px!important;
   bottom:14px!important;
   left:14px!important;
   width:auto!important;
   height:clamp(78px,10dvh,100px)!important;
   min-height:0!important;
   margin:0!important;
 }
}

/* V58 FOUL FREE-THROW FLOW */
#sbFoulShotsV58{position:fixed;inset:0;z-index:900000;display:none;align-items:center;justify-content:center;padding:20px;background:#020617dd;backdrop-filter:blur(7px)}
#sbFoulShotsV58.show{display:flex!important}
.sb-v58-card{width:min(760px,94vw);padding:24px;border:4px solid #f59e0b;border-radius:26px;background:#fff;color:#0f172a;box-shadow:0 30px 100px #000b}
.sb-v58-title{text-align:center;font-size:clamp(28px,4vw,48px);font-weight:1000}
.sb-v58-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}
.sb-v58-buttons button{height:clamp(100px,18vh,170px);border:0;border-radius:20px;background:#17489f;color:#fff;font-size:clamp(52px,7vw,92px);font-weight:1000}
.sb-v58-close{width:100%;height:62px;margin-top:14px;border:0;border-radius:16px;background:#dc2626;color:#fff;font-size:20px;font-weight:1000}

/* V59 FREE THROW MADE/MISSED */
.sb-v58-subtitle,.sb-v59-shooter,.sb-v59-progress{text-align:center;margin-top:10px;font-size:clamp(20px,2.8vw,34px);font-weight:1000}
#sbFtResultV59{position:fixed;inset:0;z-index:910000;display:none;align-items:center;justify-content:center;padding:20px;background:#020617e8;backdrop-filter:blur(7px)}
#sbFtResultV59.show{display:flex!important}
.sb-v59-results{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}
.sb-v59-results button{height:clamp(120px,22vh,210px);border:0;border-radius:22px;color:#fff;font-size:clamp(30px,4vw,58px);font-weight:1000}
.sb-v59-results .made{background:#16a34a}.sb-v59-results .miss{background:#dc2626}


/* V60 - QUINTETTI E CAMBI */
#sbLineupModalV60{position:fixed;inset:0;z-index:10050;display:none;background:rgba(8,18,35,.82);padding:clamp(8px,1.5vw,24px);box-sizing:border-box}
#sbLineupModalV60.show{display:flex;align-items:stretch;justify-content:center}
.sb-v60-card{width:min(1500px,100%);height:100%;max-height:100%;display:flex;flex-direction:column;background:#f7fafc;color:#172033;border:5px solid #dbe6f0;border-radius:24px;overflow:hidden;box-sizing:border-box}
.sb-v60-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 20px;background:#11233a;color:#fff}
.sb-v60-head h2{font-size:clamp(30px,4vw,58px);line-height:1;margin:0}.sb-v60-head p{font-size:clamp(15px,1.5vw,22px);margin:7px 0 0}
.sb-v60-cancel,.sb-v60-save{border:0;border-radius:14px;padding:16px 24px;font-weight:1000;font-size:clamp(17px,1.8vw,25px);color:#fff;background:#e1262f;cursor:pointer}
.sb-v60-save{background:#16834c;min-width:250px}.sb-v60-save:disabled{opacity:.55}
.sb-v60-body{display:grid;grid-template-columns:1fr 1fr;gap:14px;flex:1;min-height:0;padding:14px;overflow:hidden}
.sb-v60-team{display:flex;flex-direction:column;min-width:0;min-height:0;border:3px solid #c9d7e5;border-radius:18px;overflow:hidden;background:#fff}
.sb-v60-team header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:#e9f1f8}
.sb-v60-team h3{font-size:clamp(22px,2.3vw,36px);margin:0}.sb-v60-count{font-size:clamp(16px,1.5vw,23px);font-weight:1000;color:#b91c1c}.sb-v60-count.ok{color:#08783f}
.sb-v60-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;overflow:auto;align-content:start}
.sb-v60-player{min-height:76px;display:grid;grid-template-columns:74px 1fr;grid-template-rows:1fr auto;align-items:center;text-align:left;border:3px solid #ccd8e4;border-radius:14px;background:#f7fafc;color:#172033;padding:7px 10px;cursor:pointer}
.sb-v60-player.selected{background:#dff7e9;border-color:#16834c;box-shadow:inset 0 0 0 2px #16834c}.sb-v60-player.disabled{opacity:.43;cursor:not-allowed}
.sb-v60-number{grid-row:1/3;font-size:clamp(34px,4vw,58px);line-height:1;color:#0d4b80}.sb-v60-player-name{font-size:clamp(17px,1.8vw,26px);font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-v60-player-meta{font-size:14px;font-weight:900;color:#516174}.sb-v60-player.selected .sb-v60-player-meta{color:#08783f}
.sb-v60-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:10px 16px;background:#e9f1f8}.sb-v60-error{flex:1;color:#b91c1c;font-size:18px;font-weight:1000}
#sbChangeLineupV60{background:#0d4b80!important;color:#fff!important;min-width:120px}
.sb-v60-on-court{outline:4px solid #20a765!important;outline-offset:-4px}.sb-v60-on-court::after{content:'IN CAMPO';position:absolute;right:8px;top:8px;background:#08783f;color:#fff;padding:3px 7px;border-radius:7px;font-size:11px;font-weight:1000}
.sbpro-table tr.sb-v60-row-on-court td{background:#e3f7ec!important}.sbpro-court-mark{display:inline-block;margin-left:7px;padding:2px 6px;border-radius:6px;background:#08783f;color:#fff;font-size:10px;font-weight:1000;vertical-align:middle}
@media(max-width:767px){
 #sbLineupModalV60{padding:4px}.sb-v60-card{border-width:2px;border-radius:14px}.sb-v60-head{padding:9px 10px}.sb-v60-head p{display:none}
 .sb-v60-body{grid-template-columns:1fr;gap:7px;padding:7px;overflow:auto}.sb-v60-team{overflow:visible}.sb-v60-roster{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;padding:6px}
 .sb-v60-player{grid-template-columns:48px 1fr;min-height:60px;padding:5px}.sb-v60-number{font-size:34px}.sb-v60-player-name{font-size:16px}
 .sb-v60-actions{position:sticky;bottom:0;padding:7px}.sb-v60-save{min-width:0;padding:12px 14px}.sb-v60-error{font-size:13px}
}


/* V61 - CAMBI ACCANTO ALLA GUIDA, ROSTER SENZA SCROLL */
#sbGuideLineupRowV61{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;width:100%;box-sizing:border-box}
#sbGuideLineupRowV61 #guideText{margin:0!important;width:auto!important;min-width:0!important}
#sbGuideLineupRowV61 #sbChangeLineupV60{height:100%;min-width:150px!important;padding:8px 20px!important;font-size:clamp(18px,1.7vw,27px)!important;border-radius:12px!important}
#sbLineupModalV60 .sb-v60-head{padding:8px 16px}
#sbLineupModalV60 .sb-v60-head h2{font-size:clamp(27px,3vw,45px)}
#sbLineupModalV60 .sb-v60-head p{margin:3px 0 0;font-size:clamp(13px,1.15vw,18px)}
#sbLineupModalV60 .sb-v60-body{gap:8px;padding:8px}
#sbLineupModalV60 .sb-v60-team header{padding:6px 10px}
#sbLineupModalV60 .sb-v60-team h3{font-size:clamp(19px,1.8vw,28px)}
#sbLineupModalV60 .sb-v60-count{font-size:clamp(14px,1.25vw,19px)}
#sbLineupModalV60 .sb-v60-roster{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:6px;overflow:hidden}
#sbLineupModalV60 .sb-v60-player{min-height:52px;grid-template-columns:48px minmax(0,1fr);padding:3px 6px;border-width:2px;border-radius:10px}
#sbLineupModalV60 .sb-v60-number{font-size:clamp(27px,2.8vw,41px)}
#sbLineupModalV60 .sb-v60-player-name{font-size:clamp(13px,1.25vw,18px)}
#sbLineupModalV60 .sb-v60-player-meta{font-size:11px}
#sbLineupModalV60 .sb-v60-actions{padding:6px 12px}
#sbLineupModalV60 .sb-v60-save,#sbLineupModalV60 .sb-v60-cancel{padding:10px 17px;font-size:clamp(15px,1.35vw,20px)}
@media(max-width:767px){
 #sbGuideLineupRowV61{gap:5px}
 #sbGuideLineupRowV61 #sbChangeLineupV60{min-width:92px!important;padding:5px 8px!important;font-size:16px!important}
 #sbLineupModalV60 .sb-v60-body{overflow:hidden}
 #sbLineupModalV60 .sb-v60-roster{grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden}
 #sbLineupModalV60 .sb-v60-player{grid-template-columns:36px minmax(0,1fr);min-height:46px}
 #sbLineupModalV60 .sb-v60-number{font-size:27px}
 #sbLineupModalV60 .sb-v60-player-name{font-size:12px}
 #sbLineupModalV60 .sb-v60-player-meta{font-size:9px}
}


/* V62 - la guida resta sotto il tabellone */
#sbGuideLineupRowV61{position:relative!important;inset:auto!important;z-index:20}


/* =========================================================
   V63 - TEMA PROFESSIONAL
   ========================================================= */
html[data-sb-theme="professional"]{
 --sb-pro-ink:#162235;
 --sb-pro-navy:#203a5f;
 --sb-pro-navy-hover:#2b4d79;
 --sb-pro-line:#c8d2de;
 --sb-pro-surface:#ffffff;
 --sb-pro-soft:#eef2f6;
}
html[data-sb-theme="professional"] body{background:#e8edf3!important;color:var(--sb-pro-ink)!important;font-family:Arial,Helvetica,sans-serif!important}
html[data-sb-theme="professional"] .header,
html[data-sb-theme="professional"] .topbar,
html[data-sb-theme="professional"] #sbTopControlsV39{background:var(--sb-pro-surface)!important;color:var(--sb-pro-ink)!important;border-color:var(--sb-pro-line)!important;box-shadow:none!important}
html[data-sb-theme="professional"] body button:not(#homeBtn):not(#awayBtn){
 background:var(--sb-pro-navy)!important;
 background-image:none!important;
 color:#fff!important;
 border-color:var(--sb-pro-navy)!important;
 box-shadow:none!important;
 text-shadow:none!important;
}
html[data-sb-theme="professional"] body button:not(#homeBtn):not(#awayBtn):hover,
html[data-sb-theme="professional"] body button:not(#homeBtn):not(#awayBtn):focus{
 background:var(--sb-pro-navy-hover)!important;
 border-color:var(--sb-pro-navy-hover)!important;
}
html[data-sb-theme="professional"] #homeBtn,
html[data-sb-theme="professional"] #awayBtn{background-image:none!important;box-shadow:none!important}
html[data-sb-theme="professional"] .scoreboard,
html[data-sb-theme="professional"] .clock-box,
html[data-sb-theme="professional"] #sbScorelineV39,
html[data-sb-theme="professional"] .last-action,
html[data-sb-theme="professional"] .guide,
html[data-sb-theme="professional"] #sbProDashboard,
html[data-sb-theme="professional"] .sbpro-card,
html[data-sb-theme="professional"] .sb-v60-card{
 background:var(--sb-pro-surface)!important;
 color:var(--sb-pro-ink)!important;
 border-color:var(--sb-pro-line)!important;
 box-shadow:none!important;
}
html[data-sb-theme="professional"] .guide,
html[data-sb-theme="professional"] #guideText{
 background:var(--sb-pro-soft)!important;
 color:var(--sb-pro-ink)!important;
}
html[data-sb-theme="professional"] .action-title,
html[data-sb-theme="professional"] .selected-action,
html[data-sb-theme="professional"] .sb-v58-title,
html[data-sb-theme="professional"] .sb-v60-head,
html[data-sb-theme="professional"] .sbpro-card-title{
 background:var(--sb-pro-navy)!important;
 color:#fff!important;
}
html[data-sb-theme="professional"] .panel,
html[data-sb-theme="professional"] .screen,
html[data-sb-theme="professional"] #actionsPanel,
html[data-sb-theme="professional"] #playersPanel,
html[data-sb-theme="professional"] #eventsScreen{background:#f5f7fa!important;color:var(--sb-pro-ink)!important}
html[data-sb-theme="professional"] .ctrl,
html[data-sb-theme="professional"] .action-btn,
html[data-sb-theme="professional"] .player,
html[data-sb-theme="professional"] .staff-btn{border-radius:8px!important}


/* =========================================================
   V64 - GUIDA SOTTO CRONOMETRO E CONTROLLI PROFESSIONAL
   ========================================================= */
#sbMainLayoutV44>#sbGuideLineupRowV61{
 order:3!important;
 position:relative!important;
 inset:auto!important;
 width:100%!important;
 margin:0!important;
}
html[data-sb-theme="professional"] #sbMainMenuV44{
 gap:7px!important;
 padding:8px 10px!important;
 align-items:stretch!important;
}
html[data-sb-theme="professional"] #sbMainMenuV44 button:not(#sbHomePalette button):not(#sbAwayPalette button),
html[data-sb-theme="professional"] #sbMainMenuV44 a,
html[data-sb-theme="professional"] #sbMainMenuV44 .sb-sync-badge{
 min-height:42px!important;
 height:42px!important;
 padding:0 15px!important;
 border:1px solid var(--sb-pro-navy)!important;
 border-radius:8px!important;
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 font-size:13px!important;
 line-height:1!important;
 font-weight:900!important;
 letter-spacing:.01em!important;
 white-space:nowrap!important;
}
html[data-sb-theme="professional"] #sbMainMenuV44 #sbConsoleLockBar{
 min-height:42px!important;
 height:42px!important;
 padding:0 12px!important;
 border:1px solid var(--sb-pro-navy)!important;
 border-radius:8px!important;
 background:var(--sb-pro-navy)!important;
 color:#fff!important;
 box-shadow:none!important;
}
html[data-sb-theme="professional"] #sbMainMenuV44 #sbHomePalette,
html[data-sb-theme="professional"] #sbMainMenuV44 #sbAwayPalette{
 min-height:42px!important;
 height:42px!important;
 border-radius:8px!important;
 overflow:hidden!important;
}
html[data-sb-theme="professional"] #sbMainLayoutV44>.topbar{
 display:grid!important;
 grid-template-columns:repeat(auto-fit,minmax(88px,1fr))!important;
 gap:7px!important;
 padding:8px!important;
}
html[data-sb-theme="professional"] #sbMainLayoutV44>.topbar .ctrl{
 width:100%!important;
 min-width:0!important;
 height:54px!important;
 min-height:54px!important;
 padding:0 10px!important;
 border-radius:8px!important;
 font-size:clamp(14px,1.2vw,18px)!important;
 font-weight:900!important;
}
html[data-sb-theme="professional"] #sbGuideLineupRowV61 #sbChangeLineupV60{
 border-radius:8px!important;
}
@media(max-width:700px){
 #sbMainLayoutV44>#sbGuideLineupRowV61{order:3!important}
 html[data-sb-theme="professional"] #sbMainMenuV44 button:not(#sbHomePalette button):not(#sbAwayPalette button),
 html[data-sb-theme="professional"] #sbMainMenuV44 a,
 html[data-sb-theme="professional"] #sbMainMenuV44 .sb-sync-badge{
  min-height:34px!important;height:34px!important;padding:0 8px!important;font-size:9px!important
 }
 html[data-sb-theme="professional"] #sbMainMenuV44 #sbConsoleLockBar{min-height:34px!important;height:34px!important}
 html[data-sb-theme="professional"] #sbMainLayoutV44>.topbar{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;padding:5px!important}
 html[data-sb-theme="professional"] #sbMainLayoutV44>.topbar .ctrl{height:44px!important;min-height:44px!important;font-size:12px!important;padding:0 4px!important}
}

/* V65 RESET, CONTRASTO OROLOGIO, PROFESSIONAL 3D, ROYAL PRO */
html[data-sb-theme="light"] #clock,body.sb-v37-light #clock{color:#b91c1c!important;-webkit-text-fill-color:#b91c1c!important}
html[data-sb-theme="light"] #period,body.sb-v37-light #period{color:#334155!important}
html[data-sb-theme="dark"] #clock,body.sb-v37-dark #clock{color:#f8fafc!important;-webkit-text-fill-color:#f8fafc!important}
html[data-sb-theme="dark"] #period,body.sb-v37-dark #period{color:#cbd5e1!important}
html[data-sb-theme="professional"] .clock-box,html[data-sb-theme="professional"] #sbScorelineV39,html[data-sb-theme="professional"] .sb-v39-clock-core{background:#fff!important}
html[data-sb-theme="professional"] #clock{color:#17375f!important;-webkit-text-fill-color:#17375f!important;text-shadow:none!important}
html[data-sb-theme="professional"] #period{color:#52657d!important}
html[data-sb-theme="royal"] #clock{color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 2px 5px #0007!important}
html[data-sb-theme="royal"] #period{color:#f6c453!important}
html[data-sb-theme="professional"] body button:not(#homeBtn):not(#awayBtn){background:linear-gradient(180deg,#355a88 0%,#203a5f 58%,#192f4f 100%)!important;border:1px solid #142b49!important;box-shadow:0 4px 0 #10243d,0 6px 12px rgba(14,31,52,.24),inset 0 1px 0 rgba(255,255,255,.28)!important;transform:translateY(0);transition:transform .08s ease,box-shadow .08s ease,filter .12s ease!important}
html[data-sb-theme="professional"] body button:not(#homeBtn):not(#awayBtn):hover{background:linear-gradient(180deg,#40699c 0%,#294a76 58%,#203a5f 100%)!important;filter:brightness(1.03)}
html[data-sb-theme="professional"] body button:not(#homeBtn):not(#awayBtn):active{transform:translateY(3px)!important;box-shadow:0 1px 0 #10243d,0 2px 5px rgba(14,31,52,.22),inset 0 1px 0 rgba(255,255,255,.2)!important}
html[data-sb-theme="professional"] #homeBtn,html[data-sb-theme="professional"] #awayBtn{box-shadow:0 4px 0 rgba(15,23,42,.45),0 6px 12px rgba(15,23,42,.2)!important}
html[data-sb-theme="royal"]{--sb-royal-bg:#071a3d;--sb-royal-panel:#102b5a;--sb-royal-panel2:#183f7a;--sb-royal-line:rgba(196,216,255,.22);--sb-royal-text:#f4f7fb;--sb-royal-muted:#a9bad4;--sb-royal-accent:#f6b93b}
html[data-sb-theme="royal"],html[data-sb-theme="royal"] body,body.sb-theme-royal{background:var(--sb-royal-bg)!important;color:var(--sb-royal-text)!important}
html[data-sb-theme="royal"] #sbMainMenuV44,html[data-sb-theme="royal"] #sbMainLayoutV44>.topbar,html[data-sb-theme="royal"] #lastActionBar,html[data-sb-theme="royal"] #sbProDashboard,html[data-sb-theme="royal"] .sbpro-tabs,html[data-sb-theme="royal"] .sbpro-body,html[data-sb-theme="royal"] .sbpro-footer,html[data-sb-theme="royal"] .sbpro-card,html[data-sb-theme="royal"] .sbpro-table-wrap,html[data-sb-theme="royal"] .sb-v60-card{background:var(--sb-royal-panel)!important;color:var(--sb-royal-text)!important;border-color:var(--sb-royal-line)!important;box-shadow:0 5px 18px rgba(0,0,0,.18)!important}
html[data-sb-theme="royal"] .guide,html[data-sb-theme="royal"] #guideText,html[data-sb-theme="royal"] .clock-box,html[data-sb-theme="royal"] #sbScorelineV39,html[data-sb-theme="royal"] .sb-v39-clock-core,html[data-sb-theme="royal"] .sbpro-tab,html[data-sb-theme="royal"] .sbpro-stat,html[data-sb-theme="royal"] .sbpro-pbp-row{background:var(--sb-royal-panel2)!important;color:var(--sb-royal-text)!important;border-color:var(--sb-royal-line)!important}
html[data-sb-theme="royal"] body button:not(#homeBtn):not(#awayBtn){background:linear-gradient(180deg,#24549b 0%,#183f7a 60%,#123364 100%)!important;color:#fff!important;border-color:#315f9f!important;box-shadow:0 3px 0 #091f44,inset 0 1px 0 rgba(255,255,255,.2)!important}
html[data-sb-theme="royal"] body button:not(#homeBtn):not(#awayBtn):active{transform:translateY(2px)!important;box-shadow:0 1px 0 #091f44!important}
html[data-sb-theme="royal"] .sbpro-table th{background:var(--sb-royal-panel2)!important;color:var(--sb-royal-muted)!important}

/* V66 PROFESSIONAL PLAYER LEGIBILITY, COURT GREEN, PLAYER NUMBER POSITION */
html[data-sb-theme="professional"] #sbProDashboard .sbpro-table,
html[data-sb-theme="professional"] #sbProDashboard .sbpro-table th,
html[data-sb-theme="professional"] #sbProDashboard .sbpro-table td,
html[data-sb-theme="professional"] #sbProDashboard .sbpro-player,
html[data-sb-theme="professional"] #sbProDashboard .sbpro-number{
 color:#101820!important;
 -webkit-text-fill-color:#101820!important;
}
html[data-sb-theme="professional"] #sbProDashboard .sbpro-table th{background:#dfe6ee!important}
html[data-sb-theme="professional"] #sbProDashboard .sbpro-table td{background:#fff!important;border-color:#c8d2de!important}
html[data-sb-theme="professional"] #sbProDashboard .sb-v60-row-on-court td{background:#dff5e8!important}
html[data-sb-theme="professional"] #playersList .player-info,
html[data-sb-theme="professional"] #playersList .player-name,
html[data-sb-theme="professional"] #playersList .player-stats,
html[data-sb-theme="professional"] #playersList .player-stats .pt,
html[data-sb-theme="professional"] #playersList .player-stats .fl{
 color:#101820!important;
 -webkit-text-fill-color:#101820!important;
}
html[data-sb-theme="professional"] #sbLineupModalV60 .sb-v60-player.selected{
 background:linear-gradient(180deg,#32b76a 0%,#16834c 60%,#0d673a 100%)!important;
 border-color:#075f32!important;
 color:#fff!important;
 box-shadow:0 4px 0 #064728,0 6px 10px rgba(6,71,40,.25),inset 0 1px 0 rgba(255,255,255,.3)!important;
}
html[data-sb-theme="professional"] #sbLineupModalV60 .sb-v60-player.selected .sb-v60-number,
html[data-sb-theme="professional"] #sbLineupModalV60 .sb-v60-player.selected .sb-v60-player-name,
html[data-sb-theme="professional"] #sbLineupModalV60 .sb-v60-player.selected .sb-v60-player-meta{
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
#playersList .player{
 display:grid!important;
 grid-template-columns:68px minmax(0,1fr)!important;
 grid-template-rows:auto!important;
 align-items:start!important;
 column-gap:10px!important;
}
#playersList .player-number{
 grid-column:1!important;
 grid-row:1!important;
 align-self:start!important;
 justify-self:start!important;
 margin:0!important;
 width:58px!important;
 height:58px!important;
 font-size:clamp(34px,3.2vw,48px)!important;
}
#playersList .player-info{
 grid-column:2!important;
 grid-row:1!important;
 min-width:0!important;
 align-self:start!important;
}
#playersList .player-name{
 text-align:left!important;
 padding-top:2px!important;
}
@media(max-width:700px){
 #playersList .player{grid-template-columns:48px minmax(0,1fr)!important;column-gap:6px!important}
 #playersList .player-number{width:42px!important;height:42px!important;font-size:28px!important}
}

/* V67 PLAYER NUMBER AND NAME INLINE */
#playersList .player{
 grid-template-columns:78px minmax(0,1fr)!important;
 align-items:start!important;
}
#playersList .player-number{
 width:68px!important;
 height:68px!important;
 font-size:clamp(40px,3.8vw,56px)!important;
}
#playersList .player-info{
 display:grid!important;
 grid-template-rows:auto auto!important;
 align-content:start!important;
}
#playersList .player-name,
html[data-sb-theme="professional"] #playersList .player-name{
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 text-align:left!important;
 align-self:center!important;
 padding:7px 0 5px!important;
 line-height:1.05!important;
 text-shadow:0 2px 3px rgba(0,0,0,.35)!important;
}
@media(max-width:700px){
 #playersList .player{grid-template-columns:58px minmax(0,1fr)!important}
 #playersList .player-number{width:50px!important;height:50px!important;font-size:34px!important}
 #playersList .player-name,html[data-sb-theme="professional"] #playersList .player-name{padding:5px 0 3px!important}
}

/* V68 PLAYER BOX ORDER AND COMPACT FOUL SUMMARY */
#playersPanel #playersList .player{
 display:grid!important;
 grid-template-columns:78px minmax(0,1fr)!important;
 grid-template-rows:auto!important;
 align-items:start!important;
 column-gap:10px!important;
}
#playersPanel #playersList .player .player-number{
 grid-column:1!important;
 grid-row:1!important;
 order:0!important;
 align-self:start!important;
}
#playersPanel #playersList .player .player-info{
 grid-column:2!important;
 grid-row:1!important;
 display:flex!important;
 flex-direction:column!important;
 align-items:stretch!important;
 justify-content:flex-start!important;
 min-width:0!important;
 position:static!important;
}
#playersPanel #playersList .player .player-name{
 order:1!important;
 position:static!important;
 display:block!important;
 width:100%!important;
 margin:0!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 text-align:left!important;
}
#playersPanel #playersList .player .player-stats{
 order:2!important;
 position:static!important;
 inset:auto!important;
 display:flex!important;
 flex-direction:row!important;
 flex-wrap:nowrap!important;
 align-items:center!important;
 justify-content:flex-start!important;
 gap:5px!important;
 width:100%!important;
 margin:4px 0 0!important;
}
.sb-player-fouls-overlay{padding:8px!important}
.sb-player-fouls-card{
 width:min(1500px,99vw)!important;
 height:auto!important;
 max-height:98vh!important;
 overflow:hidden!important;
 border-width:3px!important;
 border-radius:16px!important;
}
.sb-player-fouls-head{
 position:static!important;
 min-height:44px!important;
 padding:5px 10px!important;
 border-bottom-width:2px!important;
 font-size:clamp(18px,2vw,28px)!important;
}
.sb-player-fouls-close{
 width:38px!important;
 height:38px!important;
 border-radius:8px!important;
 font-size:25px!important;
}
.sb-player-fouls-teams{
 grid-template-columns:1fr 1fr!important;
 gap:8px!important;
 padding:8px!important;
}
.sb-player-fouls-team{border-radius:11px!important}
.sb-player-fouls-title{
 padding:5px 7px!important;
 font-size:clamp(15px,1.45vw,21px)!important;
}
.sb-player-foul-row{
 grid-template-columns:54px minmax(0,1fr) 72px!important;
 gap:5px!important;
 min-height:38px!important;
 height:38px!important;
 padding:3px 7px!important;
}
.sb-player-foul-number{font-size:clamp(17px,1.7vw,24px)!important}
.sb-player-foul-name{
 font-size:clamp(13px,1.35vw,19px)!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
}
.sb-player-foul-count{
 border-radius:7px!important;
 padding:3px 5px!important;
 font-size:clamp(18px,1.9vw,27px)!important;
 line-height:1!important;
}
@media(max-width:800px){
 #playersPanel #playersList .player{grid-template-columns:58px minmax(0,1fr)!important}
 #playersPanel #playersList .player .player-stats{gap:3px!important}
 .sb-player-fouls-overlay{padding:3px!important}
 .sb-player-fouls-card{width:100vw!important;max-height:100dvh!important;border-width:2px!important;border-radius:9px!important}
 .sb-player-fouls-head{min-height:34px!important;padding:3px 6px!important;font-size:16px!important}
 .sb-player-fouls-close{width:30px!important;height:30px!important;font-size:20px!important}
 .sb-player-fouls-teams{grid-template-columns:1fr 1fr!important;gap:3px!important;padding:3px!important}
 .sb-player-fouls-title{padding:3px!important;font-size:11px!important}
 .sb-player-foul-row{grid-template-columns:32px minmax(0,1fr) 42px!important;gap:2px!important;min-height:29px!important;height:29px!important;padding:2px 3px!important}
 .sb-player-foul-number{font-size:12px!important}.sb-player-foul-name{font-size:10px!important}.sb-player-foul-count{font-size:14px!important;padding:2px!important}
}

/* V69 SCORE META CONTRAST AND ON-COURT HIGHLIGHT */
html[data-sb-theme="light"] .sb-v45-score-meta,
html[data-sb-theme="light"] .sb-v45-score-meta span,
html[data-sb-theme="light"] .sb-v45-score-meta strong,
html[data-sb-theme="professional"] .sb-v45-score-meta,
html[data-sb-theme="professional"] .sb-v45-score-meta span,
html[data-sb-theme="professional"] .sb-v45-score-meta strong{
 color:#101820!important;
 -webkit-text-fill-color:#101820!important;
}
html[data-sb-theme="dark"] .sb-v45-score-meta,
html[data-sb-theme="dark"] .sb-v45-score-meta span,
html[data-sb-theme="dark"] .sb-v45-score-meta strong,
html[data-sb-theme="royal"] .sb-v45-score-meta,
html[data-sb-theme="royal"] .sb-v45-score-meta span,
html[data-sb-theme="royal"] .sb-v45-score-meta strong{
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
#sbLineupModalV60 .sb-v60-player .sb-v60-number{
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 text-shadow:0 2px 3px rgba(0,0,0,.45)!important;
}
#sbLineupModalV60 .sb-v60-player.selected,
html[data-sb-theme="professional"] #sbLineupModalV60 .sb-v60-player.selected,
html[data-sb-theme="royal"] #sbLineupModalV60 .sb-v60-player.selected{
 background:linear-gradient(180deg,#35bd70 0%,#16834c 62%,#0c6337 100%)!important;
 border-color:#075b30!important;
 color:#fff!important;
 box-shadow:0 4px 0 #064327,0 6px 10px rgba(6,67,39,.28),inset 0 1px 0 rgba(255,255,255,.3)!important;
}
#sbLineupModalV60 .sb-v60-player.selected .sb-v60-number,
#sbLineupModalV60 .sb-v60-player.selected .sb-v60-player-name,
#sbLineupModalV60 .sb-v60-player.selected .sb-v60-player-meta{
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
#sbPlayerFoulsOverlayV38 .sb-player-foul-row.sb-v69-on-court{
 background:linear-gradient(90deg,#0b6b3a,#16834c)!important;
 color:#fff!important;
 border-top-color:#40c77c!important;
 box-shadow:inset 5px 0 0 #6ee7a3!important;
}
#sbPlayerFoulsOverlayV38 .sb-player-foul-row.sb-v69-on-court .sb-player-foul-number,
#sbPlayerFoulsOverlayV38 .sb-player-foul-row.sb-v69-on-court .sb-player-foul-name{
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
#sbPlayerFoulsOverlayV38 .sb-player-foul-row.sb-v69-on-court .sb-player-foul-count{
 background:#064c2a!important;
 color:#fff!important;
}
#sbPlayerFoulsOverlayV38 .sb-player-foul-row.sb-v69-on-court .sb-player-foul-name:after{
 content:" · IN CAMPO";
 font-size:.72em;
 font-weight:1000;
 color:#b9f6d2;
}

/* V71 ALL OUT AND LINEUP CLOCK */
#sbLineupClockV71{
 display:grid;
 grid-template-columns:auto 130px minmax(0,1fr);
 align-items:center;
 gap:9px;
 padding:7px 12px;
 background:#dfe7ef;
 border-bottom:2px solid #bdcad8;
 color:#172033;
}
.sb-v71-clock-label{font-size:15px;font-weight:1000}
.sb-v71-clock-value{
 display:flex;align-items:center;justify-content:center;
 min-height:45px;border-radius:9px;background:#fff;color:#17375f;
 border:2px solid #9fb0c3;font-size:31px;line-height:1;font-weight:1000;
}
.sb-v71-clock-buttons{display:grid;grid-template-columns:repeat(8,minmax(58px,1fr));gap:5px}
.sb-v71-clock-buttons button{
 min-width:0!important;min-height:40px!important;height:40px!important;
 padding:4px!important;border-radius:8px!important;font-size:12px!important;font-weight:1000!important
}
.sb-v60-team header{grid-template-columns:minmax(0,1fr) auto auto}
.sb-v71-all-out{
 min-width:92px!important;min-height:38px!important;height:38px!important;
 padding:4px 10px!important;border-radius:8px!important;
 background:#b91c1c!important;color:#fff!important;border-color:#7f1d1d!important;
 font-size:14px!important;font-weight:1000!important
}
html[data-sb-theme="professional"] #sbLineupClockV71{background:#dfe6ee;border-color:#b9c6d3}
html[data-sb-theme="royal"] #sbLineupClockV71{background:#102b5a;color:#fff;border-color:#315f9f}
html[data-sb-theme="royal"] .sb-v71-clock-value{background:#183f7a;color:#fff;border-color:#315f9f}
@media(max-width:800px){
 #sbLineupClockV71{grid-template-columns:auto 90px;gap:4px;padding:4px 6px}
 .sb-v71-clock-label{font-size:10px}.sb-v71-clock-value{min-height:34px;font-size:22px}
 .sb-v71-clock-buttons{grid-column:1/-1;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}
 .sb-v71-clock-buttons button{min-height:31px!important;height:31px!important;font-size:8px!important;padding:1px!important}
 .sb-v71-all-out{min-width:63px!important;height:30px!important;min-height:30px!important;font-size:9px!important;padding:2px 4px!important}
}

/* V72 PRE-GAME ACTIONS */
#actionsPanel .action.sb-v72-pregame-disabled{
 opacity:.28!important;
 filter:grayscale(1)!important;
 cursor:not-allowed!important;
 box-shadow:none!important;
}
#actionsPanel .action.sb-v72-pregame-disabled:after{
 content:"PRIMA START";
 display:block;
 font-size:10px;
 line-height:1;
 margin-top:4px;
}


/* V73 DESKTOP SCOREBOARD CENTERED AND LARGE */
@media (min-width:901px){
  #sbMainLayoutV44>.scoreboard{
    width:100%!important;
    max-width:none!important;
    align-self:center!important;
    margin:0 auto!important;
    padding:0!important;
    grid-template-columns:minmax(280px,.9fr) minmax(620px,1.8fr) minmax(280px,.9fr)!important;
    gap:14px!important;
    align-items:stretch!important;
  }

  #sbMainLayoutV44>.scoreboard>.team-btn{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    min-height:190px!important;
    padding:20px 24px!important;
    text-align:center!important;
  }

  #sbMainLayoutV44>.scoreboard>.team-btn .team-name{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:auto!important;
    min-height:100%!important;
    grid-column:auto!important;
    grid-row:auto!important;
    margin:0!important;
    font-size:clamp(30px,2.35vw,46px)!important;
    line-height:1.05!important;
    font-weight:1000!important;
    text-align:center!important;
    letter-spacing:-.02em!important;
  }

  #sbMainLayoutV44>.scoreboard>.clock-box{
    min-height:190px!important;
    padding:14px 24px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  #sbScorelineV39{
    width:100%!important;
    grid-template-columns:minmax(145px,1fr) minmax(330px,1.5fr) minmax(145px,1fr)!important;
    gap:18px!important;
    align-items:center!important;
  }

  #sbScorelineV39>.sb-v39-clock-core{
    width:100%!important;
    min-width:0!important;
    align-self:center!important;
    justify-self:center!important;
    text-align:center!important;
  }

  #sbScorelineV39>.sb-v39-clock-core #period{
    width:100%!important;
    margin:0 0 4px!important;
    font-size:clamp(24px,2vw,34px)!important;
    line-height:1!important;
    text-align:center!important;
  }

  #sbScorelineV39>.sb-v39-clock-core #clock{
    width:100%!important;
    margin:0!important;
    font-size:clamp(72px,6vw,108px)!important;
    line-height:.88!important;
    letter-spacing:-.055em!important;
    text-align:center!important;
    font-variant-numeric:tabular-nums!important;
  }

  #sbClockStateV51{
    margin-top:10px!important;
    font-size:clamp(14px,1.15vw,19px)!important;
    text-align:center!important;
  }

  #sbHomeScoreWrapV45 .team-score,
  #sbAwayScoreWrapV45 .team-score{
    font-size:clamp(64px,5.4vw,94px)!important;
    line-height:.9!important;
  }

  .sb-v45-score-meta{
    font-size:clamp(13px,1.05vw,18px)!important;
    text-align:center!important;
  }
}


/* V74 RESPONSIVE SCOREBOARD */
#sbMainLayoutV44,
#sbMainLayoutV44 *{
  box-sizing:border-box;
}

@media (min-width:701px) and (max-width:900px){
  #sbMainLayoutV44{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  #sbMainLayoutV44>.scoreboard{
    width:100%!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:0 6px!important;
    grid-template-columns:minmax(150px,.85fr) minmax(360px,1.7fr) minmax(150px,.85fr)!important;
    gap:8px!important;
    align-items:stretch!important;
  }

  #sbMainLayoutV44>.scoreboard>.team-btn{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    min-height:138px!important;
    padding:10px!important;
    text-align:center!important;
  }

  #sbMainLayoutV44>.scoreboard>.team-btn .team-name{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    font-size:clamp(20px,3vw,29px)!important;
    line-height:1.05!important;
    text-align:center!important;
    overflow-wrap:anywhere!important;
  }

  #sbMainLayoutV44>.scoreboard>.clock-box{
    min-width:0!important;
    min-height:138px!important;
    padding:8px 10px!important;
  }

  #sbScorelineV39{
    width:100%!important;
    grid-template-columns:minmax(78px,.85fr) minmax(170px,1.35fr) minmax(78px,.85fr)!important;
    gap:6px!important;
  }

  #sbScorelineV39>.sb-v39-clock-core #period{
    font-size:clamp(18px,2.5vw,25px)!important;
    text-align:center!important;
  }

  #sbScorelineV39>.sb-v39-clock-core #clock{
    width:100%!important;
    font-size:clamp(48px,7.6vw,72px)!important;
    line-height:.9!important;
    letter-spacing:-.05em!important;
    text-align:center!important;
  }

  #sbHomeScoreWrapV45 .team-score,
  #sbAwayScoreWrapV45 .team-score{
    font-size:clamp(43px,6vw,62px)!important;
  }

  .sb-v45-score-meta{
    gap:3px 5px!important;
    font-size:clamp(9px,1.4vw,13px)!important;
  }
}

@media (max-width:700px){
  html,body{
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  #sbMainLayoutV44{
    width:100%!important;
    max-width:100%!important;
    padding-left:4px!important;
    padding-right:4px!important;
    overflow-x:hidden!important;
  }

  #sbMainLayoutV44>.scoreboard{
    display:grid!important;
    width:100%!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:0!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:
      "clock clock"
      "home away"!important;
    gap:6px!important;
    align-items:stretch!important;
  }

  #sbMainLayoutV44>.scoreboard>.clock-box{
    grid-area:clock!important;
    width:100%!important;
    min-width:0!important;
    min-height:126px!important;
    padding:7px 5px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  #sbMainLayoutV44>.scoreboard>#homeBtn{grid-area:home!important}
  #sbMainLayoutV44>.scoreboard>#awayBtn{grid-area:away!important}

  #sbMainLayoutV44>.scoreboard>.team-btn{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:82px!important;
    padding:8px 6px!important;
    text-align:center!important;
  }

  #sbMainLayoutV44>.scoreboard>.team-btn .team-name{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    font-size:clamp(17px,5.3vw,24px)!important;
    line-height:1.05!important;
    text-align:center!important;
    overflow-wrap:anywhere!important;
  }

  #sbScorelineV39{
    width:100%!important;
    grid-template-columns:minmax(72px,.9fr) minmax(145px,1.3fr) minmax(72px,.9fr)!important;
    gap:4px!important;
    align-items:center!important;
  }

  #sbScorelineV39>.sb-v39-clock-core{
    min-width:0!important;
    width:100%!important;
    text-align:center!important;
  }

  #sbScorelineV39>.sb-v39-clock-core #period{
    width:100%!important;
    margin-bottom:2px!important;
    font-size:18px!important;
    text-align:center!important;
  }

  #sbScorelineV39>.sb-v39-clock-core #clock{
    width:100%!important;
    margin:0!important;
    font-size:clamp(43px,13vw,61px)!important;
    line-height:.9!important;
    letter-spacing:-.055em!important;
    text-align:center!important;
    font-variant-numeric:tabular-nums!important;
  }

  #sbClockStateV51{
    margin-top:5px!important;
    padding:3px 6px!important;
    font-size:8px!important;
    white-space:nowrap!important;
  }

  #sbHomeScoreWrapV45 .team-score,
  #sbAwayScoreWrapV45 .team-score{
    font-size:clamp(38px,11vw,52px)!important;
    line-height:.9!important;
  }

  .sb-v45-score-meta{
    gap:2px 4px!important;
    font-size:8px!important;
    line-height:1.1!important;
    text-align:center!important;
  }

  #sbMainLayoutV44>.topbar{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain!important;
    scrollbar-width:thin!important;
  }

  #sbMainLayoutV44>.topbar .ctrl{
    flex:0 0 auto!important;
    min-width:58px!important;
    height:46px!important;
    padding:0 6px!important;
    font-size:14px!important;
  }

  #lastActionBar,
  #guideText{
    width:100%!important;
    max-width:100%!important;
    padding-left:8px!important;
    padding-right:8px!important;
    text-align:center!important;
    overflow-wrap:anywhere!important;
  }

  #lastActionBar{
    min-height:62px!important;
    font-size:clamp(16px,5vw,22px)!important;
  }
}

@media (max-width:380px){
  #sbScorelineV39{
    grid-template-columns:minmax(60px,.8fr) minmax(126px,1.25fr) minmax(60px,.8fr)!important;
  }

  #sbScorelineV39>.sb-v39-clock-core #clock{
    font-size:40px!important;
  }

  #sbHomeScoreWrapV45 .team-score,
  #sbAwayScoreWrapV45 .team-score{
    font-size:35px!important;
  }

  #sbMainLayoutV44>.scoreboard>.team-btn .team-name{
    font-size:16px!important;
  }
}


/* V75 STRICT PRE-GAME LOCK */
@keyframes sbV75StartPulse{
  0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(34,197,94,.9),0 5px 16px rgba(22,163,74,.35)}
  50%{transform:scale(1.09);box-shadow:0 0 0 12px rgba(34,197,94,0),0 8px 28px rgba(34,197,94,.75)}
}
body.sb-v75-pregame-locked .sb-v75-pregame-start{
  position:relative!important;
  z-index:20!important;
  background:#16a34a!important;
  color:#fff!important;
  border-color:#86efac!important;
  opacity:1!important;
  filter:none!important;
  animation:sbV75StartPulse .8s ease-in-out infinite!important;
}
body.sb-v75-pregame-locked .sb-v75-pregame-print{
  opacity:1!important;
  filter:none!important;
}
body.sb-v75-pregame-locked .sb-v75-pregame-disabled{
  opacity:.28!important;
  filter:grayscale(1)!important;
  cursor:not-allowed!important;
}
body.sb-v75-pregame-locked #guideText{
  background:#facc15!important;
  color:#111827!important;
  border-color:#f59e0b!important;
  font-weight:1000!important;
}
body.sb-v75-pregame-locked #sbLineupModalV60 button{
  opacity:1!important;
  filter:none!important;
  cursor:pointer!important;
}
@media (prefers-reduced-motion:reduce){
 body.sb-v75-pregame-locked .sb-v75-pregame-start{animation-duration:1.6s!important}
}


/* V76 IMMEDIATE PLAYER SELECTION */
#playersPanel{
  background:linear-gradient(180deg,#e9eef5 0%,#f8fafc 100%)!important;
}
#playersPanel .sb-v42-popup-head{
  position:sticky!important;
  top:0!important;
  z-index:12!important;
  min-height:76px!important;
  padding:8px 12px!important;
  background:#13243a!important;
  border-bottom:3px solid #2f80ed!important;
}
#playersPanel #selectedActionLabel,
#playersPanel .selected-action{
  color:#fff!important;
  font-size:clamp(22px,2.2vw,34px)!important;
  font-weight:1000!important;
  letter-spacing:.01em!important;
  text-align:left!important;
}
#playersPanel #playersList{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-content:start!important;
  gap:12px!important;
  width:100%!important;
  padding:14px!important;
  overflow-y:auto!important;
}
#playersPanel #playersList:before{
  content:"SCEGLI IL GIOCATORE · " attr(data-team-name);
  grid-column:1/-1;
  display:block;
  padding:2px 4px 6px;
  color:#334155;
  font-size:clamp(15px,1.35vw,21px);
  font-weight:1000;
  letter-spacing:.035em;
}
#playersPanel #playersList .sb-v76-player{
  position:relative!important;
  display:grid!important;
  grid-template-columns:96px minmax(0,1fr) 30px!important;
  grid-template-areas:"number info arrow"!important;
  align-items:center!important;
  column-gap:14px!important;
  width:100%!important;
  min-width:0!important;
  min-height:116px!important;
  margin:0!important;
  padding:12px 14px!important;
  border:2px solid #cbd5e1!important;
  border-left:8px solid #2f80ed!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#0f172a!important;
  text-align:left!important;
  box-shadow:0 5px 14px rgba(15,23,42,.11)!important;
  cursor:pointer!important;
  appearance:none!important;
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease!important;
}
#playersPanel #playersList .sb-v76-player:hover,
#playersPanel #playersList .sb-v76-player:focus-visible{
  transform:translateY(-2px)!important;
  border-color:#2f80ed!important;
  box-shadow:0 10px 24px rgba(47,128,237,.24)!important;
  outline:0!important;
}
#playersPanel #playersList .sb-v76-player:active{
  transform:scale(.985)!important;
}
#playersPanel #playersList .sb-v76-player .player-number{
  grid-area:number!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:84px!important;
  height:84px!important;
  margin:0!important;
  border:5px solid #dbeafe!important;
  border-radius:50%!important;
  background:#17375f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:50px!important;
  line-height:1!important;
  font-weight:1000!important;
  box-shadow:none!important;
}
#playersPanel #playersList .sb-v76-player .player-info{
  grid-area:info!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  min-width:0!important;
  padding:0!important;
  background:transparent!important;
  color:#0f172a!important;
}
#playersPanel #playersList .sb-v76-player .player-name{
  display:block!important;
  width:100%!important;
  padding:0!important;
  overflow:hidden!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  font-size:clamp(22px,2vw,31px)!important;
  line-height:1.05!important;
  font-weight:1000!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#playersPanel #playersList .sb-v76-tap{
  display:block!important;
  margin:5px 0 8px!important;
  color:#64748b!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
}
#playersPanel #playersList .sb-v76-player .player-stats{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  width:100%!important;
}
#playersPanel #playersList .sb-v76-player .player-stats>span{
  display:inline-flex!important;
  align-items:baseline!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:32px!important;
  padding:5px 9px!important;
  border:0!important;
  border-radius:9px!important;
  color:#fff!important;
  font-size:16px!important;
  line-height:1!important;
  font-weight:1000!important;
}
#playersPanel #playersList .sb-v76-player .player-stats strong{font-size:1.3em!important}
#playersPanel #playersList .sb-v76-player .player-stats small{font-size:.62em!important;font-weight:1000!important}
#playersPanel #playersList .sb-v76-player .pt{background:#166534!important}
#playersPanel #playersList .sb-v76-player .fl{background:#b91c1c!important}
#playersPanel #playersList .sb-v76-player .tech{background:#6d28d9!important}
#playersPanel #playersList .sb-v76-player .uns{background:#c2410c!important}
#playersPanel #playersList .sb-v76-player .gd{background:#111827!important}
#playersPanel #playersList .sb-v76-arrow{
  grid-area:arrow!important;
  color:#2f80ed!important;
  font-size:48px!important;
  line-height:1!important;
  font-weight:700!important;
  text-align:center!important;
}
#playersPanel #playersList .sb-v76-player.is-foul-warning{border-left-color:#f59e0b!important;background:#fffbeb!important}
#playersPanel #playersList .sb-v76-player.is-foul-danger{border-left-color:#dc2626!important;background:#fff1f2!important}
#playersPanel #playersList .sb-v76-player.is-ejected{opacity:.48!important;filter:grayscale(.7)!important}
.sb-v76-empty{grid-column:1/-1;padding:50px 20px;border:2px dashed #94a3b8;border-radius:18px;text-align:center;font-size:24px;font-weight:1000;color:#475569}
html[data-sb-theme="dark"] #playersPanel,
html[data-sb-theme="royal"] #playersPanel{background:#0f1f33!important}
html[data-sb-theme="dark"] #playersPanel #playersList:before,
html[data-sb-theme="royal"] #playersPanel #playersList:before{color:#dbeafe!important}
@media(max-width:900px){
 #playersPanel #playersList{grid-template-columns:1fr!important;gap:8px!important;padding:8px!important}
 #playersPanel #playersList .sb-v76-player{grid-template-columns:74px minmax(0,1fr) 22px!important;min-height:92px!important;padding:8px 10px!important;column-gap:9px!important;border-left-width:6px!important;border-radius:13px!important}
 #playersPanel #playersList .sb-v76-player .player-number{width:66px!important;height:66px!important;border-width:3px!important;font-size:39px!important}
 #playersPanel #playersList .sb-v76-player .player-name{font-size:clamp(18px,5vw,24px)!important}
 #playersPanel #playersList .sb-v76-tap{margin:3px 0 5px!important;font-size:8px!important}
 #playersPanel #playersList .sb-v76-player .player-stats{gap:3px!important}
 #playersPanel #playersList .sb-v76-player .player-stats>span{min-height:25px!important;padding:3px 6px!important;font-size:12px!important;border-radius:7px!important}
 #playersPanel #playersList .sb-v76-arrow{font-size:35px!important}
}
@media(max-width:420px){
 #playersPanel #playersList .sb-v76-player{grid-template-columns:62px minmax(0,1fr) 18px!important;min-height:82px!important;padding:7px!important;column-gap:7px!important}
 #playersPanel #playersList .sb-v76-player .player-number{width:56px!important;height:56px!important;font-size:33px!important}
 #playersPanel #playersList .sb-v76-player .player-name{font-size:17px!important}
 #playersPanel #playersList .sb-v76-tap{display:none!important}
 #playersPanel #playersList .sb-v76-player .player-stats>span{padding:3px 5px!important;font-size:11px!important}
}


/* V77 SQUARE PLAYER BUTTONS */
#playersPanel #playersList{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;
}
#playersPanel #playersList .sb-v76-player{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  grid-template-areas:"number" "info"!important;
  align-content:stretch!important;
  justify-items:stretch!important;
  aspect-ratio:1/1!important;
  min-height:0!important;
  padding:10px!important;
  border:3px solid #cbd5e1!important;
  border-top:8px solid #2f80ed!important;
  border-left-width:3px!important;
  border-radius:14px!important;
  text-align:center!important;
  overflow:hidden!important;
}
#playersPanel #playersList .sb-v76-player .player-number{
  grid-area:number!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#17375f!important;
  -webkit-text-fill-color:#17375f!important;
  font-size:clamp(46px,5vw,82px)!important;
  line-height:.9!important;
  box-shadow:none!important;
}
#playersPanel #playersList .sb-v76-player .player-info{
  grid-area:info!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  align-content:stretch!important;
  justify-items:stretch!important;
  width:100%!important;
  min-height:0!important;
}
#playersPanel #playersList .sb-v76-player .player-name{
  padding:5px 2px 7px!important;
  font-size:clamp(13px,1.25vw,19px)!important;
  line-height:1!important;
  text-align:center!important;
}
#playersPanel #playersList .sb-v76-tap,
#playersPanel #playersList .sb-v76-arrow{display:none!important}
#playersPanel #playersList .sb-v76-player .player-stats{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  grid-template-rows:1fr 1fr!important;
  gap:5px!important;
  width:100%!important;
  min-height:0!important;
}
#playersPanel #playersList .sb-v76-player .player-stats>span{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:0!important;
  padding:4px 2px!important;
  border-radius:8px!important;
  text-align:center!important;
}
#playersPanel #playersList .sb-v76-player .player-stats small{
  order:0!important;
  display:block!important;
  margin-bottom:2px!important;
  font-size:clamp(7px,.68vw,10px)!important;
  line-height:1!important;
  letter-spacing:.025em!important;
}
#playersPanel #playersList .sb-v76-player .player-stats strong{
  order:1!important;
  display:block!important;
  font-size:clamp(19px,2.15vw,32px)!important;
  line-height:.9!important;
}
#playersPanel #playersList .sb-v76-player .gd{
  position:absolute!important;
  inset:50% 8px auto!important;
  min-height:42px!important;
  z-index:3!important;
}
#playersPanel #playersList .sb-v76-player.is-foul-warning{border-top-color:#f59e0b!important}
#playersPanel #playersList .sb-v76-player.is-foul-danger{border-top-color:#dc2626!important}
html[data-sb-theme="dark"] #playersPanel #playersList .sb-v76-player .player-number,
html[data-sb-theme="royal"] #playersPanel #playersList .sb-v76-player .player-number{
  color:#17375f!important;
  -webkit-text-fill-color:#17375f!important;
}
@media(max-width:1300px){
 #playersPanel #playersList{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:900px){
 #playersPanel #playersList{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 #playersPanel #playersList .sb-v76-player{padding:7px!important;border-top-width:6px!important;border-radius:11px!important}
 #playersPanel #playersList .sb-v76-player .player-number{font-size:clamp(40px,9vw,64px)!important}
 #playersPanel #playersList .sb-v76-player .player-name{font-size:clamp(11px,2.7vw,16px)!important}
}
@media(max-width:600px){
 #playersPanel #playersList{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:7px!important}
 #playersPanel #playersList:before{font-size:12px!important;padding-bottom:3px!important}
 #playersPanel #playersList .sb-v76-player{padding:6px!important;border-width:2px!important;border-top-width:6px!important;border-radius:10px!important}
 #playersPanel #playersList .sb-v76-player .player-number{font-size:clamp(44px,15vw,66px)!important}
 #playersPanel #playersList .sb-v76-player .player-name{padding:3px 1px 5px!important;font-size:clamp(11px,3.7vw,15px)!important}
 #playersPanel #playersList .sb-v76-player .player-stats{gap:3px!important}
 #playersPanel #playersList .sb-v76-player .player-stats>span{padding:3px 1px!important;border-radius:6px!important}
 #playersPanel #playersList .sb-v76-player .player-stats small{font-size:7px!important}
 #playersPanel #playersList .sb-v76-player .player-stats strong{font-size:clamp(18px,6vw,26px)!important}
}


/* V78 PLAYER GRID COLLISION FIX */
#playersPanel #playersList{
  display:grid!important;
  grid-auto-flow:row!important;
  grid-auto-rows:auto!important;
  align-items:start!important;
  align-content:start!important;
  overflow-x:hidden!important;
}
#playersPanel #playersList .sb-v76-player{
  position:relative!important;
  inset:auto!important;
  float:none!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  margin:0!important;
  transform:none!important;
  z-index:1!important;
  isolation:isolate!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:0!important;
}
#playersPanel #playersList .sb-v76-player:hover,
#playersPanel #playersList .sb-v76-player:focus{
  transform:none!important;
  z-index:2!important;
}
#playersPanel #playersList .sb-v76-player .player-number{
  position:static!important;
  inset:auto!important;
  order:1!important;
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
#playersPanel #playersList .sb-v76-player .player-info{
  position:static!important;
  inset:auto!important;
  order:2!important;
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
}
#playersPanel #playersList .sb-v76-player .player-name{
  position:static!important;
  inset:auto!important;
  order:1!important;
  flex:0 0 auto!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
#playersPanel #playersList .sb-v76-player .player-stats{
  position:static!important;
  inset:auto!important;
  order:2!important;
  flex:1 1 auto!important;
  align-self:stretch!important;
  margin:0!important;
  overflow:hidden!important;
}
#playersPanel #playersList .sb-v76-player .player-stats>span{
  position:static!important;
  inset:auto!important;
  box-sizing:border-box!important;
  max-width:100%!important;
  overflow:hidden!important;
}
#playersPanel #playersList .sb-v76-player .gd{display:none!important}
@media(max-width:600px){
 #playersPanel #playersList .sb-v76-player{aspect-ratio:1/1!important}
 #playersPanel #playersList .sb-v76-player .player-number{font-size:clamp(36px,13vw,58px)!important}
 #playersPanel #playersList .sb-v76-player .player-name{line-height:1.05!important}
}


/* V79 PLAYER ROW HEIGHT AND COMPACT STATS */
#playersPanel #playersList{
  grid-template-rows:none!important;
  grid-auto-rows:max-content!important;
  row-gap:14px!important;
}
#playersPanel #playersList .sb-v76-player{
  align-self:start!important;
  min-height:0!important;
  overflow:hidden!important;
}
#playersPanel #playersList .sb-v76-player .player-info{
  justify-content:flex-start!important;
  overflow:hidden!important;
}
#playersPanel #playersList .sb-v76-player .player-stats{
  flex:0 0 auto!important;
  grid-template-rows:repeat(2,minmax(0,auto))!important;
  align-content:end!important;
  justify-content:stretch!important;
  gap:6px!important;
  margin-top:auto!important;
  overflow:visible!important;
}
#playersPanel #playersList .sb-v76-player .player-stats>span{
  min-height:48px!important;
  height:auto!important;
}
@media(max-width:900px){
 #playersPanel #playersList{row-gap:10px!important}
 #playersPanel #playersList .sb-v76-player .player-stats{gap:4px!important}
 #playersPanel #playersList .sb-v76-player .player-stats>span{min-height:38px!important}
}
@media(max-width:600px){
 #playersPanel #playersList{row-gap:8px!important}
 #playersPanel #playersList .sb-v76-player .player-stats>span{min-height:34px!important}
}


/* V80 ROYAL THEME PLAYER CONTRAST */
html[data-sb-theme="royal"] #playersPanel #playersList .sb-v76-player,
body.sb-theme-royal #playersPanel #playersList .sb-v76-player{
  color:#fff!important;
}
html[data-sb-theme="royal"] #playersPanel #playersList .sb-v76-player .player-number,
html[data-sb-theme="royal"] #playersPanel #playersList .sb-v76-player .player-name,
html[data-sb-theme="royal"] #playersPanel #playersList .sb-v76-player .player-info,
html[data-sb-theme="royal"] #playersPanel #playersList .sb-v76-player .player-stats,
html[data-sb-theme="royal"] #playersPanel #playersList .sb-v76-player .player-stats small,
html[data-sb-theme="royal"] #playersPanel #playersList .sb-v76-player .player-stats strong,
body.sb-theme-royal #playersPanel #playersList .sb-v76-player .player-number,
body.sb-theme-royal #playersPanel #playersList .sb-v76-player .player-name,
body.sb-theme-royal #playersPanel #playersList .sb-v76-player .player-info,
body.sb-theme-royal #playersPanel #playersList .sb-v76-player .player-stats,
body.sb-theme-royal #playersPanel #playersList .sb-v76-player .player-stats small,
body.sb-theme-royal #playersPanel #playersList .sb-v76-player .player-stats strong{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-sb-theme="royal"] #playersPanel #playersList .sb-v76-player .player-name,
body.sb-theme-royal #playersPanel #playersList .sb-v76-player .player-name{
  text-shadow:0 2px 3px rgba(0,0,0,.8)!important;
}


/* V81 LARGER PLAYER NUMBER AND NAME IN TEAM TABLES */
#sbProDashboard .sbpro-table tbody td.sbpro-number{
  width:clamp(42px,3.8vw,64px)!important;
  min-width:42px!important;
  padding:10px 8px!important;
  font-size:clamp(20px,1.8vw,30px)!important;
  line-height:1!important;
  font-weight:1000!important;
  text-align:center!important;
}
#sbProDashboard .sbpro-table tbody td.sbpro-player{
  padding:10px 12px!important;
  font-size:clamp(17px,1.35vw,23px)!important;
  line-height:1.12!important;
  font-weight:1000!important;
  letter-spacing:.01em!important;
}
#sbProDashboard .sbpro-table thead th:nth-child(1){
  width:clamp(42px,3.8vw,64px)!important;
  text-align:center!important;
}
#sbProDashboard .sbpro-table thead th:nth-child(2){
  font-size:clamp(13px,1vw,17px)!important;
}
#sbProDashboard .sbpro-court-mark{
  font-size:clamp(9px,.72vw,12px)!important;
  white-space:nowrap!important;
}
@media(max-width:700px){
 #sbProDashboard .sbpro-table tbody td.sbpro-number{
   width:36px!important;
   min-width:36px!important;
   padding:8px 4px!important;
   font-size:18px!important;
 }
 #sbProDashboard .sbpro-table tbody td.sbpro-player{
   padding:8px 6px!important;
   font-size:14px!important;
 }
 #sbProDashboard .sbpro-court-mark{
   display:block!important;
   width:max-content!important;
   margin:4px 0 0!important;
   font-size:8px!important;
 }
}


/* V82 COMMAND BAR ABOVE SCOREBOARD */
#sbMainLayoutV44>.topbar{
  order:2!important;
  margin:0 0 2px!important;
}
#sbMainLayoutV44>.scoreboard{order:3!important}
#sbMainLayoutV44>.guide{order:4!important}
#sbMainLayoutV44>#sbLastActionRowV44{order:5!important}
#sbMainLayoutV44>.quarters{order:6!important}
#sbMainLayoutV44>#sbProDashboard{order:7!important}
#sbMainLayoutV44>.mini-stats{order:8!important}
@media(max-width:700px){
 #sbMainLayoutV44>.topbar{
   order:2!important;
   margin-bottom:0!important;
 }
 #sbMainLayoutV44>.scoreboard{order:3!important}
}


/* V83 STRETCH GUIDE AND LAST-ACTION BARS */
#sbMainLayoutV44>#sbGuideLineupRowV61,
#sbMainLayoutV44>#sbLastActionRowV44{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 150px!important;
  column-gap:10px!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  align-items:stretch!important;
}
#sbGuideLineupRowV61>#guideText,
#sbLastActionRowV44>#lastActionBar{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  justify-self:stretch!important;
  box-sizing:border-box!important;
}
#sbGuideLineupRowV61>#sbChangeLineupV60,
#sbLastActionRowV44>#sbUndoMainV44{
  width:150px!important;
  min-width:150px!important;
  max-width:150px!important;
  margin:0!important;
  justify-self:stretch!important;
}
@media(max-width:700px){
 #sbMainLayoutV44>#sbGuideLineupRowV61,
 #sbMainLayoutV44>#sbLastActionRowV44{
   grid-template-columns:minmax(0,1fr) 92px!important;
   column-gap:5px!important;
 }
 #sbGuideLineupRowV61>#sbChangeLineupV60,
 #sbLastActionRowV44>#sbUndoMainV44{
   width:92px!important;
   min-width:92px!important;
   max-width:92px!important;
 }
}


/* V84 PROFESSIONAL PLAYER PICKER CONTRAST */
html[data-sb-theme="professional"] #playersPanel #playersList .sb-v76-player .player-number,
html[data-sb-theme="professional"] #playersPanel #playersList .sb-v76-player .player-name,
body.sb-theme-professional #playersPanel #playersList .sb-v76-player .player-number,
body.sb-theme-professional #playersPanel #playersList .sb-v76-player .player-name{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  text-shadow:0 2px 4px rgba(0,0,0,.75)!important;
}
html[data-sb-theme="professional"] #playersPanel #playersList .sb-v76-player .player-info,
body.sb-theme-professional #playersPanel #playersList .sb-v76-player .player-info{
  color:#fff!important;
}


/* V85 FIBA NEW FOUL CATEGORIES */
#actionsPanel .actions{
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
}
#actionsPanel .action.new-foul{
  padding:6px!important;
  font-size:clamp(20px,2.5vw,38px)!important;
  line-height:1!important;
  white-space:normal!important;
}
#playersPanel #playersList .sb-v76-player .player-stats{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(3,minmax(0,auto))!important;
  gap:4px!important;
}
#playersPanel #playersList .sb-v76-player .player-stats>span{
  min-height:34px!important;
  padding:3px 2px!important;
}
#playersPanel #playersList .sb-v76-player .t1{background:#6d28d9!important}
#playersPanel #playersList .sb-v76-player .t2{background:#7e22ce!important}
#playersPanel #playersList .sb-v76-player .flagu{background:#b45309!important}
#playersPanel #playersList .sb-v76-player .disru{background:#c2410c!important}
#playersPanel #playersList .sb-v76-player .t1,
#playersPanel #playersList .sb-v76-player .t2,
#playersPanel #playersList .sb-v76-player .flagu,
#playersPanel #playersList .sb-v76-player .disru,
#playersPanel #playersList .sb-v76-player .t1 *,
#playersPanel #playersList .sb-v76-player .t2 *,
#playersPanel #playersList .sb-v76-player .flagu *,
#playersPanel #playersList .sb-v76-player .disru *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
@media(max-width:900px){
 body:not(.sb-layout-desktop) #actionsPanel .actions{
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   grid-template-rows:repeat(7,minmax(0,1fr))!important;
 }
 #actionsPanel .action.new-foul{font-size:22px!important}
 #playersPanel #playersList .sb-v76-player .player-stats>span{min-height:30px!important}
}


/* V86 SPECIAL FOUL BREAKDOWN IN PLAYER FOULS OVERLAY */
#sbPlayerFoulsOverlayV38 .sb-player-foul-row{
  grid-template-columns:54px minmax(0,1fr) minmax(220px,.9fr) 72px!important;
  min-height:48px!important;
  height:auto!important;
}
#sbPlayerFoulsOverlayV38 .sb-player-foul-types{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:4px!important;
  min-width:0!important;
}
#sbPlayerFoulsOverlayV38 .sb-player-foul-type{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:35px!important;
  padding:3px 2px!important;
  border-radius:6px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
#sbPlayerFoulsOverlayV38 .sb-player-foul-type small{
  font-size:8px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
#sbPlayerFoulsOverlayV38 .sb-player-foul-type strong{
  margin-top:2px!important;
  font-size:16px!important;
  line-height:1!important;
}
#sbPlayerFoulsOverlayV38 .sb-player-foul-type.t1{background:#6d28d9!important}
#sbPlayerFoulsOverlayV38 .sb-player-foul-type.t2{background:#7e22ce!important}
#sbPlayerFoulsOverlayV38 .sb-player-foul-type.flagu{background:#b45309!important}
#sbPlayerFoulsOverlayV38 .sb-player-foul-type.disru{background:#c2410c!important}
@media(max-width:800px){
 #sbPlayerFoulsOverlayV38 .sb-player-fouls-teams{
   grid-template-columns:1fr!important;
   overflow:auto!important;
 }
 #sbPlayerFoulsOverlayV38 .sb-player-foul-row{
   grid-template-columns:34px minmax(90px,1fr) minmax(180px,.9fr) 44px!important;
   min-height:42px!important;
   padding:3px!important;
 }
 #sbPlayerFoulsOverlayV38 .sb-player-foul-type{min-height:30px!important;padding:2px 1px!important}
 #sbPlayerFoulsOverlayV38 .sb-player-foul-type small{font-size:7px!important}
 #sbPlayerFoulsOverlayV38 .sb-player-foul-type strong{font-size:13px!important}
}


/* V87 C AND B STAFF FOULS IN ACTION GRID */
#actionsPanel .action.staff-foul{
  padding:6px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:clamp(42px,5vw,74px)!important;
  line-height:.8!important;
  font-weight:1000!important;
}
#actionsPanel .action.staff-foul small{
  display:block!important;
  margin-top:7px!important;
  font-size:.22em!important;
  line-height:1!important;
  letter-spacing:.04em!important;
}
#actionsPanel .action.coach-foul{background:#0f766e!important}
#actionsPanel .action.bench-foul{background:#0369a1!important}
