/**
 * ================================================================
 * SPORTSBOOK PREMIUM OVERRIDE — Bet365/BetConstruct-class density pass
 * ================================================================
 * CSS-ONLY override layer. No HTML/JS/PHP touched (see IMPORTANT note
 * below re: virtual-scroll row-height constant, which was left alone).
 * Loaded AFTER sportsbook-enterprise.css + sportsbook-continuous-feed.css
 * so these rules win on source order / specificity.
 *
 * Scope: every rule below is scoped under the sportsbook root
 * (.bc-sb-app). No global body/button/input/a rules.
 *
 * REAL DOM AUDIT (Playwright, 1440px + 328px live) found the actual
 * bottlenecks fixed here:
 *  - .bc-sb-sports-bar: 96px tall, 56px circular icon buttons stacked
 *    vertically ("giant pill" nav) -> now 48px compact horizontal tabs.
 *  - .bc-sb-event: real measured height 168px on desktop. Its child
 *    .bc-sb-event__body had NO CSS layout rule at all (plain block
 *    <div>), so .bc-sb-event__teams and .bc-sb-event__odds simply
 *    stacked full-width instead of forming a "time | teams | odds"
 *    row -> rebuilt as a 2-row CSS grid (header row, then time+body
 *    row) using only the existing classes.
 *  - .bc-sb-odd: measured 68x46px -> resized to 56-60 x 34-36px.
 *  - Sidebar country/league rows: 42px/34px -> 36px/32px.
 *
 * IMPORTANT / FLAGGED PER THE "STOP AND REPORT" RULE:
 * renderer.js virtual-scrolls the match list using a FIXED JS pixel
 * constant (`virtualScroll.itemHeight = 145`) to compute each row's
 * `translateY` offset — it does not measure the real rendered height.
 * That constant was already mismatched with the real (168px) row
 * before this change. This CSS pass intentionally keeps every
 * .bc-sb-event under ~145px (~72-90px typical) so rows now fit INSIDE
 * the existing JS budget (fixing the pre-existing overlap risk as a
 * side effect) instead of exactly hitting the 60-70px spec target,
 * which would require also changing that JS constant. Per the
 * "no JavaScript behavior changes" rule, that constant was left
 * untouched — see final summary for the 1-line follow-up if full
 * density is wanted later.
 * ================================================================ */

/* ----------------------------------------------------------------
   1) Requested CSS variable names (aliases onto the existing tokens)
   Scoped to the root so no global custom properties are introduced.
   ---------------------------------------------------------------- */
.bc-sb-app {
    --sb-panel: var(--sb-surface);
    --sb-panel-2: var(--sb-surface-2);
    --sb-border-soft: var(--sb-border);
}

/* ----------------------------------------------------------------
   2) Country accordion — stronger active/expanded hierarchy (spec #6)
   Adds the accent left border on top of the existing subtle bg change.
   ---------------------------------------------------------------- */
.bc-sb-app .bc-sb-country--expanded .bc-sb-country__header,
.bc-sb-app .bc-sb-country--active .bc-sb-country__header {
    box-shadow: inset 3px 0 0 var(--sb-accent);
}

/* ----------------------------------------------------------------
   3) Odds cells — accent-tinted hover for available odds (spec #13)
   Available odds currently hover to a neutral surface; make the
   hover read as "interactive/bettable" via a subtle accent tint.
   Selected/suspended/locked states are untouched.
   ---------------------------------------------------------------- */
.bc-sb-app .bc-sb-odd:not(.bc-sb-odd--selected):not(.bc-sb-odd--suspended):hover {
    background: var(--sb-accent-soft);
    border-color: var(--sb-primary-border);
}

.bc-sb-app .bc-sb-odd:not(.bc-sb-odd--selected):not(.bc-sb-odd--suspended):hover .bc-sb-odd__value {
    color: var(--sb-primary-hover);
}

