/**
 * ================================================================
 * SPORTSBOOK — PREMIUM UI/UX (BetConstruct Style)
 * ================================================================
 * Complete visual overhaul for professional sportsbook experience
 * Maintains existing functionality, improves visual hierarchy
 * Target: Mobile-first, scales to desktop
 * ================================================================
 */

:root {
    /* Premium color palette */
    --rp-bg: #0F1115;
    --rp-elevated: #151B22;
    --rp-surface: #1A1D24;
    --rp-border: rgba(255, 255, 255, 0.06);
    --rp-border-strong: rgba(255, 255, 255, 0.12);
    
    --rp-primary: #FFB800;
    --rp-primary-hover: #FFC933;
    --rp-primary-rgb: 255, 184, 0;
    
    --rp-text: #F5F7FA;
    --rp-text-secondary: #858C99;
    --rp-text-muted: #5E6672;
    
    --rp-success: #10B981;
    --rp-live: #EF4444;
    
    /* Spacing scale */
    --rp-space-xs: 4px;
    --rp-space-sm: 8px;
    --rp-space-md: 12px;
    --rp-space-lg: 16px;
    --rp-space-xl: 20px;
    --rp-space-2xl: 24px;
    
    /* Component heights */
    --rp-header-h: 48px;
    --rp-search-h: 44px;
    --rp-sport-h: 80px;
    --rp-country-h: 60px;
    --rp-league-h: 48px;
    --rp-mobile-nav-h: 60px;
    
    /* Radius */
    --rp-radius-sm: 8px;
    --rp-radius-md: 12px;
    --rp-radius-lg: 16px;
    --rp-radius-full: 999px;
    
    /* Transitions */
    --rp-transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
    --rp-transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   APP SHELL
   ================================================================ */

.bc-sb-app {
    background: var(--rp-bg);
    color: var(--rp-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bc-sb-app * {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.10) transparent !important;
}

.bc-sb-app ::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
}

.bc-sb-app ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.10) !important;
    border-radius: 2px !important;
}

.bc-sb-app ::-webkit-scrollbar-track {
    background: transparent !important;
}

/* ================================================================
   TOP HEADER — PREMATCH / LIVE MODES
   ================================================================ */

.bc-sb-topbar {
    height: var(--rp-header-h);
    background: var(--rp-elevated);
    border-bottom: 1px solid var(--rp-border);
    padding: 0 var(--rp-space-lg);
}

.bc-sb-mode {
    position: relative;
    height: 100%;
    padding: 0 var(--rp-space-lg);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--rp-text-secondary);
    border-bottom: 3px solid transparent;
    transition: color var(--rp-transition-fast);
}

.bc-sb-mode:hover {
    color: var(--rp-text);
}

.bc-sb-mode--active {
    color: var(--rp-primary);
    border-bottom-color: var(--rp-primary);
}

.bc-sb-mode--live.bc-sb-mode--active {
    color: var(--rp-live);
    border-bottom-color: var(--rp-live);
}

.bc-sb-mode__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--rp-radius-full);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.bc-sb-mode--active .bc-sb-mode__count {
    background: rgba(var(--rp-primary-rgb), 0.15);
    color: var(--rp-primary);
}

.bc-sb-mode--live.bc-sb-mode--active .bc-sb-mode__count {
    background: rgba(239, 68, 68, 0.15);
    color: var(--rp-live);
}

/* ================================================================
   SEARCH BAR — Prominent & Professional
   ================================================================ */

.bc-sb-search-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.bc-sb-search {
    width: 100%;
    height: var(--rp-search-h);
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-md);
    padding: 0 var(--rp-space-lg) 0 44px;
    color: var(--rp-text);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--rp-transition-fast);
}

.bc-sb-search::placeholder {
    color: var(--rp-text-secondary);
    font-weight: 400;
}

.bc-sb-search:focus {
    outline: none;
    border-color: var(--rp-primary);
    background: rgba(255, 184, 0, 0.02);
}

