/* ═══════════════════════════════════════════════════════════════════════════
   NBA SCOREBOARD — single-panel layout mirroring the app GameDetailsScreen
   ═══════════════════════════════════════════════════════════════════════════ */
.sb-container {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-primary);
}

/* ── Sticky mini header ── */
.sb-sticky-header {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--bg-border);
  padding: 0;
  backdrop-filter: blur(12px);
}
.sb-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 16px;
  position: relative;
  overflow: hidden;
}
.sb-sticky-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.sb-sticky-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.sb-sticky-right {
  justify-content: flex-end;
}
.sb-sticky-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.sb-sticky-abbr {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.sb-sticky-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}
.sb-sticky-status-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
  padding: 0 4px;
  position: relative;
  z-index: 1;
}
.sb-sticky-status-line {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}
.sb-sticky-status-sub {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 1px;
}

/* ── Header ── */
.sb-header {
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--bg-border);
}
.sb-header-inner {
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sb-header-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.sb-league-row {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.sb-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 1;
}
.sb-team-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 38%;
}
.sb-team-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.sb-team-link:hover .sb-team-name {
  opacity: 0.8;
}
.sb-logo-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-team-logo-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-team-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.sb-team-logo-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}
.sb-team-score {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  min-width: 24px;
  text-align: center;
}
.sb-team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  max-width: 150px;
}
.sb-team-record {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}
.sb-status-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
}
.sb-status-top {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
}
.sb-status-bottom {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 2px;
}
.sb-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--accent-primary, #1d428a);
  background: transparent;
  color: var(--accent-primary, #1d428a);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sb-stream-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary, #1d428a);
}

/* ── Split panels (two side-by-side) ── */
.sb-split {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: calc(100vh - 240px);
}
.sb-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bg-border);
}
.sb-panel:last-child {
  border-right: none;
}
.sb-panel-tabs {
  display: flex;
  background: var(--bg-surface-secondary);
  margin: 12px;
  border-radius: 10px;
  padding: 3px;
  position: sticky;
  top: 0;
  z-index: 10;
  overflow-x: auto;
}
.sb-tab {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.sb-tab.active {
  background: rgba(128, 128, 128, 0.25);
  color: var(--text-primary);
}
.sb-tab.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.sb-tab:hover:not(.active):not(.disabled) {
  color: var(--text-primary);
}
.sb-panel-body {
  flex: 1;
  padding: 0 12px 24px;
}

/* ── Generic card ── */
.sb-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}
.sb-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bg-border);
}
.sb-card-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ── Linescore ── */
.sb-linescore {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}
.sb-ls-grid {
  display: flex;
  align-items: stretch;
}
.sb-ls-col {
  display: flex;
  flex-direction: column;
}
.sb-ls-label-col {
  width: 48px;
  flex-shrink: 0;
}
.sb-ls-scroll {
  display: flex;
  flex: 1;
  overflow-x: auto;
}
.sb-ls-scroll .sb-ls-col {
  flex: 1;
  min-width: 34px;
}
.sb-ls-total-col {
  flex-shrink: 0;
  border-left: 1px solid var(--bg-border);
}
.sb-ls-cell {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--bg-border);
  min-width: 32px;
}
.sb-ls-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-surface-secondary, rgba(128, 128, 128, 0.08));
}
.sb-ls-abbr {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ── Stats bars ── */
.sb-stats-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sb-stat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-stat-vals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.sb-stat-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-surface-secondary, rgba(128, 128, 128, 0.15));
}
.sb-stat-bar > div {
  height: 100%;
}
.sb-stat-lbl {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Leaders ── */
.sb-leaders-body {
  display: flex;
  flex-direction: column;
}
.sb-leaders-team {
  padding: 10px 14px;
  border-bottom: 1px solid var(--bg-border);
}
.sb-leaders-team:last-child {
  border-bottom: none;
}
.sb-leaders-team-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}
.sb-leaders-team-head img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.sb-leader-cat {
  margin-bottom: 10px;
}
.sb-leader-cat-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.sb-leader-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 4px;
  background: var(--bg-surface-secondary, rgba(128, 128, 128, 0.08));
}
.sb-leader-hs {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 2px solid;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-leader-hs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-leader-hs span {
  font-weight: 800;
  color: var(--text-primary);
}
.sb-leader-name-col {
  flex: 1;
  min-width: 0;
}
.sb-leader-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.sb-leader-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}
.sb-leader-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-primary, #1d428a);
  text-align: right;
  min-width: 40px;
}

