.sb-commentary {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 0;
  background: hsl(var(--background_main_surface));
}

/* ── Innings picker dropdown ─────────────────────────────────────── */

.sb-commentary__innings-picker {
  position: relative;
  width: 100%;
}

.sb-commentary__innings-select {
  display: block;
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1.5px solid hsl(var(--button_outline_style_1_text_default));
  border-radius: 8px;
  background: hsl(var(--background_main_surface));
  color: hsl(var(--button_outline_style_1_text_default));
  font: var(--button_md);
  text-transform: uppercase;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.sb-commentary__innings-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: hsl(var(--background_prim_card));
  display: flex;
  align-items: center;
}

/* ── Over group ─────────────────────────────────────────────────── */

/* .sb-commentary__over-group {
  border-bottom: 1px solid hsl(var(--border_main_default) / 0.2);
} */

.sb-commentary__over-group:last-child {
  border-bottom: none;
}

/* Over header — pill-shaped container */
.sb-commentary__over-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: hsl(var(--background_sec_container));
  color: hsl(var(--text_prim_high));
  border-radius: 8px;
}

.sb-commentary__over-stats {
  font: var(--body_sm_bold);
  color: hsl(var(--text_prim_high));
}

.sb-commentary__over-score {
  font: var(--body_sm_bold);
  color: hsl(var(--text_prim_high));
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Ball entry ─────────────────────────────────────────────────── */

.sb-commentary__ball-entry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid hsl(var(--border_main_default) / 0.2);
  background: hsl(var(--background_main_surface));
}

.sb-commentary__ball-entry:last-child {
  border-bottom: none;
}

/* Ball chip — square with small radius, colors match sb-match-card__ball */
.sb-commentary__chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 45px;
  border-radius: 4px;
  border: 1px solid hsl(var(--border_main_default) / 0.4);
  color: hsl(var(--text_main_high));
  background: hsl(var(--background_main_container));
  flex-shrink: 0;
}

.sb-commentary__chip-val {
  font: var(--h3_bold);
  line-height: 1;
}

/* Extra combos (e.g. "NB+LB", "WD+W", "NB+LB+W") are longer than a single
   digit/letter — the h3_bold size doesn't fit 52px, so let the chip grow
   and shrink the text instead of letting it spill outside the box. */
.sb-commentary__chip.sb-ball--extra,
.sb-commentary__chip.sb-ball--extra-boundary,
.sb-commentary__chip.sb-ball--wicket-extra {
  width: auto;
  min-width: 52px;
  padding: 0 6px;
}

.sb-commentary__chip.sb-ball--extra .sb-commentary__chip-val,
.sb-commentary__chip.sb-ball--extra-boundary .sb-commentary__chip-val,
.sb-commentary__chip.sb-ball--wicket-extra .sb-commentary__chip-val {
  font: var(--body_md_bold);
  white-space: nowrap;
}

.sb-commentary__chip-ball {
  font: var(--body_xs_regular);
}

.sb-commentary__chip.sb-ball--boundary,
.sb-commentary__chip.sb-ball--extra-boundary {
  background: linear-gradient(90deg, #2939a3 0%, #151c51 100%);
  color: hsl(var(--text_prim_high));
  border-color: transparent;
}

.sb-commentary__chip.sb-ball--wicket,
.sb-commentary__chip.sb-ball--wicket-extra {
  background: hsl(var(--background_prim_card));
  color: hsl(var(--text_prim_high));
  border-color: transparent;
}

/* Ball content */
.sb-commentary__ball-content {
  flex: 1;
  min-width: 0;
}

.sb-commentary__ball-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.sb-commentary__ball-title {
  font: var(--body_sm_bold);
  color: hsl(var(--text_main_high));
}

.sb-commentary__ball-desc {
  margin-top: 4px;
  font: var(--body_sm_regular);
  color: hsl(var(--text_main_medium));
}

/* ── Editorial (non-ball) entries ───────────────────────────────── */

.sb-commentary__editorial-group {
  border-bottom: 1px solid var(--color-border_main_low, #f3f4f6);
}

.sb-commentary__editorial-entry {
  padding: 10px 16px;
  background: hsl(var(--background_main_surface));
}

.sb-commentary__editorial-entry:last-child {
  border-bottom: none;
}

.sb-commentary__editorial {
  font: var(--body_sm_regular);
  color: hsl(var(--text_main_medium));
}

/* ── Load more ──────────────────────────────────────────────────── */

.sb-commentary__load-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  text-align: center;
  font: var(--button_md);
  text-transform: uppercase;
  color: hsl(var(--button_outline_style_1_border_default));
  background: hsl(var(--background_main_surface));
  border: 1.5px solid hsl(var(--button_outline_style_1_border_default));
  border-radius: 8px;
  cursor: pointer;
}

.sb-commentary__load-more:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* ── Loading skeleton ───────────────────────────────────────────── */

.sb-commentary__skeleton-entry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid hsl(var(--border_main_default) / 0.2);
}

.sb-commentary__skeleton-chip {
  width: 52px;
  height: 45px;
  border-radius: 4px;
  background: hsl(var(--background_main_container));
  flex-shrink: 0;
  animation: sb-commentary-pulse 1.4s ease-in-out infinite;
}

.sb-commentary__skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.sb-commentary__skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: hsl(var(--background_main_container));
  animation: sb-commentary-pulse 1.4s ease-in-out infinite;
}

.sb-commentary__skeleton-line--title {
  width: 45%;
}
.sb-commentary__skeleton-line--desc {
  width: 90%;
  animation-delay: 0.1s;
}

@keyframes sb-commentary-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Tuned for the narrow desktop side panel (440px), so this must only apply
   once Commentary is actually rendered there — matches styles.css's
   .sb-matchcentre__body breakpoint. Below it, Commentary renders full-width
   as a mobile-style tab and needs its normal (non-sidebar) padding instead. */
@media (min-width: 1025px) {
  .sb-commentary {
    padding: 0 10px;
    padding-bottom: 100px;
  }
}

.sb-graph {
  display: flex;
  flex-direction: column;
}

/* ── Sub-tab bar ── */

.sb-graph__sub-tabs {
  padding-top: 20px;
  padding-left: 16px;
  padding-right: 16px;
  background: hsl(var(--background_main_container));
  box-sizing: border-box;
}

.sb-graph__sub-tabs-inner {
  display: flex;
  flex-direction: row;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border_main_default) / 0.5);
}