/* ----------------------------------------------------------------
   4) No layout shift — reserve stable width for odds values so a
   price move (e.g. 1.80 -> 1.85) never nudges neighboring cells
   (spec #25/#26). Grid columns are already fixed (60px); this just
   guarantees the number itself never grows past its box.
   ---------------------------------------------------------------- */
.bc-sb-app .bc-sb-odd__value {
    display: inline-block;
    min-width: 3ch;
    text-align: center;
}

/* ----------------------------------------------------------------
   5) Sidebar navigation density — desktop + mobile (spec #6-#10, #27/#28)
   Base file: country header 42px, league row 34px. Tighten toward the
   requested 32-36 / 28-32 bands. These sidebar lists are NOT part of
   the fixture virtual-scroll (that only applies to the match list),
   so their height is safe to change freely without any JS constant.
   ---------------------------------------------------------------- */
.bc-sb-app .bc-sb-country__header {
    height: 36px !important;
    min-height: 36px !important;
}

.bc-sb-app .bc-sb-league {
    height: 32px !important;
    min-height: 32px !important;
}

@media (max-width: 767px) {
    .bc-sb-app .bc-sb-country__header {
        height: 36px !important;
        min-height: 36px !important;
    }

    .bc-sb-app .bc-sb-league {
        height: 32px !important;
        min-height: 32px !important;
    }
}

/* ----------------------------------------------------------------
   6) SPORTS TOP BAR — replace giant 56px circular icon buttons /
   96px-tall bar with a compact 48px horizontal tab strip (spec #4).
   Real measured before: .bc-sb-sports-bar height = 96px, vertical
   icon-over-label buttons with 56px circles ("giant pill" pattern).
   ---------------------------------------------------------------- */
.bc-sb-app .bc-sb-sports-bar {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 var(--sb-space-3);
    gap: 2px;
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-app .bc-sb-sport {
    flex-direction: row !important;
    gap: 6px;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 var(--sb-space-3);
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.bc-sb-app .bc-sb-sport:hover {
    transform: none;
    background: var(--sb-hover);
}

.bc-sb-app .bc-sb-sport__circle {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    background: transparent;
    border: none;
    box-shadow: none;
}

.bc-sb-app .bc-sb-sport--active .bc-sb-sport__circle,
.bc-sb-app .bc-sb-sport.active .bc-sb-sport__circle {
    background: transparent;
    border: none;
    box-shadow: none;
}

.bc-sb-app .bc-sb-sport__icon {
    font-size: 15px !important;
    width: auto !important;
    height: auto !important;
}

.bc-sb-app .bc-sb-sport__name {
    font-size: 13px;
    max-width: none;
}

.bc-sb-app .bc-sb-sport--active,
.bc-sb-app .bc-sb-sport.active {
    border-bottom-color: var(--sb-primary);
}

/* ----------------------------------------------------------------
   7) MATCH ROW — fine-tune the new compact card structure.
   HTML: .bc-sb-event__strip / .bc-sb-event__match (time-col|teams|odds)
   ---------------------------------------------------------------- */

/* Tighter hover accent on available odds */
.bc-sb-app .bc-sb-odd:not(.bc-sb-odd--selected):not(.bc-sb-odd--suspended):hover {
    background: var(--sb-accent-soft);
    border-color: rgba(255,179,0,.3);
}

.bc-sb-app .bc-sb-odd:not(.bc-sb-odd--selected):not(.bc-sb-odd--suspended):hover .bc-sb-odd__value {
    color: var(--sb-primary-hover, var(--sb-primary));
}

/* Desktop: slightly wider odds cells */
@media (min-width: 768px) {
    .bc-sb-app .bc-sb-event__match {
        grid-template-columns: 76px minmax(0, 1fr) auto;
    }

    .bc-sb-app .bc-sb-odd {
        width: 56px;
    }
}

/* Mobile: tighter odds cells */
@media (max-width: 767px) {
    .bc-sb-app .bc-sb-event__match {
        grid-template-columns: 60px minmax(0, 1fr) auto;
    }

    .bc-sb-app .bc-sb-event__time-col {
        padding: 5px 6px;
    }

    .bc-sb-app .bc-sb-event__time {
        font-size: 12px;
    }

    .bc-sb-app .bc-sb-event__team-name {
        font-size: 13px;
    }

    .bc-sb-app .bc-sb-event__teams {
        padding: 5px 8px;
    }

    .bc-sb-app .bc-sb-event__odds {
        gap: 3px;
        padding: 5px 8px 5px 4px;
    }

    .bc-sb-app .bc-sb-odd {
        width: 46px;
        min-height: 34px;
    }

    .bc-sb-app .bc-sb-odd__value {
        font-size: 12px;
    }
}

/* ----------------------------------------------------------------
   8) Respect prefers-reduced-motion for the new hover/accent rules
   above (base file already does this for its own animations).
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .bc-sb-app .bc-sb-odd,
    .bc-sb-app .bc-sb-sport {
        transition: none;
    }
}

/* ================================================================
   PREMATCH MATCH CENTER — premium UI rebuild
   New class prefix bc-sb-mp-* to avoid colliding with existing rules.
   The bc-sb-odd class is kept on every odds button so the existing
   selection sync / attachOddsListeners code works unchanged.
   ================================================================ */

/* ---------- page root ------------------------------------------ */
#bcSbPrematchMatchPage {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--sb-bg);
    color: var(--sb-text);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

/* ---------- back bar ------------------------------------------- */
.bc-sb-mp-backbar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
    position: sticky;
    top: 0;
    z-index: 20;
    flex-shrink: 0;
}

.bc-sb-mp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px 0 6px;
    background: transparent;
    border: 1px solid var(--sb-border);
    border-radius: 5px;
    color: var(--sb-text-2);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: color var(--sb-transition-fast), background var(--sb-transition-fast);
}

