/**
 * ================================================================
 * ENTERPRISE SPORTSBOOK UI — BETCONSTRUCT COMMERCIAL GRADE
 * ================================================================
 * Premium dark sportsbook terminal interface
 * Mobile-first + Desktop responsive
 * 3-column desktop: Sports (240px) | Events (flex) | Betslip (320px)
 * Performance: 60 FPS, no layout shifts, GPU-accelerated
 * ================================================================
 */

/* ================================================================
   CSS VARIABLES — ENTERPRISE DESIGN SYSTEM
   Spec compliance: #1-3 (Design Language, CSS Variables, Global Reset)
   ================================================================ */

:root {
    /* Backgrounds — layered neutrals so panels read as one connected surface */
    --sb-bg: #0A0D12;
    --sb-surface: #0F131A;
    --sb-surface-2: #141922;
    --sb-surface-3: #1A2029;
    --sb-hover: #1E2530;

    /* Borders */
    --sb-border: rgba(255,255,255,.07);
    --sb-border-strong: rgba(255,255,255,.14);

    /* Text */
    --sb-text: #F5F7FA;
    --sb-text-2: #AEB7C2;
    --sb-text-3: #7E8895;

    /* Primary accent — used sparingly for selection & key actions only */
    --sb-primary: #FFB300;
    --sb-primary-hover: #FFC640;
    --sb-primary-active: #E6A100;
    --sb-primary-soft: rgba(255,179,0,.12);
    --sb-primary-border: rgba(255,179,0,.45);
    --sb-on-primary: #14100A;

    /* Status colors */
    --sb-success: #1FA35A;
    --sb-success-hover: #26B968;
    --sb-success-soft: rgba(31,163,90,.14);
    --sb-live: #FF4133;
    --sb-live-soft: rgba(255,65,51,.14);
    --sb-upcoming: #00BFAE;
    --sb-upcoming-soft: rgba(0,191,174,.14);
    --sb-error: #F0483E;
    --sb-error-soft: rgba(240,72,62,.14);

    /* Odds button surfaces */
    --sb-odd-bg: var(--sb-surface-2);
    --sb-odd-hover: var(--sb-surface-3);
    --sb-odd-selected: var(--sb-primary);
    --sb-odd-selected-text: var(--sb-on-primary);

    /* Elevation */
    --sb-shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --sb-shadow-md: 0 8px 24px rgba(0,0,0,.4);
    --sb-focus-ring: 0 0 0 3px rgba(255,179,0,.35);

    /* Border radius — compact sportsbook geometry, not rounded SaaS cards */
    --sb-radius-xs: 3px;
    --sb-radius-sm: 4px;
    --sb-radius-md: 6px;
    --sb-radius-lg: 8px;

    /* Spacing (4px base) */
    --sb-space-1: 4px;
    --sb-space-2: 8px;
    --sb-space-3: 12px;
    --sb-space-4: 16px;
    --sb-space-5: 20px;
    --sb-space-6: 24px;
    --sb-space-7: 32px;

    /* Layout dimensions */
    --sb-header: 52px;
    --sb-bottom-nav: 58px;
    --sb-sidebar: 240px;
    --sb-betslip: 320px;
    --sb-sports-bar-h: 64px;

    /* Typography */
    --sb-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Transitions */
    --sb-transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
    --sb-transition-base: 160ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Semantic aliases (kept in sync with the tokens above; use these for new rules) */
    --sb-border-subtle: var(--sb-border);
    --sb-text-secondary: var(--sb-text-2);
    --sb-text-muted: var(--sb-text-3);
    --sb-accent: var(--sb-primary);
    --sb-accent-hover: var(--sb-primary-hover);
    --sb-accent-soft: var(--sb-primary-soft);
    --sb-danger: var(--sb-error);
}

/* ================================================================
   GLOBAL RESET & BASE STYLES
   Spec compliance: #4 (Global Reset), #5 (Typography)
   ================================================================ */

.bc-sb-app * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.bc-sb-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    background: var(--sb-bg);
    color: var(--sb-text);
    font-family: var(--sb-font-family);
    font-size: 14px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:where(.bc-sb-app) button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

:where(.bc-sb-app) button:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 2px;
}

:where(.bc-sb-app) input,
:where(.bc-sb-app) select {
    font-family: inherit;
    border: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
}

:where(.bc-sb-app) input:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: -2px;
}

/* Scrollbar styling */
.bc-sb-app ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.bc-sb-app ::-webkit-scrollbar-track {
    background: transparent;
}

.bc-sb-app ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.08);
    border-radius: 3px;
}

.bc-sb-app ::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.12);
}

.bc-sb-app {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
}

/* ================================================================
   DESKTOP HEADER — 52px
   Spec compliance: #8 (Desktop Header)
   ================================================================ */

.bc-sb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--sb-header);
    min-height: var(--sb-header);
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
    padding: 0 var(--sb-space-4);
    gap: var(--sb-space-4);
    z-index: 40;
    flex-shrink: 0;
}

.bc-sb-topbar__modes {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: var(--sb-space-5);
}

.bc-sb-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sb-space-2);
    height: 100%;
    padding: 0 var(--sb-space-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--sb-text-3);
    border-bottom: 2px solid transparent;
    transition: all var(--sb-transition-base);
    position: relative;
}

.bc-sb-mode:hover {
    color: var(--sb-text-2);
}

.bc-sb-mode--active {
    color: var(--sb-primary);
    border-bottom-color: var(--sb-primary);
}

.bc-sb-mode--live.bc-sb-mode--active {
    color: var(--sb-live);
    border-bottom-color: var(--sb-live);
}

.bc-sb-mode__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    background: rgba(255,255,255,.08);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 600;
}

.bc-sb-mode--active .bc-sb-mode__count {
    background: var(--sb-primary);
    color: #000000;
}

.bc-sb-mode--live.bc-sb-mode--active .bc-sb-mode__count {
    background: var(--sb-live);
    color: #FFFFFF;
}

/* UPCOMING mode accent — distinct teal/cyan */
.bc-sb-mode--upcoming.bc-sb-mode--active {
    color: var(--sb-upcoming, #00BFAE);
    border-bottom-color: var(--sb-upcoming, #00BFAE);
}

.bc-sb-mode--upcoming.bc-sb-mode--active .bc-sb-mode__count {
    background: var(--sb-upcoming, #00BFAE);
    color: #FFFFFF;
}

/* LIVE dot indicator */
.bc-sb-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sb-live);
    animation: sb-pulse 1.5s ease-in-out infinite;
}

@keyframes sb-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* Header actions */
.bc-sb-topbar__actions {
    display: flex;
    align-items: center;
    gap: var(--sb-space-3);
}

.bc-sb-topbar__search {
    position: relative;
    width: 280px;
}

.bc-sb-search {
    width: 100%;
    height: 32px;
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    padding: 0 var(--sb-space-3) 0 36px;
    color: var(--sb-text);
    font-size: 13px;
    transition: all var(--sb-transition-base);
}

.bc-sb-search::placeholder {
    color: var(--sb-text-3);
}

.bc-sb-search:focus {
    border-color: var(--sb-primary);
    background: var(--sb-surface);
}

.bc-sb-search__icon,
.bc-sb-mobile-search__icon {
    position: absolute;
    left: var(--sb-space-3);
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--sb-text-3);
    pointer-events: none;
}

.bc-sb-action {
    display: flex;
    align-items: center;
    gap: var(--sb-space-2);
    height: 32px;
    padding: 0 var(--sb-space-3);
    background: transparent;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--sb-text-2);
    transition: all var(--sb-transition-base);
}

.bc-sb-action:hover {
    background: var(--sb-surface-2);
    border-color: var(--sb-border-strong);
    color: var(--sb-text);
}

.bc-sb-action svg {
    width: 16px;
    height: 16px;
}

/* ================================================================
   3-COLUMN DESKTOP LAYOUT
   ================================================================ */

.bc-sb-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* LEFT: SPORTS NAVIGATION & LEAGUE BROWSER */
.bc-sb-sidebar {
    width: var(--sb-sidebar);
    min-width: var(--sb-sidebar);
    height: 100%;
    background: var(--sb-surface);
    border-right: 1px solid var(--sb-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bc-sb-sidebar__section {
    padding: var(--sb-space-4);
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-sidebar__title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--sb-text-3);
    margin-bottom: var(--sb-space-3);
}

.bc-sb-quicklink {
    display: flex;
    align-items: center;
    gap: var(--sb-space-2);
    width: 100%;
    height: 36px;
    padding: 0 var(--sb-space-3);
    background: transparent;
    border-radius: var(--sb-radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--sb-text-2);
    text-align: left;
    transition: all var(--sb-transition-fast);
}

.bc-sb-quicklink:hover {
    background: var(--sb-surface-2);
    color: var(--sb-text);
}

.bc-sb-quicklink__icon {
    font-size: 14px;
}

/* ================================================================
   BETCONSTRUCT-STYLE NAVIGATION CONTROLS
   ================================================================ */

/* Filter Controls (All dropdown + Calendar button) */
.bc-sb-sidebar__filters {
    display: flex;
    align-items: center;
    gap: var(--sb-space-2);
    padding: var(--sb-space-3);
    border-bottom: 1px solid var(--sb-border);
    background: var(--sb-surface);
}

.bc-sb-filter-btn {
    display: flex;
    align-items: center;
    gap: var(--sb-space-2);
    height: 36px;
    padding: 0 var(--sb-space-3);
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--sb-text-2);
    transition: all var(--sb-transition-fast);
    cursor: pointer;
}

.bc-sb-filter-btn:hover {
    background: var(--sb-surface-3);
    border-color: var(--sb-border-strong);
    color: var(--sb-text);
}

.bc-sb-filter-btn--dropdown {
    flex: 1;
}

.bc-sb-filter-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    flex-shrink: 0;
}

.bc-sb-filter-text {
    flex: 1;
}

.bc-sb-filter-chevron {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}

/* Quick Access Navigation Items */
.bc-sb-quick-nav {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-nav-item {
    display: flex;
    align-items: center;
    gap: var(--sb-space-3);
    width: 100%;
    height: 44px;
    padding: 0 var(--sb-space-4);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--sb-border);
    font-size: 13px;
    font-weight: 500;
    color: var(--sb-text-2);
    text-align: left;
    transition: all var(--sb-transition-fast);
    cursor: pointer;
}

.bc-sb-nav-item:hover {
    background: var(--sb-surface-2);
    color: var(--sb-text);
}

.bc-sb-nav-item:active {
    background: var(--sb-surface-3);
}

.bc-sb-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.bc-sb-nav-item:hover .bc-sb-nav-icon {
    opacity: 1;
}

.bc-sb-nav-text {
    flex: 1;
}

.bc-sb-nav-arrow,
.bc-sb-nav-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: all var(--sb-transition-fast);
}

.bc-sb-nav-item:hover .bc-sb-nav-arrow,
.bc-sb-nav-item:hover .bc-sb-nav-chevron {
    opacity: 0.8;
}

/* Expandable Navigation Items */
.bc-sb-nav-expandable {
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-nav-item--expandable {
    border-bottom: none;
}

.bc-sb-nav-item--expanded .bc-sb-nav-chevron {
    transform: rotate(180deg);
}

.bc-sb-nav-children {
    background: var(--sb-surface-2);
    padding: var(--sb-space-1) 0;
    border-top: 1px solid var(--sb-border);
}

.bc-sb-nav-child {
    display: flex;
    align-items: center;
    gap: var(--sb-space-2);
    height: 36px;
    padding: 0 var(--sb-space-4) 0 calc(var(--sb-space-4) + var(--sb-space-6));
    font-size: 12px;
    font-weight: 500;
    color: var(--sb-text-2);
    transition: all var(--sb-transition-fast);
    cursor: pointer;
}

.bc-sb-nav-child:hover {
    background: var(--sb-surface-3);
    color: var(--sb-text);
}

.bc-sb-nav-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.bc-sb-nav-flag--icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.bc-sb-nav-child-text {
    flex: 1;
}

.bc-sb-sidebar__divider {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 var(--sb-space-4);
    background: var(--sb-surface-2);
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--sb-text-3);
}

/* League browser panel */
.bc-sb-leagues-panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.bc-sb-sidebar-empty {
    padding: var(--sb-space-6);
    text-align: center;
    color: var(--sb-text-3);
    font-size: 13px;
}

/* CENTER: EVENTS & SPORTS BAR */
.bc-sb-content {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--sb-bg);
    overflow: hidden;
}