.sb-graph__sub-tab-wrap {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.sb-graph__sub-tab {
  flex: 1;
  padding: 12px 8px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: var(--body_md_bold);
  text-transform: uppercase;
  text-align: center;
  color: hsl(var(--text_main_high));
  transition: color 0.15s;
  white-space: nowrap;
}

.sb-graph__sub-tab--active {
  font: var(--body_md_bold);
  color: hsl(var(--text_main_prim));
}

.sb-graph__sub-tab-div {
  width: 1px;
  align-self: center;
  height: 24px;
  background: hsl(var(--border_main_default) / 0.5);
  flex-shrink: 0;
}

/* ── Card (bordered container, mirrors sb-scorecard__card) ── */

.sb-graph__card {
  margin: 18px 0px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border_main_low, #e5e7eb);
  background: hsl(var(--background_main_container));
}

/* ── Body ── */

.sb-graph__body {
  padding: 24px 16px 16px;
  background: hsl(var(--background_main_surface));
}

/* ── Section (Spider / Manhattan / Worm) ── */

.sb-graph__section {
  display: flex;
  flex-direction: column;
}

/* ── Spider chart ── */

.sb-graph__spider-outer {
  margin-top: 16px;
}

.sb-graph__spider-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.sb-graph__spider-svg {
  flex-shrink: 0;
}

.sb-graph__shot-counts {
  display: flex;
  flex-direction: row;
}

.sb-graph__shot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  width: 58px;
  height: 58px;
}

.sb-graph__shot-label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.sb-graph__shot-count {
  font-size: 26px;
  font-weight: bold;
  line-height: 1.1;
}

/* ── Manhattan / Worm chart wrappers ── */

.sb-graph__chart-wrap {
  background: white;
  border-radius: 12px;
  padding: 8px 16px 8px;
}

.sb-graph__chart-inner {
  height: 320px;
  margin-top: 20px;
}

.sb-graph__chart-wrap--worm {
  height: 380px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.sb-graph__worm-chart {
  flex: 1;
  min-height: 0;
}

/* ── Chart legend (Manhattan / Worm) ── */

.sb-graph__legend {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  margin: 0 auto;
  gap: 6px;
  padding: 4px 0 8px;
}

.sb-graph__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-graph__legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sb-graph__legend-label {
  font: var(--body_sm_bold);
  color: hsl(var(--text_main_high));
}

/* ── Manhattan scroll container — hidden scrollbar, swipe-friendly ── */

.sb-graph__chart-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sb-graph__chart-scroll::-webkit-scrollbar {
  display: none;
}

/* ── Manhattan scroll pagination ── */

.sb-graph__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.sb-graph__page-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: hsl(var(--text_main_sec));
  line-height: 1;
  padding: 0 4px;
}

.sb-graph__page-btn:disabled {
  opacity: 0.3;
}

.sb-graph__page-label {
  font: var(--body_sm_bold);
  color: hsl(var(--text_main_high));
  text-transform: uppercase;
}

/* ── Loading ── */

.sb-graph__loading {
  padding: 48px 20px;
  text-align: center;
  color: hsl(var(--text_main_low));
  font: var(--body_sm_regular);
}

/* ── Desktop ── */

@media (min-width: 768px) {
  .sb-graph__sub-tabs {
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .sb-graph__body {
    padding: 24px 28px 20px;
  }

  .sb-graph__spider-wrap {
    flex-direction: row;
    justify-content: center;
  }

  .sb-graph__chart-wrap {
    padding: 8px 16px;
  }
  .sb-graph__card {
    margin: 26px 20px;
  }
  .sb-graph__legend {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
  }
}

.sb-match-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-background_invert_surface, #1e293b);
}

/* Live matches only reserve the taller height when the current-players
   section (batter/bowler cards) actually renders — otherwise the card would
   have a large empty gap below the result strip where that section would've
   gone. Without it, a live match looks like a completed one structurally. */
.sb-match-card--live {
  min-height: 343px;
}
.sb-match-card--live.sb-match-card--has-current-players {
  min-height: 707px;
}
.sb-match-card--upcoming {
  min-height: 350px;
}
.sb-match-card--completed {
  min-height: 343px;
}

.sb-match-card__bg {
  position: absolute;
  inset: 0;
  background-image: var(--mc-bg-mweb);
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.sb-match-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 16px;
  gap: 15px;
}

/* Meta info line */
.sb-match-card__meta {
  font: var(--body_sm_regular);
  color: hsl(var(--text_prim_high));
  text-align: center;
  padding-bottom: 13px;
}

/* Status badge */
.sb-match-card__status-badge {
  display: flex;
  align-items: center;
  width: 100%;
}

.sb-match-card__status-badge::before,
.sb-match-card__status-badge::after {
  content: "";
  flex: 1;
  border-top: 0.5px solid hsl(var(--border_invert_default) / 0.4);
}

.sb-match-card__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 4px;
  color: hsl(var(--text_invert_high));
  height: 20px;
  font: var(--body_xs_bold);
}

.sb-match-card__status-pill--live {
  background: hsl(var(--background_alert_success));
}
.sb-match-card__status-pill--upcoming {
  background: hsl(var(--background_main_card));
  color: hsl(var(--text_main_high));
}
.sb-match-card__status-pill--completed {
  background: hsl(var(--background_prim_surface));
}

/* Pulsing live indicator dot — same ripple pattern as sb-live-stristrip,
   recolored via currentColor since it sits inside an already-green pill. */