.bc-sb-mp-back:hover {
    background: var(--sb-surface-2);
    color: var(--sb-text);
}

.bc-sb-mp-breadleague {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- match hero ----------------------------------------- */
.bc-sb-mp-hero {
    background: #0D1319;
    border-bottom: 1px solid var(--sb-border);
    padding: 20px 16px 16px;
    text-align: center;
}

.bc-sb-mp-hero__league {
    font-size: 13px;
    font-weight: 700;
    color: var(--sb-text-3);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 2px;
}

.bc-sb-mp-hero__date {
    font-size: 12px;
    color: var(--sb-text-3);
    margin-bottom: 16px;
}

.bc-sb-mp-hero__teams {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: 8px;
}

.bc-sb-mp-hero__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bc-sb-mp-hero__badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--sb-primary);
    flex-shrink: 0;
    user-select: none;
}

.bc-sb-mp-hero__teamname {
    font-size: 15px;
    font-weight: 700;
    color: var(--sb-text);
    text-align: center;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 140px;
}

.bc-sb-mp-hero__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bc-sb-mp-hero__time {
    font-size: 22px;
    font-weight: 800;
    color: var(--sb-text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* status badges */
.bc-sb-mp-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bc-sb-mp-status--prematch {
    background: var(--sb-primary-soft);
    border: 1px solid var(--sb-primary-border);
    color: var(--sb-primary);
}

.bc-sb-mp-status--live {
    background: var(--sb-live-soft);
    border: 1px solid rgba(255,65,51,.4);
    color: var(--sb-live);
}

.bc-sb-mp-livedot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: bc-sb-mp-live-pulse 1.4s ease-in-out infinite;
}

@keyframes bc-sb-mp-live-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ---------- category tab bar ----------------------------------- */
.bc-sb-mp-tabs {
    display: flex;
    gap: 0;
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 44px;
    z-index: 19;
    flex-shrink: 0;
}

.bc-sb-mp-tabs::-webkit-scrollbar { display: none; }

.bc-sb-mp-tab {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--sb-text-3);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: color 120ms ease, border-color 120ms ease;
}

.bc-sb-mp-tab:hover { color: var(--sb-text-2); }

.bc-sb-mp-tab--active {
    color: var(--sb-primary);
    border-bottom-color: var(--sb-primary);
}

