/* ============================================================
   sb-fixtures-listing — Component.css
   Mobile-first: base styles target mobile,
   desktop overrides are in a single @media (min-width: 768px)
   block at the bottom.
   ============================================================ */

/* ── Container offset ─────────────────────────────────────── */

.sbl-container-wrapper {
  padding-left: var(--container-offset);
  padding-right: var(--container-offset);
  padding-bottom: var(--container-offset);
}

/* ── Wrapper ──────────────────────────────────────────────── */

.sbl-wrapper {
  width: 100%;
  position: relative;
}

/* ── Lift content above ::before background ───────────────── */

.sbl-page-header,
.sbl-date-groups,
.sbl-empty {
  position: relative;
  z-index: 1;
}

/* ── Page header ──────────────────────────────────────────── */

.sbl-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sbl-page-title {
  flex: 1;
  min-width: 0;
  order: 1;
  text-transform: uppercase;
  color: hsl(var(--text_invert_high));
}

/* ── Tabs ─────────────────────────────────────────────────── */

.sbl-tabs {
  order: 3;
  display: flex;
  width: 100%;
  border: 1px solid hsl(var(--border_invert_default));
  border-radius: 0.625rem;
  overflow: hidden;
}

.sbl-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.5rem 1rem;
  background: transparent;
  color: hsl(var(--text_prim_high));
  cursor: pointer;
}

.sbl-tab:first-child {
  border-left: none;
}

.sbl-tab--active {
  background: hsl(var(--background_prim_card));
  color: hsl(var(--text_sec_high));
}

/* ── Filter trigger button ────────────────────────────────── */

.sbl-filter-btn {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  padding: 0.625rem 0.3125rem;
  background-color: #fff5f6;
  color: #212121;
  flex-shrink: 0;
  cursor: pointer;
}

.sbl-filter-btn:hover {
  background: #f9fafb;
}

.sbl-filter-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.sbl-filter-btn-text {
  display: none;
  font: var(--body_sm_bold);
}

.sbl-filter-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #1a1060;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
}

/* ── Add to Calendar ──────────────────────────────────────── */

.sbl-ecal-wrapper {
  margin-bottom: 2.5rem;
}

.sbl-ecal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid hsl(var(--border_main_default));
  border-radius: 0.5rem;
  background: hsl(var(--button_filled_style_3_surface_default));
  color: hsl(var(--button_filled_style_3_text_default));
  font: var(--body_sm_bold);
  cursor: pointer;
}

.sbl-ecal-icon {
  font-size: 17px;
}

/* ── Empty state ──────────────────────────────────────────── */

.sbl-empty {
  padding: 4rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

/* ── Date groups ──────────────────────────────────────────── */

.sbl-date-groups {
  display: block;
}

.sbl-date-groups > div + div {
  margin-top: 2rem;
}

.sbl-day-header {
  top: 3.4375rem;
  z-index: 2;
  display: flex;
  width: fit-content;
  align-items: center;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.375rem 1rem;
  background: linear-gradient(180deg, #2939a3 0%, #151c51 100%);
  text-transform: uppercase;
  color: hsl(var(--text_sec_high));
}

.sbl-day-label {
  font: var(--body_sm_bold);
}

.sbl-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  border: 1px solid #f3f4f6;
  border-radius: 0 0.75rem 0.75rem 0.75rem;
  overflow: hidden;
}

/* .sbl-cards-grid--live {
  border-color: #1F2B7B;
} */
.sbl-card.sbl-card--embedded.sbl-card--live {
  border: 1px solid #1f2b7b;
}

/* ── Filter panel ─────────────────────────────────────────── */

.sbl-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Mobile: full-screen overlay, slides up from bottom */
.sbl-filter-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  width: 100%;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.3s ease,
    visibility 0s 0.3s;
}

.sbl-filter-panel--open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 0.3s ease,
    visibility 0s 0s;
}

/* ── Panel header (dark brand bar) ────────────────────────── */

.sbl-filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: hsl(var(--background_sec_container_2));
  flex-shrink: 0;
}

.sbl-filter-panel-title {
  text-transform: uppercase;
  color: hsl(var(--text_sec_high));
}

.sbl-filter-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: hsl(var(--text_sec_high));
  cursor: pointer;
}

.sbl-filter-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: hsl(var(--text_sec_high));
}

/* ── Filter rows (scrollable body) ────────────────────────── */