.sb-match-card__status-svg {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.sb-match-card__status-ripple {
  transform-origin: center;
  transform: scale(1);
  fill-opacity: 0.5;
  animation: sb-match-card-status-ripple 1s infinite;
}

@keyframes sb-match-card-status-ripple {
  0% {
    transform: scale(1);
    fill-opacity: 1;
  }
  100% {
    transform: scale(3);
    fill-opacity: 0;
  }
}

/* Teams row */
.sb-match-card__teams {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 25px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.sb-match-card--upcoming .sb-match-card__teams {
  border-bottom: 0.5px solid hsl(var(--border_invert_default) / 0.4);
}

.sb-match-card__team {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.sb-match-card__team--home {
  justify-content: flex-end;
}

.sb-match-card__team--away {
  justify-content: flex-start;
}

.sb-match-card__team-name {
  display: none;
  max-width: 90px;
  text-align: center;
  font: var(--h3_bold);
  color: hsl(var(--text_prim_high));
  text-transform: uppercase;
}
.sb-match-card__team--home .sb-match-card__team-name {
  text-align: right;
  flex: 1;
  min-width: 0;
  max-width: none;
}
.sb-match-card__team--away .sb-match-card__team-name {
  text-align: left;
  flex: 1;
  min-width: 0;
  max-width: none;
}

.sb-match-card__logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(var(--background_main_container));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-match-card__logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.sb-match-card__vs {
  flex-shrink: 0;
  font: var(--dp_4_regular);
  color: hsl(var(--text_prim_low));
}

.sb-match-card__score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sb-match-card__yet-to-bat {
  font: var(--body_lg_bold);
  color: hsl(var(--text_prim_high));
  text-transform: uppercase;
  text-align: center;
  opacity: 0.6;
}

.sb-match-card__yet-to-bat-l1,
.sb-match-card__yet-to-bat-l2 {
  display: block;
}

.sb-match-card__score {
  color: #fff;
  white-space: nowrap;
  font: var(--dp_4_regular);
  color: hsl(var(--text_prim_high));
}

.sb-match-card__overs {
  font: var(--body_xs_medium);
  color: hsl(var(--text_invert_medium));
  white-space: nowrap;
}

/* Ball indicators */
.sb-match-card__balls {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-bottom: 13px;
  min-height: 45px; /* 32px ball + 13px padding-bottom — holds space when empty */
}

.sb-match-card__ball {
  height: 32px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font: var(--body_sm_bold);
  color: hsl(var(--text_prim_high));
  background: transparent;
}

/* Circle balls */
.sb-match-card__ball.sb-ball--normal,
.sb-match-card__ball.sb-ball--dot,
.sb-match-card__ball.sb-ball--wicket,
.sb-match-card__ball.sb-ball--boundary {
  width: 32px;
}

/* Oval balls (extras) */
.sb-match-card__ball.sb-ball--extra,
.sb-match-card__ball.sb-ball--extra-boundary,
.sb-match-card__ball.sb-ball--wicket-extra {
  padding: 0 8px;
  width: 40px;
  height: 30px;
  width: auto;
  font: var(--body_sm_bold);
}

.sb-match-card__ball.sb-ball--extra {
  background: transparent;
}

/* Boundary (4 or 6) */
.sb-match-card__ball.sb-ball--boundary {
  background: linear-gradient(90deg, #2939a3 0%, #151c51 100%);
  border-color: transparent;
}

/* Extra with boundary runs (e.g. 4NB, 2WD) */
.sb-match-card__ball.sb-ball--extra-boundary {
  background: linear-gradient(90deg, #2939a3 0%, #151c51 100%);
  border-color: transparent;
}

/* Wicket */
.sb-match-card__ball.sb-ball--wicket {
  background: hsl(var(--background_prim_card));
  border-color: transparent;
}

/* Wicket on an extra delivery (e.g. "WD+W", "NB+W") — same color as a plain
   wicket, oval-shaped like an extra since the label is longer. */
.sb-match-card__ball.sb-ball--wicket-extra {
  background: hsl(var(--background_prim_card));
  border-color: transparent;
}

/* Dot ball — small filled center dot */
.sb-match-card__ball-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* Countdown */
.sb-match-card__countdown {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 11px;
}

.sb-match-card__countdown-group {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 18px;
}

.sb-match-card__countdown-sep {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.sb-match-card__countdown-sep-dot {
  width: 6px;
  height: 6px;
  background: #fefefe;
}

.sb-match-card__countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.sb-match-card__countdown-value {
  font: var(--dp_4_regular);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: center;
  color: hsl(var(--text_prim_high));
}

.sb-match-card__countdown-value--secs {
  color: hsl(var(--text_main_prim));
}

.sb-match-card__countdown-label {
  font: var(--body_sm_regular);
  color: hsl(var(--text_prim_high));
}

/* ── Current batters & bowler ─────────────────────────────────── */

.sb-match-card__current-players {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 12px 16px 16px;
}

.sb-match-card__current-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sb-match-card__current-section--bowler {
  margin-top: 20px;
}

.sb-match-card__current-label {
  /* text-transform: uppercase; */
  font: var(--body_sm_regular);
  color: hsl(var(--text_prim_high));
}

.sb-match-card__current-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sb-match-card__player-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  /* --match-card-player-bg (config-driven, set inline per card) layers over
     the gradient fallback so a missing/unset pattern still looks intentional. */
  background-image: var(--match-card-player-bg, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  /* background: linear-gradient(90deg, #310204 0%, rgba(49, 2, 4, 0) 100%); */
  width: 100%;
  height: 67px;
  border-radius: 8px;
  padding: 8px 12px 8px 64px;
  overflow: visible;
}

.sb-match-card__player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(90deg, #310204 0%, #e10a15 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* No circular/square background or border behind the photo itself — the
   image is shown directly, positioned to poke slightly past the card's
   top/left/bottom edges (same technique as .sb-squad__player-avatar). The
   fallback initial (below) keeps a badge look since there's no photo to
   display in that case. */
.sb-match-card__player-avatar {
  position: absolute;
  z-index: 1;
  top: -15px;
  bottom: 5px;
  left: 8px;
  width: 58px;
  border-radius: 8px;
  overflow: hidden;
}

.sb-match-card__player-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sb-match-card__player-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

/* No player photo — drop the left padding reserved for the avatar and
   left-align the text instead of hugging the (now absent) image. */
.sb-match-card__player-card--no-image {
  padding-left: 20px;
}

.sb-match-card__player-info--no-image {
  align-items: flex-start;
  text-align: left;
}

.sb-match-card__player-name {
  font: var(--body_md_bold);
  color: hsl(var(--text_prim_high));
  text-transform: uppercase;
}

.sb-match-card__player-stat {
  font: var(--body_sm_regular);
  color: hsl(var(--text_invert_medium));
}

/* Result strip */
.sb-match-card__result-strip {
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  margin-top: 5px;
  font: var(--body_sm_regular);
  color: hsl(var(--text_prim_high));
  background: linear-gradient(
    90deg,
    rgba(225, 10, 21, 0) 16.63%,
    rgba(225, 10, 21, 0.3) 49.41%,
    rgba(225, 10, 21, 0) 82.19%
  );
}

@media (min-width: 768px) {
  .sb-match-card__yet-to-bat-l1,
  .sb-match-card__yet-to-bat-l2 {
    display: inline;
  }
  .sb-match-card__yet-to-bat-l1::after {
    content: " ";
  }
  .sb-match-card__player-avatar {
    width: 56px;
  }
  .sb-match-card__bg {
    background-image: var(--mc-bg-web);
  }
  .sb-match-card--live {
    min-height: 343px;
  }
  .sb-match-card--live.sb-match-card--has-current-players {
    min-height: 468px;
  }
  /* .sb-match-card--live  { min-height: 468px; } */
  .sb-match-card--upcoming {
    min-height: 326px;
  }
  .sb-match-card--completed {
    min-height: 368px;
  }

  .sb-match-card__content {
    padding: 28px 40px 20px;
  }
  .sb-match-card--upcoming .sb-match-card__content {
    padding: 28px 40px 50px;
  }
  .sb-match-card__team--home .sb-match-card__score-block {
    padding-left: 8px;
  }
  .sb-match-card__team--away .sb-match-card__score-block {
    padding-right: 8px;
  }
  .sb-match-card__team-name {
    display: block;
  }

  .sb-match-card__logo {
    width: 69px;
    height: 69px;
  }

  .sb-match-card__logo-img {
    width: 69px;
    height: 69px;
  }

  .sb-match-card__teams {
    padding-top: 0px;
    padding-bottom: 25px;
  }
  .sb-match-card__current-players {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 12px 24px 16px;
  }
  .sb-match-card__current-section {
    flex: 0 0 auto;
    padding-right: 20px;
    gap: 22px;
  }

  .sb-match-card__current-section--bowler {
    margin-top: 0px;
  }

  .sb-match-card__current-section:last-child {
    padding-right: 0;
    padding-left: 20px;
  }

  .sb-match-card__current-cards {
    flex-direction: row;
    gap: 32px;
  }
  .sb-match-card__player-card {
    flex: 0 0 260px;
    width: 260px;
  }
  .sb-match-card__balls {
    padding-bottom: 5px;
    min-height: 37px; /* 32px ball + 5px padding-bottom */
  }
  .sb-match-card__meta {
    font: var(--body_sm_medium);
    padding-bottom: 3px;
  }
}

/* ── Skeleton shimmer ────────────────────────────────────── */
@keyframes sbmc-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.sbmc-shimmer {
  display: block;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.07) 25%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.07) 75%
  );
  background-size: 200% 100%;
  animation: sbmc-shimmer 1.4s ease-in-out infinite;
}

.sbmc-shimmer--meta {
  height: 12px;
  width: 180px;
}
.sbmc-shimmer--pill {
  height: 24px;
  width: 80px;
  border-radius: 12px;
}
.sbmc-shimmer--logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sbmc-shimmer--name {
  height: 14px;
  width: 56px;
}
.sbmc-shimmer--score {
  height: 22px;
  width: 90px;
}
.sbmc-shimmer--overs {
  height: 10px;
  width: 64px;
  margin-top: 6px;
}
.sbmc-shimmer--strip {
  height: 14px;
  width: 220px;
}

.sb-moreinfo {
  display: flex;
  flex-direction: column;
}

/* ── Card wrapper (mirrors .sb-scorecard__card) ── */

.sb-moreinfo__card {
  margin: 20px 0 20px;
  overflow: hidden;
  border: 1px solid var(--color-border_main_low, #e5e7eb);
  background: hsl(var(--background_main_container));
}

/* ── Row ── */

.sb-moreinfo__row {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 16px 16px;
  background: hsl(var(--background_main_surface));
  gap: 12px;
}

.sb-moreinfo__row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: hsl(var(--border_main_default) / 0.2);
}

/* ── Label ── */

.sb-moreinfo__label {
  font: var(--body_sm_medium);
  color: hsl(var(--text_main_medium));
  min-width: 120px;
  flex-shrink: 0;
}

/* ── Value ── */

.sb-moreinfo__value {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font: var(--body_sm_bold);
  color: hsl(var(--text_main_high));
  flex: 1;
}

/* ── Inline icon (venue pin, clock) ── */

.sb-moreinfo__icon {
  color: hsl(var(--text_main_low));
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Desktop ── */

@media (min-width: 768px) {
  .sb-moreinfo__card {
    margin: 30px 20px 30px;
    border-radius: 8px;
  }
  .sb-moreinfo__label {
    min-width: 200px;
  }

  .sb-moreinfo__row {
    padding: 16px 40px;
  }
  .sb-moreinfo__row:not(:last-child)::after {
    left: 40px;
    right: 40px;
  }
}

/* ── Skeleton shimmer ────────────────────────────────────── */
@keyframes sbmi-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.sbmi-shimmer {
  display: block;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    hsl(var(--background_main_container)) 25%,
    hsl(var(--background_main_surface)) 50%,
    hsl(var(--background_main_container)) 75%
  );
  background-size: 200% 100%;
  animation: sbmi-shimmer 1.4s ease-in-out infinite;
}

.sbmi-shimmer--label {
  height: 11px;
  width: 70px;
}
.sbmi-shimmer--value {
  height: 11px;
  width: 130px;
}

.sb-moreinfo__skeleton-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  background: hsl(var(--background_main_surface));
}

.sb-moreinfo__skeleton-row:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: hsl(var(--border_main_disable));
}

.sb-scorecard {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

/* ── Team selector ── */

.sb-scorecard__selector-bar {
  display: flex;
  justify-content: center;
  margin: 0 20px;
  padding: 20px 0;
  background: hsl(var(--background_main_container));
}

/* .sb-innings-picker (shared with the Commentary dropdown) is width:auto and
   shrink-wraps to its label there — here it must stretch to fill the bar so
   its edges line up with .sb-scorecard__card's. */
.sb-scorecard__selector-bar .sb-innings-picker {
  width: 100%;
}

/* ── Cards ── */

.sb-scorecard__card {
  margin: 0 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border_main_low, #e5e7eb);
  background: hsl(var(--background_main_container));
}

.sb-scorecard__card + .sb-scorecard__card {
  margin-top: 12px;
}

/* ── Innings / bowling headers ── */

.sb-scorecard__innings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 16px;
  padding-left: 16px;
  background: hsl(var(--background_main_surface));
  min-height: 64px;
  height: auto;
  color: hsl(var(--text_main_high));
  font: var(--body_md_bold);
}

.sb-scorecard__innings-team-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-scorecard__innings-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.sb-scorecard__innings-team {
  font: var(--body_md_bold);
}

.sb-scorecard__innings-score {
  display: none;
  color: hsl(var(--text_main_high));
  font: var(--body_sm_medium);
}

/* ── Result strip ── */

.sb-scorecard__result {
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--text_main_low));
  text-align: center;
}