.bc-sb-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--rp-text-secondary);
    pointer-events: none;
}

/* ================================================================
   SPORTS NAVIGATION — Horizontal Scroll with Icons
   ================================================================ */

.bc-sb-sports-nav {
    display: flex;
    gap: var(--rp-space-sm);
    padding: var(--rp-space-lg);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bc-sb-sports-nav::-webkit-scrollbar {
    display: none;
}

.bc-sb-sport {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--rp-space-sm);
    min-width: 84px;
    padding: var(--rp-space-md);
    background: var(--rp-elevated);
    border: 2px solid var(--rp-border);
    border-radius: var(--rp-radius-md);
    cursor: pointer;
    transition: all var(--rp-transition-fast);
}

.bc-sb-sport:hover {
    background: var(--rp-surface);
    border-color: var(--rp-border-strong);
    transform: translateY(-2px);
}

.bc-sb-sport:active {
    transform: translateY(0);
}

.bc-sb-sport--active {
    background: rgba(var(--rp-primary-rgb), 0.08);
    border-color: var(--rp-primary);
    border-width: 2px;
}

.bc-sb-sport__circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    transition: all var(--rp-transition-fast);
}

.bc-sb-sport:hover .bc-sb-sport__circle {
    background: rgba(255, 255, 255, 0.08);
}

.bc-sb-sport--active .bc-sb-sport__circle {
    background: var(--rp-primary);
}

.bc-sb-sport__icon {
    font-size: 24px;
    line-height: 1;
}

.bc-sb-sport--active .bc-sb-sport__icon {
    filter: brightness(0) invert(0);
}

.bc-sb-sport__count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--rp-primary);
    color: #000;
    border-radius: var(--rp-radius-full);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--rp-elevated);
}

.bc-sb-sport__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--rp-text-secondary);
    text-align: center;
    white-space: nowrap;
    transition: color var(--rp-transition-fast);
}

.bc-sb-sport:hover .bc-sb-sport__name {
    color: var(--rp-text);
}

.bc-sb-sport--active .bc-sb-sport__name {
    color: var(--rp-primary);
}

/* ================================================================
   COUNTRIES & LEAGUES — Professional Hierarchy
   ================================================================ */

/* Country section container */
.bc-sb-country {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    transition: background var(--rp-transition-fast);
}

/* Country header — clickable row */
.bc-sb-app .bc-sb-sidebar .bc-sb-country__header,
.bc-sb-app .bc-sb-country__header {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto auto 24px !important;
    align-items: center !important;
    gap: var(--rp-space-md) !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 var(--rp-space-lg) !important;
    background: var(--rp-elevated) !important;
    border: 1px solid var(--rp-border) !important;
    border-radius: var(--rp-radius-md) !important;
    margin: 0 var(--rp-space-lg) var(--rp-space-sm) var(--rp-space-lg) !important;
    cursor: pointer !important;
    transition: background 100ms ease, border-color 100ms ease !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--rp-text) !important;
    box-shadow: none !important;
}

.bc-sb-app .bc-sb-country__header:hover {
    background: var(--rp-surface) !important;
    border-color: var(--rp-border-strong) !important;
}

.bc-sb-app .bc-sb-country--expanded .bc-sb-country__header,
.bc-sb-app .bc-sb-country__header:active {
    background: var(--rp-surface) !important;
    border-color: rgba(var(--rp-primary-rgb), 0.2) !important;
}

/* Country flag icon */
.bc-sb-app .bc-sb-country__icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 28px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

/* Country name */
.bc-sb-app .bc-sb-country__name {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--rp-text) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    min-width: 0 !important;
}

/* Event count */
.bc-sb-app .bc-sb-country__count {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--rp-text-secondary) !important;
    padding: 4px 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: var(--rp-radius-full) !important;
    white-space: nowrap !important;
}