/* RIGHT: BETSLIP */
.bc-sb-betslip {
    width: var(--sb-betslip);
    min-width: var(--sb-betslip);
    height: 100%;
    background: var(--sb-surface);
    border-left: 1px solid var(--sb-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ================================================================
   SPORTS BAR — PREMIUM CIRCULAR ICON NAVIGATION
   ================================================================ */

.bc-sb-sports-bar {
    height: 96px;
    min-height: 96px;
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
    padding: var(--sb-space-3) var(--sb-space-4);
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    flex-shrink: 0;
}

.bc-sb-sports-bar::-webkit-scrollbar {
    height: 0;
    display: none;
}

.bc-sb-sports-bar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Sport button container — 72px minimum width for stability */
.bc-sb-sport {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 72px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform .15s cubic-bezier(0.4, 0, 0.2, 1);
}

.bc-sb-sport:hover {
    transform: translateY(-2px);
}

.bc-sb-sport:active {
    transform: translateY(0);
}

.bc-sb-sport:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 6px;
    border-radius: 50%;
}

/* Circular icon container — Perfect 56x56 circle */
.bc-sb-sport__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    background: #1A1D23;
    border: 1px solid rgba(42, 47, 55, 0.8);
    transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bc-sb-sport:hover .bc-sb-sport__circle {
    border-color: rgba(154, 161, 170, 0.6);
    background: #1E2229;
}

/* Active state — Premium amber accent */
.bc-sb-sport--active .bc-sb-sport__circle,
.bc-sb-sport.active .bc-sb-sport__circle {
    border-color: var(--sb-primary);
    border-width: 2px;
    background: rgba(255, 196, 0, 0.05);
    box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.15);
}

/* Icon inside circle — Perfectly centered at 26px */
.bc-sb-sport__icon {
    font-size: 26px;
    line-height: 1;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 245, 245, 0.75);
    transition: color .15s ease, transform .15s ease;
}

.bc-sb-sport:hover .bc-sb-sport__icon {
    color: rgba(245, 245, 245, 0.95);
    transform: scale(1.05);
}

.bc-sb-sport--active .bc-sb-sport__icon,
.bc-sb-sport.active .bc-sb-sport__icon {
    color: var(--sb-primary);
    transform: scale(1.08);
}

/* Sport label below circle — Professional typography */
.bc-sb-sport__name {
    font-size: 11px;
    font-weight: 500;
    color: rgba(154, 161, 170, 0.9);
    white-space: nowrap;
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.01em;
    transition: color .15s ease, font-weight .15s ease;
}

.bc-sb-sport:hover .bc-sb-sport__name {
    color: rgba(245, 245, 245, 0.9);
}

.bc-sb-sport--active .bc-sb-sport__name,
.bc-sb-sport.active .bc-sb-sport__name {
    color: var(--sb-primary);
    font-weight: 600;
}

.bc-sb-sport__count {
    font-size: 10px;
    font-weight: 600;
    color: var(--sb-text-3);
}

.bc-sb-sport--active .bc-sb-sport__count {
    color: var(--sb-primary);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bc-sb-sport {
        transition: none;
    }
    .bc-sb-sport:hover {
        transform: none;
    }
    .bc-sb-sport__circle,
    .bc-sb-sport__icon,
    .bc-sb-sport__name {
        transition: none;
    }
}

/* Sport skeleton loader */
.bc-sb-sport-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 72px;
    flex-shrink: 0;
}

.bc-sb-sport-skeleton::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    background: #1A1D23;
    border: 1px solid rgba(42, 47, 55, 0.8);
    animation: sb-shimmer 1.4s ease-in-out infinite;
}

.bc-sb-sport-skeleton::after {
    content: '';
    display: block;
    width: 60px;
    height: 11px;
    border-radius: 3px;
    background: #1A1D23;
    animation: sb-shimmer 1.4s ease-in-out infinite;
}

@keyframes sb-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================================================
   DATE FILTERS — COMPACT SEGMENTED CONTROL
   ================================================================ */

.bc-sb-filters {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 var(--sb-space-4);
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
}

/* Compact underline-tab style (desktop) — reference "1h 3h Ajd 3 jours Tout" control */
.bc-sb-filter {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 var(--sb-space-3);
    background: transparent;
    border: none;
    border-left: 1px solid var(--sb-border);
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--sb-text-3);
    transition: color var(--sb-transition-fast);
}

.bc-sb-filter:first-child {
    border-left: none;
}

.bc-sb-filter:hover {
    background: transparent;
    color: var(--sb-text);
}

.bc-sb-filter--active {
    background: transparent;
    border-color: var(--sb-border);
    color: var(--sb-primary);
}

.bc-sb-filter--active::after {
    content: "";
    position: absolute;
    left: var(--sb-space-3);
    right: var(--sb-space-3);
    bottom: 0;
    height: 2px;
    background: var(--sb-primary);
}

/* ================================================================
   LEAGUE BROWSER — TOP LEAGUES + COUNTRIES
   ================================================================ */

/* Top leagues section */
.bc-sb-top-leagues {
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
    padding: var(--sb-space-3) 0;
}

.bc-sb-top-leagues__header {
    display: flex;
    align-items: center;
    gap: var(--sb-space-2);
    padding: var(--sb-space-2) var(--sb-space-4);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--sb-primary);
}

.bc-sb-top-leagues__list {
    display: flex;
    flex-direction: column;
}

.bc-sb-leagues-container {
    display: flex;
    flex-direction: column;
}

/* Section divider between Top Leagues and country groups */
.bc-sb-divider {
    padding: var(--sb-space-2) var(--sb-space-4);
    background: var(--sb-surface-2);
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--sb-text-3);
}

/* League/country search box within the league browser */
.bc-sb-league-search {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: var(--sb-space-3) var(--sb-space-4);
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-league-search__input {
    width: 100%;
    height: 34px;
    padding: 0 var(--sb-space-3);
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
    color: var(--sb-text);
    font-size: 12px;
    transition: all var(--sb-transition-base);
}

.bc-sb-league-search__input::placeholder {
    color: var(--sb-text-3);
}

.bc-sb-league-search__input:focus {
    outline: none;
    border-color: var(--sb-primary);
    background: var(--sb-surface);
    box-shadow: var(--sb-focus-ring);
}

.bc-sb-league--top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sb-space-3);
    width: 100%;
    height: 34px;
    padding: 0 var(--sb-space-4);
    background: transparent;
    text-align: left;
    transition: all var(--sb-transition-fast);
}

.bc-sb-league--top:hover {
    background: var(--sb-surface-2);
}

.bc-sb-league--top .bc-sb-league__icon {
    font-size: 12px;
    color: var(--sb-text-3);
}

.bc-sb-league--top .bc-sb-league__name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--sb-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bc-sb-league--top .bc-sb-league__count {
    font-size: 11px;
    font-weight: 600;
    color: var(--sb-text-3);
}

.bc-sb-league--top .bc-sb-league__chevron {
    width: 12px;
    height: 12px;
    color: var(--sb-text-3);
}

/* ================================================================
   COUNTRY/LEAGUE NAVIGATION — PRODUCTION-GRADE HIERARCHY
   ================================================================
   Compact country rows with perfect alignment
   Expandable nested league groups
   Reference: africabet365 country navigation
   ================================================================ */

/* Country section — subtle separator between countries */
.bc-sb-country {
    border-bottom: 1px solid rgba(255,255,255,.04);
}

/* Country header — CSS Grid for perfect column alignment */
.bc-sb-country__header {
    display: grid;
    grid-template-columns: 20px 1fr auto 14px;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 42px;
    padding: 0 16px;
    background: var(--sb-surface);
    text-align: left;
    cursor: pointer;
    transition: background 120ms ease;
}

.bc-sb-country__header:hover {
    background: var(--sb-surface-2);
}

/* Flag/icon container — normalized to consistent visual size */
.bc-sb-country__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    overflow: hidden;
    flex-shrink: 0;
}

/* Professional flag images — consistent aspect ratio */
.bc-sb-flag {
    width: 20px;
    height: 15px;
    display: block;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    /* Prevent layout shift during image load */
    min-width: 20px;
    min-height: 15px;
}

/* Globe icon for regional groups (Americas, Asia, International) */
.bc-sb-flag--globe {
    width: 16px;
    height: 16px;
    color: var(--sb-text-3);
    opacity: 0.7;
}

/* Country name — medium weight, vertically centered */
.bc-sb-country__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--sb-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Event count — muted, right-aligned, tabular numerals */
.bc-sb-country__count {
    font-size: 11px;
    font-weight: 500;
    color: var(--sb-text-3);
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 20px;
}

/* Chevron — consistent sizing, smooth rotation */
.bc-sb-country__chevron {
    width: 14px;
    height: 14px;
    color: var(--sb-text-3);
    opacity: 0.7;
    flex-shrink: 0;
    transform: rotate(90deg);
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed state */
.bc-sb-country--collapsed .bc-sb-country__chevron {
    transform: rotate(0deg);
}

.bc-sb-country--collapsed .bc-sb-leagues {
    display: none;
}

/* Expanded state — subtle elevation on country row */
.bc-sb-country--expanded .bc-sb-country__header {
    background: var(--sb-surface-2);
}

/* League container — nested under country with elevated background */
.bc-sb-leagues {
    background: rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
    padding: 6px 0;
    margin: 0;
}

/* Individual league row — compact and indented */
.bc-sb-league {
    display: grid;
    grid-template-columns: 1fr auto 14px;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 34px;
    padding: 0 16px 0 44px;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    text-align: left;
    cursor: pointer;
    transition: background 100ms ease, border-color 100ms ease;
}

.bc-sb-league:hover {
    background: rgba(255,255,255,.04);
}

/* Active league — subtle amber accent, not dominant */
.bc-sb-league--active {
    background: rgba(255,179,0,.06);
    border-left-color: var(--sb-primary);
}

.bc-sb-league--active:hover {
    background: rgba(255,179,0,.10);
}

.bc-sb-league--active .bc-sb-league__name {
    color: var(--sb-text);
    font-weight: 600;
}

/* League name — clean hierarchy, secondary prominence */
.bc-sb-league__name {
    font-size: 12px;
    font-weight: 400;
    color: var(--sb-text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* League count — muted, right-aligned, tabular numerals */
.bc-sb-league__count {
    font-size: 10px;
    font-weight: 500;
    color: var(--sb-text-3);
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 16px;
}

/* League chevron — subtle indicator */
.bc-sb-league__chevron {
    width: 14px;
    height: 14px;
    color: var(--sb-text-3);
    opacity: 0.4;
}

/* ================================================================
   EVENTS LIST — DENSE PROFESSIONAL LAYOUT
   ================================================================ */

.bc-sb-events {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.bc-sb-events__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sb-space-4);
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.bc-sb-events__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-text);
}

.bc-sb-events__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--sb-text-3);
}

.bc-sb-events__list {
    padding: 0;
}

/* League group header */
.bc-sb-league-group {
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-league-group__header {
    display: flex;
    align-items: center;
    gap: var(--sb-space-3);
    padding: var(--sb-space-3) var(--sb-space-4);
    background: var(--sb-surface-2);
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-league-group__favorite {
    width: 16px;
    height: 16px;
    color: var(--sb-text-3);
    cursor: pointer;
    transition: color var(--sb-transition-fast);
}

.bc-sb-league-group__favorite:hover {
    color: var(--sb-primary);
}

.bc-sb-league-group__favorite--active {
    color: var(--sb-primary);
}

.bc-sb-league-group__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.bc-sb-league-group__flag .bc-sb-flag {
    width: 18px;
    height: 13px;
}

.bc-sb-league-group__flag .bc-sb-flag--globe {
    width: 14px;
    height: 14px;
}

.bc-sb-league-group__name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-text);
}

.bc-sb-league-group__market-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--sb-text-3);
}

.bc-sb-league-group__more {
    display: flex;
    align-items: center;
    gap: var(--sb-space-1);
    padding: 4px var(--sb-space-2);
    background: transparent;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--sb-text-3);
    transition: all var(--sb-transition-fast);
}

.bc-sb-league-group__more:hover {
    background: var(--sb-surface-3);
    border-color: var(--sb-border-strong);
    color: var(--sb-text-2);
}

.bc-sb-league-group__more svg {
    width: 10px;
    height: 10px;
}

.bc-sb-league-group__stats {
    width: 16px;
    height: 16px;
    color: var(--sb-text-3);
    cursor: pointer;
    transition: color var(--sb-transition-fast);
}

.bc-sb-league-group__stats:hover {
    color: var(--sb-text-2);
}

/* ================================================================
   DATE HEADERS — CHRONOLOGICAL FIXTURE GROUPING
   ================================================================ */

/* Date header container — compact sportsbook separator */
.bc-sb-date-header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 8px var(--sb-space-4);
    background: #0D0F12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
}