.sb-scorecard__section-label {
  text-transform: uppercase;
  color: hsl(var(--text_main_high));
  font: var(--h2_bold);
  padding-top: 32px;
  padding-left: 16px;
  padding-bottom: 21px;
}

/* ── Tables ── */

.sb-scorecard__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sb-scorecard__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sb-scorecard__th {
  padding: 8px 8px;
  text-align: center;
  color: hsl(var(--text_main_sec));
  background: hsl(var(--background_sec_card_2) / 0.2);
  font: var(--body_xs_bold);
  text-transform: uppercase;
  white-space: nowrap;
  width: 42px;
}

.sb-scorecard__th--name {
  font: var(--body_sm_bold);
  text-align: left;
  width: auto;
}

.sb-scorecard__row {
  background: hsl(var(--background_main_surface));
  border-bottom: 0.5px solid hsl(var(--border_main_default));
}

.sb-scorecard__row:last-child {
  border-bottom: none;
}

.sb-scorecard__cell {
  padding: 12px 2px;
  text-align: center;
  color: hsl(var(--text_main_high));
  vertical-align: top;
  font: var(--body_xs_medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-scorecard__cell--name {
  text-align: left;
  padding-left: 10px;
  overflow: hidden;
  white-space: normal;
}

.sb-scorecard__player-name {
  display: block;
  color: hsl(var(--text_main_high));
  font: var(--body_xs_bold);
  white-space: normal;
}

.sb-scorecard__how-out {
  display: block;
  color: hsl(var(--text_main_medium));
  margin-top: 7px;
  font: var(--body_xs_regular);
}

.sb-scorecard__extras-row {
  background: hsl(var(--background_sec_card_2) / 0.2);
}
.sb-scorecard__total-row {
  background: hsl(var(--background_sec_card_2) / 0.4);
}

.sb-scorecard__cell--accent {
  padding: 10px 16px;
}

.sb-scorecard__accent-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-scorecard__total-row .sb-scorecard__accent-row {
  justify-content: space-between;
}

.sb-scorecard__total-score {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb-scorecard__accent-label {
  font: var(--body_md_bold);
  color: hsl(var(--text_main_sec));
}

.sb-scorecard__accent-label--light {
  font: var(--body_md_regular);
}

.sb-scorecard__accent-label--upper {
  text-transform: uppercase;
}

.sb-scorecard__extras-row .sb-scorecard__accent-label {
  font: var(--body_sm_bold);
}
.sb-scorecard__total-row .sb-scorecard__accent-label--upper {
  font: var(--body_sm_bold);
}

.sb-scorecard__accent-detail {
  font: var(--body_sm_medium);
  color: hsl(var(--text_main_sec));
}
.sb-scorecard__fow-section {
  background: hsl(var(--background_main_surface));
}
.sb-scorecard__fow-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 0 32px 16px;
}

.sb-scorecard__fow-scroll::-webkit-scrollbar {
  display: none;
}

.sb-scorecard__fow-cards {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.sb-scorecard__fow-cards::after {
  content: "";
  display: block;
  flex-shrink: 0;
  min-width: 8px;
}

.sb-scorecard__fow-card {
  flex-shrink: 0;
  min-width: 148px;
  min-height: 99px;
  border: 0.5px solid hsl(var(--border_main_invert));
  border-radius: 8px;
  padding: 24px 8px 10px;
  position: relative;
  background: hsl(var(--background_main_high));
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.sb-scorecard__fow-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--button_filled_style_1_surface_default));
  color: hsl(var(--text_prim_high));
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  font: var(--body_sm_bold);
}

.sb-scorecard__fow-name {
  font: var(--body_sm_bold);
  color: hsl(var(--text_main_high));
}

.sb-scorecard__fow-balls {
  font: var(--body_sm_regular);
  color: hsl(var(--text_main_low));
}

@media (min-width: 768px) {
  .sb-scorecard__selector-bar {
    justify-content: flex-end;
    margin: 0;
    padding: 30px 20px 20px;
  }

  /* Right-aligned and shrink-wrapped at desktop, unlike the full-width mobile bar. */
  .sb-scorecard__selector-bar .sb-innings-picker {
    width: auto;
    min-width: 180px;
  }

  .sb-scorecard__table {
    table-layout: fixed;
  }

  .sb-scorecard__th {
    padding: 8px 16px;
    width: auto;
  }

  .sb-scorecard__th--name {
    width: 42%;
  }

  .sb-scorecard__cell {
    padding: 21px 12px;
    white-space: nowrap;
  }

  .sb-scorecard__cell--name {
    padding-left: 12px;
    white-space: normal;
  }

  .sb-scorecard__innings-header {
    font: var(--body_lg_bold);
  }
  .sb-scorecard__innings-score {
    display: block;
  }
  .sb-scorecard__th {
    font: var(--body_sm_bold);
  }
  .sb-scorecard__player-name {
    font: var(--body_sm_bold);
  }
  .sb-scorecard__cell {
    font: var(--body_sm_medium);
  }
  .sb-scorecard__innings-team {
    font: var(--body_lg_bold);
  }
}

/* ── Skeleton shimmer ────────────────────────────────────── */
@keyframes sbsc-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.sbsc-shimmer {
  display: block;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    hsl(var(--background_main_container)) 25%,
    hsl(var(--background_main_surface)) 50%,
    hsl(var(--background_main_container)) 75%
  );
  background-size: 200% 100%;
  animation: sbsc-shimmer 1.4s ease-in-out infinite;
}

