/* STATBASKET REFERTO PRO V3.7 */
#playersList .player-stats .fl{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:58px!important;min-height:34px!important;padding:7px 10px!important;border-radius:9px!important;
  background:#172554!important;border:1px solid #3b82f6!important;color:#dbeafe!important;
  font-size:25px!important;line-height:1!important;font-weight:1000!important;
}
.sb-foul-fallback-v37{
  position:fixed!important;inset:0!important;z-index:500000!important;display:flex!important;
  align-items:center!important;justify-content:center!important;background:rgba(2,6,23,.84)!important;
  backdrop-filter:blur(8px)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
.sb-foul-fallback-v37.show{opacity:1!important;visibility:visible!important}
.sb-foul-fallback-card-v37{
  width:min(800px,90vw)!important;min-height:480px!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;padding:40px!important;border:4px solid #f59e0b!important;
  border-radius:30px!important;background:#111827!important;color:#fff!important;box-shadow:0 36px 110px rgba(0,0,0,.68)!important;
}
.sb-foul-fallback-v37.foul-out .sb-foul-fallback-card-v37{border-color:#ef4444!important;background:#2b0b0b!important}
.sb-foul-fallback-label-v37{font-size:22px!important;font-weight:1000!important;letter-spacing:.17em!important;color:#fbbf24!important}
.sb-foul-fallback-number-v37{margin-top:10px!important;font-size:118px!important;line-height:.9!important;font-weight:1000!important}
.sb-foul-fallback-name-v37{margin-top:12px!important;font-size:32px!important;font-weight:900!important;text-align:center!important}
.sb-foul-fallback-count-v37{margin-top:20px!important;font-size:156px!important;line-height:.78!important;font-weight:1000!important;color:#fbbf24!important}
.sb-foul-fallback-word-v37{margin-top:16px!important;font-size:28px!important;font-weight:1000!important;letter-spacing:.13em!important}

/* TEMA CHIARO COMPLETO */
html[data-sb-theme="light"],html[data-sb-theme="light"] body,body.sb-v37-light{background:#f4f7fb!important;color:#111827!important}
html[data-sb-theme="light"] #sbProDashboard,
html[data-sb-theme="light"] .sbpro-tabs,
html[data-sb-theme="light"] .sbpro-body,
html[data-sb-theme="light"] .sbpro-footer,
html[data-sb-theme="light"] .sbpro-card,
html[data-sb-theme="light"] .sbpro-player,
html[data-sb-theme="light"] .sbpro-stat,
html[data-sb-theme="light"] .sbpro-pbp-row,
html[data-sb-theme="light"] .sbpro-table-wrap,
html[data-sb-theme="light"] .sbpro-table,
body.sb-v37-light #sbProDashboard,
body.sb-v37-light .sbpro-tabs,
body.sb-v37-light .sbpro-body,
body.sb-v37-light .sbpro-footer,
body.sb-v37-light .sbpro-card,
body.sb-v37-light .sbpro-player,
body.sb-v37-light .sbpro-stat,
body.sb-v37-light .sbpro-pbp-row,
body.sb-v37-light .sbpro-table-wrap,
body.sb-v37-light .sbpro-table{
  background:#fff!important;color:#111827!important;border-color:#d8e0ea!important;
}
html[data-sb-theme="light"] .sbpro-tab,body.sb-v37-light .sbpro-tab{background:#eef3f8!important;color:#334155!important;border-color:#d8e0ea!important}
html[data-sb-theme="light"] .sbpro-tab.active,body.sb-v37-light .sbpro-tab.active{background:#fff!important;color:#111827!important}
html[data-sb-theme="light"] .sbpro-table th,body.sb-v37-light .sbpro-table th{background:#eef3f8!important;color:#334155!important;border-color:#d8e0ea!important}
html[data-sb-theme="light"] .sbpro-table td,body.sb-v37-light .sbpro-table td{background:#fff!important;color:#111827!important;border-color:#e2e8f0!important}
html[data-sb-theme="light"] #actionsPanel,
html[data-sb-theme="light"] #playersPanel,
html[data-sb-theme="light"] #livePanel,
html[data-sb-theme="light"] .header,
html[data-sb-theme="light"] .topbar,
html[data-sb-theme="light"] .guide,
html[data-sb-theme="light"] .clock-box,
html[data-sb-theme="light"] .mini-stats,
html[data-sb-theme="light"] .mini-team,
html[data-sb-theme="light"] .last-action,
html[data-sb-theme="light"] .confirm-box,
html[data-sb-theme="light"] .periods,
html[data-sb-theme="light"] .panel,
body.sb-v37-light #actionsPanel,
body.sb-v37-light #playersPanel,
body.sb-v37-light #livePanel,
body.sb-v37-light .header,
body.sb-v37-light .topbar,
body.sb-v37-light .guide,
body.sb-v37-light .clock-box,
body.sb-v37-light .mini-stats,
body.sb-v37-light .mini-team,
body.sb-v37-light .last-action,
body.sb-v37-light .confirm-box,
body.sb-v37-light .periods,
body.sb-v37-light .panel{background:#fff!important;color:#111827!important;border-color:#d8e0ea!important}
html[data-sb-theme="dark"] body,body.sb-v37-dark{background:#07101d!important;color:#f8fafc!important}

/* Layout compatto e leggibile */
.scoreboard{
  gap:8px!important;
  padding:8px 10px!important;
  align-items:stretch!important;
}
.team-btn{
  min-height:118px!important;
  padding:10px 8px!important;
  border-radius:16px!important;
}
.team-name{
  font-size:16px!important;
  line-height:1.05!important;
}
.team-score{
  font-size:54px!important;
  margin-top:2px!important;
}
.team-fouls{
  margin-top:5px!important;
  font-size:13px!important;
}
.clock-box{
  min-height:118px!important;
  border-radius:16px!important;
}
.clock{
  font-size:48px!important;
  margin-top:2px!important;
}
.period{
  font-size:20px!important;
}

html[data-sb-theme="light"] .clock-box,
body.sb-v37-light .clock-box{
  background:#f8fafc!important;
  color:#0f172a!important;
  border:1px solid #cbd5e1!important;
}
html[data-sb-theme="light"] .clock,
body.sb-v37-light .clock{
  color:#0f172a!important;
  text-shadow:none!important;
}
html[data-sb-theme="light"] .clock.running,
body.sb-v37-light .clock.running{
  color:#047857!important;
}
html[data-sb-theme="light"] .clock.stopped,
body.sb-v37-light .clock.stopped{
  color:#b91c1c!important;
}
html[data-sb-theme="light"] .period,
body.sb-v37-light .period,
html[data-sb-theme="light"] .qtitle,
body.sb-v37-light .qtitle{
  color:#b45309!important;
}
html[data-sb-theme="light"] .quarters,
body.sb-v37-light .quarters{
  background:#f4f7fb!important;
}
html[data-sb-theme="light"] .qbox,
body.sb-v37-light .qbox{
  background:#ffffff!important;
  color:#111827!important;
  border-color:#cbd5e1!important;
}
html[data-sb-theme="light"] .qscore,
body.sb-v37-light .qscore{
  color:#111827!important;
}
html[data-sb-theme="light"] .last-action,
body.sb-v37-light .last-action{
  color:#111827!important;
  border-color:#cbd5e1!important;
  box-shadow:none!important;
}

@media(max-width:899px){
  .team-btn{min-height:98px!important;padding:7px 5px!important}
  .team-score{font-size:38px!important}
  .team-name{font-size:12px!important}
  .team-fouls{font-size:11px!important}
  .clock-box{min-height:98px!important}
  .clock{font-size:30px!important}
  .period{font-size:16px!important}
}

@media(max-width:899px){
  #playersList .player-stats .fl{min-width:48px!important;min-height:30px!important;padding:5px 7px!important;font-size:20px!important}
  .sb-foul-fallback-card-v37{min-height:360px!important;padding:26px 20px!important}
  .sb-foul-fallback-number-v37{font-size:80px!important}.sb-foul-fallback-name-v37{font-size:24px!important}
  .sb-foul-fallback-count-v37{font-size:108px!important}.sb-foul-fallback-label-v37{font-size:15px!important}.sb-foul-fallback-word-v37{font-size:20px!important}
}