/* Chevron icon */
.bc-sb-app .bc-sb-country__chevron {
    width: 20px !important;
    height: 20px !important;
    color: var(--rp-text-secondary) !important;
    transform: rotate(90deg) !important;
    transition: transform var(--rp-transition-normal) !important;
    flex-shrink: 0 !important;
}

.bc-sb-app .bc-sb-country--collapsed .bc-sb-country__chevron {
    transform: rotate(0deg) !important;
}

/* League list container (hidden when collapsed) */
.bc-sb-app .bc-sb-country__leagues {
    display: none !important;
    padding: 0 var(--rp-space-lg) var(--rp-space-md) !important;
    background: transparent !important;
}

.bc-sb-app .bc-sb-country--expanded .bc-sb-country__leagues {
    display: block !important;
}

/* Individual league row: only name + count are actually rendered (no icon/chevron) */
.bc-sb-app .bc-sb-country-league {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: var(--rp-space-md) !important;
    min-height: 52px !important;
    height: auto !important;
    padding: 8px var(--rp-space-lg) !important;
    margin-bottom: var(--rp-space-xs) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid transparent !important;
    border-radius: var(--rp-radius-sm) !important;
    cursor: pointer !important;
    transition: all var(--rp-transition-fast) !important;
}

.bc-sb-app .bc-sb-country-league:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--rp-border) !important;
    transform: translateX(4px) !important;
}

.bc-sb-app .bc-sb-country-league:active {
    transform: translateX(2px) !important;
}

/* League logo */
.bc-sb-app .bc-sb-country-league__logo {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    border-radius: 4px !important;
}

/* League name — full real name always visible, wraps instead of truncating */
.bc-sb-app .bc-sb-country-league__name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--rp-text) !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.25 !important;
    min-width: 0 !important;
}

/* League event count */
.bc-sb-app .bc-sb-country-league__count {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--rp-text-secondary) !important;
    white-space: nowrap !important;
    align-self: center !important;
}

/* Leagues with real available matches get the accent treatment (visual priority, item 6) */
.bc-sb-app .bc-sb-country-league--active .bc-sb-country-league__count {
    color: var(--rp-primary) !important;
    font-weight: 700 !important;
}

/* League chevron */
.bc-sb-app .bc-sb-country-league__chevron {
    width: 16px !important;
    height: 16px !important;
    color: var(--rp-text-muted) !important;
    flex-shrink: 0 !important;
}

.bc-sb-app .bc-sb-country-league:hover .bc-sb-country-league__chevron {
    color: var(--rp-text-secondary) !important;
}

/* ================================================================
   MOBILE SPECIFIC OVERRIDES (≤767px)
   ================================================================ */

@media (max-width: 767.98px) {
    
    /* Mobile country header */
    #bcSbMobileLeagues .bc-sb-country__header {
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 0 var(--rp-space-lg) !important;
        background: rgba(255, 255, 255, 0.02) !important;
        grid-template-columns: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    #bcSbMobileLeagues .bc-sb-country__icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 20px !important;
    }
    
    #bcSbMobileLeagues .bc-sb-country__name {
        flex: 1 !important;
        font-size: 14px !important;
    }
    
    #bcSbMobileLeagues .bc-sb-country__count {
        padding: 2px 8px !important;
        font-size: 13px !important;
    }
    
    #bcSbMobileLeagues .bc-sb-country__chevron {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Mobile league rows (only name + count are actually rendered) */
    #bcSbMobileLeagues .bc-sb-country-league {
        min-height: 44px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 8px var(--rp-space-lg) 8px 28px !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px !important;
    }
    
    #bcSbMobileLeagues .bc-sb-country-league__logo {
        width: 24px !important;
        height: 24px !important;
    }
    
    #bcSbMobileLeagues .bc-sb-country-league__name {
        font-size: 13px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    #bcSbMobileLeagues .bc-sb-country-league__count {
        font-size: 12px !important;
    }
    
    /* No chevron on mobile league rows */
    #bcSbMobileLeagues .bc-sb-country-league__chevron {
        display: none !important;
    }
    
    /* Mobile leagues container */
    #bcSbMobileLeagues .bc-sb-country__leagues {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Mobile search */
    #bcSbMobileSearch .bc-sb-search {
        height: 38px !important;
        font-size: 13px !important;
        padding: 0 var(--rp-space-md) 0 38px !important;
    }
    
    #bcSbMobileSearch .bc-sb-search__icon {
        left: 12px !important;
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Mobile sports nav */
    .bc-sb-app .bc-sb-sports-nav {
        padding: var(--rp-space-md) !important;
        gap: var(--rp-space-sm) !important;
    }
    
    .bc-sb-app .bc-sb-sport {
        min-width: 72px !important;
        padding: var(--rp-space-sm) !important;
    }
    
    .bc-sb-app .bc-sb-sport__circle {
        width: 42px !important;
        height: 42px !important;
    }
    
    .bc-sb-app .bc-sb-sport__icon {
        font-size: 20px !important;
    }
    
    .bc-sb-app .bc-sb-sport__name {
        font-size: 11px !important;
    }
    
    .bc-sb-app .bc-sb-sport__count {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
    }
}