.bc-sb-date-header__content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.bc-sb-date-header__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    flex-grow: 1;
}

/* Today/Tomorrow badge (non-clickable label) */
.bc-sb-date-header__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(var(--sb-primary-rgb, 255, 107, 0), 0.15);
    border: 1px solid rgba(var(--sb-primary-rgb, 255, 107, 0), 0.3);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--sb-primary, #FF6B00);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bc-sb-date-header {
        padding: 12px var(--sb-space-3);
        min-height: 48px;
    }
    
    .bc-sb-date-header__label {
        font-size: 12px;
    }
    
    .bc-sb-date-header__badge {
        font-size: 9px;
        padding: 3px 8px;
    }
}

/* ================================================================
   MATCH CARDS — PREMIUM COMPACT SPORTSBOOK DESIGN
   ================================================================
   DOM: strip(.bc-sb-event__strip) / match(.bc-sb-event__match)
        match = time-col | teams | odds  (CSS grid 72px 1fr auto)
   Desktop height: ~98px  |  LIVE: ~104px
   ================================================================ */

.bc-sb-event {
    display: flex;
    flex-direction: column;
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
    cursor: pointer;
    transition: background 100ms ease;
    position: relative;
    overflow: hidden;
    min-height: 88px;
}

.bc-sb-event:hover {
    background: var(--sb-surface-2);
}

/* LIVE: left red accent bar */
.bc-sb-event--live {
    border-left: 3px solid var(--sb-live);
}

/* ─── League strip (top row) ─── */
.bc-sb-event__strip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 4px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    min-height: 28px;
}

.bc-sb-event__league {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--sb-text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.bc-sb-event__league-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.bc-sb-event__league-flag .bc-sb-flag {
    width: 14px;
    height: 10px;
}

.bc-sb-event__league-flag .bc-sb-flag--globe {
    width: 11px;
    height: 11px;
}

/* Favorite button in strip */
.bc-sb-event__favorite {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--sb-text-3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 100ms ease;
    border-radius: var(--sb-radius-xs);
}

.bc-sb-event__favorite:hover {
    color: var(--sb-primary);
}

.bc-sb-event__favorite:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 1px;
}

.bc-sb-event__favorite--active {
    color: var(--sb-primary);
}

.bc-sb-event__favorite--active .bc-sb-event__favorite-icon {
    fill: var(--sb-primary);
}

.bc-sb-event__favorite-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* ─── Match row: 3-column grid ─── */
.bc-sb-event__match {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: 60px;
}

/* Time column */
.bc-sb-event__time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    border-right: 1px solid rgba(255,255,255,.05);
    flex-shrink: 0;
}

.bc-sb-event__time {
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: 0.01em;
}

/* LIVE badge in time col */
.bc-sb-event__live-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--sb-live);
    line-height: 1;
}

.bc-sb-event__live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sb-live);
    flex-shrink: 0;
    animation: sb-pulse 1.5s ease-in-out infinite;
}

/* Teams column */
.bc-sb-event__teams {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    min-width: 0;
}

.bc-sb-event__team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.bc-sb-event__team-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.bc-sb-event__team-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--sb-text);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 22px;
    text-align: right;
    line-height: 1;
}

.bc-sb-event--live .bc-sb-event__team-score {
    color: var(--sb-live);
}

/* Odds column */
.bc-sb-event__odds {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 6px 6px;
    flex-shrink: 0;
    align-self: center;
}

/* Legacy selectors — hidden in new layout */
.bc-sb-event__header { display: none; }
.bc-sb-event__content { display: contents; }
.bc-sb-event__teams-row { display: contents; }
.bc-sb-event__teams-column { display: none; }
.bc-sb-event__markets { display: none; }
.bc-sb-event__detail { display: none; }
.bc-sb-event__more-markets { display: none; }

/* ================================================================
   ODDS BUTTONS — HIGH CONTRAST PROFESSIONAL
   ================================================================ */

/* Odds button */
.bc-sb-odd {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 36px;
    padding: 4px 2px;
    gap: 1px;
    background: var(--sb-odd-bg);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    cursor: pointer;
    transition: background 100ms ease, border-color 100ms ease;
    user-select: none;
    flex-shrink: 0;
}

.bc-sb-odd:hover {
    background: var(--sb-accent-soft, rgba(255,179,0,.08));
    border-color: var(--sb-border-strong);
}

.bc-sb-odd:active {
    transform: scale(0.96);
}

.bc-sb-odd:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 2px;
}

/* Market label (1 / X / 2) */
.bc-sb-odd__label {
    font-size: 10px;
    font-weight: 700;
    color: var(--sb-text-3);
    line-height: 1;
    letter-spacing: 0.3px;
}

/* Odds value */
.bc-sb-odd__value {
    font-size: 13px;
    font-weight: 700;
    color: var(--sb-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
    text-align: center;
    display: inline-block;
}

/* Selected */
.bc-sb-odd--selected {
    background: var(--sb-odd-selected);
    border-color: var(--sb-odd-selected);
    box-shadow: var(--sb-focus-ring);
}

.bc-sb-odd--selected::after {
    content: "✓";
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 8px;
    font-weight: 900;
    color: var(--sb-on-primary);
    line-height: 1;
}

.bc-sb-odd--selected .bc-sb-odd__label {
    color: var(--sb-odd-selected-text);
    opacity: 0.8;
}

.bc-sb-odd--selected .bc-sb-odd__value {
    color: var(--sb-odd-selected-text);
}

/* Suspended */
.bc-sb-odd--suspended {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.03) 6px 7px);
}

.bc-sb-odd--suspended .bc-sb-odd__value {
    color: var(--sb-text-3);
}

.bc-sb-odd--suspended .bc-sb-odd__value::after {
    content: "🔒";
    font-size: 10px;
    margin-left: 3px;
}

/* Locked */
.bc-sb-odd--locked {
    position: relative;
}

.bc-sb-odd--locked::before {
    content: "🔒";
    position: absolute;
    font-size: 12px;
}