/* ── Roster ── */
.sb-roster-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-roster-toggle {
  display: flex;
  background: var(--bg-surface-secondary);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 4px;
}
.sb-roster-toggle-btn {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sb-roster-toggle-btn.active {
  background: rgba(128, 128, 128, 0.25);
  color: var(--text-primary);
}
.sb-player-card {
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color 0.15s;
}
.sb-player-card:hover {
  border-color: var(--accent-primary);
}
.sb-pc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sb-pc-headshot-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sb-pc-headshot-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-pc-initials {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.sb-pc-info {
  flex: 1;
  min-width: 0;
}
.sb-pc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.sb-pc-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sb-pc-stats {
  display: flex;
  justify-content: space-between;
}
.sb-pc-stat {
  flex: 1;
  text-align: center;
}
.sb-pc-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.sb-pc-stat-lbl {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Plays ── */
.sb-plays-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-plays-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.sb-plays-chip {
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  padding: 7px 11px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sb-plays-chip.active {
  border-color: var(--text-primary);
  background: var(--bg-surface-secondary, rgba(128, 128, 128, 0.1));
  color: var(--text-primary);
}
.sb-plays-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-play-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.sb-play-time-col {
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  flex-shrink: 0;
}
.sb-play-minute {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.sb-play-period {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.sb-play-card {
  flex: 1;
  border: 2px solid;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.sb-play-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}
.sb-play-card-main {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
}
.sb-play-goal-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-play-goal-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1px solid;
  overflow: visible;
  flex-shrink: 0;
}
.sb-play-goal-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}
.sb-play-goal-avatar
  > span:not(.sb-play-goal-count):not(.sb-play-goal-team):not(
    .sb-play-goal-pos
  ) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.sb-play-goal-team {
  position: absolute;
  left: -6px;
  bottom: -6px;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sb-play-goal-team img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}
.sb-play-goal-pos {
  position: absolute;
  right: -6px;
  bottom: -6px;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 8px;
  border: 1px solid;
  background: var(--bg-surface);
  color: var(--text-primary);
}
.sb-play-goal-count {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 9px;
  line-height: 14px;
  font-weight: 800;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  padding: 0 4px;
  color: var(--text-primary);
  white-space: nowrap;
}
.sb-play-goal-text {
  flex: 1;
  min-width: 0;
}
.sb-play-goal-name {
  font-size: 13px;
  font-weight: 700;
}
.sb-play-court {
  margin-top: 10px;
  width: 100%;
  border: 1px solid;
  border-radius: 10px;
  padding: 6px;
  overflow: hidden;
  background: var(--bg-surface-secondary, rgba(128, 128, 128, 0.08));
}
.sb-court-svg {
  display: block;
  width: 100%;
  height: auto;
}
.sb-plays-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.sb-plays-pager-btn {
  min-width: 92px;
  border: 1px solid var(--bg-border);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sb-plays-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sb-plays-pager-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
}

/* ── Series ── */
.sb-series-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-series-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  overflow: hidden;
}
.sb-series-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bg-border);
}
.sb-series-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-primary);
}
.sb-series-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
}
.sb-series-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.sb-series-side-right {
  justify-content: flex-end;
}
.sb-series-side img {
  width: 80px;
  height: 40px;
  object-fit: contain;
}
.sb-series-wins {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}
.sb-series-vs {
  min-width: 76px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-secondary);
}
.sb-series-footer {
  display: flex;
  height: 12px;
  border-top: 1px solid var(--bg-border);
}
.sb-series-match {
  display: block;
  border: 1px solid var(--bg-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.sb-series-match-top {
  padding: 8px 12px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}
.sb-series-match-body {
  display: flex;
  align-items: center;
  padding: 14px 10px;
  gap: 10px;
}
.sb-series-match-side {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sb-series-match-side-right {
  justify-content: flex-end;
}
.sb-series-match-side img {
  width: 50px;
  height: 36px;
  object-fit: contain;
}
.sb-series-match-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.sb-series-match-score {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 80px;
  justify-content: center;
  font-size: 22px;
}
.sb-series-dash {
  font-size: 18px;
  color: var(--text-secondary);
}
.sb-series-time {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.sb-series-ampm {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Empty / error ── */
.sb-empty {
  text-align: center;
  padding: 32px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.sb-error {
  text-align: center;
  padding: 48px 24px;
  font-size: 16px;
  color: var(--text-secondary);
}
.sb-error a,
.sb-error button {
  color: var(--accent-primary);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
}

/* ── Player modal ── */
.sb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sb-modal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 14px;
}
.sb-modal-drag-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bg-border);
}
.sb-modal-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-border);
}
.sb-modal-close {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-secondary, rgba(128, 128, 128, 0.15));
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.sb-modal-body {
  padding: 14px;
}
.sb-pm-header {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--bg-border);
}
.sb-pm-headshot-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}
.sb-pm-headshot {
  width: 88px;
  height: 88px;
  border-radius: 44px;
  border: 3px solid;
  object-fit: cover;
}
.sb-pm-headshot-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}
.sb-pm-pos-badge {
  position: absolute;
  left: -6px;
  bottom: -6px;
  min-width: 28px;
  height: 28px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
}
.sb-pm-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.sb-pm-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sb-pm-stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
}
.sb-pm-stat {
  width: 33.333%;
  text-align: center;
  padding: 10px 4px;
}
.sb-pm-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}
.sb-pm-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Stream modal ── */
.sb-stream-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sb-stream-container {
  width: 100%;
  max-width: 1100px;
  background: var(--bg-surface);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sb-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-border);
}
.sb-stream-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}
.sb-stream-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.sb-stream-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
}
.sb-stream-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--bg-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sb-stream-btn.active {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}
.sb-stream-no-streams {
  font-size: 13px;
  color: var(--text-secondary);
}
.sb-stream-view {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.sb-stream-frame {
  width: 100%;
  height: 100%;
  border: none;
}
.sb-stream-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.sb-stream-loading[hidden] {
  display: none;
}
.sb-stream-loading .loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent-primary, #1d428a);
  border-radius: 50%;
  animation: sbSpin 0.8s linear infinite;
}
@keyframes sbSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .sb-split {
    flex-direction: column;
    align-items: stretch;
  }
  .sb-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--bg-border);
  }
  .sb-team-logo,
  .sb-team-logo-wrap,
  .sb-team-logo-fallback {
    width: 56px;
    height: 56px;
  }
  .sb-team-score {
    font-size: 32px;
  }
}