.sbsc-shimmer--pill {
  height: 36px;
  width: 180px;
  border-radius: 8px;
}
.sbsc-shimmer--logo {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sbsc-shimmer--text-lg {
  height: 14px;
  width: 120px;
}
.sbsc-shimmer--text-sm {
  height: 11px;
  width: 80px;
}
.sbsc-shimmer--cell {
  height: 11px;
  width: 28px;
  margin: 0 auto;
}
.sbsc-shimmer--name {
  height: 11px;
  width: 90px;
}

.sb-scorecard__skeleton-card {
  margin: 0 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border_main_low, #e5e7eb);
  background: hsl(var(--background_main_container));
}

.sb-scorecard__skeleton-card + .sb-scorecard__skeleton-card {
  margin-top: 12px;
}

.sb-scorecard__skeleton-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: hsl(var(--background_main_surface));
  min-height: 64px;
}

.sb-scorecard__skeleton-rows {
  width: 100%;
  border-collapse: collapse;
}

.sb-scorecard__skeleton-rows td {
  padding: 12px 8px;
  border-bottom: 1px solid hsl(var(--border_main_disable));
}

.sb-scorecard__skeleton-rows td:first-child {
  padding-left: 16px;
}

.sb-scorecard__skeleton-rows tr:last-child td {
  border-bottom: none;
}