.sbl-filter-body {
  flex: 1;
  min-height: 0; /* required: prevents flex child from expanding beyond panel height */
  overflow-y: auto;
}

.sbl-filter-item {
  position: relative;
}

.sbl-filter-item:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #e5e7eb;
}

.sbl-filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 24px;
  cursor: pointer;
}

.sbl-filter-row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.sbl-filter-row-label {
  text-transform: uppercase;
  color: hsl(var(--text_main_low));
}

.sbl-filter-row-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: hsl(var(--text_main_prim));
}

.sbl-filter-row-value--active {
  color: hsl(var(--text_main_prim));
}

.sbl-filter-row-chevron {
  flex-shrink: 0;
  color: hsl(var(--text_main_medium));
  transition: transform 0.2s ease;
}

.sbl-filter-row-chevron--open {
  transform: rotate(180deg);
}

.sbl-filter-dropdown {
  padding-left: 24px;
  padding-right: 24px;
}

.sbl-filter-option {
  position: relative;
  padding: 0.75rem;
  cursor: pointer;
  color: hsl(var(--text_main_high));
}

.sbl-filter-option:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: #f3f4f6;
}

.sbl-filter-option--selected {
  color: hsl(var(--text_main_prim));
}

/* ── Panel footer ──────────────────────────────────────────── */

.sbl-filter-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  justify-content: center;
}

.sbl-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  min-width: 156px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 0.375rem;
  gap: 0.25rem;
  padding: 0.625rem 5px;
  background: hsl(var(--button_filled_style_1_surface_default));
  text-transform: uppercase;
  color: hsl(var(--button_filled_style_1_text_default));
  border: none;
  cursor: pointer;
}

.sbl-reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  min-width: 156px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 0.375rem;
  gap: 0.25rem;
  padding: 0.625rem 5px;
  background: hsl(var(--background_main_surface));
  color: hsl(var(--button_outline_style_1_text_default));
  border: 1px solid hsl(var(--button_outline_style_1_text_default));
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================================
   Desktop overrides — min-width: 768px
   ============================================================ */

@media (min-width: 768px) {
  .sbl-ecal-btn {
    width: fit-content;
    justify-content: flex-start;
  }

  .sbl-ecal-wrapper {
    margin-bottom: 3.75rem;
  }

  .sbl-page-header {
    flex-wrap: nowrap;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .sbl-page-title {
    flex: 1;
  }

  .sbl-tabs {
    order: 2;
    flex: 0 0 20.8125rem; /* 333px */
    width: 20.8125rem;
  }

  .sbl-filter-btn {
    order: 3;
    display: flex;
    width: auto;
    min-width: 107px;
    max-width: unset;
    padding: 0.625rem 1rem;
  }

  .sbl-day-header {
    top: 7.1875rem;
  }

  .sbl-filter-btn-text {
    display: inline;
  }

  .sbl-date-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.125rem;
    row-gap: 2.5rem;
    align-items: start;
  }

  .sbl-date-groups > div + div {
    margin-top: 0;
  }

  .sbl-group--wide {
    grid-column: 1 / -1;
  }

  .sbl-cards-grid {
    grid-template-columns: 1fr;
    gap: 3px;
    background: #eeeeee;
  }

  .sbl-group--wide .sbl-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }

  .sbl-day-label {
    font: var(--h3_bold);
  }

  /* Desktop: right-side drawer, full viewport height, slides from right */
  .sbl-filter-panel {
    width: 360px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  }
}

/* ============================================================
   SbFixtureCard — shared card component styles
   Used by sb-fixtures-listing and sb-fixtures-template.
   ============================================================ */

/* ── Team logo ────────────────────────────────────────────── */

.sbl-team-logo,
.sbl-team-logo-fallback {
  flex-shrink: 0;
  border-radius: 50%;
}

.sbl-team-logo {
  background: #fff;
}

.sbl-team-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0f4;
  color: #5c6578;
  font-weight: 700;
}

.sbl-team-logo--sm {
  width: 44px;
  height: 44px;
  font-size: 7px;
}

.sb-fixtures-template .sbl-team-logo--sm {
  width: 44px;
  height: 44px;
}

.sbl-team-logo--md {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.625rem;
}

/* ── Card shell ───────────────────────────────────────────── */

.sbl-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Strip border/shadow when the card is embedded inside
   a container that already provides its own chrome. */
.sbl-card--embedded {
  border: none;
  box-shadow: none;
  border-radius: 0;
  height: 100%;
}