/* ================================================================
   DESKTOP SPECIFIC ENHANCEMENTS (≥768px)
   ================================================================ */

@media (min-width: 768px) {
    
    .bc-sb-sports-nav {
        padding: var(--rp-space-xl) !important;
        gap: var(--rp-space-md) !important;
    }
    
    .bc-sb-sport {
        min-width: 96px !important;
    }
    
    /* Desktop sidebar enhancements */
    .bc-sb-sidebar {
        background: var(--rp-elevated) !important;
        border-right: 1px solid var(--rp-border) !important;
    }
    
    /* Desktop country headers get full treatment */
    .bc-sb-sidebar .bc-sb-country__header {
        height: 72px !important;
    }
}

/* ================================================================
   LOADING STATES — Professional Skeletons
   ================================================================ */

.bc-sb-event-skeleton {
    background: var(--rp-elevated);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-md);
    padding: var(--rp-space-md);
    margin-bottom: var(--rp-space-sm);
}

.bc-sb-event-skeleton__strip {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--rp-space-md);
}

.bc-sb-event-skeleton__league {
    width: 120px;
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    animation: bc-sb-skeleton-pulse 1.5s ease-in-out infinite;
}

.bc-sb-event-skeleton__match {
    display: grid;
    grid-template-columns: 48px 1fr 200px;
    gap: var(--rp-space-md);
    align-items: center;
}

.bc-sb-event-skeleton__time {
    width: 40px;
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    animation: bc-sb-skeleton-pulse 1.5s ease-in-out infinite 0.1s;
}

.bc-sb-event-skeleton__team {
    height: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    margin-bottom: 8px;
    animation: bc-sb-skeleton-pulse 1.5s ease-in-out infinite 0.2s;
}

.bc-sb-event-skeleton__team:nth-child(1) {
    width: 80%;
}

.bc-sb-event-skeleton__team:nth-child(2) {
    width: 70%;
    margin-bottom: 0;
}

.bc-sb-event-skeleton__odds {
    display: flex;
    gap: var(--rp-space-sm);
}

.bc-sb-event-skeleton__odd {
    flex: 1;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--rp-radius-sm);
    animation: bc-sb-skeleton-pulse 1.5s ease-in-out infinite 0.3s;
}

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

/* ================================================================
   ACCESSIBILITY & FOCUS STATES
   ================================================================ */

.bc-sb-country__header:focus-visible,
.bc-sb-country-league:focus-visible,
.bc-sb-sport:focus-visible {
    outline: 2px solid var(--rp-primary);
    outline-offset: 2px;
}

/* ================================================================
   PERFORMANCE OPTIMIZATIONS
   ================================================================ */

.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);
}

.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;
}

/* ================================================================
   UTILITIES & HELPERS
   ================================================================ */