/* ---------- market list --------------------------------------- */
.bc-sb-match-markets {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 32px;
}

/* ---------- market card --------------------------------------- */
.bc-sb-mp-market {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    overflow: hidden;
}

.bc-sb-mp-market__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 0 12px;
    background: var(--sb-surface-2);
    border-bottom: 1px solid var(--sb-border);
    gap: 8px;
}

.bc-sb-mp-market__name {
    font-size: 12px;
    font-weight: 700;
    color: var(--sb-text);
    text-transform: uppercase;
    letter-spacing: .04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.bc-sb-mp-market__fav {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    color: var(--sb-text-3);
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: color 120ms ease, background 120ms ease;
}

.bc-sb-mp-market__fav:hover {
    color: var(--sb-primary);
    background: var(--sb-primary-soft);
}

/* odds grid inside market card */
.bc-sb-mp-market__odds {
    display: grid;
    gap: 6px;
    padding: 10px;
}

.bc-sb-mp-market__odds--cols1 { grid-template-columns: 1fr; }
.bc-sb-mp-market__odds--cols2 { grid-template-columns: repeat(2, 1fr); }
.bc-sb-mp-market__odds--cols3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- odds button --------------------------------------- */
/* Keeps bc-sb-odd class on every button for selection sync compat */
.bc-sb-mp-market__odds .bc-sb-mp-odd.bc-sb-odd {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    height: 56px !important;
    min-height: 56px !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    padding: 6px 8px;
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border) !important;
    border-radius: 8px;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
    flex: 1;
}

.bc-sb-mp-market__odds .bc-sb-mp-odd.bc-sb-odd:not(:disabled):hover {
    background: var(--sb-surface-3);
    border-color: var(--sb-border-strong) !important;
}

.bc-sb-mp-market__odds .bc-sb-mp-odd.bc-sb-odd.bc-sb-odd--selected {
    background: var(--sb-primary-soft) !important;
    border-color: var(--sb-primary) !important;
}

.bc-sb-mp-market__odds .bc-sb-mp-odd.bc-sb-odd:disabled,
.bc-sb-mp-market__odds .bc-sb-mp-odd.bc-sb-odd.bc-sb-odd--locked,
.bc-sb-mp-market__odds .bc-sb-mp-odd.bc-sb-odd.bc-sb-odd--suspended {
    opacity: .42;
    cursor: not-allowed;
}

.bc-sb-mp-odd__label {
    font-size: 11px;
    font-weight: 500;
    color: var(--sb-text-2);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.2;
}

.bc-sb-mp-odd__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--sb-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
}

/* selected state: invert label + value colour */
.bc-sb-mp-market__odds .bc-sb-mp-odd.bc-sb-odd.bc-sb-odd--selected .bc-sb-mp-odd__value,
.bc-sb-mp-market__odds .bc-sb-mp-odd.bc-sb-odd.bc-sb-odd--selected .bc-sb-mp-odd__label {
    color: var(--sb-on-primary);
}

/* ---------- no-markets / error / skeleton ---------------------- */
.bc-sb-no-markets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 16px;
    color: var(--sb-text-3);
    font-size: 13px;
    text-align: center;
}

.bc-sb-no-markets__icon { font-size: 28px; }
.bc-sb-no-markets__text { font-weight: 600; color: var(--sb-text-2); }
.bc-sb-no-markets__subtext { font-size: 12px; }

.bc-sb-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 16px;
    font-size: 13px;
    text-align: center;
    color: var(--sb-text-3);
}