.sb-squad {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.sb-squad__card {
  margin: 20px 20px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid hsl(var(--border_main_low));
  background: hsl(var(--background_main_container));
}

.sb-squad__empty {
  padding: 40px 16px;
  text-align: center;
  font-size: 14px;
  color: hsl(var(--text_main_low));
}

/* ── Team toggle ── */

.sb-squad__toggle {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: fit-content;
  margin: 10px auto 20px;
  background: hsl(var(--background_main_container));
  border: 0.5px solid hsl(var(--border_main_default));
  border-radius: 6px;
  overflow: hidden;
}

.sb-squad__toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: hsl(var(--text_main_high));
  font: var(--body_sm_bold);
  text-transform: uppercase;
  transition:
    background 0.15s,
    color 0.15s;
  min-width: 0;
}

.sb-squad__toggle-btn--active {
  background: hsl(var(--background_prim_card));
  color: hsl(var(--text_prim_high));
}

.sb-squad__toggle-btn--active .sb-squad__toggle-name {
  font: var(--body_xs_bold);
}
.sb-squad__toggle-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  background: hsl(var(--background_main_container));
}

.sb-squad__toggle-btn--active .sb-squad__toggle-logo {
  background: hsl(var(--background_main_surface));
}

.sb-squad__toggle-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  text-align: left;
  font: var(--body_xs_medium);
}

/* ── Section ── */

.sb-squad__section {
  padding: 20px 20px 20px;
  background: hsl(var(--background_main_surface));
}

.sb-squad__section-label {
  font: var(--body_sm_bold);
  text-transform: uppercase;
  color: hsl(var(--text_main_sec));
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  background: hsl(var(--background_sec_card_2) / 0.2);
  border-radius: 2px;
  padding: 8px 12px;
}

/* ── Grid — 1 col mobile, 3 col desktop ── */

.sb-squad__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* ── Player card ── */

.sb-squad__player-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  border-radius: 8px;
  min-height: 68px;
  padding-left: 84px;
  overflow: visible;
}

/* Rounded, clipped background layer — kept separate from the card box so the
   avatar (below) can bleed past the card's edges without being clipped. */
.sb-squad__player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 8px;
  background-image: var(--squad-card-bg);
  background-size: cover;
  background-position: center;
  transition: background 0.15s;
}

.sb-squad__player-card:hover::before {
  background-image: none;
  background: linear-gradient(90deg, #2939a3 0%, #151c51 100%);
}

.sb-squad__player-card:hover .sb-squad__player-name {
  color: hsl(var(--text_prim_high));
}

/* Sized and positioned to poke slightly past the card's top/left/bottom
   edges instead of being fully contained within it. */
.sb-squad__player-avatar {
  position: absolute;
  z-index: 1;
  top: -15px;
  bottom: 0px;
  left: 15px;
  width: 96px;
  border-radius: 8px;
  overflow: hidden;
}

.sb-squad__player-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.sb-squad__player-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  align-items: flex-end;
  text-align: right;
  padding: 16px 12px;
}

/* No player photo — drop the left padding reserved for the avatar and
   left-align the text instead of hugging the (now absent) image. */
.sb-squad__player-card--no-image {
  padding-left: 12px;
}

.sb-squad__player-info--no-image {
  align-items: flex-start;
  text-align: left;
}

/* ── Role badge ── */

.sb-squad__role-badge {
  display: inline-block;
  font: var(--body_xs_medium);
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: #aeb6ea;
  color: hsl(var(--text_main_high));
  width: fit-content;
}
.sb-squad__player-name {
  font: var(--body_sm_bold);
  color: hsl(var(--text_main_high));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.sb-squad__captain-badge {
  font: var(--body_xs_regular);
  opacity: 0.7;
}

/* ── Desktop ── */

@media (min-width: 768px) {
  .sb-squad__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sb-squad__section-label {
    margin-bottom: 32px;
  }

  .sb-squad__toggle-name {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    white-space: nowrap;
    text-overflow: ellipsis;
    font: var(--body_sm_medium);
  }

  .sb-squad__toggle-btn {
    padding: 8px 16px;
  }

  .sb-squad__toggle-btn--active .sb-squad__toggle-name {
    font: var(--body_sm_bold);
  }
}

/* ── Skeleton shimmer ────────────────────────────────────── */
@keyframes sbsq-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.sbsq-shimmer {
  display: block;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    hsl(var(--background_main_container)) 25%,
    hsl(var(--background_main_surface)) 50%,
    hsl(var(--background_main_container)) 75%
  );
  background-size: 200% 100%;
  animation: sbsq-shimmer 1.4s ease-in-out infinite;
}

.sbsq-shimmer--toggle {
  height: 36px;
  width: 110px;
  border-radius: 8px;
}
.sbsq-shimmer--avatar {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
}
.sbsq-shimmer--name {
  height: 11px;
  width: 70px;
  margin: 0 auto;
}
.sbsq-shimmer--role {
  height: 9px;
  width: 50px;
  margin: 0 auto 6px;
}

.sb-squad__skeleton-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-radius: 8px;
  background: hsl(var(--background_main_container));
}

.sb-tabnav {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  border-bottom: 1px solid hsl(var(--border_main_default));
  background: hsl(var(--background_main_surface));
  scrollbar-width: none;
}

.sb-tabnav::-webkit-scrollbar {
  display: none;
}

.sb-tabnav__item {
  position: relative;
  flex: 1;
  flex-shrink: 0;
  padding: 12px 20px;
  font: var(--body_sm_bold);
  text-transform: uppercase;
  color: hsl(var(--text_main_high));
  background: hsl(var(--background_main_surface));
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition:
    background 0.15s,
    color 0.15s;
}

/* Vertical divider between tabs */
.sb-tabnav__item + .sb-tabnav__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: hsl(var(--border_main_default) / 0.5);
}

