/**
 * Premium LIVE Sportsbook — BetConstruct-style dark UI
 * Replaces sportsbook-live-enhanced.css for the LIVE section only.
 * All PREMATCH styles are untouched.
 */

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS (inline fallbacks mirror enterprise.css :root)
   ═══════════════════════════════════════════════════════════════ */
:root {
    --lv-bg:          var(--sb-bg,          #0A0D12);
    --lv-surface:     var(--sb-surface,     #0F131A);
    --lv-surface-2:   var(--sb-surface-2,   #141922);
    --lv-surface-3:   var(--sb-surface-3,   #1A2029);
    --lv-hover:       var(--sb-hover,       #1E2530);
    --lv-border:      var(--sb-border,      rgba(255,255,255,.07));
    --lv-border-2:    var(--sb-border-strong,rgba(255,255,255,.14));
    --lv-text:        var(--sb-text,        #F5F7FA);
    --lv-text-2:      var(--sb-text-2,      #AEB7C2);
    --lv-text-3:      var(--sb-text-3,      #7E8895);
    --lv-red:         var(--sb-live,        #FF4133);
    --lv-red-soft:    var(--sb-live-soft,   rgba(255,65,51,.14));
    --lv-yellow:      var(--sb-primary,     #FFB300);
    --lv-yellow-h:    var(--sb-primary-hover,#FFC640);
    --lv-yellow-on:   var(--sb-on-primary,  #14100A);
    --lv-yellow-soft: var(--sb-primary-soft,rgba(255,179,0,.12));
    --lv-odd-bg:      var(--sb-odd-bg,      #141922);
    --lv-success:     var(--sb-success,     #1FA35A);
}

/* ═══════════════════════════════════════════════════════════════
   LIVE CONTAINER — injected into #bcSbContent by showLiveView()
   ═══════════════════════════════════════════════════════════════ */
.bc-live {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: var(--lv-bg);
    /* full-width in the center panel */
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   LIVE HEADER — sticky, pulsing dot + title + counter
   ═══════════════════════════════════════════════════════════════ */
.bc-live__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 14px;
    background: var(--lv-surface);
    border-bottom: 1px solid var(--lv-border);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.bc-live__header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lv-text);
}

/* pulsing live dot — used in header AND empty state */
.bc-live__dot {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--lv-red);
    border-radius: 50%;
    flex-shrink: 0;
    animation: lv-pulse 1.8s ease-in-out infinite;
}

@keyframes lv-pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,65,51,.6); }
    50%      { opacity: .7; box-shadow: 0 0 0 5px rgba(255,65,51,0); }
}

.bc-live__header-count {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.bc-live__header-count-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--lv-text);
    font-variant-numeric: tabular-nums;
}

.bc-live__header-count-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--lv-text-3);
}

/* ═══════════════════════════════════════════════════════════════
   SPORT FILTER — sticky pill bar, horizontal scroll
   ═══════════════════════════════════════════════════════════════ */
.bc-live__sport-filter {
    background: var(--lv-bg);
    border-bottom: 1px solid var(--lv-border);
    position: sticky;
    top: 46px;
    z-index: 9;
    flex-shrink: 0;
}

.bc-live__sport-filter-track {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.bc-live__sport-filter-track::-webkit-scrollbar { display: none; }

.bc-live__sport-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    min-width: 44px;
    background: var(--lv-surface-2);
    border: 1px solid var(--lv-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lv-text-2);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .12s, border-color .12s, color .12s;
    font-family: inherit;
    justify-content: center;
}

.bc-live__sport-pill:hover {
    background: var(--lv-surface-3);
    border-color: var(--lv-border-2);
    color: var(--lv-text);
}

.bc-live__sport-pill--active {
    background: var(--lv-yellow-soft);
    border-color: var(--lv-yellow);
    color: var(--lv-yellow);
    box-shadow: 0 0 0 2px rgba(255,179,0,.15), 0 1px 6px rgba(255,179,0,.08);
}
.bc-live__sport-pill--active:hover {
    background: rgba(255,179,0,.2);
}

.bc-live__sport-pill-icon { line-height: 1; }
.bc-live__sport-pill-count {
    font-size: 11px;
    font-weight: 700;
    opacity: .8;
}

/* on very small screens, hide the pill name and show icon+count only */
@media (max-width: 359px) {
    .bc-live__sport-pill-name { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MATCHES AREA
   ═══════════════════════════════════════════════════════════════ */
.bc-live__matches {
    /* flex-grow:0 (was 1): a growing flex-basis:0 item ALWAYS stretches to fill
       every pixel of its flex parent's remaining space regardless of how much
       real content exists - with few live events this left a huge blank area
       below the last card (the box was tall enough for many more cards that
       simply weren't there). basis:auto sizes the box to its REAL content height
       instead; the JS-set `max-height` (LiveModeManager._ensureBetslipClearance())
       still caps it - and overflow-y:auto still makes it scrollable - once real
       content is tall enough to need it. */
    flex: 0 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* CSS-only fallback (before JS has measured real rects on first paint) - the
   authoritative clamp is `LiveModeManager._ensureBetslipClearance()` (inline
   `max-height`, recomputed on every render/resize from REAL measured rects), added
   because a pre-existing ancestor sizing quirk (shared with PREMATCH, out of scope
   to fix here) makes a fixed CSS value alone unreliable across viewports. */
@media (max-width: 767.98px) {
    .bc-live__matches { margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ═══════════════════════════════════════════════════════════════
   COUNTRY LABEL — a tiny section marker, never a large nav-style block.
   Renders once per country, never repeated per league. Icon/label classes are
   named `-icon`/`-label` (not `-flag`/`-name`) deliberately - PREMATCH has
   `.bc-sb-app [class*="flag"]` (forces 40x40px) and `.bc-sb-app [class*="country-
   name"]` (forces 16px font) wildcard !important rules that silently hijacked the
   old `-flag`/`-name` names (confirmed live: country label was rendering at a
   forced 16px instead of the intended 10px, flag emoji forced into a 40x40 box).
   ═══════════════════════════════════════════════════════════════ */
.bc-live__country-group {
    /* no margin — leagues fill the list flush, continuous feed */
}

.bc-live__country-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px 2px;
}

.bc-live__country-icon {
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
}

.bc-live__country-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--lv-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════
   LEAGUE DIVIDER — a plain compact text separator, shown once for a run of
   consecutive matches in the same league. NOT a clickable/collapsible nav row:
   no badge ("N LIVE" pill), no chevron, no background box, no border - just a
   small muted caption so the match cards (not the league grouping) stay the
   primary visual element. Named `-divider`/`-title` (not `-header`/`-name`) to
   avoid the same wildcard collision class as the country label above.
   ═══════════════════════════════════════════════════════════════ */
.bc-live__league-group {
    /* no margin — events fill the list flush */
}

.bc-live__league-divider {
    padding: 5px 12px 2px;
}

.bc-live__league-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lv-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.bc-live__league-events {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   EVENT CARD
   ═══════════════════════════════════════════════════════════════ */
.bc-live__event {
    display: block;
    padding: 7px 10px;
    background: var(--lv-surface);
    border-bottom: 1px solid var(--lv-border);
    cursor: pointer;
    transition: background .1s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.bc-live__event:hover { background: var(--lv-hover); }
.bc-live__event:last-child { border-bottom: none; }

/* Row 1: LIVE pill + league name (left, one line, truncates) + favorite (right).
   Explicit padding/min-height/background/border resets here are REQUIRED - several
   legacy PREMATCH stylesheets (sportsbook-enterprise.css mobile/desktop breakpoints,
   sportsbook-live-enhanced.css) declare bare, unscoped `.bc-sb-event__header{...}` /
   `.bc-sb-event__header-left{...}` rules with real padding/min-height/background/
   border-bottom - those apply per-PROPERTY wherever this 2-class selector doesn't
   redeclare the same property, regardless of specificity. Redeclaring every box-model
   property here (not !important - just properly scoped) closes that leak for good. */
.bc-live__event .bc-sb-event__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 2px;
    padding: 0;
    min-height: 0;
    background: transparent;
    border-bottom: none;
}

.bc-live__event .bc-sb-event__header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.bc-live__event .bc-sb-event__header-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

/* LIVE pill */
.bc-live__event .bc-sb-event__live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--lv-red);
    color: #fff;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.bc-live__event .bc-sb-event__live-dot {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: lv-pulse 1.8s ease-in-out infinite;
    display: block;
    flex-shrink: 0;
}

.bc-live__event .bc-sb-event__live-label { line-height: 1; }

/* Sport icon + name sits right after the LIVE pill in row 1 (reference target:
   "🔴 LIVE  ⚽ Soccer"). Real data only - see _getSportIcon()/getSportDisplayName(). */
.bc-live__event .bc-sb-event__sport-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--lv-text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.bc-live__event .bc-sb-event__sport-icon {
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}

.bc-live__event .bc-sb-event__header-right .bc-sb-event__favorite {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Row 2: league name (left, truncates) + real minute/period (right-aligned, omitted
   entirely when unavailable - see _getStatusLine()). Reference target:
   "League Name                 12'". Named `meta-row` (not `league-row`) deliberately -
   PREMATCH's nav sidebar has a `.bc-sb-app [class*="league-row"]` wildcard !important
   grid rule that would otherwise silently hijack this LIVE card row by substring match. */
.bc-live__event .bc-sb-event__meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 5px;
}

/* Named `geo-icon` (not `league-flag`) deliberately - PREMATCH has `.bc-sb-app
   [class*="flag"]` / `[class*="league-icon"]` wildcard !important rules (sized for real
   flag IMAGES, 40x40px) that would otherwise hijack this plain flag EMOJI by substring
   match, same class of bug as the meta-row rename above. */
.bc-live__event .bc-sb-event__geo-icon {
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
}

/* Named `meta-name` (not `league-name`) deliberately - PREMATCH's `.bc-sb-app
   [class*="league-name"]` wildcard !important rule forces 16px font sized for its own
   nav-sidebar rows, which would blow out this card's compact 11px league text. */
.bc-live__event .bc-sb-event__meta-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--lv-text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Real period/clock ("12'" / "1ST HALF · 12'") - entirely omitted when BetsAPI
   doesn't provide either part, never a placeholder. */
.bc-live__event .bc-sb-event__status-line {
    font-size: 10px;
    font-weight: 700;
    color: var(--lv-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: auto;
    padding-left: 6px;
    flex-shrink: 0;
    line-height: 1.3;
}

/* Row 2/3: two team rows (name + fixed-width right-aligned score), no grid/columns
   needed anymore now that period/clock lives in its own status line above. */
.bc-live__event .bc-sb-event__match {
    display: flex;
    flex-direction: column;
    margin: 0 0 3px;
    padding: 0;
    border-top: none;
    border-bottom: none;
}

.bc-live__event .bc-sb-event__team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 1px 0;
}

.bc-live__event .bc-sb-event__team-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--lv-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.bc-live__event .bc-sb-event__team-score {
    font-size: 15px;
    font-weight: 800;
    color: var(--lv-text);
    min-width: 18px;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* HT / detail */
.bc-live__event .bc-sb-event__detail {
    font-size: 9px;
    color: var(--lv-text-3);
    text-align: center;
    margin-bottom: 4px;
    margin-top: -2px;
    font-weight: 500;
}

/* Stats */
.bc-live__event .bc-sb-event__stats {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bc-live__event .bc-sb-event__stat-item {
    font-size: 10px;
    color: var(--lv-text-3);
}

/* ═══════════════════════════════════════════════════════════════
   ODDS / MARKETS ROW
   ═══════════════════════════════════════════════════════════════ */
.bc-live__event .bc-sb-event__odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    /* override any old margin/padding */
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* 2-way sports (basketball, tennis, baseball, esports, ...) never render a DRAW
   button at all (see _isTwoWaySport()) - only football keeps the 3-way grid above. */
.bc-live__event .bc-sb-event__odds--2way {
    grid-template-columns: repeat(2, 1fr);
}

.bc-live__event .bc-sb-odd {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 3px 4px;
    background: var(--lv-odd-bg);
    border: 1px solid var(--lv-border);
    border-radius: 4px;
    cursor: pointer;
    gap: 1px;
    transition: background .1s, border-color .1s;
    font-family: inherit;
}

.bc-live__event .bc-sb-odd:not(:disabled):hover {
    background: var(--lv-surface-3);
    border-color: var(--lv-yellow);
}

.bc-live__event .bc-sb-odd--selected {
    background: var(--lv-yellow-soft) !important;
    border-color: var(--lv-yellow) !important;
}

.bc-live__event .bc-sb-odd--selected .bc-sb-odd__value {
    color: var(--lv-yellow) !important;
}

.bc-live__event .bc-sb-odd--disabled,
.bc-live__event .bc-sb-odd--locked {
    opacity: .3;
    cursor: not-allowed;
}

/* Odds request hasn't resolved yet - visually distinct from a CONFIRMED suspended/
   unavailable market (--locked, which also gets the real 🔒 glyph via the existing
   ::before rule). --pending never gets that glyph, so a user never sees a false
   "suspended" lock before the odds batch request even had a chance to respond. */
.bc-live__event .bc-sb-odd--pending {
    opacity: .55;
    cursor: default;
}

/* Age-based freshness hint ONLY - a real price is still shown underneath (never
   blanked). Deliberately does not touch opacity/cursor/pointer-events like --locked/
   --pending do, since the button/value stay fully real and clickable while stale. */
.bc-live__event .bc-sb-odd--stale .bc-sb-odd__value {
    color: var(--lv-text-2);
}

/* ═══════════════════════════════════════════════════════════════
   SIMULATED "ambient motion" flash (sportsbook-live-odds-simulator.js) - PURELY
   presentational, the real number/state is never touched. Distinct on purpose from
   the real bc-odds-up/bc-odds-down flash below (tiny arrow glyph + a softer tint,
   vs the real flash's plain colour-only fade) so the two are visually distinguishable
   the same way this module is distinguishable in the DOM via data-ux-simulated.
   Opacity + translateY only, no scale/rotate/glow/shake per the "premium, not
   casino" requirement. Respects prefers-reduced-motion via the JS-side gate AND the
   app-wide `*{animation-duration:.01ms!important}` catch-all (micro-interactions.css). */
.bc-live__event .bc-sb-odd--sim-up,
.bc-live__event .bc-sb-odd--sim-down {
    position: relative;
}

.bc-live__event .bc-sb-odd--sim-up .bc-sb-odd__value,
.bc-live__event .bc-sb-odd--sim-down .bc-sb-odd__value {
    animation: bc-sim-tint var(--bc-sim-duration, 550ms) ease-out;
}
.bc-live__event .bc-sb-odd--sim-up .bc-sb-odd__value { --bc-sim-color: var(--lv-success, #1FA35A); }
.bc-live__event .bc-sb-odd--sim-down .bc-sb-odd__value { --bc-sim-color: var(--lv-red, #FF4133); }

.bc-live__event .bc-sb-odd--sim-up::after,
.bc-live__event .bc-sb-odd--sim-down::after {
    position: absolute;
    top: 1px;
    right: 3px;
    font-size: 7px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    animation: bc-sim-arrow var(--bc-sim-duration, 550ms) ease-out;
}
.bc-live__event .bc-sb-odd--sim-up::after { content: '\25B2'; color: var(--lv-success, #1FA35A); }
.bc-live__event .bc-sb-odd--sim-down::after { content: '\25BC'; color: var(--lv-red, #FF4133); }

@keyframes bc-sim-tint {
    0%, 100% { color: inherit; }
    35% { color: var(--bc-sim-color); }
}

@keyframes bc-sim-arrow {
    0% { opacity: 0; transform: translateY(2px); }
    35% { opacity: .85; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
    .bc-live__event .bc-sb-odd--sim-up .bc-sb-odd__value,
    .bc-live__event .bc-sb-odd--sim-down .bc-sb-odd__value,
    .bc-live__event .bc-sb-odd--sim-up::after,
    .bc-live__event .bc-sb-odd--sim-down::after {
        animation: none !important;
    }
}

.bc-live__event .bc-sb-odd__label {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--lv-text-3);
    text-transform: uppercase;
    line-height: 1;
}

.bc-live__event .bc-sb-odd__value {
    font-size: 12px;
    font-weight: 700;
    color: var(--lv-text);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* Score changed flash */
@keyframes lv-score-flash {
    0%   { color: var(--lv-yellow); }
    100% { color: var(--lv-text); }
}

.bc-live__event .bc-sb-event__team-score.bc-score-changed {
    animation: lv-score-flash 1.5s ease-out forwards;
}

/* Odds movement animations */
@keyframes lv-odds-up   { 0% { color: var(--lv-success); } 100% { color: var(--lv-text); } }
@keyframes lv-odds-down { 0% { color: var(--lv-red);     } 100% { color: var(--lv-text); } }

.bc-live__event .bc-sb-odd__value.bc-odds-up   { animation: lv-odds-up   1.5s ease-out forwards; }
.bc-live__event .bc-sb-odd__value.bc-odds-down { animation: lv-odds-down 1.5s ease-out forwards; }

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADING — non-blocking shimmer cards
   ═══════════════════════════════════════════════════════════════ */
.bc-live__skeleton { padding: 4px 0; }

.bc-live__skeleton-card {
    background: var(--lv-surface);
    border-bottom: 1px solid var(--lv-border);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bc-live__skeleton-row {
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        var(--lv-surface-2) 25%,
        var(--lv-surface-3) 50%,
        var(--lv-surface-2) 75%
    );
    background-size: 200% 100%;
    animation: lv-shimmer 1.4s ease-in-out infinite;
}

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

.bc-live__skeleton-row--header { height: 16px; width: 40%; }
.bc-live__skeleton-row--team   { height: 14px; width: 80%; }
.bc-live__skeleton-row--odds   { height: 44px; width: 100%; border-radius: 5px; }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.bc-live__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 36px 20px 28px;
    text-align: center;
}

/* Inline ● LIVE tag replaces the large circle icon */
.bc-live__empty-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lv-red);
    margin-bottom: 4px;
}

.bc-live__empty-live-tag .bc-live__dot {
    width: 7px;
    height: 7px;
    animation: lv-pulse 3s ease-in-out infinite;
}

/* Legacy icon hidden — new HTML uses .bc-live__empty-live-tag */
.bc-live__empty-icon {
    display: none;
}

.bc-live__empty-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--lv-text);
}

.bc-live__empty-message {
    font-size: 12px;
    color: var(--lv-text-3);
    max-width: 220px;
    line-height: 1.5;
}

.bc-live__empty-cta {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 20px;
    background: var(--lv-yellow-soft);
    border: 1px solid var(--lv-yellow);
    border-radius: 6px;
    color: var(--lv-yellow);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s;
    font-family: inherit;
}

.bc-live__empty-cta:hover { background: rgba(255,179,0,.22); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE — 320/360/375/390/412 wide, ultra-compact cards
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    .bc-live__header { height: 42px; padding: 0 12px; }
    .bc-live__sport-filter { top: 42px; }
    .bc-live__sport-filter-track { padding: 8px 12px 10px; gap: 6px; }

    .bc-live__country-header { padding: 5px 12px 2px; }
    .bc-live__league-divider { padding: 4px 12px 2px; }

    .bc-live__event { padding: 7px 10px; }
    .bc-live__event .bc-sb-event__meta-name { font-size: 10px; }
    .bc-live__event .bc-sb-event__team-name  { font-size: 12px; }
    .bc-live__event .bc-sb-event__team-score { font-size: 15px; min-width: 16px; }
    .bc-live__event .bc-sb-odd { min-height: 32px; }
    .bc-live__event .bc-sb-odd__value { font-size: 11px; }
}

/* Extra-narrow phones (320-359px) - shave a bit more off text/gaps */
@media (max-width: 359px) {
    .bc-live__event { padding: 6px 8px; }
    .bc-live__event .bc-sb-event__team-name { font-size: 11px; }
    .bc-live__event .bc-sb-odd__label { font-size: 7px; }
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP — 1366 × 768: same compact hierarchy, not a scaled-up card
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .bc-live__header { height: 48px; padding: 0 16px; }
    .bc-live__sport-filter { top: 48px; }
    .bc-live__country-header { padding: 6px 16px 2px; }
    .bc-live__league-divider { padding: 5px 16px 2px; }
    .bc-live__event { padding: 8px 16px; }
    .bc-live__event .bc-sb-event__team-name  { font-size: 13px; }
    .bc-live__event .bc-sb-event__team-score { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   FOCUS / ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */
.bc-live__sport-pill:focus-visible,
.bc-live__event:focus-visible,
.bc-live__sport-filter-track .bc-sb-sport:focus-visible {
    outline: 2px solid var(--lv-yellow);
    outline-offset: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   LIVE UX POLISH — micro-interactions driven by real data only
   ═══════════════════════════════════════════════════════════════ */

/* New event entrance — only the arriving card animates, existing cards untouched */
@keyframes lv-card-enter {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bc-sb-event--live.bc-sb-event--entering {
    animation: lv-card-enter 350ms ease-out;
}

/* Event exit — only the departing card fades before DOM removal */
@keyframes lv-card-exit {
    from { opacity: 1; }
    to   { opacity: 0; }
}
.bc-sb-event--live.bc-sb-event--exiting {
    animation: lv-card-exit 260ms ease-out forwards;
    pointer-events: none;
}

/* Odds change: inner-border flash — green for up, red for down */
@keyframes lv-odd-up   { 0% { box-shadow: inset 0 0 0 1px rgba(16,185,113,.75); } 100% { box-shadow: none; } }
@keyframes lv-odd-down { 0% { box-shadow: inset 0 0 0 1px rgba(255,65,51,.75);  } 100% { box-shadow: none; } }
.bc-sb-event--live .bc-sb-odd.bc-odds-up   { animation: lv-odd-up   750ms ease-out; }
.bc-sb-event--live .bc-sb-odd.bc-odds-down { animation: lv-odd-down 750ms ease-out; }

/* Header event-count change: brief scale bump */
@keyframes lv-count-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.bc-live__count--changed {
    animation: lv-count-bump 320ms ease-out;
    display: inline-block;
}

/* Empty state: header dot pulses slowly — communicates monitoring, not active data */
.bc-live--empty .bc-live__header .bc-live__dot {
    animation: lv-pulse 4s ease-in-out infinite;
    opacity: 0.5;
}

/* Subtle sport-switch loading cue - the active tab's circle border pulses while the new
   sport's real data is being fetched; the tab count/name never disappear, no overlay, no
   skeleton. Scoped under the LIVE-only filter track id so it can never affect PREMATCH's
   own (differently-scoped) sport selector, which reuses the same .bc-sb-sport classes. */
#bcLiveSportFilterTrack .bc-sb-sport--loading .bc-sb-sport__circle {
    animation: lv-tab-loading 1s ease-in-out infinite;
}
@keyframes lv-tab-loading {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,208,0,.45); }
    50%      { box-shadow: 0 0 0 3px rgba(255,208,0,.15); }
}

/* Mobile touch feedback */
@media (pointer: coarse) {
    .bc-sb-event--live:active { opacity: 0.88; }
    .bc-sb-event--live .bc-sb-odd:active:not(:disabled) { opacity: 0.75; }
}

/* Reduced motion: disable all LIVE-section micro-interactions */
@media (prefers-reduced-motion: reduce) {
    .bc-live__dot,
    .bc-live__empty-live-tag .bc-live__dot,
    .bc-live__event .bc-sb-event__live-dot,
    .bc-live__skeleton-row,
    #bcLiveSportFilterTrack .bc-sb-sport--loading .bc-sb-sport__circle {
        animation: none !important;
    }
    .bc-sb-event--live.bc-sb-event--entering,
    .bc-sb-event--live.bc-sb-event--exiting,
    .bc-sb-event--live .bc-sb-odd.bc-odds-up,
    .bc-sb-event--live .bc-sb-odd.bc-odds-down,
    .bc-live__count--changed,
    .bc-live--empty .bc-live__header .bc-live__dot {
        animation: none !important;
        transition: none !important;
    }
}