/* LIVE match detail view: consumes the existing live event/detail/odds stores. */
.bc-sb-match-page {
    position: fixed;
    inset: 0;
    z-index: 80;
    overflow-y: auto;
    background: var(--sb-surface, #161a21);
    box-sizing: border-box;
    padding: 0 10px calc(20px + env(safe-area-inset-bottom, 0px));
    color: var(--sb-text);
    scrollbar-width: thin;
}

.bc-sb-match-page *, .bc-sb-match-page *::before, .bc-sb-match-page *::after { box-sizing: border-box; }

/* Header: back button + compact single-line context, never grows with league name */
.bc-sb-match-page__top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; height: 46px; margin: 0 -10px; padding: 0 10px; background: var(--sb-surface, #161a21); border-bottom: 1px solid var(--sb-border); color: var(--sb-text-2); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.bc-sb-match-page__top > span { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-sb-match-page__top > span i { font-style: normal; }
.bc-sb-match-page__close { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 6px; background: transparent; color: var(--sb-text); font-size: 18px; cursor: pointer; }
.bc-sb-match-page__close:hover { background: var(--sb-surface-2); }
.bc-sb-match-page__close:focus-visible,
.bc-sb-match-market__header:focus-visible,
.bc-sb-match-page__tabs button:focus-visible,
.bc-sb-odd--row:focus-visible { outline: 2px solid var(--sb-primary); outline-offset: -2px; }

/* Match hero: the strongest visual element in the page */
.bc-sb-match-hero { padding: 10px 4px 12px; border-bottom: 1px solid var(--sb-border); }
.bc-sb-match-hero__status { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-variant-numeric: tabular-nums; }
.bc-sb-match-hero__live { display: inline-flex; align-items: center; gap: 5px; color: var(--sb-live); font-weight: 700; letter-spacing: .05em; }
.bc-sb-match-hero__live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: bc-sb-live-pulse 1.6s ease-in-out infinite; }
.bc-sb-match-hero__live.is-final { color: var(--sb-text-3); }
.bc-sb-match-hero__live.is-final i { animation: none; }
.bc-sb-match-hero__clock { color: var(--sb-text-2); font-weight: 600; }
.bc-sb-match-hero__match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 10px; }
.bc-sb-match-hero__team { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.bc-sb-match-hero__team--home { align-items: flex-start; }
.bc-sb-match-hero__team--away { align-items: flex-end; text-align: right; }
.bc-sb-match-hero__badge { display: grid; flex-shrink: 0; place-items: center; width: 32px; height: 32px; margin-bottom: 2px; border-radius: 50%; background: var(--sb-surface-2); color: var(--sb-text-2); font-size: 13px; font-weight: 700; }
.bc-sb-match-hero__team-tag { color: var(--sb-text-3); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bc-sb-match-hero__team-name { max-width: 100%; overflow: hidden; color: var(--sb-text); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bc-sb-match-hero__score { display: flex; align-items: baseline; gap: 6px; padding: 0 6px; color: var(--sb-text); font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-sb-match-hero__score i { color: var(--sb-text-3); font-size: 18px; font-style: normal; font-weight: 500; }

/* Score-by-period: compact horizontal chips, sport-aware labels */
.bc-sb-match-periods { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 4px; border-bottom: 1px solid var(--sb-border); }
.bc-sb-match-periods__item { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: var(--sb-surface-2); color: var(--sb-text-2); font-size: 11px; }
.bc-sb-match-periods__item strong { color: var(--sb-text); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Market navigation: sticky, underline indicator, muted counts */
.bc-sb-match-page__tabs { position: sticky; top: 46px; z-index: 4; display: flex; gap: 2px; overflow-x: auto; margin: 0 -10px; padding: 6px 10px; background: var(--sb-surface, #161a21); border-bottom: 1px solid var(--sb-border); scrollbar-width: none; }
.bc-sb-match-page__tabs::-webkit-scrollbar { display: none; }
.bc-sb-match-page__tabs button { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 4px; min-height: 36px; border: 0; border-radius: 0; background: transparent; color: var(--sb-text-2); padding: 0 9px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; }
.bc-sb-match-page__tabs button small { color: var(--sb-text-3); font-size: 10px; font-weight: 600; }
.bc-sb-match-page__tabs button.is-active { color: var(--sb-text); }
.bc-sb-match-page__tabs button.is-active small { color: var(--sb-text-2); }
.bc-sb-match-page__tabs button.is-active::after { content: ''; position: absolute; right: 9px; bottom: -6px; left: 9px; height: 2px; border-radius: 2px; background: var(--sb-primary); }

/* Market search: secondary, only shown when the market list is large */
.bc-sb-match-page__market-search { padding: 8px 0 0; }
.bc-sb-match-page__market-search input { width: 100%; height: 36px; border: 1px solid var(--sb-border); border-radius: 6px; background: var(--sb-odd-bg); color: var(--sb-text); padding: 0 10px; font: inherit; font-size: 12px; }
.bc-sb-match-page__market-search input::placeholder { color: var(--sb-text-3); }

/* Bet Builder: single compact row, no dedicated section */
.bc-sb-match-page__builder { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 4px 2px; color: var(--sb-text-2); font-size: 12px; }
.bc-sb-match-page__builder button { width: 32px; height: 18px; border: 0; border-radius: 9px; background: var(--sb-border-strong); cursor: not-allowed; }

/* Market groups */
.bc-sb-match-page__markets { display: grid; gap: 5px; padding-top: 6px; }
.bc-sb-match-category { margin: 6px 2px -1px; color: var(--sb-text-3); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.bc-sb-match-market { border: 1px solid var(--sb-border); border-radius: 5px; background: var(--sb-surface-2); overflow: hidden; }
.bc-sb-match-market__header { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 32px; border: 0; background: transparent; color: var(--sb-text); padding: 0 8px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; }
.bc-sb-match-market__header > span:first-of-type { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-sb-match-market__icon { flex-shrink: 0; color: var(--sb-text-3); font-size: 11px; font-style: normal; }
.bc-sb-match-market__chevron { flex-shrink: 0; color: var(--sb-text-3); font-size: 12px; transition: transform 160ms ease; }

/* Odds rows: compact horizontal cells, label left / odds right */
.bc-sb-match-page__odds { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 6px 6px; animation: bc-sb-market-reveal 160ms ease-out; }
.bc-sb-match-page__odds--list { flex-direction: column; }
.bc-sb-match-page__odds .bc-sb-odd--row { flex: 1 1 0; min-width: 0; }
.bc-sb-match-page__odds--list .bc-sb-odd--row { flex: 1 1 100%; }
.bc-sb-match-page__odds--cols1 .bc-sb-odd--row { flex-basis: 100%; }
.bc-sb-odd--row {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 34px;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 4px;
    background: var(--sb-odd-bg);
    border: 1px solid var(--sb-border);
    transition: background 150ms ease, border-color 150ms ease;
}
.bc-sb-odd--row .bc-sb-odd__label { display: block !important; overflow: hidden; color: var(--sb-text-2); font-size: 11px; font-weight: 500; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.bc-sb-odd--row .bc-sb-odd__value { flex-shrink: 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bc-sb-odd--row:not(:disabled):hover { border-color: var(--sb-border-strong); }
.bc-sb-odd--row.bc-sb-odd--selected { background: var(--sb-odd-selected); border-color: var(--sb-odd-selected); }
.bc-sb-odd--row.bc-sb-odd--selected .bc-sb-odd__label,
.bc-sb-odd--row.bc-sb-odd--selected .bc-sb-odd__value { color: var(--sb-odd-selected-text); }
.bc-sb-odd--row.bc-sb-odd--selected::after { content: '✓'; margin-left: 2px; color: var(--sb-odd-selected-text); font-size: 10px; font-weight: 700; }
.bc-sb-odd--row.bc-sb-odd--locked { opacity: .55; }
.bc-sb-odd--row.bc-sb-odd--locked::before { position: static; order: 2; margin-left: auto; font-size: 11px; line-height: 1; }
.bc-sb-odd--row.bc-sb-odd--locked .bc-sb-odd__value { display: none; }
.bc-sb-odd--row.bc-sb-odd--pulse { animation: bc-sb-odd-pulse 200ms ease-out; }
.bc-sb-odd--row[data-trend]::before { position: static; order: 2; font-size: 9px; }
.bc-sb-odd--row[data-trend="up"]::before { content: '▲'; color: var(--sb-positive, #2ecc71); }
.bc-sb-odd--row[data-trend="down"]::before { content: '▼'; color: var(--sb-negative, #e74c3c); }

/* Line tables (Total Goals, Handicap, etc.): one row per line, columns per side */
.bc-sb-match-table { display: flex; flex-direction: column; gap: 2px; padding: 0 6px 6px; }
.bc-sb-match-table__row { display: grid; grid-template-columns: minmax(38px, 22%) 1fr 1fr; align-items: center; gap: 4px; }
.bc-sb-match-table__row--head { padding: 0 2px; color: var(--sb-text-3); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.bc-sb-match-table__row--head span { text-align: center; }
.bc-sb-match-table__line { display: flex; align-items: center; justify-content: center; height: 34px; color: var(--sb-text-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bc-sb-match-table__row .bc-sb-odd--row { height: 34px; }

.bc-sb-match-page__inline-empty { padding: 14px 4px; color: var(--sb-text-3); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
    .bc-sb-match-page *, .bc-sb-match-page *::before, .bc-sb-match-page *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@keyframes bc-sb-market-reveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bc-sb-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bc-sb-odd-pulse { 0% { background: var(--sb-odd-hover); } 100% { background: var(--sb-odd-bg); } }

@media (max-width: 390px) {
    .bc-sb-match-table__row { grid-template-columns: minmax(32px, 20%) 1fr 1fr; }
    .bc-sb-odd--row .bc-sb-odd__label { font-size: 10px; }
}


@media (min-width: 768px) {
    .bc-sb-match-page { inset: 52px 18px 18px 50%; width: min(680px, calc(100vw - 36px)); transform: translateX(-50%); border: 1px solid var(--sb-border-strong); border-radius: 8px; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
    .bc-sb-match-page__top, .bc-sb-match-page__tabs { border-radius: 0; }
}

@media (max-width: 480px) {
    .bc-sb-match-page { padding-right: 8px; padding-left: 8px; }
    .bc-sb-match-page__top, .bc-sb-match-page__tabs { margin-right: -8px; margin-left: -8px; padding-right: 8px; padding-left: 8px; }
    .bc-sb-match-hero__team-name { font-size: 13px; }
    .bc-sb-match-hero__score { font-size: 26px; }
}

/* Odds label (legacy — hidden in new design) */
.bc-sb-odd__label {
    display: none;
}

/* Fake odds movement indicator (decorative only) */
.bc-sb-odd__movement {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease-out;
}

/* Up triangle (green) */
.bc-sb-odd--movement-up .bc-sb-odd__movement {
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 5px solid #10b981;
    opacity: 1;
    animation: bc-sb-movement-pulse 800ms ease-in-out;
}

/* Down triangle (red) */
.bc-sb-odd--movement-down .bc-sb-odd__movement {
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 5px solid #ef4444;
    opacity: 1;
    animation: bc-sb-movement-pulse 800ms ease-in-out;
}

/* Subtle pulse animation */
@keyframes bc-sb-movement-pulse {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    15% {
        opacity: 1;
        transform: scale(1);
    }
    85% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .bc-sb-odd__movement {
        display: none;
    }
    .bc-sb-odd--movement-up,
    .bc-sb-odd--movement-down {
        animation: none;
    }
}

/* Don't show movement on selected odds (selected state is primary) */
.bc-sb-odd--selected .bc-sb-odd__movement {
    display: none;
}

/* Don't show movement on suspended odds */
.bc-sb-odd--suspended .bc-sb-odd__movement {
    display: none;
}

/* ================================================================
   BETSLIP — RIGHT PANEL
   ================================================================ */

.bc-sb-betslip__header {
    padding: var(--sb-space-4);
    background: var(--sb-surface-2);
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-betslip__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-text);
    margin-bottom: var(--sb-space-3);
}

.bc-sb-betslip__tabs {
    display: flex;
    gap: var(--sb-space-2);
}

.bc-sb-betslip__tab {
    flex: 1;
    height: 32px;
    background: transparent;
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--sb-text-2);
    transition: all var(--sb-transition-fast);
}

.bc-sb-betslip__tab:hover {
    background: var(--sb-surface-3);
    border-color: var(--sb-border-strong);
}

.bc-sb-betslip__tab--active {
    background: var(--sb-primary);
    border-color: var(--sb-primary);
    color: #000000;
}

.bc-sb-betslip__content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--sb-space-4);
}

/* Betslip selections list (actual markup rendered by betslip.js) */
.bc-sb-selections {
    display: flex;
    flex-direction: column;
    gap: var(--sb-space-2);
}

.bc-sb-selection {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "match match"
        "league league"
        "market odds";
    column-gap: 1px;
    row-gap: 0;
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    border-left: 3px solid var(--sb-primary);
    border-radius: var(--sb-radius-md);
    padding: var(--sb-space-3);
    padding-right: 34px;
}

.bc-sb-selection__remove {
    position: absolute;
    top: var(--sb-space-2);
    right: var(--sb-space-2);
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sb-surface-3);
    border-radius: 50%;
    color: var(--sb-text-2);
    font-size: 15px;
    line-height: 1;
    transition: all var(--sb-transition-fast);
}

.bc-sb-selection__remove:hover {
    background: var(--sb-error);
    color: #FFFFFF;
}

.bc-sb-selection__remove:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 2px;
}

.bc-sb-selection__match {
    grid-area: match;
    font-size: 13px;
    font-weight: 700;
    color: var(--sb-text);
    line-height: 1.35;
    margin-bottom: 2px;
    padding-right: var(--sb-space-2);
}

.bc-sb-selection__live {
    display: inline-block;
    margin-bottom: 4px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--sb-live);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
}

.bc-sb-selection__league {
    grid-area: league;
    font-size: 11px;
    font-weight: 500;
    color: var(--sb-text-3);
    margin-bottom: var(--sb-space-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bc-sb-selection__market {
    grid-area: market;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sb-space-2);
    padding: var(--sb-space-2);
    background: var(--sb-surface-3);
    border-radius: var(--sb-radius-sm) 0 0 var(--sb-radius-sm);
}

.bc-sb-selection__market-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--sb-text-3);
}

.bc-sb-selection__outcome {
    font-size: 12px;
    font-weight: 700;
    color: var(--sb-text);
}

.bc-sb-selection__odds {
    grid-area: odds;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: var(--sb-space-2) var(--sb-space-3);
    background: var(--sb-surface-3);
    border-radius: 0 var(--sb-radius-sm) var(--sb-radius-sm) 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--sb-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Betslip footer: stake, returns, CTA (actual markup rendered by betslip.js) */
.bc-sb-betslip__footer {
    display: flex;
    flex-direction: column;
    gap: var(--sb-space-3);
    margin-top: var(--sb-space-3);
    padding-top: var(--sb-space-3);
    border-top: 1px solid var(--sb-border);
}

.bc-sb-stake {
    display: flex;
    flex-direction: column;
    gap: var(--sb-space-2);
}

.bc-sb-stake__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--sb-text-3);
}

.bc-sb-stake__input {
    width: 100%;
    height: 40px;
    padding: 0 var(--sb-space-3);
    background: var(--sb-surface-3);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
    font-size: 14px;
    font-weight: 700;
    color: var(--sb-text);
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: all var(--sb-transition-base);
}

.bc-sb-stake__input::-webkit-inner-spin-button,
.bc-sb-stake__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bc-sb-stake__input {
    -moz-appearance: textfield;
}

.bc-sb-stake__input:focus {
    outline: none;
    border-color: var(--sb-primary);
    background: var(--sb-surface);
    box-shadow: var(--sb-focus-ring);
}

.bc-sb-returns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sb-space-3);
    background: var(--sb-surface-3);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
}

.bc-sb-returns__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--sb-text-2);
}

.bc-sb-returns__value {
    font-size: 20px;
    font-weight: 800;
    color: var(--sb-success);
    font-variant-numeric: tabular-nums;
}

.bc-sb-place-btn {
    width: 100%;
    height: 48px;
    background: var(--sb-success);
    border-radius: var(--sb-radius-md);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    transition: background var(--sb-transition-fast), transform var(--sb-transition-fast), box-shadow var(--sb-transition-fast);
}

.bc-sb-place-btn:hover {
    background: var(--sb-success-hover);
    box-shadow: var(--sb-shadow-md);
}

.bc-sb-place-btn:active {
    transform: scale(0.99);
}

.bc-sb-place-btn:focus-visible {
    outline: 2px solid var(--sb-text);
    outline-offset: 2px;
}

.bc-sb-place-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ================================================================
   BET SLIP — WALLET BAR / STATE BANNERS / PER-SELECTION NOTICES
   ================================================================ */

.bc-sb-wallet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sb-space-2) var(--sb-space-3);
    margin-bottom: var(--sb-space-3);
    background: var(--sb-surface-3);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    font-size: 12px;
}

.bc-sb-wallet-bar__label {
    color: var(--sb-text-2);
    font-weight: 500;
}

.bc-sb-wallet-bar__value {
    font-weight: 700;
    color: var(--sb-text);
    font-variant-numeric: tabular-nums;
}

.bc-sb-wallet-bar--guest .bc-sb-wallet-bar__label {
    color: var(--sb-text-3);
}

/* Blocking / informational banners shown above the stake area */
.bc-sb-state-banner {
    margin-top: var(--sb-space-3);
    padding: var(--sb-space-3);
    border-radius: var(--sb-radius-sm);
    border: 1px solid var(--sb-border);
    background: var(--sb-surface-2);
}

.bc-sb-state-banner--warning {
    border-color: var(--sb-primary-border);
    background: var(--sb-primary-soft);
}

.bc-sb-state-banner--error {
    border-color: rgba(240,72,62,.35);
    background: var(--sb-error-soft);
}

.bc-sb-state-banner__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--sb-text);
    margin-bottom: 2px;
}

.bc-sb-state-banner__text {
    font-size: 12px;
    color: var(--sb-text-2);
    line-height: 1.4;
}

.bc-sb-state-banner__actions {
    display: flex;
    gap: var(--sb-space-2);
    margin-top: var(--sb-space-3);
}

.bc-sb-state-banner__btn {
    flex: 1;
    height: 34px;
    border: 1px solid var(--sb-border-strong);
    border-radius: var(--sb-radius-sm);
    background: transparent;
    color: var(--sb-text);
    font-size: 12px;
    font-weight: 700;
    transition: background var(--sb-transition-fast);
}

.bc-sb-state-banner__btn:hover {
    background: var(--sb-surface-3);
}

.bc-sb-state-banner__btn--primary {
    background: var(--sb-primary);
    border-color: var(--sb-primary);
    color: var(--sb-on-primary);
}

.bc-sb-state-banner__btn--primary:hover {
    background: var(--sb-primary-hover);
}

/* Per-selection inline notice (odds changed / suspended) */
.bc-sb-selection--suspended {
    opacity: 0.7;
    border-left-color: var(--sb-error);
}

.bc-sb-selection__notice {
    grid-column: 1 / -1;
    margin-top: var(--sb-space-2);
    padding: var(--sb-space-2);
    border-radius: var(--sb-radius-sm);
    font-size: 11px;
    line-height: 1.4;
}

.bc-sb-selection__notice--error {
    background: var(--sb-error-soft);
    color: var(--sb-error);
    font-weight: 600;
}

.bc-sb-selection__notice--warning {
    background: var(--sb-primary-soft);
    color: var(--sb-text);
}

.bc-sb-selection__notice-text {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.bc-sb-selection__odds-diff {
    display: flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.bc-sb-selection__odds-old {
    color: var(--sb-text-3);
    text-decoration: line-through;
}

.bc-sb-selection__odds-new {
    color: var(--sb-primary);
    font-weight: 700;
}

.bc-sb-selection__accept {
    display: block;
    width: 100%;
    margin-top: 6px;
    height: 28px;
    border: 1px solid var(--sb-primary-border);
    border-radius: var(--sb-radius-sm);
    background: transparent;
    color: var(--sb-primary);
    font-size: 11px;
    font-weight: 700;
    transition: background var(--sb-transition-fast);
}

.bc-sb-selection__accept:hover {
    background: var(--sb-primary-soft);
}

/* Inline stake validation error */
.bc-sb-stake__error {
    font-size: 11px;
    font-weight: 500;
    color: var(--sb-error);
}

/* Success / result panel (replaces the slip content after a confirmed bet) */
.bc-sb-state-panel {
    padding: var(--sb-space-4);
    border-radius: var(--sb-radius-md);
    border: 1px solid var(--sb-border);
    background: var(--sb-surface-2);
}

.bc-sb-state-panel--success {
    border-color: rgba(31,163,90,.35);
}

.bc-sb-state-panel__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--sb-success);
    margin-bottom: var(--sb-space-3);
}

.bc-sb-state-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sb-space-2) 0;
    border-bottom: 1px solid var(--sb-border);
    font-size: 12px;
    color: var(--sb-text-2);
    font-variant-numeric: tabular-nums;
}

.bc-sb-state-panel__row:last-of-type {
    border-bottom: none;
}

.bc-sb-state-panel__row--strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--sb-text);
}