.sb-tabnav__item--active {
  color: hsl(var(--text_invert_high));
  background: hsl(var(--button_filled_style_1_surface_default));
}

/* Must match .sb-matchcentre__body's breakpoint in styles.css — below it,
   Commentary is a tab (this button must stay visible); at/above it,
   Commentary is the desktop side panel and this tab would be redundant. */
@media (min-width: 1025px) {
  .sb-tabnav {
    overflow-x: unset;
  }

  .sb-tabnav__item {
    flex-shrink: 1;
  }

  /* Commentary is a desktop side panel — hide its tab */
  .sb-tabnav__item--desktop-hidden {
    display: none;
  }
}

/* ── Skeleton ─────────────────────────────────────────────────────────────── */

@keyframes sb-skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.sb-skeleton {
  width: 100%;
  animation: sb-skeleton-pulse 1.5s ease-in-out infinite;
}

/* Match card */
.sb-skeleton__match-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 16px 16px;
  background: var(--color-background_invert_surface, #1e293b);
  min-height: 280px;
}

.sb-skeleton__mc-meta {
  height: 12px;
  width: 200px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.sb-skeleton__mc-badge {
  height: 20px;
  width: 72px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.sb-skeleton__mc-teams {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 25px;
  padding: 13px 0;
}

.sb-skeleton__mc-team {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.sb-skeleton__mc-team--away {
  justify-content: flex-start;
}

.sb-skeleton__mc-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.sb-skeleton__mc-name {
  height: 14px;
  width: 56px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.sb-skeleton__mc-score {
  height: 36px;
  width: 52px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.sb-skeleton__mc-vs {
  width: 24px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.sb-skeleton__mc-balls {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding-bottom: 13px;
}

.sb-skeleton__mc-ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.sb-skeleton__mc-strip {
  height: 12px;
  width: 160px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

/* Tab bar */
.sb-skeleton__tabs {
  display: flex;
  flex-direction: row;
  padding: 12px 16px 0;
  gap: 8px;
  border-bottom: 1px solid var(--color-border_main_low, #e5e7eb);
}

.sb-skeleton__tab-item {
  height: 36px;
  width: 80px;
  background: var(--color-background_main_low, #e5e7eb);
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Body */
.sb-skeleton__body {
  display: flex;
  flex-direction: column;
}

/* Main content */
.sb-skeleton__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  flex: 1;
}

.sb-skeleton__section-header {
  height: 20px;
  width: 40%;
  background: var(--color-background_main_low, #e5e7eb);
  border-radius: 4px;
  margin-bottom: 4px;
}

.sb-skeleton__row {
  height: 16px;
  background: var(--color-background_main_low, #e5e7eb);
  border-radius: 4px;
}

/* Commentary panel — hidden on mobile, visible on desktop */
.sb-skeleton__commentary-panel {
  display: none;
}

.sb-skeleton__commentary-entry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border_main_low, #e5e7eb);
}

.sb-skeleton__commentary-chip {
  width: 52px;
  height: 45px;
  border-radius: 4px;
  background: var(--color-background_main_low, #e5e7eb);
  flex-shrink: 0;
}

.sb-skeleton__commentary-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.sb-skeleton__commentary-line {
  height: 12px;
  border-radius: 4px;
  background: var(--color-background_main_low, #e5e7eb);
}

.sb-skeleton__commentary-line--title {
  width: 45%;
}
.sb-skeleton__commentary-line--desc {
  width: 90%;
}

/* Main layout */
.sb-matchcentre {
  width: 100%;
  font-family: inherit;
}

.sb-matchcentre__body {
  display: flex;
  flex-direction: column;
}

.sb-matchcentre__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sb-matchcentre__tab-content {
  flex-grow: 1;
}

/* Commentary tab content is the full-page list on mobile */
.sb-matchcentre__mobile-commentary {
  display: block;
}

/* ── Shared no-data empty state ── */
.sb-no-data {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 150px 24px;
  text-align: center;
  color: hsl(var(--text_main_low));
  font: var(--h3_medium);
}

.sb-no-data__img {
  width: 18px;
  height: 18px;
}

/* Coming-soon placeholder for unimplemented tabs */
.sb-matchcentre__coming-soon {
  padding: 48px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text_main_low, #6b7280);
}

/* ── Right panel: commentary ── */
.sb-matchcentre__commentary-panel {
  display: none;
}

.sb-matchcentre__commentary-panel-title {
  /* position: sticky; */
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 10px;
  background: hsl(var(--background_main_surface));
}

.sb-matchcentre__commentary-panel-label {
  display: inline-block;
  font: var(--body_md_bold);
  text-transform: uppercase;
  color: hsl(var(--text_main_sec));
  padding: 8px;
  width: 100%;
  border-radius: 8px;
  background: hsl(var(--background_sec_card_2) / 0.3);
}

/* ── Innings picker (custom dropdown) ── */
.sb-innings-picker {
  position: relative;
  width: auto;
}

.sb-innings-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid hsl(var(--background_prim_card));
  border-radius: 8px;
  background: hsl(var(--background_main_surface));
  color: hsl(var(--background_prim_card));
  font: var(--button_md);
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.sb-innings-picker__trigger-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-innings-picker__chevron {
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.sb-innings-picker__chevron--open {
  transform: rotate(180deg);
}

.sb-innings-picker__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 100;
  background: hsl(var(--background_main_surface));
  border: 1px solid hsl(var(--border_main_default) / 0.25);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px hsl(0 0% 0% / 0.12);
}

.sb-matchcentre__mobile-commentary {
  .sb-innings-picker__dropdown {
    top: calc(100% - 15px);
    margin-inline: 16px;
  }
}

.sb-innings-picker__option {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: hsl(var(--text_main_medium));
  font: var(--body_sm_regular);
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.sb-innings-picker__option:last-child {
  border-bottom: none;
}

.sb-innings-picker__option--active {
  color: hsl(var(--button_outline_style_1_text_default));
  font: var(--button_md);
  background: hsl(var(--background_main_container));
  border-bottom: 1.5px solid hsl(var(--button_outline_style_1_text_default));
}

/* Commentary-only: extra breathing room around the innings picker */
.sb-matchcentre__commentary-panel-title .sb-innings-picker,
.sb-matchcentre__mobile-commentary .sb-innings-picker {
  padding: 20px 16px;
}

@media (min-width: 1025px) {
  .sb-matchcentre__body {
    flex-direction: row;
    align-items: stretch;
    min-height: 100dvh;
  }
  .sb-matchcentre__commentary-panel-title .sb-innings-picker,
  .sb-matchcentre__mobile-commentary .sb-innings-picker {
    padding: 0px;
  }

  .sb-matchcentre__mobile-commentary {
    display: none;
  }

  /* Pinned to the viewport and scrolls its own content independently of
     .sb-matchcentre__main, which scrolls with the page as normal. */
  .sb-matchcentre__commentary-panel {
    display: flex;
    flex-direction: column;
    width: 440px;
    flex-shrink: 0;
    border-left: 0.5px solid hsl(var(--border_main_default) / 0.1);
    position: sticky;
    top: 0;
    max-height: 100dvh;
    overflow-y: scroll;
    overscroll-behavior: contain;
  }

  .sb-skeleton__match-card {
    padding: 28px 40px 20px;
    min-height: 326px;
  }

  .sb-skeleton__mc-logo {
    width: 69px;
    height: 69px;
  }

  .sb-skeleton__body {
    flex-direction: row;
  }

  .sb-skeleton__commentary-panel {
    display: flex;
    flex-direction: column;
    width: 440px;
    flex-shrink: 0;
    padding: 16px 10px;
    border-left: 1px solid var(--color-border_main_low, #e5e7eb);
  }

  .sb-matchcentre__commentary-panel::-webkit-scrollbar {
    width: 7px;
  }
  .sb-matchcentre__commentary-panel::-webkit-scrollbar-track {
    background: transparent;
  }
  .sb-matchcentre__commentary-panel::-webkit-scrollbar-thumb {
    background: hsl(var(--border_main_default));
    border-radius: 2px;
  }
}

/* ── Shared pennant badge ────────────────────────────────────────────────────── */

.sbh-pennant-sm {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 66px;
  top: 5px;
}

.sbh-pennant-lg {
  position: absolute;
  left: calc(var(--container-offset));
  top: 0;
  z-index: 10;
  width: 85px;
  height: 103px;
}

.sbh-pennant-svg {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

.sbh-pennant-shape {
  fill: #ffffff;
  transition: fill 0.3s ease;
}

.sbh-logo-path-theme {
  fill: black;
  transition: fill 0.3s ease;
}

/* ─── Desktop Header: Home page transparent states ─── */
.sbh-header-desktop {
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}

/* 1. Desktop Pennant Badge on Home Page when NOT scrolled */
body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-pennant-shape {
  fill: #1f2b7b;
}

body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-logo-path-theme {
  fill: white;
}

/* 2. Desktop Topbar on Home Page when NOT scrolled */
body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-topbar {
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 3. Desktop Navbar on Home Page when NOT scrolled */
body.home .sbh-header-desktop:not(.sbh-scrolled) .sbh-navbar {
  background: hsl(var(--core_neu_50) / 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sbh-pennant-logo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sbh-pennant-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Mobile bar ──────────────────────────────────────────────────────────────── */

.sbh-mobile-bar {
  height: 54px;
  background: #ffffff;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
  box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.2);
}

/* Mobile Pennant Shape default background (always blue by default) */
.sbh-header-mobile .sbh-pennant-shape {
  fill: #1f2b7b;
}

/* Mobile Logo Paths default fill (always white by default) */
.sbh-header-mobile .sbh-logo-path-theme {
  fill: #ffffff;
}

/* Mobile Bar when scrolled and not open: gets the dark blue background */
.sbh-header-mobile.sbh-scrolled:not(.sbh-open) .sbh-mobile-bar {
  background: hsl(var(--background_sec_card));
  /* matches background_sec_card */
}

/* Mobile Pennant Shape when scrolled and not open: gets white background */
.sbh-header-mobile.sbh-scrolled:not(.sbh-open) .sbh-pennant-shape {
  fill: #ffffff;
}

/* Mobile Logo Paths when scrolled and not open: gets black fill */
.sbh-header-mobile.sbh-scrolled:not(.sbh-open) .sbh-logo-path-theme {
  fill: #000000;
}

.sbh-cta-gap {
  border-top: 1px solid hsl(var(--border_sec_disable));
  gap: 24px;
}

.sbh-hamburger-btn {
  width: 60px;
  height: 54px;
}

.sbh-line-s {
  width: 12px;
}

.sbh-line-l {
  width: 22px;
}

/* ── Mobile overlay ──────────────────────────────────────────────────────────── */

.sbh-menu-overlay {
  font-family: "Montserrat", sans-serif;
  height: calc(100dvh - 54px);
  z-index: -1;
}

.sbh-left-panel {
  width: 185px;
}

.sbh-left-panel-inner {
  gap: 24px;
}

.sbh-download-row {
  height: 40px;
}

.sbh-download-icon {
  width: 36px;
  height: 36px;
}

.sbh-social-icon-sm {
  width: 24px;
  height: 28px;
}

/* ── Bottom pennant (left panel footer) ──────────────────────────────────────── */

.sbh-bottom-pennant {
  margin-top: auto;
  padding: 0 12px 16px;
}

.sbh-bottom-pennant-badge {
  position: relative;
  width: 54px;
  height: 66px;
  margin-top: -20px;
}

/* ── Right panel ─────────────────────────────────────────────────────────────── */

.sbh-right-bg {
  background:
    url("/static-assets/images/misc/sbstatic-assetsimagesmischeader-m-right-pattern.png"),
    var(--gradient_sec_vert_5_gradient);
}

.sbh-nav-inner {
  gap: 24px;
}

.sbh-chevron-left {
  font-size: 12px;
  line-height: 1;
  transform: rotate(-90deg);
}

.sbh-hospitality-btn {
  padding: 0 25px;
}

.sbh-cta-btn {
  border: 0.5px solid hsl(var(--text_invert_high));
  padding: 10px 20px;
}

/* ── Desktop ─────────────────────────────────────────────────────────────────── */

.sbh-desktop-offset {
  padding-left: 100px;
}

.sbh-topbar,
.sbh-navbar {
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

.sbh-sponsor-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.sbh-sponsor-img--rounded {
  width: 28px;
  border-radius: 50%;
}

.sbh-more-panel {
  width: 165px;
}

.sbh-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.sbh-social-icon-desktop {
  width: 22px;
  height: 22px;
}

.sbh-desktop-nav-item.sbh-active {
  background-color: hsl(var(--background_prim_card));
}

.sbh-mobile-nav-item.sbh-active {
  color: hsl(var(--background_prim_card));
}