.sbl-card--live {
  background: hsl(var(--background_sec_container));
}

.sbl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  position: relative;
  min-height: 42px;
}

.sbl-card-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: hsl(var(--border_main_disable));
}

.sbl-card-status {
  color: hsl(var(--text_main_high));
  /* font-size: 0.625rem;
  font-weight: 700; */
  text-transform: uppercase;
  /* letter-spacing: 0.025em; */
}

/* .sbl-status--upcoming { color: #9ca3af; } */
.sbl-status--completed {
  color: hsl(var(--text_main_prim));
}

.sbl-status-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: 6.25rem;
  background: hsl(var(--background_alert_success));
  color: hsl(var(--text_prim_high));
  text-transform: uppercase;
}

/* Pulsing live indicator dot — same ripple pattern used elsewhere (e.g.
   sb-live-stristrip, sb-matchcentre), recolored via currentColor since it
   sits inside an already-green pill. */
.sbl-status-live-svg {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.sbl-status-live-ripple {
  transform-origin: center;
  transform: scale(1);
  fill-opacity: 0.5;
  animation: sbl-status-live-ripple 1s infinite;
}

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

.sbl-card-meta--accent {
  color: hsl(var(--text_sec_disable));
}

.sbl-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.sbl-card-gender-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 15px;
  padding: 0.35rem;
  padding-top: 0.375rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #2939a3 0%, #eb1414 100%);
  color: hsl(var(--text_sec_high));
  font: var(--body_xs_bold);
}

.sbl-card-meta-time {
  color: hsl(var(--text_sec_disable));
}

/* ── Upcoming body — CSS grid ─────────────────────────────── */

.sbl-upcoming-body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "home cd"
    "away cd";
  padding: 1rem 1rem;
  min-height: 95px;
}

.sbl-upcoming-team {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

/* mweb: logo(1) → name(2) → score(3) */
.sbl-upcoming-team .sbl-team-logo,
.sbl-upcoming-team .sbl-team-logo-fallback {
  order: 1;
}

.sbl-upcoming-team .sbl-team-name {
  order: 2;
  max-width: 90px;
}

.sbl-upcoming-team .sbl-score-col {
  order: 3;
  margin-left: auto;
}

.sbl-upcoming-team--home {
  grid-area: home;
  /* border-bottom: 1px solid #f3f4f6; */
  /* padding-bottom: 0.625rem; */
}

.sbl-upcoming-team--away {
  grid-area: away;
  padding-top: 0.3rem;
}

.sbl-upcoming-cd {
  grid-area: cd;
  align-self: center;
  padding-left: 1rem;
}

.sbl-vs-box {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.2rem;
  border-radius: 0.12rem;
  background: hsl(var(--background_main_card));
  color: hsl(var(--text_main_low));
  text-transform: uppercase;
}

/* ── Scores: hidden on mobile, shown on desktop ───────────── */

.sbl-upcoming-team .sbl-team-score {
  display: none;
}

/* ── Completed mobile: 1-col stacked layout with scores ───── */

.sbl-upcoming-body--completed {
  grid-template-columns: 1fr;
  grid-template-areas: "home" "away";
}

.sbl-upcoming-body--completed .sbl-upcoming-cd {
  display: none;
}

.sbl-upcoming-body--completed .sbl-upcoming-team .sbl-team-score {
  display: flex;
  flex-shrink: 0;
  order: 3;
}

/* ── Teams (completed / live) ─────────────────────────────── */

.sbl-card-teams {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.sbl-teams-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
}

.sbl-team-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sbl-team-name {
  display: block;
  flex: 1;
  /* font-size: 0.875rem;
  font-weight: 700; */
  text-transform: uppercase;
  color: hsl(var(--text_main_sec));
  font: var(--body_xs_bold);
}

.sbl-score-col {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  flex-shrink: 0;
}

.sbl-score-col .sbl-team-score {
  order: 0;
}

.sbl-team-balls {
  color: hsl(var(--text_main_low));
  font: var(--body_xs_regular);
}

/* .sbl-live-body--live .sbl-team-balls {
  color: hsl(var(--text_sec_high));
} */

.sbl-cards-grid--live .sbl-team-balls {
  color: hsl(var(--text_sec_high));
}

.sbl-team-score {
  flex-shrink: 0;
  /* font-size: 0.875rem;
  font-weight: 700; */
  font-variant-numeric: tabular-nums;
}

.sbl-yet-br {
  display: none;
}

.sbl-team-score--winner {
  color: hsl(var(--text_main_prim));
}
.sbl-team-score--loser {
  color: hsl(var(--text_main_sec));
}
.sbl-team--live {
  color: hsl(var(--text_sec_high));
}
.sbl-team--live-batting {
  color: hsl(var(--text_main_prim));
}
.sbl-team--live-fielding {
  color: hsl(var(--text_sec_medium));
}

/* ── Right column: countdown / live badge ─────────────────── */

.sbl-card-right {
  flex-shrink: 0;
}

.sbl-live-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #16a34a;
  animation: sbl-pulse 1.5s ease-in-out infinite;
}

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