.bc-sb-state-panel__actions {
    display: flex;
    gap: var(--sb-space-2);
    margin-top: var(--sb-space-4);
}

.bc-sb-state-panel__link {
    flex: 1;
    height: 40px;
    border: 1px solid var(--sb-border-strong);
    border-radius: var(--sb-radius-sm);
    background: transparent;
    color: var(--sb-text-2);
    font-size: 12px;
    font-weight: 700;
}

.bc-sb-state-panel__link:hover {
    background: var(--sb-surface-3);
}

.bc-sb-state-panel .bc-sb-place-btn {
    flex: 2;
    height: 40px;
}

/* ================================================================
   EMPTY STATES
   ================================================================ */

.bc-sb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sb-space-3);
    padding: var(--sb-space-6);
    text-align: center;
}

.bc-sb-empty__icon {
    width: 48px;
    height: 48px;
    color: var(--sb-text-3);
    opacity: 0.4;
}

.bc-sb-empty__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-text-2);
}

.bc-sb-empty__text {
    font-size: 12px;
    color: var(--sb-text-3);
    max-width: 280px;
}

/* ================================================================
   MOBILE NAVIGATION — BOTTOM NAV BAR
   ================================================================ */

.bc-sb-mobile-nav {
    display: none;
    align-items: stretch;
    height: var(--sb-bottom-nav);
    min-height: var(--sb-bottom-nav);
    background: var(--sb-surface);
    border-top: 1px solid var(--sb-border);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 30;
}

.bc-sb-mobile-nav__btn {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    color: var(--sb-text-3);
    font-size: 10px;
    font-weight: 600;
    transition: color var(--sb-transition-fast);
}

.bc-sb-mobile-nav__btn--active {
    color: var(--sb-primary);
}

.bc-sb-mobile-nav__icon {
    width: 20px;
    height: 20px;
}