.bc-sb-app .bc-sb-divider {
    padding: var(--rp-space-md) var(--rp-space-lg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--rp-text-muted);
    background: transparent;
}

.bc-sb-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--rp-space-2xl);
    text-align: center;
    color: var(--rp-text-secondary);
}

.bc-sb-empty-state__icon {
    font-size: 48px;
    margin-bottom: var(--rp-space-lg);
    opacity: 0.5;
}

.bc-sb-empty-state__text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--rp-space-sm);
}

.bc-sb-empty-state__hint {
    font-size: 13px;
    color: var(--rp-text-muted);
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

@keyframes bc-sb-live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

@keyframes bc-sb-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bc-sb-country,
.bc-sb-country-league {
    animation: bc-sb-fade-in var(--rp-transition-normal) ease-out;
}

/* Stagger animation for countries */
.bc-sb-country:nth-child(1) { animation-delay: 0ms; }
.bc-sb-country:nth-child(2) { animation-delay: 30ms; }
.bc-sb-country:nth-child(3) { animation-delay: 60ms; }
.bc-sb-country:nth-child(4) { animation-delay: 90ms; }
.bc-sb-country:nth-child(5) { animation-delay: 120ms; }
.bc-sb-country:nth-child(n+6) { animation-delay: 150ms; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================================
   PREMATCH COUNTRY → LEAGUE UI POLISH
   ================================================================ */

/* Fix duplicate 'See all': suppress ::after on all generic dividers,
   only show it on the ALL COUNTRIES divider via its specific class */
.bc-sb-app .bc-sb-divider::after {
    content: none !important;
}
.bc-sb-app .bc-sb-divider--all-countries::after {
    content: 'See all' !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--rp-primary) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

/* ALL COUNTRIES divider — flex row, space-between for 'See all' alignment */
.bc-sb-app .bc-sb-divider--all-countries {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: var(--rp-text-muted) !important;
    padding: 8px 16px 6px !important;
    background: transparent !important;
    border: none !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Country rows — compact premium style */
@media (min-width: 768px) {
    .bc-sb-app .bc-sb-sidebar .bc-sb-country__header,
    .bc-sb-app .bc-sb-country__header {
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
        padding: 0 14px !important;
        grid-template-columns: 22px minmax(0, 1fr) 36px 18px !important;
        gap: 8px !important;
        background: transparent !important;
    }

    .bc-sb-app .bc-sb-country__header:hover {
        background: rgba(255, 255, 255, 0.03) !important;
    }

    .bc-sb-app .bc-sb-country--expanded .bc-sb-country__header {
        background: rgba(255, 255, 255, 0.04) !important;
        border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    }

    .bc-sb-app .bc-sb-country__icon {
        width: 22px !important;
        height: 22px !important;
        font-size: 15px !important;
    }

    .bc-sb-app .bc-sb-country__name {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #d8dde5 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        min-width: 0 !important;
    }

    .bc-sb-app .bc-sb-country__count {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: var(--rp-text-secondary) !important;
        min-width: 28px !important;
        width: 28px !important;
        height: 20px !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border-radius: 4px !important;
        border: none !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        justify-self: end !important;
        font-variant-numeric: tabular-nums !important;
    }

    .bc-sb-app .bc-sb-country__chevron {
        width: 14px !important;
        height: 14px !important;
        color: var(--rp-text-muted) !important;
    }
}

/* Expanded leagues container — tighter, visually subordinate */
.bc-sb-app .bc-sb-country__leagues {
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 4px 0 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* League rows inside expanded countries — compact, indented, distinct from country.
   Only name + count are actually rendered (no icon/chevron element exists in the DOM). */
.bc-sb-app .bc-sb-country-league {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 36px !important;
    height: auto !important;
    padding: 7px 14px 7px 22px !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: background 100ms ease !important;
}

.bc-sb-app .bc-sb-country-league:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    transform: none !important;
}

.bc-sb-app .bc-sb-country-league:active {
    transform: none !important;
}

/* League logo column — emoji/icon, 20px */
.bc-sb-app .bc-sb-country-league__logo {
    width: 16px !important;
    height: 16px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    border-radius: 2px !important;
    opacity: 0.7 !important;
}

/* League name — full real name always visible, wraps (1-2 lines) instead of truncating */
.bc-sb-app .bc-sb-country-league__name {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #a8b0bc !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.25 !important;
    align-self: center !important;
}

.bc-sb-app .bc-sb-country-league:hover .bc-sb-country-league__name {
    color: #d8dde5 !important;
}

/* League event count — small, right-aligned */
.bc-sb-app .bc-sb-country-league__count {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--rp-text-muted) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: 16px !important;
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
    align-self: center !important;
}

/* Leagues with real available matches get the accent treatment (visual priority, item 6) */
.bc-sb-app .bc-sb-country-league--active .bc-sb-country-league__name {
    color: #d8dde5 !important;
    font-weight: 500 !important;
}

.bc-sb-app .bc-sb-country-league--active .bc-sb-country-league__count {
    color: var(--rp-primary) !important;
    font-weight: 700 !important;
}

/* Remove chevron from the grid (no 4th column) */
.bc-sb-app .bc-sb-country-league__chevron {
    display: none !important;
}

/* Empty leagues state — compact, no blank space */
.bc-sb-app .bc-sb-country__leagues .bc-sb-empty {
    padding: 8px 22px !important;
    font-size: 11px !important;
    color: var(--rp-text-muted) !important;
}

/* Mobile: keep existing mobile layout, only minimal adjustments */
@media (max-width: 767.98px) {
    #bcSbMobileLeagues .bc-sb-country-league {
        min-height: 44px !important;
        height: auto !important;
        padding: 8px 16px 8px 28px !important;
    }

    #bcSbMobileLeagues .bc-sb-country-league__name {
        font-size: 14px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    #bcSbMobileLeagues .bc-sb-country-league__count {
        font-size: 12px !important;
    }

    #bcSbMobileLeagues .bc-sb-country-league__chevron {
        display: none !important;
    }
}