/* ── Countdown ────────────────────────────────────────────── */

.sbl-countdown {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  text-align: center;
}

.sbl-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.sbl-countdown-num {
  font: var(--body_md_bold);
  color: hsl(var(--text_main_prim));
  font-variant-numeric: tabular-nums;
}

.sbl-countdown-empty {
  font-size: 1.375rem;
  font-weight: 700;
  color: #d1d5db;
}

.sbl-countdown-lbl {
  font: var(--body_xs_regular);
  text-transform: uppercase;
  color: hsl(var(--text_main_medium));
}

.sbl-countdown-sep {
  padding-bottom: 1rem;
  /* font-size: 1.375rem;
  font-weight: 700; */
  color: hsl(var(--text_main_high));
}

/* ── Result / venue ───────────────────────────────────────── */

.sbl-card-result {
  padding: 0.5rem 1rem 0.625rem;
  position: relative;
}

.sbl-card-result::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: hsl(var(--border_main_disable));
}

.sbl-card--live .sbl-card-header::after,
.sbl-card--live .sbl-card-result::before {
  height: 0.1px;
  background: #8591e0;
  opacity: 20%;
}

.sbl-result-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: hsl(var(--text_main_medium));
  margin-top: 0.625rem;
}

.sbl-result-text--live {
  color: hsl(var(--text_sec_medium));
}

.sbl-result-text-body {
  font: var(--body_xs_medium);
}

/* ── Actions bar ──────────────────────────────────────────── */

.sbl-card-actions {
  display: flex;
  gap: 0.5rem;
  /* border-top: 1px solid #f3f4f6; */
  padding: 1rem 1rem;
  margin-top: auto;
}

/* Empty actions bar keeps layout height so all card types stay the same height */
.sbl-card-actions:empty {
  min-height: 4rem;
}

.sbl-btn-icon {
  flex-shrink: 0;
}

.sbl-match-centre {
  font: var(--button_sm);
}

.sbl-btn-matchcentre {
  display: flex;
  flex: 0 0 calc(50% - 0.25rem);
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--button_outline_style_1_text_default));
  padding: 0.5rem 0.75rem;
  /* font-size: 0.5625rem; */
  /* font-weight: 700; */
  text-transform: uppercase;
  /* letter-spacing: 0.025em; */
  color: hsl(var(--text_main_prim));
  text-decoration: none;
  background: #ffffff;
  cursor: pointer;
  /* transition: background 0.2s, color 0.2s; */
}

/* .sbl-btn-matchcentre:hover {
  background: hsl(var(--text_main_prim));
  color: #fff;
} */

.sbl-btn-matchcentre--completed {
  flex: 0 0 50%;
  border: none;
  background: hsl(var(--background_sec_container_2));
  color: #fff5f6;
}

/* .sbl-btn-matchcentre--completed:hover {
  background: hsl(var(--background_sec_container_2));
  color: #FFF5F6;
} */

.sbl-btn-matchcentre--live {
  flex: 0 0 50%;
  border: none;
  background: #e10a15;
  color: #fff5f6;
}

/* .sbl-btn-matchcentre--live:hover {
  background: hsl(var(--button_outline_style_1_border_default));
  color: #FFFFFF;
} */

.sbl-btn-matchcentre--upcoming {
  color: hsl(var(--button_outline_style_1_text_default));
  cursor: default;
}

/* .sbl-btn-matchcentre--disabled:hover {
  background: transparent;
  color: #d1d5db;
} */