.bc-sb-mobile-nav__badge {
    position: absolute;
    top: 8px;
    right: calc(50% - 20px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sb-live);
    color: #FFFFFF;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* ================================================================
   MOBILE RESPONSIVE — <= 767px — BETCONSTRUCT COMMERCIAL DENSITY
   ================================================================ */

/* ================================================================
   MOBILE RESPONSIVE — BETCONSTRUCT COMMERCIAL GRADE
   Target: 390×844 (primary), 375×812, 412×915
   ================================================================ */

@media (max-width: 767px) {
    
    /* ============================================================
       1. MOBILE APP STRUCTURE
       ============================================================ */
    
    .bc-sb-app {
        font-family: var(--sb-font-family);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .bc-sb-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    
    /* Hide desktop sidebar and betslip on mobile ONLY */
    .bc-sb-sidebar {
        display: none;
    }
    
    .bc-sb-betslip {
        display: none;
    }
    
    /* ============================================================
       2. PREMIUM MOBILE HEADER — 46px
       ============================================================ */
    
    .bc-sb-topbar {
        height: 46px;
        min-height: 46px;
        max-height: 46px;
        padding: 0 12px;
        background: var(--sb-bg);
        border-bottom: 1px solid var(--sb-border);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-shrink: 0;
    }
    
    /* Hide desktop actions on mobile */
    .bc-sb-topbar__actions,
    .bc-sb-topbar__search {
        display: none;
    }
    
    /* Center PREMATCH/LIVE modes */
    .bc-sb-topbar__modes {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        max-width: 100%;
    }
    
    .bc-sb-mode {
        flex: 0 0 auto;
        max-width: none;
        height: 32px;
        padding: 0 14px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.02em;
        background: transparent;
        border: 1px solid var(--sb-border-strong);
        border-radius: 6px;
        color: var(--sb-text-2);
        transition: all var(--sb-transition-fast);
        cursor: pointer;
        touch-action: manipulation;
    }
    
    .bc-sb-mode:active {
        transform: scale(0.97);
    }
    
    .bc-sb-mode--active {
        background: transparent;
        border-bottom: 2px solid var(--sb-primary);
        border-radius: 0;
        color: var(--sb-text);
    }
    
    .bc-sb-mode__count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 5px;
        min-width: 18px;
        height: 16px;
        background: var(--sb-surface-3);
        border-radius: 3px;
        margin-left: 6px;
        color: var(--sb-text);
    }
    
    .bc-sb-mode--active .bc-sb-mode__count {
        background: var(--sb-primary);
        color: #000000;
    }
    
    /* ============================================================
       3. SPORTS CAROUSEL — HORIZONTAL SCROLL — 60px
       ============================================================ */
    
    .bc-sb-sports-bar {
        height: 60px;
        min-height: 60px;
        max-height: 60px;
        padding: 6px 10px;
        gap: 6px;
        background: var(--sb-surface);
        border-bottom: 1px solid var(--sb-border);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        touch-action: pan-x;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .bc-sb-sports-bar::-webkit-scrollbar {
        display: none;
        height: 0;
    }
    
    /* Sport tiles - commercial density */
    .bc-sb-app .bc-sb-sport {
        position: relative;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 70px;
        max-width: 76px;
        width: 73px;
        height: 54px;
        padding: 5px 6px 4px;
        background: var(--sb-surface-2);
        border: 1px solid var(--sb-border);
        border-radius: 6px;
        transition: background var(--sb-transition-fast), border-color var(--sb-transition-fast);
        cursor: pointer;
        touch-action: manipulation;
        scroll-snap-align: start;
    }
    
    .bc-sb-app .bc-sb-sport:active {
        transform: scale(0.96);
    }
    
    /* Active state — restrained accent tint, not a solid fill */
    .bc-sb-app .bc-sb-sport--active {
        background: var(--sb-primary-soft);
        border-color: var(--sb-primary-border);
    }
    
    /* Icon */
    .bc-sb-sport__icon {
        flex-shrink: 0;
        font-size: 24px;
        line-height: 1;
        color: var(--sb-text-2);
        filter: grayscale(0.2);
        margin-bottom: 2px;
    }
    
    .bc-sb-sport--active .bc-sb-sport__icon {
        color: var(--sb-primary);
        filter: none;
    }
    
    /* Bottom row: name + count */
    .bc-sb-sport__bottom {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 3px;
        min-height: 12px;
    }
    
    .bc-sb-sport__name {
        flex: 1;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0;
        color: var(--sb-text-2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        line-height: 1.1;
    }
    
    .bc-sb-sport--active .bc-sb-sport__name {
        color: var(--sb-primary);
        font-weight: 700;
    }
    
    .bc-sb-sport__count {
        flex-shrink: 0;
        font-size: 9px;
        font-weight: 700;
        color: var(--sb-text-3);
        line-height: 1;
    }
    
    .bc-sb-sport--active .bc-sb-sport__count {
        color: var(--sb-primary);
    }
    
    /* ============================================================
       4. SEARCH INPUT — PREMIUM POLISH — 38px
       ============================================================ */
    
    .bc-sb-mobile-leagues__search {
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 8px 10px;
        background: var(--sb-bg);
        border-bottom: 1px solid var(--sb-border);
    }
    
    .bc-sb-mobile-leagues__search-wrapper {
        position: relative;
        width: 100%;
        height: 38px;
    }
    
    .bc-sb-mobile-leagues__search input {
        width: 100%;
        height: 100%;
        padding: 0 12px 0 38px;
        background: var(--sb-surface);
        border: 1px solid var(--sb-border);
        border-radius: 6px;
        color: var(--sb-text);
        font-size: 13px;
        font-weight: 400;
        font-family: inherit;
        transition: all var(--sb-transition-fast);
        -webkit-appearance: none;
        appearance: none;
    }
    
    .bc-sb-mobile-leagues__search input::placeholder {
        color: var(--sb-text-3);
    }
    
    .bc-sb-mobile-leagues__search input:focus {
        outline: none;
        border-color: var(--sb-primary);
        background: var(--sb-bg);
        box-shadow: var(--sb-focus-ring);
    }
    
    .bc-sb-mobile-leagues__search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: var(--sb-text-3);
        pointer-events: none;
    }
    
    /* ============================================================
       5. LEAGUE BROWSER — CENTER CONTENT
       ============================================================ */
    
    .bc-sb-mobile-leagues {
        display: none;
        flex: 1;
        flex-direction: column;
        background: var(--sb-bg);
        overflow: hidden;
        min-height: 0;
    }
    
    .bc-sb-mobile-leagues__content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* ============================================================
       6. TOP LEAGUES — PREMIUM SECTION — 36px header
       ============================================================ */
    
    .bc-sb-top-leagues {
        padding: 10px 10px 6px;
        background: var(--sb-bg);
        border-bottom: 1px solid var(--sb-border);
    }
    
    .bc-sb-top-leagues__header {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--sb-primary);
        margin-bottom: 8px;
        height: 16px;
    }
    
    .bc-sb-top-leagues__icon {
        font-size: 11px;
        line-height: 1;
    }
    
    /* Section divider */
    .bc-sb-countries__header {
        padding: 8px 10px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--sb-text-3);
        background: var(--sb-bg);
        border-bottom: 1px solid var(--sb-border);
        border-top: 1px solid var(--sb-border);
    }
    
    /* ============================================================
       7. LEAGUE ROWS — COMMERCIAL DENSITY — 38px
       ============================================================ */
    
    .bc-sb-app .bc-sb-league {
        display: grid;
        grid-template-columns: 1fr auto 14px;
        align-items: center;
        gap: 10px;
        height: 36px;
        padding: 0 12px 0 40px;
        background: transparent;
        border: none;
        border-left: 2px solid transparent;
        transition: background 100ms ease, border-color 100ms ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }
    
    .bc-sb-app .bc-sb-league:active {
        background: rgba(255,255,255,.04);
    }
    
    .bc-sb-app .bc-sb-league--active {
        background: rgba(255,179,0,.06);
        border-left-color: var(--sb-primary);
    }
    
    .bc-sb-app .bc-sb-league--active:active {
        background: rgba(255,179,0,.10);
    }
    
    .bc-sb-app .bc-sb-league--active .bc-sb-league__name {
        color: var(--sb-text);
        font-weight: 600;
    }
    
    .bc-sb-league__name {
        font-size: 12px;
        font-weight: 400;
        color: var(--sb-text-2);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.3;
        letter-spacing: -0.01em;
    }
    
    .bc-sb-league__count {
        font-size: 10px;
        font-weight: 500;
        color: var(--sb-text-3);
        font-variant-numeric: tabular-nums;
        min-width: 16px;
        text-align: right;
    }
    
    .bc-sb-league__chevron {
        width: 14px;
        height: 14px;
        color: var(--sb-text-3);
        opacity: 0.4;
        flex-shrink: 0;
    }
    
    /* Country/League sections on mobile */
    /* ============================================================
       8. COUNTRY ROWS — HIERARCHY — 44px
       ============================================================ */
    
    .bc-sb-country {
        border-bottom: 1px solid rgba(255,255,255,.04);
        background: var(--sb-bg);
    }
    
    .bc-sb-country__header {
        display: grid;
        grid-template-columns: 20px 1fr auto 16px;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        height: 44px;
        padding: 0 12px;
        background: transparent;
        cursor: pointer;
        transition: background 120ms ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bc-sb-country__header:active {
        background: var(--sb-surface);
    }
    
    .bc-sb-country--expanded .bc-sb-country__header {
        background: var(--sb-surface);
    }
    
    .bc-sb-country__icon {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        line-height: 1;
        overflow: hidden;
    }
    
    .bc-sb-country__name {
        font-size: 13px;
        font-weight: 500;
        color: var(--sb-text);
        letter-spacing: -0.01em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .bc-sb-country__count {
        font-size: 11px;
        font-weight: 500;
        color: var(--sb-text-3);
        text-align: right;
    }
    
    .bc-sb-country__chevron {
        width: 12px;
        height: 12px;
        color: var(--sb-text-3);
        flex-shrink: 0;
        transform: rotate(90deg);
        transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .bc-sb-country--collapsed .bc-sb-country__chevron {
        transform: rotate(0deg);
    }
    
    /* Leagues container */
    .bc-sb-country__leagues,
    .bc-sb-leagues {
        display: none;
        background: #0C0F15;
        border: 1px solid rgba(255,255,255,.05);
        border-left: none;
        border-right: none;
        padding: 4px 0;
    }
    
    .bc-sb-country--expanded .bc-sb-country__leagues,
    .bc-sb-country--expanded .bc-sb-leagues {
        display: block;
    }
    
    /* ============================================================
       9. DATE FILTERS — COMPACT — 38px
       ============================================================ */
    
    .bc-sb-filters {
        height: 38px;
        min-height: 38px;
        padding: 0 10px;
        gap: 6px;
        background: var(--sb-bg);
        border-bottom: 1px solid var(--sb-border);
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .bc-sb-app .bc-sb-filter {
        height: 26px;
        padding: 0 11px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.04em;
        border-radius: 5px;
        text-transform: uppercase;
        background: transparent;
        border: 1px solid var(--sb-border);
        color: var(--sb-text-2);
        transition: all var(--sb-transition-fast);
    }
    
    .bc-sb-app .bc-sb-filter:active {
        transform: scale(0.96);
    }
    
    .bc-sb-app .bc-sb-filter--active {
        background: var(--sb-primary);
        border-color: var(--sb-primary);
        color: #000000;
    }
    
    /* ============================================================
       10. FIXTURE CARDS — PROFESSIONAL COMPACT MOBILE
       ============================================================ */
    
    .bc-sb-event {
        background: #151A20;
        border: 1px solid rgba(255,255,255,.06);
        border-radius: 8px;
        padding: 0;
        margin: 0 0 8px 0;
        display: flex;
        flex-direction: column;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bc-sb-event:active {
        background: #1B2027;
    }
    
    .bc-sb-event--live {
        border-left: 3px solid #FF4444;
        border-left-color: var(--sb-live, #FF4444);
    }
    
    /* Event header — compact top row */
    .bc-sb-event__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        background: rgba(0,0,0,.15);
        border-bottom: 1px solid rgba(255,255,255,.04);
        min-height: 40px;
        gap: 8px;
    }
    
    .bc-sb-event__header-left {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .bc-sb-event__time {
        font-size: 12px;
        font-weight: 600;
        color: #FFB300;
        font-variant-numeric: tabular-nums;
        flex-shrink: 0;
    }
    
    .bc-sb-event__league {
        font-size: 10px;
        font-weight: 500;
        color: #727C88;
        display: flex;
        align-items: center;
        gap: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .bc-sb-event__live-badge {
        display: inline-flex;
        align-items: center;
        font-size: 9px;
        gap: 3px;
        padding: 2px 6px;
        background: rgba(255,68,68,.15);
        border-radius: 3px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #FF4444;
        flex-shrink: 0;
    }
    
    .bc-sb-event__live-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #FF4444;
        animation: pulse 1.5s ease-in-out infinite;
    }
    
    /* More markets button — yellow accent */
    .bc-sb-event__more-markets {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 4px 8px;
        background: transparent;
        border: none;
        border-radius: 4px;
        color: #FFB300;
        font-size: 10px;
        font-weight: 500;
        cursor: pointer;
        transition: background 120ms;
        flex-shrink: 0;
    }
    
    .bc-sb-event__more-markets:active {
        background: rgba(255,179,0,.1);
    }
    
    .bc-sb-event__more-icon {
        width: 12px;
        height: 12px;
        stroke-width: 1.5;
    }
    
    .bc-sb-event__more-text {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.02em;
    }
    
    .bc-sb-event__chevron {
        width: 12px;
        height: 12px;
        stroke-width: 2;
        opacity: 0.7;
    }
    
    /* Content area */
    .bc-sb-event__content {
        display: flex;
        flex-direction: column;
        grid-template-columns: none; /* Override desktop grid */
        gap: 10px;
        padding: 10px 12px 12px 12px;
        flex: 1;
    }
    
    /* Teams row with favorite */
    .bc-sb-event__teams-row {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* Favorite button */
    .bc-sb-event__favorite {
        width: 18px;
        height: 18px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        margin-top: 2px;
        color: #3A3A3A;
        transition: color 120ms;
    }
    
    .bc-sb-event__favorite:active {
        transform: scale(0.9);
    }
    
    .bc-sb-event__favorite--active {
        color: #FFB300;
    }
    
    .bc-sb-event__favorite-icon {
        width: 16px;
        height: 16px;
        stroke-width: 1.5;
    }
    
    /* Teams section */
    .bc-sb-event__teams {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }
    
    .bc-sb-event__team {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .bc-sb-event__team-name {
        flex: 1;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.3;
        color: #F5F7FA;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .bc-sb-event__team-score {
        font-size: 14px;
        font-weight: 700;
        color: #FFB300;
        min-width: 24px;
        text-align: right;
        flex-shrink: 0;
    }
    
    /* ============================================================
       11. ODDS BUTTONS — COMMERCIAL SPORTSBOOK STYLE
       ============================================================ */
    
    .bc-sb-event__odds {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        width: 100%; /* Force full width */
    }
    
    .bc-sb-app .bc-sb-odd {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 46px;
        padding: 6px 4px;
        background: #3A3A3A;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 7px;
        transition: all 120ms;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        gap: 2px;
    }
    
    .bc-sb-app .bc-sb-odd:active {
        transform: scale(0.98);
        background: #424242;
    }
    
    .bc-sb-app .bc-sb-odd--selected {
        background: #FFB300;
        border-color: #FFB300;
        box-shadow: 0 2px 8px rgba(255,179,0,.3);
    }
    
    .bc-sb-odd__label {
        font-size: 9px;
        font-weight: 500;
        letter-spacing: 0.02em;
        color: #AAB3BE;
        text-transform: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
    }
    
    .bc-sb-app .bc-sb-odd--selected .bc-sb-odd__label {
        color: #000000;
    }
    
    .bc-sb-odd__value {
        font-size: 15px;
        font-weight: 700;
        color: #FFB300;
        line-height: 1.1;
        font-variant-numeric: tabular-nums;
    }
    
    .bc-sb-app .bc-sb-odd--selected .bc-sb-odd__value {
        color: #000000;
    }
    
    /* ============================================================
       12. DATE HEADERS — MOBILE STYLING
       ============================================================ */
    
    .bc-sb-date-header {
        position: sticky;
        top: 0;
        z-index: 10;
        min-height: 38px;
        padding: 10px 10px;
        margin: 0;
        background: #0C0F15;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    
    .bc-sb-date-header__label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: #AAB3BE;
    }
    
    .bc-sb-date-header__badge {
        padding: 3px 8px;
        background: rgba(255,179,0,.15);
        border: 1px solid rgba(255,179,0,.3);
        border-radius: 4px;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #FFB300;
    }
    
    /* ============================================================
       13. EVENTS LIST — PROPER SPACING
       ============================================================ */
    
    .bc-sb-events__list {
        padding: 10px 10px 20px 10px;
        background: #080B10;
    }
    
    .bc-sb-events__header {
        padding: 12px 10px;
        background: #0C0F15;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    
    .bc-sb-events__title {
        font-size: 14px;
        font-weight: 600;
        color: #F5F7FA;
    }
    
    .bc-sb-events__count {
        font-size: 11px;
        font-weight: 500;
        color: #727C88;
    }
    
    /* ============================================================
       14. EMPTY STATE — MINIMAL
       ============================================================ */
    
    .bc-sb-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 20px;
        gap: 10px;
        min-height: 200px;
    }
    
    .bc-sb-empty__icon {
        width: 36px;
        height: 36px;
        color: var(--sb-text-3);
        opacity: 0.5;
    }
    
    .bc-sb-empty__title {
        font-size: 12px;
        font-weight: 600;
        color: var(--sb-text-2);
        text-align: center;
    }
    
    .bc-sb-empty__text {
        font-size: 11px;
        font-weight: 400;
        color: var(--sb-text-3);
        text-align: center;
        max-width: 220px;
        line-height: 1.4;
    }
    
    /* ============================================================
       13. BOTTOM NAVIGATION — FIXED — 58px
       ============================================================ */
    
    .bc-sb-mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 58px;
        height: calc(58px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: #0C1016;
        border-top: 1px solid var(--sb-border-strong);
        display: flex;
        align-items: flex-start;
        justify-content: space-around;
        z-index: 100;
        flex-shrink: 0;
    }
    
    .bc-sb-mobile-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        height: 58px;
        background: none;
        border: none;
        color: var(--sb-text-3);
        cursor: pointer;
        transition: color var(--sb-transition-fast);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }
    
    .bc-sb-mobile-nav__item:active {
        transform: scale(0.96);
    }
    
    .bc-sb-mobile-nav__item--active {
        color: var(--sb-primary);
    }
    
    .bc-sb-mobile-nav__icon {
        width: 22px;
        height: 22px;
        margin-bottom: 1px;
    }
    
    .bc-sb-mobile-nav__label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.01em;
    }
    
    .bc-sb-mobile-nav__badge {
        position: absolute;
        top: 8px;
        right: 50%;
        transform: translateX(14px);
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        background: var(--sb-live);
        color: #FFFFFF;
        font-size: 9px;
        font-weight: 700;
        border-radius: 8px;
        border: 2px solid #0C1016;
    }
    
    /* Add spacing for bottom nav */
    .bc-sb-app {
        padding-bottom: 58px;
        padding-bottom: calc(58px + env(safe-area-inset-bottom));
    }
    
    /* ============================================================
       14. EVENTS PANEL — MOBILE
       ============================================================ */
    
    .bc-sb-events-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: var(--sb-bg);
    }
    
    .bc-sb-events {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Events header with back button */
    .bc-sb-events-header {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 10px;
        background: var(--sb-surface);
        border-bottom: 1px solid var(--sb-border);
        min-height: 46px;
    }
    
    .bc-sb-events-header__back {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: transparent;
        border: 1px solid var(--sb-border);
        border-radius: 6px;
        color: var(--sb-text);
        cursor: pointer;
        transition: all var(--sb-transition-fast);
    }
    
    .bc-sb-events-header__back:active {
        transform: scale(0.95);
        background: var(--sb-surface-2);
    }
    
    .bc-sb-events-header__back svg {
        width: 18px;
        height: 18px;
    }
    
    .bc-sb-events-header__info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    
    .bc-sb-events-header__title {
        font-size: 14px;
        font-weight: 700;
        color: var(--sb-text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .bc-sb-events-header__count {
        font-size: 11px;
        font-weight: 500;
        color: var(--sb-text-3);
    }
    
    /* ============================================================
       15. MICRO-INTERACTIONS & POLISH
       ============================================================ */
    
    /* Smooth tap feedback */
    .bc-sb-sport:active,
    .bc-sb-league:active,
    .bc-sb-country__header:active,
    .bc-sb-odd:active,
    .bc-sb-filter:active,
    .bc-sb-mode:active {
        opacity: 0.9;
    }
    
    /* Remove default mobile highlights */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    /* Prevent text selection on interactive elements */
    .bc-sb-sport,
    .bc-sb-league,
    .bc-sb-country__header,
    .bc-sb-odd,
    .bc-sb-filter,
    .bc-sb-mode,
    .bc-sb-mobile-nav__item {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* ============================================================
       16. TYPOGRAPHY SCALE
       ============================================================ */
    
    /* Ensure consistent text rendering */
    .bc-sb-app {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .bc-sb-sport__bottom {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        min-height: 14px;
    }
    
    .bc-sb-sport__name {
        flex: 1;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0;
        color: var(--sb-text-2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        line-height: 1.2;
    }
    
    .bc-sb-sport--active .bc-sb-sport__name {
        color: var(--sb-primary);
        font-weight: 700;
    }
    
    .bc-sb-sport__count {
        flex-shrink: 0;
        font-size: 9px;
        font-weight: 700;
        color: var(--sb-text-3);
        line-height: 1;
    }
    
    .bc-sb-sport--active .bc-sb-sport__count {
        color: var(--sb-primary);
    }
    
    /* ============================================================
       COMPACT DATE FILTERS — 40-44px
       ============================================================ */
    
    .bc-sb-filters {
        height: 40px;
        min-height: 40px;
        padding: 0 12px;
        gap: 6px;
        background: var(--sb-bg);
        border-bottom: 1px solid var(--sb-border);
    }
    
    .bc-sb-app .bc-sb-filter {
        height: 28px;
        padding: 0 12px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.4px;
        border-radius: 5px;
    }
    
    .bc-sb-app .bc-sb-filter--active {
        background: var(--sb-primary);
        border-color: var(--sb-primary);
        color: #000000;
    }
    
    /* ============================================================
       DENSE LEAGUE BROWSER — BETCONSTRUCT COMMERCIAL
       ============================================================ */
    
    .bc-sb-leagues-panel {
        background: var(--sb-bg);
    }
    
    .bc-sb-top-leagues {
        padding: 12px 12px 8px;
        background: var(--sb-bg);
        border-bottom: 1px solid var(--sb-border);
    }
    
    .bc-sb-top-leagues__header {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: var(--sb-text-3);
        margin-bottom: 10px;
    }
    
    .bc-sb-top-leagues__icon {
        font-size: 12px;
    }
    
    .bc-sb-app .bc-sb-league {
        display: grid;
        grid-template-columns: 1fr auto 14px;
        align-items: center;
        gap: 10px;
        height: 44px;
        padding: 0 12px 0 40px;
        background: transparent;
        border: none;
        border-left: 2px solid transparent;
        transition: background 100ms ease, border-color 100ms ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bc-sb-app .bc-sb-league:active {
        background: rgba(255,255,255,.04);
    }
    
    .bc-sb-app .bc-sb-league--active {
        background: rgba(255,179,0,.06);
        border-left-color: var(--sb-primary);
    }
    
    .bc-sb-league__favorite {
        width: 16px;
        height: 16px;
        color: var(--sb-text-3);
        flex-shrink: 0;
    }
    
    .bc-sb-league__name {
        font-size: 13px;
        font-weight: 400;
        color: var(--sb-text-2);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.3;
    }
    
    .bc-sb-league__count {
        font-size: 11px;
        font-weight: 500;
        color: var(--sb-text-3);
        font-variant-numeric: tabular-nums;
        min-width: 18px;
        text-align: right;
    }
    
    .bc-sb-league__chevron {
        width: 14px;
        height: 14px;
        color: var(--sb-text-3);
        opacity: 0.4;
        flex-shrink: 0;
    }
    
    /* Country groups - BetConstruct compact style */
    .bc-sb-country {
        border-bottom: 1px solid var(--sb-border);
    }
    
    .bc-sb-country__header {
        display: grid;
        grid-template-columns: 20px 1fr auto 14px;
        align-items: center;
        gap: 12px;
        height: 44px;
        padding: 0 12px;
        background: var(--sb-surface);
        cursor: pointer;
        transition: background 120ms ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bc-sb-country__header:active {
        background: var(--sb-surface-2);
    }
    
    .bc-sb-country__chevron,
    .bc-sb-country__toggle {
        width: 14px;
        height: 14px;
        color: var(--sb-text-3);
        opacity: 0.7;
        flex-shrink: 0;
        transition: transform 150ms ease;
    }
    
    .bc-sb-country--expanded .bc-sb-country__chevron,
    .bc-sb-country--expanded .bc-sb-country__toggle {
        transform: rotate(90deg);
    }
    
    .bc-sb-country__flag,
    .bc-sb-country__icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .bc-sb-country__name {
        font-size: 13px;
        font-weight: 500;
        color: var(--sb-text);
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .bc-sb-country__count {
        font-size: 11px;
        font-weight: 500;
        color: var(--sb-text-3);
        font-variant-numeric: tabular-nums;
        min-width: 20px;
        text-align: right;
    }
    
    .bc-sb-country__leagues,
    .bc-sb-leagues {
        display: none;
        background: rgba(0,0,0,.3);
        border-top: 1px solid rgba(255,255,255,.04);
        border-bottom: 1px solid rgba(255,255,255,.04);
        padding: 6px 0;
    }
    
    .bc-sb-country--expanded .bc-sb-country__leagues,
    .bc-sb-country--expanded .bc-sb-leagues {
        display: block;
    }
    
    /* ============================================================
       COMPACT FIXTURE CARDS — 110-135px TARGET — BETCONSTRUCT DENSITY
       ============================================================ */
    
    .bc-sb-event {
        padding: 12px;
        gap: 8px;
        background: var(--sb-bg);
        border-bottom: 1px solid var(--sb-border);
        min-height: 110px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bc-sb-event:active {
        background: var(--sb-surface);
    }
    
    .bc-sb-event--live {
        border-left: 3px solid var(--sb-live);
        padding-left: 9px;
    }
    
    /* Event header - compact */
    .bc-sb-event__header {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 18px;
        margin-bottom: 4px;
    }
    
    .bc-sb-event__favorite {
        width: 14px;
        height: 14px;
        color: var(--sb-text-3);
        flex-shrink: 0;
    }
    
    .bc-sb-event__time {
        font-size: 11px;
        font-weight: 600;
        color: var(--sb-text-3);
    }
    
    .bc-sb-event__league {
        font-size: 11px;
        gap: 4px;
        color: var(--sb-text-3);
        font-weight: 500;
    }
    
    .bc-sb-event__league-flag {
        font-size: 12px;
    }
    
    .bc-sb-event__live-badge {
        display: inline-flex;
        align-items: center;
        font-size: 9px;
        gap: 4px;
        padding: 3px 8px;
        background: var(--sb-live-soft);
        border-radius: 4px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: var(--sb-live);
    }
    
    .bc-sb-event__live-dot {
        width: 5px;
        height: 5px;
    }
    
    /* Teams - compact with better spacing */
    .bc-sb-event__teams {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin: 6px 0 10px;
    }
    
    .bc-sb-event__team {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .bc-sb-event__team-name {
        flex: 1;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
        color: var(--sb-text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .bc-sb-event__team-score {
        font-size: 14px;
        font-weight: 700;
        color: var(--sb-text);
        min-width: 24px;
        text-align: right;
    }
    
    /* Odds - optimized for 390px width, proper touch targets */
    .bc-sb-event__odds {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 8px;
    }
    
    .bc-sb-app .bc-sb-odd {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 48px;
        min-height: 44px;
        gap: 2px;
        padding: 6px 4px;
        background: var(--sb-surface);
        border: 1px solid var(--sb-border);
        border-radius: 6px;
        transition: all 0.15s ease;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bc-sb-app .bc-sb-odd:active {
        transform: scale(0.97);
    }
    
    .bc-sb-app .bc-sb-odd--selected {
        background: var(--sb-primary);
        border-color: var(--sb-primary);
    }
    
    .bc-sb-odd__label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.3px;
        color: var(--sb-text-2);
        text-transform: uppercase;
    }
    
    .bc-sb-app .bc-sb-odd--selected .bc-sb-odd__label {
        color: #000000;
    }
    
    .bc-sb-odd__value {
        font-size: 15px;
        font-weight: 700;
        color: var(--sb-primary);
        font-variant-numeric: tabular-nums;
    }
    
    .bc-sb-app .bc-sb-odd--selected .bc-sb-odd__value {
        color: #000000;
    }
    
    /* ============================================================
       LEAGUE GROUP HEADER — COMPACT
       ============================================================ */
    
    .bc-sb-league-group {
        border-bottom: 1px solid var(--sb-border);
        background: var(--sb-bg);
    }
    
    .bc-sb-league-group__header {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 36px;
        padding: 0 12px;
        background: var(--sb-surface);
    }
    
    .bc-sb-league-group__favorite {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }
    
    .bc-sb-league-group__flag {
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .bc-sb-league-group__name {
        flex: 1;
        font-size: 11px;
        font-weight: 600;
        color: var(--sb-text-2);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .bc-sb-league-group__market-count {
        font-size: 10px;
        font-weight: 600;
        color: var(--sb-text-3);
    }
    
    .bc-sb-league-group__more {
        display: none; /* Hide on mobile */
    }
    
    .bc-sb-league-group__stats {
        width: 14px;
        height: 14px;
        color: var(--sb-text-3);
        flex-shrink: 0;
    }
    
    /* ============================================================
       SINGLE COLUMN LAYOUT
       ============================================================ */
    
    .bc-sb-layout {
        flex-direction: column;
    }
    
    .bc-sb-sidebar,
    .bc-sb-betslip {
        display: none;
    }
    
    .bc-sb-content {
        flex: 1;
        width: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* ============================================================
       FIXED BOTTOM NAVIGATION — 56-60px + SAFE AREA
       ============================================================ */
    
    .bc-sb-mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .bc-sb-mobile-nav__btn {
        gap: 3px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.2px;
        text-transform: uppercase;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .bc-sb-mobile-nav__btn:active {
        transform: scale(0.95);
    }
    
    .bc-sb-mobile-nav__icon {
        width: 22px;
        height: 22px;
    }
    
    .bc-sb-mobile-nav__badge {
        top: 6px;
        right: calc(50% - 22px);
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    /* Content padding for bottom nav */
    .bc-sb-content {
        padding-bottom: calc(var(--sb-bottom-nav) + env(safe-area-inset-bottom));
    }
    
    /* ============================================================
       MOBILE FULLSCREEN BETSLIP DRAWER
       ============================================================ */
    
    .bc-sb-mobile-betslip {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--sb-bg);
        z-index: 200;
        display: none;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bc-sb-mobile-betslip--open {
        display: flex;
        transform: translateX(0);
    }
    
    .bc-sb-mobile-betslip__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 56px;
        padding: 0 12px;
        background: var(--sb-surface);
        border-bottom: 1px solid var(--sb-border);
        flex-shrink: 0;
    }
    
    .bc-sb-mobile-betslip__title {
        font-size: 18px;
        font-weight: 700;
        color: var(--sb-text);
    }
    
    .bc-sb-app .bc-sb-mobile-betslip__close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--sb-surface-2);
        border: none;
        border-radius: var(--sb-radius-md);
        color: var(--sb-text);
        cursor: pointer;
        transition: all 0.15s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bc-sb-app .bc-sb-mobile-betslip__close:active {
        transform: scale(0.95);
        background: var(--sb-surface);
    }
    
    .bc-sb-mobile-betslip__content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px 12px calc(var(--sb-bottom-nav) + env(safe-area-inset-bottom) + 16px);
    }
    
    /* ============================================================
       BACK BUTTON — COMPACT MOBILE STYLE
       ============================================================ */
    
    .bc-sb-app .bc-sb-back {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 6px 12px 6px 6px;
        background: transparent;
        border: none;
        color: var(--sb-primary);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bc-sb-app .bc-sb-back:active {
        transform: translateX(-2px);
        opacity: 0.7;
    }
    
    .bc-sb-back svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    /* ============================================================
       LOADING STATES — SUBTLE SKELETONS
       ============================================================ */
    
    .bc-sb-skeleton {
        background: linear-gradient(
            90deg,
            var(--sb-surface) 0%,
            var(--sb-surface-2) 50%,
            var(--sb-surface) 100%
        );
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s ease-in-out infinite;
        border-radius: 6px;
    }
    
    @keyframes skeleton-loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    
    .bc-sb-skeleton--sport {
        width: 78px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .bc-sb-skeleton--league {
        height: 46px;
        margin-bottom: 1px;
    }
    
    .bc-sb-skeleton--fixture {
        height: 120px;
        margin-bottom: 1px;
    }
    
    .bc-sb-skeleton--odd {
        height: 48px;
    }
    
    /* ============================================================
       EMPTY STATES — BETTER MESSAGING
       ============================================================ */
    
    .bc-sb-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 48px 20px;
        text-align: center;
        gap: 12px;
        min-height: 280px;
    }
    
    .bc-sb-empty__icon {
        width: 56px;
        height: 56px;
        color: var(--sb-text-3);
        opacity: 0.4;
    }
    
    .bc-sb-empty__title {
        font-size: 17px;
        font-weight: 700;
        color: var(--sb-text-2);
    }
    
    .bc-sb-empty__text {
        font-size: 14px;
        color: var(--sb-text-3);
        max-width: 280px;
        line-height: 1.5;
    }
    
    .bc-sb-empty__action {
        margin-top: 12px;
        padding: 12px 24px;
        background: var(--sb-surface);
        border: 1px solid var(--sb-border);
        border-radius: var(--sb-radius-md);
        color: var(--sb-text);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .bc-sb-empty__action:active {
        transform: scale(0.97);
        background: var(--sb-surface-2);
    }
    
    /* ============================================================
       MOBILE TYPOGRAPHY SCALE
       ============================================================ */
    
    .bc-sb-events-header__title {
        font-size: 16px;
    }
    
    .bc-sb-events-header__count {
        font-size: 12px;
    }
    
    /* Empty state on mobile */
    .bc-sb-empty {
        padding: 40px 20px;
        gap: 12px;
    }
    
    .bc-sb-empty__icon {
        width: 40px;
        height: 40px;
    }
    
    .bc-sb-empty__title {
        font-size: 13px;
    }
    
    .bc-sb-empty__text {
        font-size: 11px;
        max-width: 240px;
    }
}

/* ================================================================
   PERFORMANCE OPTIMIZATIONS
   ================================================================ */

/* GPU acceleration for smooth animations */
.bc-sb-sport,
.bc-sb-filter,
.bc-sb-odd,
.bc-sb-league,
.bc-sb-country__header,
.bc-sb-place-btn {
    will-change: transform;
    transform: translateZ(0);
}

/* Prevent layout shifts */
.bc-sb-event__odds,
.bc-sb-event__teams {
    contain: layout;
}

/* Smooth scrolling areas */
.bc-sb-sports-bar,
.bc-sb-leagues-panel,
.bc-sb-events,
.bc-sb-betslip__content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ================================================================
   LOADING STATES
   ================================================================ */

.bc-sb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sb-space-6);
}

.bc-sb-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--sb-border);
    border-top-color: var(--sb-primary);
    border-radius: 50%;
    animation: sb-spin 0.8s linear infinite;
}

@keyframes sb-spin {
    to { transform: rotate(360deg); }
}

/* Skeleton rows for events */
.bc-sb-event-skeleton {
    height: 120px;
    background: linear-gradient(90deg, var(--sb-surface) 25%, var(--sb-surface-2) 50%, var(--sb-surface) 75%);
    background-size: 200% 100%;
    border-bottom: 1px solid var(--sb-border);
    animation: sb-shimmer 1.5s ease-in-out infinite;
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

/* Reduced motion is handled by the consolidated @media (prefers-reduced-motion) block near the end of file */

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --sb-border: rgba(255,255,255,.2);
        --sb-border-strong: rgba(255,255,255,.4);
    }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {
    .bc-sb-sidebar,
    .bc-sb-betslip,
    .bc-sb-topbar,
    .bc-sb-mobile-nav,
    .bc-sb-sports-bar {
        display: none;
    }
    
    .bc-sb-content {
        width: 100%;
        height: auto;
    }
    
    .bc-sb-event {
        page-break-inside: avoid;
    }
}


/* ================================================================
   TABLET RESPONSIVE — 768px to 1023px
   Spec compliance: #32 (Responsive Tablet)
   ================================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    
    /* Narrower sidebar and betslip */
    .bc-sb-sidebar {
        width: 220px;
        min-width: 220px;
    }
    
    .bc-sb-betslip {
        width: 280px;
        min-width: 280px;
    }
    
    /* Hide search on smaller tablets */
    .bc-sb-topbar__search {
        display: none;
    }
    
    /* If too narrow, collapse betslip into drawer */
    @media (max-width: 900px) {
        .bc-sb-betslip {
            position: fixed;
            top: 0;
            right: -100%;
            width: 320px;
            height: 100%;
            z-index: 100;
            transition: right 300ms cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .bc-sb-betslip--open {
            right: 0;
            box-shadow: -4px 0 24px rgba(0,0,0,0.3);
        }
    }
    
    /* Compact sport tiles */
    .bc-sb-sport {
        min-width: 64px;
        font-size: 10px;
    }
    
    /* Slightly smaller events */
    .bc-sb-event {
        padding: 12px;
    }
    
    .bc-sb-event__team-name {
        font-size: 13px;
    }
}

/* ================================================================
   DESKTOP REFINEMENTS � >= 1024px
   Spec compliance: #6-13 (Desktop Components)
   ================================================================ */

@media (min-width: 1024px) {
    
    /* Ensure 3-column layout */
    .bc-sb-layout {
        display: grid;
        grid-template-columns: var(--sb-sidebar) minmax(0, 1fr) var(--sb-betslip);
    }
    
    /* Show sidebar and betslip on desktop */
    .bc-sb-sidebar {
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
    }
    
    .bc-sb-betslip {
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
    }
    
    /* Desktop event cards - maintain mobile structure but adapt layout */
    .bc-sb-event {
        border-bottom: 1px solid var(--sb-border);
        background: var(--sb-bg);
        transition: background var(--sb-transition-fast);
    }
    
    .bc-sb-event:hover {
        background: var(--sb-surface);
    }
    
    /* Desktop: Hide header elements that are redundant */
    .bc-sb-event__header {
        padding: 8px 12px 0 12px;
    }
    
    .bc-sb-event__league,
    .bc-sb-event__more-markets {
        display: none; /* Hide league name and more markets on desktop */
    }
    
    .bc-sb-event__time {
        font-size: 11px;
        color: var(--sb-text-3);
        font-weight: 500;
    }
    
    /* Desktop: Horizontal grid layout for content */
    .bc-sb-event__content {
        display: grid;
        grid-template-columns: 1fr auto auto auto;
        gap: 10px;
        align-items: center;
        padding: 8px 12px 12px 12px;
    }
    
    /* Desktop: Compact teams-row */
    .bc-sb-event__teams-row {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }
    
    .bc-sb-event__favorite {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    
    .bc-sb-event__teams {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }
    
    .bc-sb-event__team-name {
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Desktop: Horizontal odds buttons */
    .bc-sb-event__odds {
        display: contents; /* Make children participate in parent grid */
    }
    
    .bc-sb-odd {
        width: 68px;
        height: 46px;
        flex-direction: column;
        gap: 2px;
        background: var(--sb-surface-2);
        border: 1px solid var(--sb-border);
        border-radius: var(--sb-radius-sm);
        transition: all var(--sb-transition-fast);
    }
    
    .bc-sb-odd:hover {
        background: var(--sb-surface-3);
        border-color: var(--sb-border-hover);
    }
    
    .bc-sb-odd--selected {
        background: var(--sb-primary);
        border-color: var(--sb-primary);
    }
    
    .bc-sb-odd__label {
        display: none; /* Hide labels on desktop for compactness */
    }
    
    .bc-sb-odd__value {
        font-size: 14px;
        font-weight: 700;
        color: var(--sb-primary);
    }
    
    .bc-sb-odd__label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--sb-text-3);
    }
    
    .bc-sb-odd--selected .bc-sb-odd__label {
        color: var(--sb-on-primary);
    }
    
    .bc-sb-odd__value {
        font-size: 14px;
        font-weight: 700;
        color: var(--sb-primary);
        font-variant-numeric: tabular-nums;
    }
    
    .bc-sb-odd--selected .bc-sb-odd__value {
        color: var(--sb-on-primary);
    }
    
    /* League group header - desktop */
    .bc-sb-league-group__header {
        height: 46px;
        padding: 0 var(--sb-space-4);
    }

    /* Desktop league rows */
    .bc-sb-league {
        height: 40px;
    }
    
    /* Hide mobile nav */
    .bc-sb-mobile-nav {
        display: none;
    }
    
    /* Remove mobile padding */
    .bc-sb-app {
        padding-bottom: 0;
    }
    
    .bc-sb-content {
        padding-bottom: 0;
    }
}

/* ================================================================
   LARGE DESKTOP � >= 1440px
   Spec compliance: #33 (Large Desktop)
   ================================================================ */

@media (min-width: 1440px) {
    
    /* Slightly more breathing room */
    .bc-sb-event {
        padding: var(--sb-space-3) var(--sb-space-4);
    }
    
    .bc-sb-league-group__header {
        padding: 0 var(--sb-space-5);
    }
    
    /* Wider odds for better click targets */
    .bc-sb-odd {
        min-width: 76px;
    }
}

/* ================================================================
   REDUCED MOTION SUPPORT
   Spec compliance: #38 (Accessibility)
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
    .bc-sb-app * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bc-sb-live-dot {
        animation: none;
    }
}

/* ================================================================
   LIVE MODE SPORT SELECTOR
   ================================================================ */

.bc-sb-live-sports {
    padding: 16px 20px;
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
}

.bc-sb-live-sports__scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bc-sb-live-sports__scroll::-webkit-scrollbar {
    display: none;
}

.bc-sb-live-sport {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-md);
    cursor: pointer;
    transition: all var(--sb-transition-fast);
    min-width: 100px;
    flex-shrink: 0;
}

.bc-sb-live-sport:hover {
    background: var(--sb-surface-3);
    border-color: var(--sb-border-strong);
}

.bc-sb-live-sport--active {
    background: var(--sb-live-soft);
    border-color: var(--sb-live);
}

.bc-sb-live-sport__icon {
    font-size: 24px;
    line-height: 1;
}

.bc-sb-live-sport__name {
    font-size: 12px;
    font-weight: 500;
    color: var(--sb-text-2);
    white-space: nowrap;
}

.bc-sb-live-sport--active .bc-sb-live-sport__name {
    color: var(--sb-live);
}

.bc-sb-live-sport__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background: var(--sb-surface-3);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--sb-text-3);
}

.bc-sb-live-sport--active .bc-sb-live-sport__count {
    background: var(--sb-live);
    color: #FFFFFF;
}

@media (max-width: 767px) {
    .bc-sb-live-sports {
        padding: 12px 16px;
    }
    
    .bc-sb-live-sport {
        min-width: 90px;
        padding: 10px 12px;
    }
}

/* ================================================================
   15-DAY DATE NAVIGATION — PREMATCH COVERAGE
   ================================================================ */

.sb-date-selector {
    position: relative;
    background: var(--sb-surface);
    border-bottom: 1px solid var(--sb-border);
    padding: 12px 0;
    overflow: hidden;
}

.sb-date-selector-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.sb-date-selector-inner::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.sb-date-btn {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 80px;
    padding: 10px 12px;
    background: var(--sb-surface-2);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-sm);
    color: var(--sb-text-2);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--sb-font-family);
    cursor: pointer;
    transition: all var(--sb-transition-base);
    user-select: none;
}

.sb-date-btn:hover:not(:disabled) {
    background: var(--sb-hover);
    border-color: var(--sb-border-strong);
    transform: translateY(-1px);
}

.sb-date-btn--active {
    background: var(--sb-primary);
    border-color: var(--sb-primary);
    color: var(--sb-on-primary);
    font-weight: 600;
}

.sb-date-btn--active .sb-date-btn-count {
    background: rgba(0, 0, 0, 0.2);
    color: var(--sb-on-primary);
}

.sb-date-btn:disabled,
.sb-date-btn--empty {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.sb-date-btn-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.sb-date-btn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 18px;
    padding: 0 6px;
    background: var(--sb-surface-3);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    color: var(--sb-text-3);
}

.sb-date-btn:hover:not(:disabled) .sb-date-btn-count {
    background: var(--sb-primary-soft);
    color: var(--sb-primary);
}

/* No events message */
.sb-no-events {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--sb-text-3);
}

.sb-no-events-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.sb-no-events-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--sb-text-2);
    margin-bottom: 8px;
}

.sb-no-events-message {
    font-size: 13px;
    color: var(--sb-text-3);
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .sb-date-selector {
        padding: 8px 0;
    }
    
    .sb-date-selector-inner {
        padding: 0 12px;
        gap: 6px;
    }
    
    .sb-date-btn {
        min-width: 70px;
        padding: 8px 10px;
    }
    
    .sb-date-btn-label {
        font-size: 10px;
    }
    
    .sb-date-btn-count {
        min-width: 24px;
        height: 16px;
        font-size: 9px;
    }
}

/* Desktop: Wider date buttons with more spacing */
@media (min-width: 768px) {
    .sb-date-selector-inner {
        padding: 0 24px;
        gap: 10px;
    }
    
    .sb-date-btn {
        min-width: 90px;
        padding: 12px 16px;
    }
    
    .sb-date-btn-label {
        font-size: 12px;
    }
}