.bc-sb-error__retry {
    padding: 6px 16px;
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    color: var(--sb-text);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.bc-sb-error__retry:hover { background: var(--sb-surface-3); }

/* loading skeleton */
.bc-sb-market-skeleton {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    padding: 12px;
    animation: sb-skeleton-pulse 1.4s ease-in-out infinite;
}

.bc-sb-skeleton__bar {
    height: 12px;
    background: var(--sb-surface-2);
    border-radius: 3px;
    margin-bottom: 10px;
}

.bc-sb-skeleton__bar--title { width: 45%; }

.bc-sb-skeleton__odds { display: flex; gap: 6px; }

.bc-sb-skeleton__odd {
    flex: 1;
    height: 52px;
    background: var(--sb-surface-2);
    border-radius: 8px;
}

@keyframes sb-skeleton-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ---------- desktop hero polish -------------------------------- */
@media (min-width: 1024px) {
    .bc-sb-mp-hero {
        padding: 24px 24px 20px;
    }

    .bc-sb-mp-hero__badge {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

    .bc-sb-mp-hero__teamname {
        font-size: 18px;
        max-width: 180px;
    }

    .bc-sb-mp-hero__time { font-size: 26px; }
    .bc-sb-mp-hero__teams { grid-template-columns: 1fr 96px 1fr; }
    .bc-sb-match-markets { padding: 14px 16px 32px; }
    .bc-sb-mp-market__odds { gap: 8px; padding: 12px; }
}

/* ---------- mobile --------------------------------------------- */
@media (max-width: 767px) {
    .bc-sb-mp-hero {
        padding: 16px 12px 14px;
    }

    .bc-sb-mp-hero__badge { width: 48px; height: 48px; font-size: 20px; }
    .bc-sb-mp-hero__teamname { font-size: 13px; max-width: 110px; }
    .bc-sb-mp-hero__time { font-size: 18px; }
    .bc-sb-mp-hero__teams { grid-template-columns: 1fr 70px 1fr; gap: 4px; }
    .bc-sb-mp-tab { height: 36px; padding: 0 11px; font-size: 11px; }
    .bc-sb-match-markets { padding: 8px 8px 80px; gap: 5px; }
    .bc-sb-mp-market__odds { gap: 5px; padding: 8px; }
    .bc-sb-mp-market__odds .bc-sb-mp-odd.bc-sb-odd { height: 52px !important; min-height: 52px !important; }
}

/* ---------- reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .bc-sb-mp-tab,
    .bc-sb-mp-odd,
    .bc-sb-market-skeleton,
    .bc-sb-mp-livedot { transition: none; animation: none; }
}

/* ================================================================
   MATCH DETAILS — desktop header card (max-width centred)
   ================================================================ */
#bcSbPrematchMatchPage {
    width: 100%;
}

@media (min-width: 1024px) {
    .bc-sb-mp-hero {
        max-width: 860px;
        margin: 16px auto 0;
        border: 1px solid rgba(255,255,255,.06);
        border-radius: 14px;
    }
}

@media (max-width: 767px) {
    .bc-sb-mp-hero {
        border-radius: 0;
        margin: 0;
    }
}


/* --- Root page container ---------------------------------------- */
#bcSbPrematchMatchPage {
    position: relative;
    background: var(--sb-bg);
    color: var(--sb-text);
    overflow-y: auto;
    overflow-x: hidden;
}