.sbl-btn-tickets {
  display: flex;
  flex: 0 0 calc(50% - 0.25rem);
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.375rem;
  background: hsl(var(--button_filled_style_2_surface_default));
  padding: 0.5rem 0.75rem;
  /* font-size: 0.5625rem; */
  /* font-weight: 700; */
  text-transform: uppercase;
  /* letter-spacing: 0.025em; */
  color: hsl(var(--button_filled_style_2_text_default));
  text-decoration: none;
  border: none;
  cursor: pointer;
  /* transition: background 0.2s; */
}

/* .sbl-btn-tickets:hover { background: #151c51; } */

.sbl-ticket {
  font: var(--body_xs_bold);
}

.sbl-btn-tickets--placeholder {
  display: none;
}

/* .sbl-btn-tickets--disabled {
  opacity: 0.5;
  cursor: default;
} */

/* ── Desktop upcoming: 3-column layout ───────────────────── */

@media (min-width: 768px) {
  .sbl-yet-br {
    display: inline;
  }

  .sbl-score-col {
    flex-direction: column;
  }

  .sbl-card-meta {
    gap: 0.6875rem;
  }

  .sbl-card-gender-badge {
    padding: 0.25rem;
    padding-top: 0.375rem;
  }

  .sbl-countdown-num {
    font: var(--h3_bold);
  }
  .sbl-countdown {
    gap: 10px;
  }
  .sbl-result-text-body {
    font: var(--body_sm_medium);
  }
  .sbl-match-centre {
    font: var(--button_md);
  }
  .sbl-ticket {
    font: var(--body_sm_bold);
  }

  .sbl-team-logo--sm {
    width: 60px;
    height: 60px;
  }

  .sbl-team-logo--md {
    width: 3.25rem;
    height: 3.25rem;
  }

  .sbl-upcoming-body {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "home cd away";
    align-items: center;
    gap: 1rem;
  }
  .sbl-team-name {
    font: var(--body_sm_bold);
  }

  /* Reset mobile orders — flex-direction handles visual placement on desktop */
  .sbl-upcoming-team .sbl-team-logo,
  .sbl-upcoming-team .sbl-team-logo-fallback,
  .sbl-upcoming-team .sbl-team-name,
  .sbl-upcoming-team .sbl-score-col {
    order: 0;
  }

  /* home: name(left) → logo → score(right) via row-reverse on HTML [score][logo][name] */
  .sbl-upcoming-team--home {
    flex-direction: row-reverse;
    justify-content: space-between;
    border-bottom: none;
    padding-bottom: 0;
    gap: 0.5rem;
  }

  /* away: score(left) → logo → name(right) via row on HTML [score][logo][name] */
  .sbl-upcoming-team--away {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 0;
    gap: 0.5rem;
  }

  .sbl-upcoming-cd {
    padding-left: 0;
    /* width: 154px; */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Name fills remaining space in the 183px team section after logo (60px) + gap (8px) */
  .sbl-upcoming-team .sbl-team-name {
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .sbl-upcoming-team--home .sbl-team-name {
    text-align: right;
  }
  .sbl-upcoming-team--away .sbl-team-name {
    text-align: left;
  }

  .sbl-upcoming-team--home .sbl-score-col {
    margin-left: 8px;
  }
  .sbl-upcoming-team--away .sbl-score-col {
    margin-left: 0;
    margin-right: 8px;
  }

  .sbl-btn-matchcentre,
  .sbl-btn-tickets {
    flex: none;
    width: 10.546875rem;
    height: 2rem;
    padding: 0.15625rem 0.5rem;
    gap: 0.25rem;
  }

  /* Scores visible on desktop for completed/live only */
  .sbl-upcoming-body--completed .sbl-upcoming-team .sbl-team-score {
    display: flex;
    flex-shrink: 0;
  }

  /* VS box visible on desktop */
  .sbl-vs-box {
    display: inline-flex;
  }

  /* Completed desktop: restore VS/countdown slot and grid */
  .sbl-upcoming-body--completed .sbl-upcoming-cd {
    display: flex;
    margin-left: 8px;
    margin-right: 8px;
  }

  /* Reset score order — row-reverse on home handles visual position */
  .sbl-upcoming-body--completed .sbl-upcoming-team .sbl-team-score {
    order: 0;
  }
}

/* ── Shimmer (shared by listing and template) ─────────────── */

@keyframes sbl-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.sbl-shimmer-bg {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: sbl-shimmer 1.5s infinite linear;
}

.sbl-skeleton-day-header {
  display: flex;
  width: fit-content;
  align-items: center;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(180deg, #2939a3 0%, #151c51 100%);
}

/* ── 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));
}