/* ================================================================
   PROFESSIONAL SUSPENDED ODDS STATE
   Overrides the "SUSPENDED" text overlay from odds-lifecycle.css.
   Lock icon replaces the text; odds value is hidden to prevent overlap.
   ================================================================ */

/* Subtle locked button — slightly darkened, no hover response */
.bc-sb-app .bc-sb-odd--suspended {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: rgba(18, 20, 32, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    transition: opacity 200ms ease, background-color 200ms ease, border-color 200ms ease !important;
    position: relative !important;
}

/* Replace "SUSPENDED" text with a compact lock icon, centered */
.bc-sb-app .bc-sb-odd--suspended::after {
    content: '🔒' !important;
    font-size: 15px !important;
    color: rgba(174, 180, 190, 0.7) !important;
    font-weight: normal !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    /* Retain absolute centering from odds-lifecycle.css */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: none !important;
    line-height: 1 !important;
}

/* Remove the diagonal-stripe background that sits under the lock */
.bc-sb-app .bc-sb-odd--suspended::before {
    background: none !important;
    display: none !important;
}

/* Hide the odds value to prevent number + lock overlap */
.bc-sb-app .bc-sb-odd--suspended .bc-sb-odd__value {
    visibility: hidden !important;
    text-decoration: none !important;
}

/* Remove the duplicate lock from sportsbook-v2-ui.css (.bc-sb-odd__value::before) */
.bc-sb-app .bc-sb-odd--suspended .bc-sb-odd__value::before {
    content: none !important;
    display: none !important;
}

/* Hide the label row too so nothing bleeds through */
.bc-sb-app .bc-sb-odd--suspended .bc-sb-odd__label {
    visibility: hidden !important;
}

/* Mobile — same lock treatment, no size change */
@media (max-width: 767.98px) {
    .bc-sb-app .bc-sb-odd--suspended::after {
        font-size: 14px !important;
    }
}