/* --- Breadcrumb / back bar -------------------------------------- */
.bc-sb-match-back {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: var(--sb-surface);
    border: none;
    border-bottom: 1px solid var(--sb-border);
    color: var(--sb-text-2);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    cursor: pointer;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

.bc-sb-match-back:hover {
    color: var(--sb-text);
    background: var(--sb-surface-2);
}

/* --- Match identity hero (compact, not giant) ------------------- */
.bc-sb-match-header {
    padding: 10px 12px 0;
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-match-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 0 6px;
    min-width: 0;
}

.bc-sb-match-title__team {
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bc-sb-match-title__team:last-child {
    text-align: right;
}

.bc-sb-match-title__vs {
    font-size: 11px;
    font-weight: 700;
    color: var(--sb-text-3);
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
}

/* --- Start time + PREMATCH badge ------------------------------- */
.bc-sb-match-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 0 10px;
}

.bc-sb-match-info__time {
    font-size: 12px;
    font-weight: 600;
    color: var(--sb-text-2);
    font-variant-numeric: tabular-nums;
}

.bc-sb-match-info__status--prematch {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--sb-primary-soft);
    border: 1px solid var(--sb-primary-border);
    color: var(--sb-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* --- Market tab navigation ------------------------------------- */
.bc-sb-match-nav {
    display: flex;
    gap: 0;
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 38px;
    z-index: 9;
}

.bc-sb-match-nav::-webkit-scrollbar { display: none; }

.bc-sb-match-nav__item {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--sb-text-3);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: color 120ms ease, border-color 120ms ease;
}

.bc-sb-match-nav__item:hover {
    color: var(--sb-text);
}

.bc-sb-match-nav__item--active {
    color: var(--sb-text);
    border-bottom-color: var(--sb-primary);
}

/* --- Market search --------------------------------------------- */
.bc-sb-match-search {
    padding: 8px 12px;
    background: var(--sb-bg);
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-match-search__input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    color: var(--sb-text);
    font: inherit;
    font-size: 12px;
    outline: none;
    transition: border-color 120ms ease;
}

.bc-sb-match-search__input::placeholder {
    color: var(--sb-text-3);
}

.bc-sb-match-search__input:focus {
    border-color: var(--sb-primary-border);
}

/* --- Market group list ----------------------------------------- */
.bc-sb-match-markets {
    display: grid;
    gap: 4px;
    padding: 8px 12px 24px;
}

/* --- Single market card --------------------------------------- */
.bc-sb-market {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    overflow: hidden;
}

.bc-sb-market__header {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    background: var(--sb-surface-2);
    border-bottom: 1px solid var(--sb-border);
    cursor: pointer;
    user-select: none;
}

.bc-sb-market__name {
    flex: 1;
    font-size: 12px;
    font-weight: 700;
    color: var(--sb-text);
    text-transform: uppercase;
    letter-spacing: .03em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Selections grid ------------------------------------------ */
.bc-sb-market__selections {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
}

/* --- Odds button (prematch match center) ----------------------- */
.bc-sb-market__selections .bc-sb-odd {
    flex: 1 1 0;
    min-width: 56px !important;
    max-width: none !important;
    height: 52px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
    padding: 4px 6px;
    flex: 0 0 auto !important;
    width: auto !important;
}

.bc-sb-market__selections .bc-sb-odd:hover:not(:disabled):not(.bc-sb-odd--available) {
    background: var(--sb-accent-soft);
    border-color: var(--sb-primary-border);
}

.bc-sb-market__selections .bc-sb-odd.bc-sb-odd--selected {
    background: var(--sb-primary-soft);
    border-color: var(--sb-primary);
}

.bc-sb-market__selections .bc-sb-odd:disabled,
.bc-sb-market__selections .bc-sb-odd.bc-sb-odd--locked,
.bc-sb-market__selections .bc-sb-odd.bc-sb-odd--suspended {
    opacity: .5;
    cursor: not-allowed;
}

/* Selection name (small label above odds value) */
.bc-sb-odd__name {
    font-size: 10px;
    font-weight: 500;
    color: var(--sb-text-3);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.2;
}

/* Value inside match-center odds button */
.bc-sb-market__selections .bc-sb-odd .bc-sb-odd__value,
.bc-sb-market__selections .bc-sb-odd__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-primary);
    font-variant-numeric: tabular-nums;
    display: inline-block !important;
    min-width: 3ch;
    text-align: center;
}

.bc-sb-market__selections .bc-sb-odd.bc-sb-odd--selected .bc-sb-odd__value {
    color: var(--sb-on-primary, #14100A);
}

.bc-sb-market__selections .bc-sb-odd.bc-sb-odd--selected .bc-sb-odd__name {
    color: var(--sb-on-primary, #14100A);
}

/* --- No-markets / error / skeleton states --------------------- */
.bc-sb-no-markets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 16px;
    color: var(--sb-text-3);
    font-size: 13px;
    text-align: center;
}

.bc-sb-no-markets__icon { font-size: 28px; }

.bc-sb-no-markets__text {
    font-weight: 600;
    color: var(--sb-text-2);
}

.bc-sb-no-markets__subtext {
    font-size: 12px;
}

.bc-sb-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 16px;
    font-size: 13px;
    text-align: center;
    color: var(--sb-text-3);
}

.bc-sb-error__retry {
    padding: 6px 16px;
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    color: var(--sb-text);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.bc-sb-error__retry:hover { background: var(--sb-surface-3); }

/* --- Loading skeleton ----------------------------------------- */
.bc-sb-market-skeleton {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    padding: 10px;
    animation: sb-skeleton-pulse 1.4s ease-in-out infinite;
}

.bc-sb-skeleton__bar {
    height: 12px;
    background: var(--sb-surface-2);
    border-radius: 3px;
    margin-bottom: 10px;
}

.bc-sb-skeleton__bar--title { width: 40%; }

.bc-sb-skeleton__odds {
    display: flex;
    gap: 6px;
}

.bc-sb-skeleton__odd {
    flex: 1;
    height: 44px;
    background: var(--sb-surface-2);
    border-radius: var(--sb-radius-sm);
}

@keyframes sb-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* --- Mobile match header -------------------------------------- */
@media (max-width: 767px) {
    .bc-sb-match-title {
        grid-template-columns: 1fr auto 1fr;
        gap: 6px;
    }

    .bc-sb-match-title__team {
        font-size: 13px;
    }
}

/* --- Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .bc-sb-match-nav__item,
    .bc-sb-market__selections .bc-sb-odd,
    .bc-sb-market-skeleton {
        transition: none;
        animation: none;
    }
}

/* ================================================================
   MATCH DETAILS PAGE — full-width layout fix (Aug 2026)
   #bcSbPrematchMatchPage now mounts as a direct child of #bcSbContent
   (the existing flexible center column), so it naturally fills the
   space between the sidebar and betslip instead of being nested
   inside the narrower fixture-list container. Rules below only add
   the missing "league / date" context row and a premium max-width
   header treatment on desktop — no other component touched.
   ================================================================ */
#bcSbPrematchMatchPage {
    width: 100%;
}

.bc-sb-match-context {
    padding: 10px 0 0;
    text-align: center;
}

.bc-sb-match-context__league {
    color: var(--sb-text-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bc-sb-match-context__date {
    margin-top: 2px;
    color: var(--sb-text-2);
    font-size: 12px;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .bc-sb-match-header {
        max-width: 1200px;
        margin: 16px auto 0;
        padding: 24px 32px;
        background: #0f141a;
        border: 1px solid rgba(255, 255, 255, .06);
        border-radius: 14px;
    }

    .bc-sb-match-title__team {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .bc-sb-match-header {
        width: 100%;
        padding: 0 0 4px;
        border-radius: 0;
    }
}


/* ================================================================
   UPCOMING / DISCOVERY NAV ITEMS
   The blade already renders "Popular Matches", "Multiple Of The Day",
   "Upcoming Matches", "Popular Competitions", "Boosted Odds" as
   buttons in .bc-sb-sidebar nav. Style them as compact premium rows
   matching the sportsbook sidebar density.
   ================================================================ */
.bc-sb-app .bc-sb-sidebar nav button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 34px;
    padding: 0 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--sb-border);
    color: var(--sb-text-2);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 100ms ease, color 100ms ease;
    border-left: 2px solid transparent;
}

.bc-sb-app .bc-sb-sidebar nav button:hover {
    background: var(--sb-hover);
    color: var(--sb-text);
}

.bc-sb-app .bc-sb-sidebar nav button.is-active,
.bc-sb-app .bc-sb-sidebar nav button[aria-current="page"] {
    background: var(--sb-primary-soft);
    color: var(--sb-text);
    border-left-color: var(--sb-primary);
}

/* Arrow chevron inside nav buttons */
.bc-sb-app .bc-sb-sidebar nav button img:last-child {
    margin-left: auto;
    opacity: .4;
}

/* --- "ALL CHAMPIONSHIPS" header label -------------------------- */
.bc-sb-app .bc-sb-sidebar > div[id="bcPopularCompetitions"] {
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sb-primary);
    border-top: 1px solid var(--sb-border);
}
