/* Oddizer Event Page - Dark Retro/Oddsboard Styling */

/* ===== GLOBAL SCROLLBAR HIDING ===== */
.oddizer-container *::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.oddizer-container * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ===== CORE VARIABLES ===== */
:root {
    --oddizer-bg: #0c0c0c;
    --oddizer-panel-bg: #131313;
    --oddizer-border: #1e1e1e;
    --oddizer-text: #d8d8d8;
    --oddizer-text-dim: #7a7f85;
    --oddizer-accent: #00e63a;
    --oddizer-accent-secondary: #ff9500;
    --oddizer-red: #ff4444;
    --oddizer-blue: #5dade2;
    --oddizer-warning: #ffaa00;
    --oddizer-header-bg: #0d0d0d;
    --oddizer-scanlines: rgba(0, 255, 65, 0.03);
    --oddizer-sidebar-bg: #111111;
    --oddizer-sidebar-surface: rgba(255, 255, 255, 0.04);
    --sidebar-mobile-width: min(70%, 320px);
}

/* ===== MAIN CONTAINER ===== */
.oddizer-container {
    background: var(--oddizer-bg);
    color: var(--oddizer-text);
    min-height: 100vh;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    padding: 0;
    letter-spacing: 0.01em;
}

/* ===== LAYOUT ===== */
.oddizer-container {
    display: flex;
    min-height: 100vh;
}

.sidebar-column {
    background: var(--oddizer-sidebar-bg);
    min-height: 100vh;
    padding: 0;
    border-right: none;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    width: 60%;
    max-width: 300px;
    box-shadow: none;
}

.sidebar-column.collapsed {
    width: 0;
    overflow: hidden;
    border-right: none;
}

.main-column {
    background: var(--oddizer-bg);
    min-height: 100vh;
    padding: 16px 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    flex: 1;
}

/* ===== RETRO PANELS ===== */
.retro-panel {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    border-radius: 6px;
    position: relative;
    box-shadow: none;
    overflow: hidden;
}

/*.retro-panel::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    height: 2px;*/
/*    background: linear-gradient(90deg,*/
/*    transparent 0%,*/
/*    var(--oddizer-accent) 50%,*/
/*    transparent 100%);*/
/*    animation: scanline-sweep 3s infinite;*/
/*}*/

@keyframes scanline-sweep {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.panel-header {
    background: transparent;
    border-bottom: 1px solid var(--oddizer-border);
    padding: 8px 14px;
    position: relative;
}

.panel-header h6 {
    color: white;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.panel-hint {
    font-size: 9px;
    font-weight: 400;
    color: #444;
    margin-left: auto;
}

.panel-header i {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

/* ===== EVENT HEADER V2 ===== */
.event-header-v2 {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.matchup-v2 {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.team-block {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    min-width: 0;
}

.team-block.away-block {
    border-right: none;
}

.team-block.home-block {
    border-left: none;
    flex-direction: row-reverse;
}

.team-block.home-block .team-details {
    text-align: right;
    align-items: flex-end;
}

.team-logo-v2 {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.team-name-v2 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.team-stats-row {
    display: flex;
    gap: 6px;
}

.team-block.home-block .team-stats-row {
    justify-content: flex-end;
}

.stat-chip {
    font-size: 11px;
    font-family: 'DM Sans', -apple-system, sans-serif;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.stat-chip.record-chip {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
}

.stat-chip.elo-chip {
    background: rgba(0, 230, 58, 0.08);
    color: rgba(0, 230, 58, 0.75);
}

.streak-row {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.team-block.home-block .streak-row {
    justify-content: flex-end;
}

.team-block.away-block .streak-row .fatigue-badges {
    order: 1;
}

.streak-row .streak-dot {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--oddizer-text-dim);
    border: 1px solid transparent;
}

.streak-row .streak-dot.win {
    background: rgba(0, 230, 58, 0.12);
    border-color: rgba(0, 230, 58, 0.25);
    color: rgba(0, 230, 58, 0.85);
}

.streak-row .streak-dot.loss {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.22);
    color: rgba(255, 100, 100, 0.85);
}

.streak-row .streak-dot.away-game {
    border-style: dashed;
}


.streak-row .streak-dot:hover {
    transform: scale(1.35);
    z-index: 2;
    cursor: pointer;
}

.streak-row .streak-dot.overtime {
    position: relative;
}

.streak-row .streak-dot.overtime sup {
    font-size: 5px;
    position: absolute;
    top: -2px;
    right: -3px;
    color: #ff9800;
    font-weight: 600;
}

.streak-dot-tip {
    position: absolute; z-index: 99999;
    background: #141414; border: 1px solid #333; border-radius: 6px;
    padding: 6px 10px; min-width: 120px;
    box-shadow: 0 4px 16px rgba(0,0,0,.6); pointer-events: none;
    font-size: 11px; line-height: 1.5;
}
.sdt-header { color: #888; font-size: 10px; margin-bottom: 2px; }
.sdt-matchup { display: flex; align-items: center; gap: 4px; }
.sdt-logo { width: 14px; height: 14px; }
.sdt-loc { color: #666; font-size: 10px; }
.sdt-opp { font-weight: 600; color: #ccc; }
.sdt-result { margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.sdt-wl { font-weight: 700; }
.streak-tip-win .sdt-wl { color: rgba(0, 255, 65, 0.9); }
.streak-tip-loss .sdt-wl { color: rgba(255, 100, 100, 0.9); }
.sdt-score { color: #ccc; }
.sdt-margin { color: #888; font-size: 10px; }

.fatigue-badges {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    gap: 3px;
    flex-shrink: 0;
}

.fatigue-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.fatigue-badge.b2b {
    background: rgba(255, 68, 68, 0.25);
    border: 1px solid rgba(255, 68, 68, 0.5);
    color: #ff6b6b;
}

.fatigue-badge.short-rest {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.4);
    color: #ffb74d;
}

.fatigue-badge.ot-fatigue {
    background: rgba(156, 39, 176, 0.2);
    border: 1px solid rgba(156, 39, 176, 0.4);
    color: #ce93d8;
}

.matchup-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--oddizer-border);
    border-right: 1px solid var(--oddizer-border);
    gap: 4px;
    flex-shrink: 0;
}

.vs-badge {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--oddizer-text-dim);
    line-height: 1;
}

.game-info-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.game-status-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-status-badge.final {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.game-score {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.game-datetime {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    line-height: 1.3;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .overview-masonry {
        flex-direction: column;
    }

    .event-header-v2 {
        padding: 0;
    }

    .matchup-v2 {
        flex-wrap: wrap;
    }

    .team-block {
        flex: 1 1 calc(50% - 40px);
        padding: 8px 10px;
        gap: 8px;
    }

    .matchup-center {
        order: 3;
        flex: 0 0 100%;
        flex-direction: row;
        justify-content: center;
        padding: 6px 12px;
        gap: 12px;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--oddizer-border);
    }

    .team-logo-v2 {
        width: 38px;
        height: 38px;
    }

    .team-name-v2 {
        font-size: 0.9rem;
    }

    .stat-chip {
        font-size: 10px;
        padding: 1px 4px;
    }

    .vs-badge {
        font-size: 0.95rem;
    }

    .game-datetime {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .team-block {
        flex-direction: column;
        text-align: center;
        padding: 6px;
    }

    .team-block.home-block {
        flex-direction: column;
    }

    .team-block.home-block .team-details {
        text-align: center;
        align-items: center;
    }

    .team-block.home-block .team-stats-row,
    .team-block.home-block .streak-row {
        justify-content: center;
    }

    .team-details {
        align-items: center;
    }

    .team-stats-row {
        justify-content: center;
    }

    .streak-row {
        justify-content: center;
    }

    .team-logo-v2 {
        width: 34px;
        height: 34px;
    }

    .team-name-v2 {
        font-size: 0.85rem;
    }
}

/* ===== EVENT HEADER (Legacy) ===== */
.event-header {
    background: transparent;
    padding: 18px;
}

.matchup-display {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.team-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 280px;
    min-width: 0;
}

.team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: var(--oddizer-panel-bg);
    padding: 4px;
}

.team-logo-fallback-large {
    width: 64px;
    height: 64px;
    background: var(--oddizer-accent-secondary);
    color: var(--oddizer-text-light);

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

.team-info h2 {
    color: var(--oddizer-text);
    font-size: clamp(22px, 2vw + 4px, 32px);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.team-record {
    color: var(--oddizer-text-dim);
    font-size: 14px;
    margin-top: 4px;
}

.team-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.5rem;
    font-family: 'Courier New', 'Courier', monospace;
    line-height: 1.3;
}

.team-streak {
    font-size: 12px;
    color: var(--oddizer-text-dim);
}

.team-streak .streak-summary {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.team-streak .streak-track {
    display: flex;
    gap: 1px;
    margin-top: 4px;
}

.team-streak .streak-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    color: var(--oddizer-text);
    border: 1px solid transparent;
    border-style: solid;
}

.team-streak .streak-dot.win {
    background: rgba(0, 255, 65, 0.18);
    border-color: rgba(0, 255, 65, 0.4);
}

.team-streak .streak-dot.loss {
    background: rgba(255, 68, 68, 0.16);
    border-color: rgba(255, 68, 68, 0.35);
}

.team-streak .streak-dot.recent {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.team-streak .streak-dot.away-game {
    border-style: dashed;
}

.team-meta .team-record {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.team-meta .team-elo {
    font-size: 1rem;
    color: rgba(0, 255, 65, 0.85);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.vs-divider {
    font-size: 28px;
    font-weight: 600;
    color: var(--oddizer-text);
    flex: 0 0 auto;
}

.game-status {
    text-align: center;
}

.game-status .game-date {
    font-size: 0.85rem;
    color: var(--oddizer-text-dim);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.game-status .game-time {
    display: block;
    font-size: 0.95rem;
    color: var(--oddizer-accent);
    font-weight: 600;
    font-family: 'Courier New', 'Courier', monospace;
    margin-top: 0.15rem;
}

.status-label {
    color: var(--oddizer-text-dim);
    font-size: 12px;
    margin-bottom: 4px;
}

.status-value {
    color: var(--oddizer-accent);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.status-value .game-time {
    display: block;
    font-size: 1rem;
    color: var(--oddizer-accent);
    font-weight: 600;
    font-family: 'Courier New', 'Courier', monospace;
    margin-top: 0.15rem;
}

/* ===== TABS ===== */
.event-tabs-container {
    margin-bottom: 8px;
}

#eventTabs,
#leagueTabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--oddizer-border);
    background: transparent;
    padding: 0;
}

#eventTabs .nav-item,
#leagueTabs .nav-item {
    flex: 1;
}

#eventTabs .nav-link,
#leagueTabs .nav-link {
    width: 100%;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0 !important;
    background: transparent;
    color: var(--oddizer-text-dim);
    font-weight: 800;
    padding: 10px 8px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#eventTabs .nav-link i,
#leagueTabs .nav-link i {
    color: inherit;
    opacity: 0.6;
}

#eventTabs .nav-link:hover,
#eventTabs .nav-link:focus-visible,
#leagueTabs .nav-link:hover,
#leagueTabs .nav-link:focus-visible {
    background: transparent;
    color: var(--oddizer-text);
    border-color: transparent;
    transform: none;
    box-shadow: none;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

#eventTabs .nav-link:focus-visible,
#leagueTabs .nav-link:focus-visible {
    outline: none;
    outline-offset: 0;
}

#eventTabs .nav-link.active,
#leagueTabs .nav-link.active {
    background: transparent;
    color: #fff;
    border-color: transparent;
    border-bottom-color: var(--oddizer-accent);
    box-shadow: none;
}

#eventTabs .nav-link.active i,
#leagueTabs .nav-link.active i {
    opacity: 1;
    color: var(--oddizer-accent);
}

#eventTabs .nav-item:last-child .nav-link,
#eventTabs .nav-item:last-child .nav-link.active,
#leagueTabs .nav-item:last-child .nav-link,
#leagueTabs .nav-item:last-child .nav-link.active {
    background: transparent;
    border-color: transparent;
    border-bottom-color: inherit;
}

/* ===== TAB CONTENT ===== */
.retro-content {
    background: transparent;
    padding: 0;
}

.tab-pane {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-top: 0;
}

.tab-pane > * + * {
    margin-top: 12px;
}

.tab-pane h3,
.tab-pane h4 {
    color: var(--oddizer-text);
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tab-pane h4 {
    font-size: 0.95rem;
}

/* ===== OVERVIEW CONTENT ===== */
.weather-info, .venue-info {
    padding: 16px;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.weather-icon i {
    font-size: 36px;
    color: var(--oddizer-accent-secondary);
}

.weather-temp {
    font-size: 24px;
    font-weight: bold;
    color: var(--oddizer-text);
}

.weather-desc, .venue-name {
    color: var(--oddizer-text-dim);
    font-size: 14px;
}

.venue-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--oddizer-text);
    margin-bottom: 4px;
}

.weather-stats, .venue-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-stat, .venue-stat {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: none;
}

.stat-label {
    color: var(--oddizer-text-dim);
    font-size: 12px;
}

/* ===== PARK & WEATHER ===== */
:root {
    --park-short: #e74c3c;
    --park-avg: #27ae60;
    --park-deep: #3498db;
}

.park-weather-body { padding: 8px 12px; }

.pw-panel { display: flex; flex-direction: column; gap: 6px; }
.pw-field-svg { width: 100%; max-height: 210px; display: block; }
.pw-grass { fill: var(--oddizer-accent-secondary); opacity: 0.06; }
.pw-foul { stroke: var(--oddizer-text-dim); stroke-width: 0.8; opacity: 0.25; fill: none; stroke-dasharray: 3 2; }

.pw-wall-label {
    font-size: 8px; fill: var(--oddizer-accent); text-anchor: middle;
    font-weight: 600; font-family: var(--oddizer-font);
}
.pw-dist-label {
    font-size: 10px; fill: var(--oddizer-text); text-anchor: middle;
    font-weight: 600; font-family: var(--oddizer-font);
}
.pw-pos-label {
    font-size: 8px; fill: var(--oddizer-text-dim); text-anchor: middle;
    font-family: var(--oddizer-font); opacity: 0.5;
}
.pw-wind-label {
    font-size: 9px; fill: var(--oddizer-accent); text-anchor: middle;
    font-family: var(--oddizer-font); opacity: 0.8;
}

.pw-info-bar {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap; padding: 2px 4px;
}
.pw-park-name {
    font-size: 12px; font-weight: 600; color: var(--oddizer-text);
    margin-right: auto; white-space: nowrap;
}
.pw-badges { display: flex; gap: 4px; flex-wrap: wrap; }

.park-pf-badge, .park-alt-badge, .park-roof-badge, .impact-badge {
    font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 3px;
    border: 1px solid var(--oddizer-border);
}
.park-pf-badge { background: var(--oddizer-bg-panel); }
.pf-hitter { color: var(--park-short); border-color: var(--park-short); }
.pf-pitcher { color: var(--park-deep); border-color: var(--park-deep); }
.pf-neutral { color: var(--oddizer-text-dim); }
.park-alt-badge { color: var(--oddizer-accent-secondary); background: var(--oddizer-bg-panel); }
.park-roof-badge { color: var(--oddizer-text-dim); background: var(--oddizer-bg-panel); }
.env-high { color: #e74c3c; border-color: #e74c3c; background: rgba(231,76,60,0.08); }
.env-above { color: #e67e22; border-color: #e67e22; background: rgba(230,126,34,0.08); }
.env-neutral { color: var(--oddizer-text-dim); }
.env-below { color: #3498db; border-color: #3498db; background: rgba(52,152,219,0.08); }
.env-low { color: #2980b9; border-color: #2980b9; background: rgba(41,128,185,0.08); }
.temp-positive { color: #e74c3c; border-color: #e74c3c; background: rgba(231,76,60,0.08); }
.temp-negative { color: #3498db; border-color: #3498db; background: rgba(52,152,219,0.08); }

.pw-weather-row {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 4px 6px; align-items: center;
    border-top: 1px solid var(--oddizer-border);
}
.pw-wx-item {
    font-size: 11px; color: var(--oddizer-text); white-space: nowrap;
}
.pw-wx-item i { color: var(--oddizer-text-dim); margin-right: 2px; font-size: 10px; }
.pw-wx-cond {
    font-size: 11px; color: var(--oddizer-text-dim);
    margin-left: auto; white-space: nowrap;
}

/* ===== RECORDS GRID ===== */
.records-grid {
    padding: 16px;
}

.record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: none;
}

.record-row:last-child {
    border-bottom: none;
}

.record-row .team-name {
    font-weight: bold;
    color: var(--oddizer-text);
}

.record {
    color: var(--oddizer-accent);
    font-weight: bold;
}

/* Team Records Styling - Compact Version */
.team-records-container {
    display: flex;
    gap: 0;
    flex-direction: row;
}

.team-record-section {
    background: transparent;
    border: none;
    padding: 10px;
    position: relative;
    flex: 1;
    min-width: 0;
}

.team-record-section + .team-record-section {
    border-left: 1px solid var(--oddizer-border);
}

.team-record-section::before {
    display: none;
}

.team-record-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--oddizer-border);
    flex-wrap: wrap;
}

.record-team-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.record-team-name {
    font-weight: 600;
    color: var(--oddizer-text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.record-items {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    line-height: 1.2;
    position: relative;
    padding: 2px 4px;
    margin: 1px 0;
    transition: background-color 0.2s ease, border 0.2s ease;
}

.record-item .record-value {
    flex: 1;
    text-align: center;
}

.record-label {
    color: var(--oddizer-text-dim);
    font-weight: 500;
    min-width: 30px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.record-value {
    color: var(--oddizer-text);
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-weight: 600;
}

/* Odds-based record styling */
.record-item.odds-record {
    padding-left: 4px;
    margin-left: 2px;
}

.record-item.odds-record .record-label {
    color: #ffb347;
}


/* ELO-based record styling */
.record-item.elo-record {
    padding-left: 4px;
    margin-left: 2px;
}

.record-item.elo-record .record-label {
    color: #9370db;
}

/* Rest-based record styling */
.record-item.rest-record {
    padding-left: 4px;
    margin-left: 2px;
}

.record-item.rest-record .record-label {
    color: #66d9ef;
}

/* Current Game Flags */
.current-game-flags {
    display: flex;
    gap: 3px;
    margin-left: auto;
    flex-wrap: wrap;
}

.odds-flag, .elo-flag {
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 2px;
    display: none; /* Hidden by default, shown when status is determined */
    white-space: nowrap;
}

/* Odds-based flags */
.odds-flag.heavily-favored {
    background: rgba(255, 80, 80, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 80, 80, 0.25);
    display: inline-block;
}

.odds-flag.favored {
    background: rgba(255, 120, 80, 0.15);
    color: #ffaa77;
    border: 1px solid rgba(255, 120, 80, 0.25);
    display: inline-block;
}

.odds-flag.underdog {
    background: rgba(80, 200, 180, 0.15);
    color: #5cc8b8;
    border: 1px solid rgba(80, 200, 180, 0.25);
    display: inline-block;
}

.odds-flag.longshot {
    background: rgba(0, 200, 200, 0.15);
    color: #44cccc;
    border: 1px solid rgba(0, 200, 200, 0.25);
    display: inline-block;
}

/* ELO-based flags */
.elo-flag.vs-weak {
    background: rgba(0, 200, 100, 0.2);
    color: #5fba7d;
    border: 1px solid rgba(0, 200, 100, 0.3);
    display: inline-block;
}

.elo-flag.vs-average {
    background: rgba(100, 150, 255, 0.15);
    color: #7aa3ff;
    border: 1px solid rgba(100, 150, 255, 0.25);
    display: inline-block;
}

.elo-flag.vs-strong {
    background: rgba(200, 100, 200, 0.15);
    color: #c88ac8;
    border: 1px solid rgba(200, 100, 200, 0.25);
    display: inline-block;
}

.elo-flag.vs-elite {
    background: rgba(255, 150, 50, 0.15);
    color: #ffaa55;
    border: 1px solid rgba(255, 150, 50, 0.25);
    display: inline-block;
}

/* Current Game Scenario Indicators */
.current-indicator {
    display: none;
    margin-left: 4px;
    opacity: 0.7;
    font-size: 8px;
    color: var(--oddizer-accent);
    animation: pulse 2s infinite;
}

.current-indicator i {
    font-size: 7px;
}

.record-item.current-scenario {
    background: rgba(0, 230, 58, 0.06);
    border: 1px solid rgba(0, 230, 58, 0.15);
    border-radius: 3px;
}

/* Fixed context row (Total) - differentiated from selectable scenarios */
.record-item[data-record-type="overall"] {
    background: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-left: 2px solid #333 !important;
    padding-left: 6px;
    border-radius: 2px;
}

.record-item[data-record-type="overall"] .record-label {
    color: #999 !important;
    font-weight: 600;
}

.record-item[data-record-type="overall"] .record-value {
    color: #bbb !important;
}

.record-item.current-scenario .current-indicator {
    display: none;
}

.record-item.current-scenario .record-label {
    color: var(--oddizer-accent);
    font-weight: 600;
}

.record-item.current-scenario .record-value {
    color: var(--oddizer-accent);
    font-weight: 600;
}

/* Scenario builder */
.record-item.selectable {
    cursor: pointer;
}

.record-item.selectable:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.scenario-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 6px;
    margin-top: 4px;
    background: rgba(0, 230, 58, 0.04);
    border-top: 1px solid var(--oddizer-border);
    border-radius: 0 0 4px 4px;
    font-size: 10px;
}

.scenario-label {
    color: var(--oddizer-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 55px;
}

.scenario-value {
    color: #fff;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.scenario-dollar {
    font-weight: 700;
    font-size: 10px;
    min-width: 50px;
    text-align: right;
}

.pct-positive { color: var(--oddizer-accent); }
.pct-negative { color: #ff6b6b; }

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.record-percentage {
    color: var(--oddizer-text-dim);
    margin-left: 3px;
    opacity: 0.7;
}

.vs-opponent-name {
    color: #ff6b6b;
    font-weight: bold;
}

/* Away team specific styling */
.away-team-records {
    border-color: var(--oddizer-border);
}

.away-team-records::before {
    background: none;
}

.away-team-records .team-record-header {
    border-bottom-color: var(--oddizer-border);
}

.away-team-records .record-team-name {
    color: var(--oddizer-text);
}

.away-team-records .record-value {
    color: var(--oddizer-text);
}

/* Home team specific styling */
.home-team-records {
    border-color: var(--oddizer-border);
}

.home-team-records::before {
    background: none;
}

.home-team-records .team-record-header {
    border-bottom-color: var(--oddizer-border);
}

.home-team-records .record-team-name {
    color: var(--oddizer-text);
}

.home-team-records .record-value {
    color: var(--oddizer-text);
}


/* ===== MATCHUP TYPE PERFORMANCE ===== */
.matchup-type-container {
    padding: 8px;
}

.matchup-type-loading, .matchup-type-error {
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}

.matchup-profiles {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    padding: 8px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--oddizer-border);
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.team-profile {
    color: #aaa;
}

.matchup-teams-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.matchup-team-section {
    background: transparent;
    border: none;
    padding: 10px;
}

.matchup-team-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--oddizer-border);
}

.matchup-team-header .team-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.matchup-grids {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.matchup-grid {
    background: rgba(255, 255, 255, 0.02);
    padding: 6px;
    border-radius: 4px;
}

.matchup-grid-header {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--oddizer-border);
}

.matchup-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    font-size: 0.75rem;
    border-radius: 3px;
}

.matchup-row.current-matchup {
    background: rgba(0, 255, 127, 0.15);
    border: 1px solid rgba(0, 255, 127, 0.4);
}

.matchup-label {
    flex: 0 0 55px;
    font-weight: 500;
}

.matchup-record {
    flex: 0 0 40px;
    text-align: center;
    color: #ddd;
}

.matchup-avg {
    flex: 0 0 32px;
    text-align: right;
    color: #64748b;
    font-size: 0.65rem;
    opacity: 0.7;
    cursor: help;
}

.matchup-pct {
    flex: 0 0 35px;
    text-align: right;
    color: var(--oddizer-accent);
    font-size: 0.7rem;
}

.matchup-tab-bar {
    display: flex;
    border-bottom: 1px solid var(--oddizer-border);
    margin-bottom: 8px;
}
.matchup-tab-bar .filter-toggle {
    padding: 6px 12px;
    font-size: 0.7rem;
}
.derived-rankings-table { font-size: 0.8rem; }
.derived-rankings-table .sortable-col { cursor: pointer; white-space: nowrap; }
.derived-rankings-table .sortable-col:hover { color: var(--oddizer-accent); }

/* Quintile colors */
.q-elite {
    color: #00ff7f;
}

.q-strong {
    color: #7fff00;
}

.q-average {
    color: #ffcc00;
}

.q-weak {
    color: #ff9966;
}

.q-very_weak {
    color: #ff6666;
}

@media (max-width: 768px) {
    .matchup-teams-grid {
        grid-template-columns: 1fr;
    }

    .matchup-profiles {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== PITCHER/LINEUP CARDS ===== */
.pitcher-card, .lineup-card {
    background: var(--oddizer-header-bg);
    border: 1px solid var(--oddizer-border);
    padding: 16px;
    margin-bottom: 16px;
}

.pitcher-header, .lineup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--oddizer-border);
}

.team-logo-xs {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.pitcher-name, .lineup-header h6 {
    color: var(--oddizer-text);
    font-weight: bold;
    margin: 0;
}

.pitcher-position {
    color: var(--oddizer-text-dim);
    font-size: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: var(--oddizer-panel-bg);
}

.stat-cell .stat-label {
    font-size: 11px;
    color: var(--oddizer-text-dim);
    margin-bottom: 4px;
}

.stat-cell .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--oddizer-accent);
}

/* ===== LINEUP LISTS ===== */
.lineup-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lineup-player {
    display: grid;
    grid-template-columns: 30px 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
}

.batting-order {
    background: var(--oddizer-accent);
    color: var(--oddizer-bg);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.player-name {
    color: var(--oddizer-text);
    font-weight: bold;
}

.player-position {
    color: var(--oddizer-text-dim);
    font-size: 12px;
    text-align: center;
}

.player-avg {
    color: var(--oddizer-accent);
    font-weight: bold;
    font-size: 14px;
}

/* ===== MASONRY LAYOUT ===== */
.overview-masonry {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

/* ===== ODDS DISPLAY ===== */
.odds-display {
    padding: 0;
}

.odds-display.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
}

.odds-display.loading-state .loading-spinner {
    margin: 0;
}

.odds-category {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--oddizer-border);
    padding: 12px 14px;
    text-align: left;
}

.odds-category:last-child {
    border-bottom: none;
}

.odds-label {
    color: var(--oddizer-text-dim);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.odds-values {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.odds-value {
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    color: var(--oddizer-text);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.1px;
}

.odds-value.away {
    border-left: 2px solid var(--oddizer-accent);
}

.odds-value.home {
    border-left: 2px solid var(--oddizer-text-dim);
}

/* Compact Odds Grid */
/* Odds type card grid */
.odds-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.odds-type-card {
    padding: 8px 10px 6px;
    border-right: 1px solid var(--oddizer-border);
    border-top: none;
    background: transparent;
}

.odds-type-card:last-child {
    border-right: none;
}

.odds-type-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: white;
}

.odds-type-line {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
    font-size: 13px;
}

.otl-team {
    font-size: 11px;
    font-weight: 700;
    color: #ccc;
    min-width: 30px;
}

.odds-type-line .odds-num {
    font-weight: 700;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #fff;
}

.odds-type-line .odds-num.odds-plus {
    color: #4ecb71;
}

.odds-type-line .odds-num.odds-fav {
    color: #f0a050;
}

.odds-type-line .odds-num.odds-heavy-fav {
    color: #e85d5d;
}

.odds-type-line .odds-num.odds-total {
    color: #e6a817;
}

.odds-juice {
    font-weight: 500;
    color: #999;
    font-size: 12px;
}

.odds-type-line[data-spark] {
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.15s;
}

.odds-type-line[data-spark].otl-active {
    opacity: 1;
}

.odds-type-line[data-spark]:hover {
    opacity: 0.85;
}

.odds-sparkline {
    display: block;
    width: 100%;
    height: 18px;
    margin-top: 3px;
    pointer-events: none;
}

.odds-sparkline[data-side] {
    display: none;
}

.odds-sparkline[data-side].otl-active {
    display: block;
}

.odds-logo-compact {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.odds-book-compact {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.6;
}

@media (max-width: 576px) {
    .odds-type-grid {
        grid-template-columns: 1fr;
    }

    .odds-type-card {
        padding: 4px 8px 3px;
        border-right: none;
        border-bottom: 1px solid var(--oddizer-border);
    }

    .odds-type-card:last-child {
        border-bottom: none;
    }

    .odds-type-line {
        font-size: 11px;
        gap: 3px;
    }

    .odds-type-line .odds-num {
        font-size: 12px;
    }

    .otl-team {
        font-size: 9px;
        min-width: 24px;
    }

    .odds-type-label {
        font-size: 8px;
    }

    .odds-logo-compact {
        width: 14px;
        height: 14px;
    }

    .odds-book-compact {
        width: 12px;
        height: 12px;
    }
}

/* Enhanced Pregame Odds Display */
.odds-enhanced-display {
    display: flex;
    flex-direction: column;
}

.favor-bar-container {
    display: flex;
    height: 28px;
    overflow: hidden;
    border-bottom: 1px solid var(--oddizer-border);
}

.favor-team {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
    transition: flex 0.4s ease;
}

.favor-team.away-favor {
    background: rgba(255, 255, 255, 0.02);
    justify-content: flex-start;
}

.favor-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.favor-team.home-favor {
    background: rgba(0, 230, 58, 0.04);
    justify-content: flex-end;
}

.favor-abbr {
    color: var(--oddizer-text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.favor-prob {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.away-favor .favor-prob {
    color: rgba(255, 255, 255, 0.6);
}

.home-favor .favor-prob {
    color: var(--oddizer-accent);
}

.favor-team .odds-logo-compact {
    flex-shrink: 0;
}

.odds-movement {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
    flex-shrink: 0;
}

.odds-movement.movement-up {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
}

.odds-movement.movement-down {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.odds-delta {
    font-size: 9px;
    font-weight: 600;
    margin-left: 3px;
}

.odds-delta.movement-steam {
    color: #4ade80;
}

.odds-delta.movement-fade {
    color: #f87171;
}

@media (max-width: 576px) {
    .favor-bar-container {
        height: 24px;
    }

    .favor-team {
        padding: 0 6px;
        gap: 3px;
    }

    .favor-abbr {
        font-size: 9px;
    }

    .favor-prob {
        font-size: 11px;
    }

    .odds-movement {
        font-size: 8px;
        padding: 1px 3px;
    }

    .odds-juice {
        font-size: 9px;
    }
}

/* ===== SIDEBAR STYLES ===== */

.sidebar-collapse-toggle {
    position: fixed;
    top: 50vh;
    left: 300px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--oddizer-border);
    border-left: none;
    color: var(--oddizer-text);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    z-index: 1060;
    transition: color 0.2s ease, border-color 0.2s ease;
    transform: translateY(-50%);
    box-shadow: none;
}

.sidebar-collapse-toggle:hover {
    color: var(--oddizer-accent);
    border-color: var(--oddizer-accent);
}

.sidebar-collapse-toggle.collapsed {
    left: 0;
    color: var(--oddizer-accent);
    border-color: var(--oddizer-accent);
    background: transparent;
}

.sidebar-collapse-toggle.collapsed i {
    transform: rotate(180deg);
}

.sidebar-collapse-toggle i {
    font-size: 14px;
}

.mobile-sidebar-toggle i {
    font-size: 14px;
}

.sidebar-surface {
    background: var(--oddizer-bg);
    border-right: 1px solid var(--oddizer-border);
}

.oddizer-sidebar {
    background: transparent;
    border: none;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.sidebar-header {
    background: transparent;
    padding: 10px 12px;
    border-bottom: 1px solid var(--oddizer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    box-shadow: none;
}

.sidebar-title {
    color: var(--oddizer-text-dim);
    font-weight: 600;
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: none;
}

.sidebar-title-link {
    color: var(--oddizer-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.sidebar-title-link:hover {
    color: var(--oddizer-accent);
    text-decoration: none;
    text-shadow: none;
    transform: translateX(2px);
}

.sidebar-title-link i {
    font-size: 13px;
    opacity: 0.9;
    transition: all 0.2s ease;
    filter: none;
}

.sidebar-title-link:hover i {
    opacity: 1;
    filter: none;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--oddizer-accent);
    padding: 2px 6px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

a.game-item,
a.game-item:hover,
a.game-item:focus,
a.game-item:visited,
a.game-item:active,
a.game-item * {
    text-decoration: none !important;
}

.game-item {
    display: block;
    color: inherit;
}

.game-item {
    background: #0f0f0f;
    border: 1px solid var(--oddizer-border);
    padding: 6px 8px;
    margin-bottom: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

.game-item:hover {
    background: #111;
    color: var(--oddizer-text);
    border-color: var(--oddizer-border);
}

.game-item.active {
    border-left-color: var(--oddizer-accent);
    background: #111;
    color: var(--oddizer-text);
}

.game-matchup {
    margin-bottom: 4px;
}

.team-row {
    position: relative;
    margin-bottom: 0;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.team-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    padding-right: 110px;
    overflow: hidden;
}

.matchup-display .team-info {
    padding-right: 0;
}

body[data-sport^="ncaa"] .game-item .team-info {
    padding-right: 110px;
}

.team-logo-sm {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin: 0 6px 0 0;
    padding: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.25));
}

.team-logo-fallback {
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    padding: 0;
    flex-shrink: 0;
    background: var(--oddizer-accent-secondary);
    color: var(--oddizer-text-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

.team-info.bg-logo {
    background-image: var(--team-logo);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 28px 28px;
    padding-left: 34px;
}

.team-name {
    color: var(--oddizer-text);
    font-weight: bold;
    font-size: 20px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body[data-sport^="ncaa"] .team-name,
body[data-sport^="ncaa"] .sticky-team-name {
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    overflow: visible;
    text-overflow: initial;
}

.team-odds-container {
    position: absolute;
    right: 3px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    background: linear-gradient(to right, transparent 0%, var(--oddizer-sidebar-bg) 20%, var(--oddizer-sidebar-bg) 100%);
    padding-left: 20px;
}

.odds-horizontal {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: 100%;
}

.odds-item {
    background: transparent;
    border: none;
    padding: 0 1px;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    min-width: 32px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex-shrink: 1;
}

.odds-item.ml {
    color: var(--oddizer-accent);
}

.odds-item.spr {
    color: var(--oddizer-accent-secondary);
}

.odds-item.total {
    color: var(--oddizer-blue);
}

.odds-item.unavailable {
    color: var(--oddizer-text-dim);
    opacity: 0.6;
}

.no-odds {
    color: var(--oddizer-text-dim);
    font-size: 10px;
}

.book-icon {
    width: 10px;
    height: 10px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
}


.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.game-time {
    color: var(--oddizer-text-dim);
    font-size: 11px;
}

.game-status {
    color: var(--oddizer-accent);
    font-weight: 600;
    font-size: 10px;
}


.sidebar-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
    padding: 12px 16px 8px;
    margin-top: auto;
}

.footer-stats {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-label {
    display: block;
    color: var(--oddizer-text-dim);
    font-size: 10px;
    margin-bottom: 4px;
}

.stat-item .stat-value {
    color: var(--oddizer-accent);
    font-weight: bold;
    font-size: 16px;
}

/* ===== STICKY FOOTER ===== */
.sticky-odds-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--oddizer-header-bg);
    border-top: 2px solid var(--oddizer-border);
    padding: 12px 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sticky-toggle-top {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    transition: top 0.3s ease;
}

.sticky-toggle-top .retro-btn {
    background: var(--oddizer-header-bg);
    border: 2px solid var(--oddizer-border);
    width: 32px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--oddizer-text);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.sticky-toggle-top .retro-btn:hover {
    background: var(--oddizer-accent);
    color: var(--oddizer-bg);
    border-color: var(--oddizer-accent);
    transform: scale(1.1);
}

.sticky-toggle-top .retro-btn:active {
    transform: scale(0.95);
}

.sticky-toggle-top .retro-btn i {
    transition: transform 0.3s ease;
}

.sticky-odds-footer.hidden .sticky-toggle-top .retro-btn i {
    transform: rotate(180deg);
}

.sticky-teams-stacked {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 12px;
    min-width: 80px;
    justify-content: center;
}

.sticky-odds-aligned {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.odds-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.odds-row {
    display: flex;
    gap: 8px;
}

.sticky-content .odds-cell {
    flex: 1;
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    padding: 2px 4px;
    font-weight: bold;
    font-size: 9px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 18px;
}

.odds-cell:hover {
    border-color: var(--oddizer-accent);
    background: var(--oddizer-header-bg);
}

.odds-cell.moneyline {
    color: var(--oddizer-accent);
}

.odds-cell.spread {
    color: var(--oddizer-accent-secondary);
}

.odds-cell.total {
    color: var(--oddizer-blue);
}

.sticky-odds-footer.hidden {
    transform: translateY(calc(100% - 28px));
}

.sticky-odds-footer.hidden .sticky-toggle-top {
    top: -2px;
}

.sticky-odds-footer.hidden .sticky-content {
    opacity: 0;
    pointer-events: none;
}

.sticky-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transition: opacity 0.2s ease;
}

.sticky-matchup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sticky-matchup-stacked {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 16px;
}

.sticky-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.sticky-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sticky-team-logo-fallback {
    width: 24px;
    height: 24px;
    background: var(--oddizer-accent-secondary);
    color: var(--oddizer-text-light);

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
}

.sticky-team-name {
    color: var(--oddizer-text);
    font-weight: bold;
    font-size: 14px;
    min-width: 35px;
}

.sticky-vs {
    color: var(--oddizer-accent);
    font-weight: bold;
}

.sticky-odds-grid {
    display: flex;
    gap: 20px;
}

.sticky-odds-item {
    text-align: center;
}

.odds-type {
    color: var(--oddizer-text-dim);
    font-size: 10px;
    margin-bottom: 4px;
}

.sticky-odds-item .odds-values {
    display: flex;
    gap: 8px;
}

.sticky-odds-item .odds-value {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    padding: 2px 4px;
    color: var(--oddizer-accent);
    font-weight: bold;
    font-size: 11px;
    min-width: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-shrink: 1;
}

.sticky-odds-item .odds-value:hover {
    border-color: var(--oddizer-accent);
    background: var(--oddizer-header-bg);
}

.sticky-odds-item .odds-value.unavailable {
    color: var(--oddizer-text-dim);
    opacity: 0.6;
    cursor: default;
}

.sticky-odds-item .odds-value.unavailable:hover {
    border-color: var(--oddizer-border);
    background: var(--oddizer-panel-bg);
}

.sticky-odds-item .odds-value.away {
    color: var(--oddizer-accent);
}

.sticky-odds-item .odds-value.home {
    color: var(--oddizer-accent);
}

/* For spread/runline odds - use accent-secondary color like sidebar */
.sticky-odds-item.spread-odds .odds-value {
    color: var(--oddizer-accent-secondary);
}

/* Override for unavailable spread/runline */
.sticky-odds-item.spread-odds .odds-value.unavailable {
    color: var(--oddizer-text-dim);
}

.sticky-odds-item .odds-value.total-over, .sticky-odds-item .odds-value.total-under {
    color: var(--oddizer-blue);
}

/* Book icons in sticky footer - match sidebar styling */
.sticky-odds-item .book-icon {
    width: 10px;
    height: 10px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
    margin-right: 1px;
}

/* Team logos and book icons for overview odds */
.team-logo-odds {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
}

.book-icon-overview {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.9;
}

/* Color coding for overview odds to match sidebar and footer */
.odds-category.moneyline-category .odds-value.moneyline-odds {
    color: var(--oddizer-accent);
}

.odds-category.spread-category .odds-value.spread-odds {
    color: var(--oddizer-accent-secondary);
}


.odds-category.totals-category .odds-value.total-under, .odds-category.totals-category .odds-value.total-over {
    color: var(--oddizer-blue);
}

.retro-btn {
    background: transparent;
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 4px;
}

.retro-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===== PLACEHOLDERS ===== */
.odds-placeholder,
.stats-placeholder,
.players-placeholder,
.modeling-placeholder,
.standings-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--oddizer-text-dim);
}

.placeholder-icon {
    margin-bottom: 20px;
    color: var(--oddizer-accent-secondary);
}

.odds-placeholder h4,
.stats-placeholder h4,
.players-placeholder h4,
.modeling-placeholder h4,
.standings-placeholder h4 {
    color: var(--oddizer-text);
    margin-bottom: 16px;
}

/* ===== STANDINGS STYLES ===== */
.standings-content {
    padding: 0;
}

.standings-controls {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    margin-bottom: 0;
}

.standings-controls label {
    color: var(--oddizer-accent);
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.standings-controls .form-control {
    background: var(--oddizer-header-bg);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text);
    font-size: 14px;
    padding: 6px 10px;
}

.standings-controls .form-control:focus {
    border-color: var(--oddizer-accent);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
    background: var(--oddizer-panel-bg);
}

.standings-table {
    margin: 0;
}

.standings-table .team-cell {
    min-width: 120px;
}

.standings-row {
    transition: all 0.3s ease;
}

.standings-row:hover {
    background: var(--oddizer-panel-bg) !important;
}

.standings-loading,
.standings-error {
    text-align: center;
    padding: 40px 20px;
}

.standings-loading {
    color: var(--oddizer-text-dim);
}

.standings-loading i {
    color: var(--oddizer-accent);
    margin-bottom: 15px;
}

.standings-error {
    color: var(--oddizer-red);
}

.standings-error i {
    color: var(--oddizer-red);
    margin-bottom: 15px;
}

/* ===== DATE PICKER ===== */
.date-picker-container {
    padding: 8px 12px;
    background: transparent;
    border-bottom: 1px solid var(--oddizer-border);
    border-top: none;
}

.date-picker-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--oddizer-border);
    border-radius: 4px;
    padding: 6px 10px;
    color: var(--oddizer-text);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.date-picker-input:focus {
    outline: none;
    border-color: var(--oddizer-accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.date-picker-input::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0) saturate(100%) invert(67%) sepia(93%) saturate(1352%) hue-rotate(88deg) brightness(118%) contrast(119%);
    cursor: pointer;
    opacity: 0.8;
}

.date-picker-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ===== LOADING STATES ===== */
.sidebar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    margin: 0 20px;
}

.loading-text {
    color: var(--oddizer-text-dim);
    font-size: 12px;
    margin-top: 12px;
}

/* ===== LEAGUE PAGE STYLES ===== */

.league-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.league-title {
    color: var(--oddizer-text);
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 15px var(--oddizer-accent);
    letter-spacing: 2px;
}

.league-subtitle {
    color: var(--oddizer-text-dim);
    font-size: 16px;
    margin-top: 8px;
}

.season-status {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Top Teams */
.top-teams-list {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.team-ranking-item {
    display: grid;
    grid-template-columns: 28px 28px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 255, 65, 0.02);
    border: 1px solid rgba(0, 255, 65, 0.08);
    transition: all 0.15s ease;
}

.team-ranking-item:hover {
    border-color: var(--oddizer-accent);
    background: rgba(0, 255, 65, 0.05);
}

.team-ranking-item .rank {
    grid-column: 1;
    background: rgba(0, 255, 65, 0.12);
    color: var(--oddizer-accent);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    margin: 0;
    position: static;
    border-radius: 0;
}

.team-ranking-item .team-logo-xs {
    grid-column: 2;
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
    position: static;
}

.team-ranking-item .team-info {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    flex: none;
    gap: 3px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    padding: 0 !important;
    margin: 0;
    position: relative;
    left: 0;
    z-index: auto;
    align-items: flex-start;
    justify-content: center;
}

.team-ranking-item .team-name {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    text-align: left;
}

.team-ranking-item .team-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    align-items: center;
    margin: 0;
    margin-left: 0;
    padding: 0;
    width: auto;
    max-width: 100%;
}

.team-ranking-item .team-record {
    color: var(--oddizer-accent);
    font-weight: 600;
    white-space: nowrap;
}

.team-ranking-item .team-elo {
    color: #888;
    font-weight: 500;
    font-size: 11px;
    white-space: nowrap;
}

/* Top 3 styling - subtle green intensity */
.team-ranking-item:nth-child(1) .rank {
    background: rgba(0, 255, 65, 0.25);
    color: #fff;
}

.team-ranking-item:nth-child(2) .rank {
    background: rgba(0, 255, 65, 0.18);
}

.team-ranking-item:nth-child(3) .rank {
    background: rgba(0, 255, 65, 0.12);
}

/* League Stats */
.league-stats-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.league-stats-grid .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--oddizer-border);
}

.league-stats-grid .stat-item:last-child {
    border-bottom: none;
}

/* Recent Games */
.recent-games-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.recent-games-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* League Overview Loading States */
.league-overview-loading {
    text-align: center;
    padding: 20px;
    color: var(--oddizer-text-primary);
}

.league-overview-loading i {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: var(--oddizer-accent);
}

.league-overview-loading .loading-text {
    font-size: 0.9em;
    opacity: 0.8;
}

.overview-error {
    text-align: center;
    padding: 20px;
    color: #ff6b6b;
}

.overview-error i {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: var(--oddizer-text-secondary);
    font-style: italic;
}

/* Live Game Styling for Schedule Cards */
.schedule-game-card.live-game {
    background: rgba(0, 230, 58, 0.04);
    border-color: rgba(0, 230, 58, 0.2);
    animation: pulse-live 2s infinite;
}

.schedule-time-compact.live-status {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.3);
}

@keyframes pulse-live {
    0% {
        border-color: var(--oddizer-accent);
    }
    50% {
        border-color: #00ff00;
    }
    100% {
        border-color: var(--oddizer-accent);
    }
}

/* Placeholder styles for other tabs */
.standings-placeholder,
.leaders-placeholder,
.trends-placeholder,
.schedule-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--oddizer-text-dim);
}

/* Schedule Styles */
.schedule-content {
    padding: 0;
}

.schedule-loading,
.schedule-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.schedule-loading i {
    color: #00ff41;
    margin-bottom: 10px;
}

.schedule-error i {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.schedule-list {
    padding: 0;
}

.schedule-date-section {
    margin-bottom: 12px;
}

.schedule-date-header {
    background: rgba(0, 255, 65, 0.06);
    padding: 6px 10px;
    margin-bottom: 6px;
}

.schedule-date-header h6 {
    margin: 0;
    color: #00ff41;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-date-header i {
    margin-right: 6px;
    font-size: 0.7rem;
}

.schedule-games {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-game-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.2);

    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.schedule-game-item:hover {
    background: rgba(0, 255, 65, 0.05);
    border-color: rgba(0, 255, 65, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 255, 65, 0.1);
}

.schedule-game-content {
    display: grid;
    grid-template-columns: 2fr auto 3fr;
    gap: 15px;
    align-items: center;
}

.schedule-matchup {
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.schedule-team .team-name {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.schedule-vs {
    color: #888;
    font-size: 12px;
    font-weight: 600;
}

.schedule-time {
    color: #00ff41;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.schedule-odds {
    display: flex;
    justify-content: flex-end;
}

.schedule-odds-grid {
    display: flex;
    gap: 15px;
    align-items: center;
}

.schedule-odds-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.schedule-odds-type .odds-type-label {
    color: #888;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-odds-type .odds-values {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.schedule-odds-type .odds-value {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 3px 6px;

    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    min-width: 50px;
}

.schedule-odds-type .odds-value.away {
    color: #ff9999;
}

.schedule-odds-type .odds-value.home {
    color: #99ff99;
}

.schedule-odds-type .odds-value.over,
.schedule-odds-type .odds-value.under {
    color: #99ccff;
}

/* New Card Grid Layout */
.schedule-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.5rem;
}

a.schedule-game-card,
a.schedule-game-card:hover,
a.schedule-game-card:focus,
a.schedule-game-card:visited,
a.schedule-game-card * {
    text-decoration: none !important;
}

.schedule-game-card {
    display: block;
    color: inherit;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--oddizer-border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s ease;
}

.schedule-game-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.schedule-card-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.4rem 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.schedule-matchup-compact {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.schedule-team-compact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.schedule-team-compact .team-abbr {
    font-weight: 600;
    color: #fff;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-vs-compact {
    color: #666;
    font-weight: 400;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.schedule-time-compact {
    color: var(--oddizer-text-dim);
    font-weight: 500;
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.schedule-time-compact i {
    display: none;
}

/* Compact Table-style Odds */
.schedule-card-odds {
    padding: 0.35rem 0.5rem;
}

.schedule-odds-compact {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 0.2rem 0.4rem;
    align-items: center;
    font-size: 0.7rem;
}

.odds-row-compact {
    display: contents;
}

.odds-label-compact {
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    text-align: left;
}

.odds-pair-compact {
    display: contents;
}

.odds-with-book {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.25rem;
    background: transparent;
    border: none;
}

.odds-with-book:hover {
    background: rgba(0, 255, 65, 0.08);
}

.odds-with-book.away {
    color: #ffb347;
    border: none;
    background: transparent;
}

.odds-with-book.home {
    color: #7fff7f;
    border: none;
    background: transparent;
}

.odds-with-book.over {
    color: #87ceeb;
    border: none;
    background: transparent;
}

.odds-with-book.under {
    color: #ffb6c1;
    border: none;
    background: transparent;
}

.book-icon-xs {
    width: 12px;
    height: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.odds-value-xs {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.no-odds-compact {
    text-align: center;
    color: #555;
    font-size: 0.7rem;
    padding: 0.3rem;
}

.no-odds-compact i {
    margin-right: 0.2rem;
    font-size: 0.6rem;
}

@media (max-width: 991px) {
    .schedule-game-content {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .schedule-matchup {
        justify-content: center;
    }

    .schedule-odds {
        justify-content: center;
    }

    .schedule-odds-grid {
        gap: 8px;
    }

    .schedule-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.4rem;
    }

    .schedule-card-header {
        padding: 0.35rem 0.5rem;
    }

    .schedule-card-odds {
        padding: 0.3rem 0.4rem;
    }
}

@media (max-width: 1200px) {
    .event-header {
        padding: 12px 16px;
    }

    .event-header .col-lg-8,
    .event-header .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .matchup-display {
        justify-content: center;
        gap: 18px;
    }

    .team-section {
        justify-content: center;
    }

    .game-status {
        margin-top: 12px;
        text-align: left;
    }

    .status-value {
        font-size: 16px;
        line-height: 1.4;
    }

    .event-tabs-container {
        margin-bottom: 8px;
    }

    .odds-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .odds-tabs .nav-item {
        flex: 1 1 auto;
    }

    .odds-tabs .nav-link {
        width: 100%;
        font-size: 12px;
        padding: 8px 10px;
    }

    .odds-tabs .nav-link i {
        font-size: 0.85em;
    }

    /* Emphasize predictions tab */
    .odds-tabs .nav-item:last-child .nav-link {
        background: rgba(255, 165, 0, 0.12);
        border: 1px solid rgba(255, 165, 0, 0.25);
    }

    .odds-tabs .nav-item:last-child .nav-link.active {
        background: #ffa500;
        border-color: #ffa500;
    }
}

@media (max-width: 768px) {
    .league-header-row {
        gap: 4px;
    }

    .league-title {
        font-size: 14px !important;
        letter-spacing: 0.5px;
        margin: 0;
    }

    .event-header {
        padding: 6px 8px !important;
    }

    .season-status {
        gap: 4px;
    }

    .status-label {
        font-size: 9px;
    }

    .status-value {
        font-size: 11px;
        font-weight: bold;
    }

    /* Compact mobile tabs */
    .odds-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        padding: 4px;
        overflow: visible;
        white-space: normal;
    }

    .odds-tabs .nav-item {
        flex: 1 1 auto;
    }

    .odds-tabs .nav-link {
        padding: 6px 8px !important;
        font-size: 10px !important;
        min-width: auto;
        white-space: nowrap;
        border-radius: 2px;
        width: 100%;
        text-align: center;
    }

    .odds-tabs .nav-link i {
        margin-right: 3px !important;
        font-size: 9px !important;
    }

    .odds-tabs .nav-item:last-child .nav-link {
        background: rgba(255, 165, 0, 0.15);
        border: 1px solid rgba(255, 165, 0, 0.3);
    }

    .odds-tabs .nav-item:last-child .nav-link.active {
        background: #ffa500;
        border-color: #ffa500;
    }

    .event-tabs-container {
        margin-bottom: -12px !important;
    }

    .tab-pane {
        margin-top: 4px;
    }

    .league-overview-content > .row {
        margin-bottom: 12px !important;
    }

    /* Improve retro-content padding for mobile */
    .retro-content {
        padding: 12px 8px !important;
    }

    .matchup-display {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-start;
        gap: 8px;
    }

    .matchup-display .team-section {
        flex: 0 0 calc(50% - 24px);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        min-width: 0;
    }

    .matchup-display .team-section .team-logo {
        width: 48px;
        height: 48px;
    }

    .matchup-display .team-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .matchup-display .team-info h2 {
        font-size: 18px;
        line-height: 1.2;
        text-align: center;
    }

    .matchup-display .team-meta {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 2px 6px;
        font-size: 10px;
    }

    .matchup-display .team-meta .team-record,
    .matchup-display .team-meta .team-elo {
        flex: 0 0 auto;
        display: inline-flex;
        gap: 4px;
        align-items: center;
    }

    .matchup-display .team-meta .team-streak {
        flex: 1 1 100%;
        text-align: center;
        margin-top: 2px;
        font-size: 10px;
    }

    .vs-divider {
        order: 0;
        align-self: center;
        flex: 0 0 auto;
        width: auto;
        text-align: center;
        font-size: 16px;
        margin: 0 4px;
    }

    /* Top teams - mobile layout */
    .top-teams-list {
        padding: 6px;
        gap: 4px;
    }

    .team-ranking-item {
        grid-template-columns: 22px 24px 1fr;
        gap: 8px;
        padding: 8px 10px;
    }

    .team-ranking-item .rank {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .team-ranking-item .team-logo-xs {
        width: 24px;
        height: 24px;
    }

    .team-ranking-item .team-name {
        font-size: 14px;
    }

    .team-ranking-item .team-stats {
        font-size: 11px;
        gap: 6px;
    }

    .team-ranking-item .team-elo {
        font-size: 11px;
    }

    .stats-filters .filter-row.single-row,
    .players-filters .filter-row.single-row {
        flex-direction: column;
        gap: 12px;
    }

    .stats-filters .filter-group,
    .players-filters .filter-group {
        width: 100%;
    }

    .stats-filters .toggle-group,
    .players-filters .toggle-group {
        flex-wrap: wrap;
    }

    .stats-filters .filter-toggle,
    .players-filters .filter-toggle {
        flex: 1 1 48%;
        min-width: 48%;
        text-align: center;
        padding: 10px 8px;
        font-size: 12px;
    }

    .stats-filters .metrics-group,
    .players-filters .metrics-group {
        min-width: 0;
    }

    .stats-filters .metrics-toggle,
    .players-filters .metrics-toggle {
        width: 100%;
    }

    .stats-filters .reset-button-group,
    .players-filters .reset-button-group {
        align-items: stretch;
    }

    .stats-filters .reset-btn,
    .players-filters .reset-btn {
        width: 100%;
    }

    /* Leaders filters - compact mobile layout */
    .leaders-filters {
        padding: 6px 8px;
    }

    .leaders-filters .filter-row.single-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .leaders-filters .filter-group {
        flex: 0 0 auto;
        width: auto;
    }

    .leaders-filters .toggle-group {
        display: flex;
        flex-wrap: nowrap;
        gap: 1px;
    }

    .leaders-filters .filter-toggle {
        flex: 0 1 auto;
        min-width: 0;
        text-align: center;
        padding: 5px 8px;
        font-size: 10px;
        white-space: nowrap;
        min-height: 26px;
    }

    .leaders-filters .metrics-group {
        flex: 0 0 auto;
        min-width: 100px;
    }

    .leaders-filters .metrics-toggle {
        padding: 5px 8px;
        font-size: 10px;
        gap: 4px;
        min-height: 26px;
    }

    .leaders-filters .metrics-toggle i:first-child {
        font-size: 10px;
    }

    .leaders-filters .metrics-toggle i:last-child {
        font-size: 8px;
        margin-left: 2px;
    }

    .leaders-filters .metrics-menu {
        min-width: 180px;
        max-height: 50vh;
    }

    .leaders-filters .metrics-option {
        padding: 6px 8px;
        font-size: 11px;
        min-height: 32px;
    }

    .players-display .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .players-display .compact-game-table {
        min-width: 640px;
        table-layout: auto;
        font-size: 12px;
    }

    .players-display .compact-game-table thead th,
    .players-display .compact-game-table tbody td {
        white-space: nowrap;
        padding: 6px 8px;
    }

    .players-display .player-name-cell {
        min-width: 160px;
    }

    .schedule-team .team-name {
        font-size: 12px;
    }

    .schedule-odds-grid {
        flex-wrap: wrap;
        gap: 8px;
    }

    .schedule-odds-type .odds-value {
        font-size: 10px;
        min-width: 45px;
        padding: 2px 4px;
    }

    /* Mobile card layout - ultra compact */
    .schedule-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.35rem;
    }

    .schedule-game-card {
        border-width: 1px;
    }

    .schedule-card-header {
        padding: 0.3rem 0.4rem;
        gap: 0.25rem;
    }

    .schedule-matchup-compact {
        gap: 0.2rem;
    }

    .schedule-team-compact {
        gap: 0.15rem;
    }

    .schedule-team-compact .team-logo-xs {
        width: 14px;
        height: 14px;
    }

    .schedule-team-compact .team-abbr {
        font-size: 0.7rem;
    }

    .schedule-vs-compact {
        font-size: 0.6rem;
    }

    .schedule-time-compact {
        font-size: 0.6rem;
    }

    .schedule-card-odds {
        padding: 0.25rem 0.35rem;
    }

    .schedule-odds-compact {
        gap: 0.15rem 0.25rem;
        font-size: 0.6rem;
    }

    .odds-label-compact {
        font-size: 0.55rem;
    }

    .book-icon-xs {
        width: 10px;
        height: 10px;
    }

    .odds-value-xs {
        font-size: 0.6rem;
    }

    .no-odds-compact {
        font-size: 0.6rem;
        padding: 0.2rem;
    }
}

@media (max-width: 400px) {
    .schedule-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .schedule-date-header {
        padding: 4px 8px;
        margin-bottom: 4px;
    }

    .schedule-date-header h6 {
        font-size: 0.65rem;
    }

    .schedule-date-section {
        margin-bottom: 8px;
    }
}

/* ===== MOBILE SIDEBAR TOGGLE ===== */
.mobile-sidebar-toggle {
    position: fixed;
    top: 50vh;
    left: 0px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--oddizer-panel-bg);
    border: 2px solid var(--oddizer-border);
    border-left: none;
    color: var(--oddizer-text);
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    z-index: 1070;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar-toggle:hover {
    background: var(--oddizer-accent);
    color: var(--oddizer-bg);
    border-color: var(--oddizer-accent);
    transform: translateY(-50%) translateX(2px);
    box-shadow: 4px 4px 12px rgba(0, 255, 65, 0.3);
}

.mobile-sidebar-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.3);
}

.mobile-sidebar-toggle.open {
    left: var(--sidebar-mobile-width);
    background: var(--oddizer-accent);
    color: var(--oddizer-bg);
    border-color: var(--oddizer-accent);
    box-shadow: 4px 4px 12px rgba(0, 255, 65, 0.4);
    border-right: none;
    border-left: 2px solid var(--oddizer-accent);
    z-index: 1080;
}

.mobile-sidebar-toggle.open i {
    transform: rotate(180deg);
}


/* ===== ODDS TAB STYLES ===== */
.odds-section-content {
    padding: 16px;
}

/* New simplified table structure */
.team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-cell .team-name {
    font-weight: bold;
    color: var(--oddizer-text);
}

.best-odds-cell {
    text-align: center;
}

.best-odds-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.odds-with-book {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.all-books-cell {
    text-align: center;
}

.books-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.book-odds-item {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    padding: 2px 4px;
    min-width: 50px;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

/* Book color accent effect */
.book-odds-item[style*="border-left"] {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, var(--oddizer-panel-bg) 10%);
}

.book-odds-item:hover {
    border-color: var(--oddizer-accent);
    background: var(--oddizer-header-bg);
}

.book-odds-item.totals {
    min-width: 60px;
}

.book-icon-inline {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.book-icon-small {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.odds-value-compact {
    font-size: 11px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.totals-line-cell {
    text-align: center;
}

.ou-label {
    font-size: 9px;
    color: var(--oddizer-text-dim);
    text-transform: uppercase;
    min-width: 10px;
    text-align: center;
}

/* Tooltip styling for odds timestamps */
.book-odds-item,
.best-odds-display,
.odds-value {
    cursor: help;
}

.book-odds-item[title]:hover,
.best-odds-display [title]:hover,
.odds-value[title]:hover {
    position: relative;
}

.section-subtitle {
    color: var(--oddizer-accent);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--oddizer-border);
    padding-bottom: 8px;
}

.odds-table-container {
    margin-bottom: 32px;
}

.odds-chart-container {
    margin-bottom: 16px;
}

.odds-chart {
    height: 400px;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* allow flex shrink */
    background: var(--oddizer-header-bg);
    border: 1px solid var(--oddizer-border);
    padding: 8px;
}

.odds-table {
    width: 100%;
    background: var(--oddizer-header-bg);
    border: 1px solid var(--oddizer-border);
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.odds-table thead th {
    background: var(--oddizer-panel-bg);
    color: var(--oddizer-accent);
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--oddizer-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.odds-table thead th:first-child {
    text-align: left;
    border-top-left-radius: 6px;
}

.odds-table thead th:last-child {
    border-top-right-radius: 6px;
}

.odds-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--oddizer-border);
    color: var(--oddizer-text);
    transition: background-color 0.3s ease;
}

.odds-table tbody td:first-child {
    text-align: left;
    font-weight: bold;
    color: var(--oddizer-accent);
    background: var(--oddizer-panel-bg);
}

.odds-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}

.odds-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}

/* Odds cell styling */
.odds-cell {
    position: relative;
    min-width: 80px;
}

.odds-value {
    display: block;
    font-weight: bold;
    color: var(--oddizer-accent);
    margin-bottom: 2px;
}

.odds-line {
    display: block;
    font-size: 10px;
    color: var(--oddizer-text-dim);
    font-style: italic;
}

.odds-timestamp {
    display: block;
    font-size: 9px;
    color: var(--oddizer-text-dim);
    opacity: 0.7;
}

/* Positive/negative odds coloring */
.odds-value.positive {
    color: var(--oddizer-accent);
}

.odds-value.negative {
    color: var(--oddizer-accent-secondary);
}

/* Best odds highlighting */
.best-odds {
    background: rgba(0, 255, 65, 0.1) !important;
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}

.best-odds .odds-value {
    color: var(--oddizer-accent);
    text-shadow: 0 0 5px var(--oddizer-accent);
}

/* Book header styling */
.book-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.book-icon-header {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* No odds available */
.no-odds {
    color: var(--oddizer-text-dim);
    font-style: italic;
    opacity: 0.6;
}

/* Totals specific styling */
.totals-row-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-line-value {
    font-size: 14px;
    font-weight: bold;
    color: var(--oddizer-blue);
}

.over-under-label {
    font-size: 10px;
    color: var(--oddizer-text-dim);
    text-transform: uppercase;
}

/* ===== CHART CONTROLS ===== */
.chart-controls {
    background: var(--oddizer-header-bg);
    border: 1px solid var(--oddizer-border);
    padding: 12px;
    margin-bottom: 16px;
}

.chart-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.chart-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.chart-filter-group label {
    color: var(--oddizer-accent);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-btn {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--oddizer-accent);
    background: var(--oddizer-header-bg);
    color: var(--oddizer-accent);
}

.filter-btn.active {
    background: var(--oddizer-accent);
    color: var(--oddizer-bg);
    border-color: var(--oddizer-accent);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

/* Book-specific filter button styling */
.filter-btn.book-filter-colored {
    border-color: var(--book-color);
}

.filter-btn.book-filter-colored:hover {
    border-color: var(--book-color);
    background: var(--oddizer-header-bg);
    color: var(--book-color);
    box-shadow: 0 0 8px rgba(var(--book-color), 0.3);
}

.filter-btn.book-filter-colored.active {
    background: var(--book-color);
    color: var(--oddizer-bg);
    border-color: var(--book-color);
    box-shadow: 0 0 8px rgba(var(--book-color), 0.5);
}

.filter-team-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.filter-book-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.chart-action-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: auto;
}

.chart-action-btn {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text-dim);
    padding: 8px 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.chart-action-btn:hover {
    border-color: var(--oddizer-accent-secondary);
    background: var(--oddizer-header-bg);
    color: var(--oddizer-accent-secondary);
}

.chart-action-btn i {
    font-size: 10px;
}

/* Enhanced chart styling */
.odds-chart {
    height: 450px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--oddizer-header-bg);
    border: 1px solid var(--oddizer-border);
    padding: 8px;
    position: relative;
}

.odds-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(0, 255, 65, 0.02) 50px,
            rgba(0, 255, 65, 0.02) 51px
    );
    pointer-events: none;
}

.elo-tooltip-container {
    background-color: black;
}

.elo-trend-tooltip {
    background: #0f1510;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 65, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    color: #e7ffe0;
    font-size: 12px;
    min-width: 130px;
}

.elo-trend-tooltip-date {
    display: block;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #aaff82;
    margin-bottom: 6px;
}

.elo-trend-tooltip-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.elo-trend-tooltip-logo {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.15);
    object-fit: contain;
    flex-shrink: 0;
}

.elo-trend-tooltip-team {
    flex: 1;
    font-weight: 500;
    color: #f8fff0;
}

.elo-trend-tooltip-value {
    font-weight: 600;
    color: #ffffff;
    text-align: right;
    min-width: 48px;
}

/* ===== STREAMLINED ODDS TAB ===== */
.odds-content {
    padding: 0;
}

.odds-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
}

.odds-panel-header h6 {
    margin: 0;
    font-size: 12px;
}

.odds-filters-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    color: var(--oddizer-accent);
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.odds-filters-toggle:hover {
    background: rgba(0, 255, 65, 0.15);
    border-color: rgba(0, 255, 65, 0.4);
}

.odds-filters-toggle .toggle-arrow {
    transition: transform 0.2s;
    font-size: 9px;
}

.odds-filters-toggle .toggle-arrow.rotated {
    transform: rotate(180deg);
}

.odds-filter-bar {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.odds-chart-filters {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 255, 65, 0.08);
}

.filter-row-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label-inline {
    color: var(--oddizer-text-dim);
    font-size: 10px;
    margin-right: 2px;
    flex-shrink: 0;
}

.filter-label-inline i {
    font-size: 10px;
}

/* Scrollable book chips container */
#odds-book-chips {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    padding: 2px 0;
}

#odds-book-chips::-webkit-scrollbar {
    display: none;
}

/* Book chip color coding to match chart lines */
#odds-book-chips .filter-chip[data-value]:not([data-value="all"]) {
    border-color: var(--book-accent, var(--oddizer-border));
    position: relative;
}

#odds-book-chips .filter-chip[data-value]:not([data-value="all"])::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--book-accent);
    opacity: 0.8;
}

#odds-book-chips .filter-chip[data-value]:not([data-value="all"]):hover {
    border-color: var(--book-accent);
    box-shadow: 0 0 6px color-mix(in srgb, var(--book-accent) 40%, transparent);
}

#odds-book-chips .filter-chip[data-value]:not([data-value="all"]).active {
    background: var(--book-accent);
    border-color: var(--book-accent);
    color: #000;
}

#odds-book-chips .filter-chip[data-value]:not([data-value="all"]).active::before {
    display: none;
}

.ou-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.chart-options-inline {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.odds-state-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--oddizer-text-dim);
}

.odds-state-msg .state-icon {
    margin-bottom: 12px;
}

.odds-state-msg p {
    margin: 0;
    font-size: 14px;
}

/* Odds Dual Display - Table + Chart */
.odds-dual-display {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
}

.odds-dual-display.view-both {
    grid-template-columns: minmax(200px, 480px) minmax(0, 1fr);
    align-items: start;
}

.odds-dual-display.view-table-only .odds-chart-section,
.odds-dual-display.view-chart-only .odds-table-section {
    display: none;
}

.odds-table-section {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    min-width: 0;
}

.odds-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.odds-table-compact th,
.odds-table-compact td {
    padding: 8px 10px;
    vertical-align: top;
}

.odds-table-compact tr {
    border-bottom: 1px solid var(--oddizer-border);
}

.odds-table-compact th {
    background: var(--oddizer-panel-bg);
    color: var(--oddizer-accent);
    font-weight: 600;
    vertical-align: middle;
    text-transform: uppercase;
    font-size: 10px;
    text-align: left;
}

.odds-table-compact .team-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.odds-table-compact .team-cell span {
    font-weight: 600;
    color: var(--oddizer-text);
}

.table-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.odds-table-compact .line-cell strong {
    color: var(--oddizer-blue);
    font-size: 13px;
}

.best-odds-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.best-odds-compact .odds-num {
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.best-odds-compact .odds-num.best {
    color: var(--oddizer-accent);
}

.best-odds-compact .line-num {
    color: var(--oddizer-text-dim);
    font-size: 10px;
}

.best-odds-compact .ou-prefix {
    font-size: 9px;
    color: var(--oddizer-text-dim);
    font-weight: 600;
}

.book-icon-xs {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.books-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 350px;
}

.odds-table-compact .books-cell {
    max-width: 380px;
}

.book-odds-mini {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--oddizer-border);
    white-space: nowrap;
}

.book-odds-mini .line-val {
    color: var(--oddizer-text-dim);
    font-size: 9px;
}

.book-odds-mini:hover {
    border-color: var(--oddizer-accent);
}

.odds-chart-compact {
    height: 380px;
    width: 100%;
    min-width: 0;
    background: var(--oddizer-header-bg);
    border: 1px solid var(--oddizer-border);
}

.filter-chip-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .odds-dual-display.view-both {
        grid-template-columns: 1fr;
    }

    .odds-chart-compact {
        height: 320px;
    }

    .odds-table-section {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .odds-dual-display.view-both {
        grid-template-columns: 1fr;
    }

    .chart-options-inline {
        margin-left: auto;
    }

    .filter-row-inline {
        gap: 4px;
        flex-wrap: wrap;
    }

    /* Books wrap instead of scroll on mobile */
    #odds-book-chips {
        max-width: none;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

@media (max-width: 576px) {
    .odds-panel-header {
        padding: 8px 10px;
    }

    .odds-panel-header h6 {
        font-size: 11px;
    }

    .odds-filter-bar {
        padding: 6px 8px;
    }

    .odds-chart-filters {
        padding: 5px 8px;
    }

    .odds-dual-display {
        padding: 8px;
        gap: 8px;
    }

    .odds-table-compact {
        font-size: 10px;
    }

    .odds-table-compact th, .odds-table-compact td {
        padding: 5px 6px;
    }

    .table-team-logo {
        width: 14px;
        height: 14px;
    }

    .book-icon-xs {
        width: 12px;
        height: 12px;
    }

    .odds-chart-compact {
        height: 280px;
    }

    .filter-label-inline {
        display: none;
    }

    #odds-team-chips {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 35vw;
    }

    #odds-team-chips::-webkit-scrollbar {
        display: none;
    }
}

/* ===== STATS TAB STYLES ===== */
.stats-content {
    padding: 0;
}

/* Team Selector Styling */
.stats-team-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 3px;
}

.team-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-option:hover {
    background: rgba(0, 255, 0, 0.05);
    /*border-color: #00FF00;*/
    /*transform: translateY(-2px);*/
}

.team-option.selected {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00FF00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.team-logo-container {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-select {
    width: 55px;
    height: 55px;
    background-color: white;
    margin-right: 10px;
}

.stats-team-selector .team-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-option .team-name {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-option .team-label {
    color: #00FF00;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.stats-team-selector .vs-divider {
    color: #00FF00;
    font-size: 24px;
    margin: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/* Advanced Filters Styling */
.stats-filters {
    padding: 15px;
}

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.filter-row.single-row {
    margin-bottom: 0;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-row.compact-row {
    gap: 20px;
    margin-bottom: 20px;
}

.filter-row.compact-row .filter-group {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.filter-group label {
    color: var(--oddizer-text);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section-header {
    margin: 20px 0 10px 0;
    padding: 8px 12px;
    background: rgba(0, 255, 65, 0.1);
    border-left: 3px solid var(--oddizer-accent);

}

.filter-section-header h7 {
    color: var(--oddizer-accent);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section-header:first-child {
    margin-top: 0;
}

.filter-section-header i {
    margin-right: 8px;
    color: var(--oddizer-accent);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reset-button-group {
    justify-content: flex-end;
    align-items: flex-end;
}

/* Toggle Group Styling */
.toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    overflow: hidden;
}

.filter-toggle {
    background: transparent;
    border: none;
    color: var(--oddizer-text-dim);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(0, 255, 0, 0.2);
}

.filter-toggle:last-child {
    border-right: none;
}

.filter-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--oddizer-text);
}

.filter-toggle.active {
    background: rgba(0, 230, 58, 0.12);
    color: var(--oddizer-accent);
    font-weight: 600;
    border-bottom: 2px solid var(--oddizer-accent);
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #FFFFFF;
    font-size: 14px;
    margin: 0;
    padding: 8px 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 0, 0.5);
    background: rgba(0, 0, 0, 0.6);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #00FF00;
    border-color: #00FF00;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: #000000;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}

/* Custom Games Input */
.custom-games-input {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00FF00;
    font-size: 14px;
    padding: 6px 8px;
    margin-top: 8px;
    width: 100px;
    transition: all 0.3s ease;
}

.custom-games-input:focus {
    border-color: #00FF00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    outline: none;
}

/* Metrics Group Styling */
.metrics-group {
    min-width: 250px;
    position: relative;
}

/* Metrics Dropdown Styling */
.metrics-dropdown, .metrics-multiselect {
    position: relative;
}

.metrics-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--oddizer-panel-bg), #1f1f1f);
    border: 2px solid var(--oddizer-border);
    padding: 10px 16px;
    color: var(--oddizer-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;

    /*min-height: 48px;*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.metrics-toggle:hover {
    border-color: var(--oddizer-accent);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), #252525);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.2);
    transform: translateY(-1px);
}

.metrics-toggle.open {
    border-color: var(--oddizer-accent);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), #252525);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.3);
}

.metrics-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(26, 26, 26, 0.98));
    border: 2px solid var(--oddizer-accent);
    border-top: none;

    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.metrics-menu.open {
    display: block;
}

.metrics-option {
    padding: 12px 16px;
    color: var(--oddizer-text);
    font-size: 14px;
    font-weight: 450;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.metrics-option:last-child {
    border-bottom: none;
}

.metrics-option:hover {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.15), rgba(0, 255, 65, 0.05));
    color: #ffffff;
}

.metrics-option.selected {
    background: rgba(0, 255, 0, 0.2);
    color: #00FF00;
    font-weight: 600;
}

.metrics-option input[type="checkbox"],
.metrics-option input[type="radio"] {
    margin-right: 8px;
    width: 14px;
    height: 14px;
    accent-color: #00FF00;
    flex-shrink: 0;
    vertical-align: middle;
}

.metrics-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    width: 100%;
    color: inherit;
    font-size: inherit;
    gap: 6px;
}

.metrics-option .book-icon {
    height: 16px;
    flex-shrink: 0;
    width: auto;
}

/* Expandable Model Results Styling */
.model-row {
    cursor: pointer;
}

.expand-btn {
    background: none;
    border: none;
    color: #00ff9d;
    cursor: pointer;
    padding: 2px 6px 2px 0;
    font-size: 12px;
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.expand-btn:hover {
    color: #ffffff;
}

.expand-btn i {
    transition: transform 0.2s ease;
}

.model-detail-row {
    background: rgba(0, 0, 0, 0.4);
}

.muted {
    color: rgba(255, 255, 255, 0.3);
}

.direction-hint {
    display: inline-block;
    font-size: 10px;
    color: #66a3ff;
    margin-left: 6px;
    cursor: help;
}

.direction-hint i {
    margin-right: 2px;
}

.direction-tag {
    display: inline-block;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

.direction-tag.right-side {
    background: rgba(102, 163, 255, 0.2);
    color: #66a3ff;
    border: 1px solid rgba(102, 163, 255, 0.4);
}

/*.detail-content {*/
/*    padding: 20px !important;*/
/*}*/

.model-details {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 157, 0.3);

    padding: 16px;
}

.detail-header h6 {
    color: #00ff9d;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.detail-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stat-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.detail-stats-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #00ff9d;
}

.stat-item-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-separator {
    color: rgba(0, 255, 157, 0.5);
    font-weight: bold;
}

.stat-label {
    color: #cccccc;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 2px;
}

.stat-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

/* Compact inline stat styles */
.detail-stats-compact .stat-label {
    color: #99d6a3;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 0;
}

.detail-stats-compact .stat-value {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.bet-log h7 {
    color: #00ff9d;
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.bet-log-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 157, 0.2);

}

.bet-log-table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.bet-log-table th {
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 255, 157, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.bet-log-table td {
    padding: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

.pred-discrete {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.18);
    font-family: 'Courier New', monospace;
}

.pred-discrete.form-display {
    gap: 4px;
}

.pred-discrete .metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pred-discrete .metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--oddizer-text-dim);
}

.pred-discrete .metric-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--oddizer-accent);
}

.pred-discrete .metric-sub {
    font-size: 11px;
    color: var(--oddizer-text-dim);
    margin-left: auto;
}

.pred-discrete .metric-summary {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(0, 255, 65, 0.15);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--oddizer-accent-secondary);
    text-align: center;
}

.pred-discrete .form-string {
    display: flex;
    gap: 2px;
    flex-wrap: nowrap;
}

.pred-discrete .form-string span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
}

.pred-discrete .form-string .form-w {
    background: rgba(0, 255, 65, 0.12);
    color: var(--oddizer-accent);
}

.pred-discrete .form-string .form-l {
    background: rgba(255, 68, 68, 0.15);
    color: var(--oddizer-red);
}

/* Steam/Fade movement display */
.pred-discrete.movement-display .metric-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.signal-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-badge.signal-active {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.25), rgba(0, 200, 130, 0.15));
    color: var(--oddizer-accent);
    border: 1px solid rgba(0, 255, 157, 0.4);
    animation: pulse-signal 1.5s ease-in-out infinite;
}

@keyframes pulse-signal {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Model configuration button */
.checkbox-option.configurable .checkbox-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-config-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--oddizer-text-muted);
    font-size: 11px;
    margin-left: auto;
    transition: all 0.2s ease;
}

.model-config-btn:hover {
    background: rgba(0, 255, 157, 0.15);
    border-color: var(--oddizer-accent);
    color: var(--oddizer-accent);
}

.model-config-summary {
    font-size: 11px;
    color: var(--oddizer-text-muted);
    padding: 4px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--oddizer-accent);
    margin-left: 24px;
}

/* Model config inline panel */
.model-config-panel {
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--oddizer-accent);
    padding: 10px 12px;
    margin: 4px 0 8px 24px;
    border-radius: 0 4px 4px 0;
}

.model-config-panel .config-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.model-config-panel .config-row:last-child {
    margin-bottom: 0;
}

.model-config-panel .config-label {
    font-size: 11px;
    color: var(--oddizer-text-muted);
}

.model-config-panel .config-toggle {
    display: flex;
    gap: 2px;
}

.model-config-panel .mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--oddizer-text-muted);
    padding: 3px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.model-config-panel .mode-btn:first-child {
    border-radius: 3px 0 0 3px;
}

.model-config-panel .mode-btn:last-child {
    border-radius: 0 3px 3px 0;
}

.model-config-panel .mode-btn.active {
    background: var(--oddizer-accent);
    border-color: var(--oddizer-accent);
    color: #000;
}

.model-config-panel .config-input {
    width: 55px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--oddizer-text);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    -moz-appearance: textfield;
}

.model-config-panel .config-input::-webkit-outer-spin-button,
.model-config-panel .config-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.model-config-panel .config-input:focus {
    outline: none;
    border-color: var(--oddizer-accent);
    background: rgba(255, 255, 255, 0.1);
}

.model-config-panel .config-input::placeholder {
    color: var(--oddizer-text-muted);
    opacity: 0.6;
    font-weight: 400;
}

.model-config-panel .unit {
    font-size: 10px;
    color: var(--oddizer-text-muted);
    min-width: 20px;
}

.model-config-panel .config-radio {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--oddizer-text-muted);
    cursor: pointer;
}

.model-config-panel .config-radio input {
    margin: 0;
}

.team-prediction-value.discrete {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-prediction-value.discrete .discrete-summary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discrete-summary-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 4px;
}

.discrete-metric-label {
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--oddizer-text-dim);
}

.discrete-metric-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--oddizer-accent);
    line-height: 1.1;
    margin-left: auto;
}

.discrete-metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 65, 0.22);
    background: rgba(0, 255, 65, 0.12);
    color: var(--oddizer-accent);
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
}

.discrete-subtext {
    font-size: 11px;
    color: var(--oddizer-text-dim);
}

.discrete-subtext.has-form-string {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
}

.discrete-form-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
}

.discrete-form-letter.win {
    background: rgba(0, 255, 65, 0.14);
    color: var(--oddizer-accent);
}

.discrete-form-letter.loss {
    background: rgba(255, 68, 68, 0.16);
    color: var(--oddizer-red);
}

.discrete-form-letter.neutral {
    color: var(--oddizer-text);
}

.discrete-extra-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 11px;
}

.discrete-extra-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--oddizer-text-dim);
}

.discrete-extra-line + .discrete-extra-line {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 4px;
    margin-top: 4px;
}

.discrete-extra-line.positive .discrete-extra-value {
    color: var(--oddizer-accent);
}

.discrete-extra-line.negative .discrete-extra-value {
    color: var(--oddizer-red);
}

.discrete-extra-line.neutral .discrete-extra-value {
    color: var(--oddizer-text);
}

.discrete-extra-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.discrete-extra-value {
    font-size: 12px;
    font-weight: 600;
}

.bet-log-table .action {
    color: var(--oddizer-accent);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    min-width: 140px;
    max-width: 160px;
    word-break: break-all;
}

.bet-row.win {
    background: rgba(0, 255, 0, 0.1);
}

.bet-row.loss {
    background: rgba(255, 0, 0, 0.1);
}

.bet-row.filtered {
    background: rgba(255, 255, 0, 0.05);
    opacity: 0.7;
}

/* Wager side styling */
.location-indicator {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
}

.total-side {
    color: limegreen;
    font-weight: bold;
    font-size: 0.9em;
}

.game-info {
    min-width: 120px;
}

.matchup {
    color: #ffffff;
    font-weight: 500;
    line-height: 1.2;
}

.date {
    color: #cccccc;
    font-size: 10px;
    margin-top: 2px;
}

.bet-team {
    color: #00ff9d;
    font-weight: 600;
}

.wager-type {
    text-align: center;
    font-weight: 600;
}

.line, .odds {
    text-align: center;
    font-family: monospace;
}

.book {
    align-items: center;
    gap: 4px;
}

.book-icon-xs {
    height: 12px;
    width: auto;
    flex-shrink: 0;
}

.prediction, .actual {
    text-align: center;
    font-family: monospace;
}

.pred-home, .actual-home {
    color: #ff6b6b;
    font-weight: 500;
}

.pred-away, .actual-away {
    color: #4ecdc4;
    font-weight: 500;
}

.result {
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
}

.result.win {
    color: #00ff00;
}

.result.loss {
    color: #ff4444;
}

.result.filtered {
    color: #ffaa00;
    font-size: 10px;
}

.pl {
    text-align: right;
    font-family: monospace;
    font-weight: 600;
}

.pl.win {
    color: #00ff00;
}

.pl.loss {
    color: #ff4444;
}

.pl.filtered {
    color: #888888;
}

/* Result message styling */
.no-odds-text {
    color: var(--oddizer-text-dim);
    font-style: italic;
    font-size: 13px;
}

.no-wagers-text {
    color: var(--oddizer-warning);
    font-style: italic;
    font-size: 13px;
}

.filtered-text {
    color: var(--oddizer-blue);
    font-style: italic;
    font-size: 13px;
}

/* Collapsible header styling */
.collapsible-header {
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--oddizer-header-bg), #222222);
    border: 2px solid var(--oddizer-border);

}

.collapsible-header:hover {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), #282828);
    border-color: var(--oddizer-accent);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.2);
}

.collapsible-header h6 {
    color: var(--oddizer-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    padding: 0;
}

.collapsible-header .toggle-icon {
    float: right;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: var(--oddizer-accent);
    font-size: 14px;
}

.collapsible-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.collapsible-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: visible;
    border: 2px solid var(--oddizer-border);
    border-top: none;

    background: var(--oddizer-panel-bg);
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .detail-stats {
        flex-direction: column;
        gap: 10px;
    }

    /* Better mobile styling for model details */
    .model-details {
        margin: 8px 0;
        padding: 12px;
    }

    /* Improve chart containers for mobile */
    #league-model-performance-chart,
    #league-roi-chart {
        height: 350px !important; /* Slightly smaller on mobile */
        width: 100% !important;
        overflow: hidden;
    }

    /* Better chart panel spacing */
    .retro-panel .retro-content {
        padding: 8px;
    }

    /* Make bet log container horizontally scrollable */
    .bet-log-container {
        overflow-x: auto;
        overflow-y: auto;
        max-height: 300px;
        border: 1px solid rgba(0, 255, 157, 0.2);
        border-radius: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .bet-log-table {
        font-size: 10px;
        min-width: 800px; /* Ensure table maintains readable width */
        white-space: nowrap;
    }

    .bet-log-table th,
    .bet-log-table td {
        padding: 6px 4px;
        min-width: 60px;
    }

    /* Specific column widths for readability */
    .bet-log-table th:first-child,
    .bet-log-table td:first-child {
        min-width: 100px; /* Game info */
        left: 0;
        background: black;
        z-index: 1;
    }

    .book {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 9px;
    }

    /* Improve model detail header */
    .detail-header h6 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    /* Better stats layout on mobile */
    .detail-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .detail-stats-compact {
        gap: 8px;
        font-size: 11px;
        flex-wrap: wrap;
    }

    .detail-stats-compact .stat-label {
        font-size: 10px;
    }

    .detail-stats-compact .stat-value {
        font-size: 11px;
    }

    .stat-item-inline {
        gap: 3px;
    }

    .stat-group {
        background: rgba(0, 255, 157, 0.05);
        padding: 8px;
        border-radius: 4px;
        border: 1px solid rgba(0, 255, 157, 0.1);
    }
}

/* Additional mobile fixes for smaller screens */
@media (max-width: 576px) {
    .league-title {
        font-size: 12px !important;
        letter-spacing: 0;
    }

    .status-label {
        font-size: 8px;
    }

    .status-value {
        font-size: 10px;
    }

    .event-header {
        padding: 4px 6px !important;
    }

    .event-tabs-container {
        margin-bottom: 2px !important;
    }

    .tab-pane {
        margin-top: 2px;
    }

    .league-overview-content > .row {
        margin-bottom: 8px !important;
    }

    .matchup-display {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-start;
        gap: 4px;
    }

    .matchup-display .team-section {
        flex: 0 0 calc(50% - 16px);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
        min-width: 0;
    }

    .matchup-display .team-section .team-logo {
        width: 40px;
        height: 40px;
    }

    .matchup-display .team-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }

    .matchup-display .team-info h2 {
        font-size: 16px;
        line-height: 1.2;
        text-align: center;
    }

    .matchup-display .team-meta {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 2px 4px;
        font-size: 9px;
    }

    .matchup-display .team-meta .team-record,
    .matchup-display .team-meta .team-elo {
        flex: 0 0 auto;
        display: inline-flex;
        gap: 4px;
        align-items: center;
    }

    .matchup-display .team-meta .team-streak {
        flex: 1 1 100%;
        text-align: center;
        margin-top: 2px;
        font-size: 9px;
    }

    .vs-divider {
        order: 0;
        align-self: center;
        flex: 0 0 auto;
        width: auto;
        text-align: center;
        font-size: 14px;
        margin: 0 2px;
    }

    .game-status {
        text-align: center;
        width: 100%;
        margin-top: 12px;
    }

    .status-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .status-value {
        font-size: 16px;
        font-weight: bold;
    }

    .stats-filters .filter-row.single-row,
    .players-filters .filter-row.single-row {
        flex-direction: column;
        gap: 10px;
    }

    .stats-filters .filter-group,
    .players-filters .filter-group {
        width: 100%;
    }

    .stats-filters .toggle-group,
    .players-filters .toggle-group {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .stats-filters .filter-toggle,
    .players-filters .filter-toggle {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        padding: 10px 6px;
        font-size: 11px;
        white-space: nowrap;
    }

    .stats-filters .metrics-group,
    .players-filters .metrics-group {
        min-width: 0;
    }

    .stats-filters .metrics-toggle,
    .players-filters .metrics-toggle {
        width: 100%;
    }

    .stats-filters .reset-button-group,
    .players-filters .reset-button-group {
        align-items: stretch;
    }

    .stats-filters .reset-btn,
    .players-filters .reset-btn {
        width: 100%;
    }

    /* Leaders filters - compact mobile (576px breakpoint) */
    .leaders-filters .filter-row.single-row {
        gap: 4px;
    }

    .leaders-filters .filter-toggle {
        padding: 4px 6px;
        font-size: 9px;
        min-height: 22px;
    }

    .leaders-filters .metrics-toggle {
        padding: 4px 6px;
        font-size: 9px;
        min-height: 22px;
    }

    .leaders-filters .metrics-option {
        padding: 5px 6px;
        font-size: 10px;
        min-height: 28px;
    }

    .players-display .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .players-display .compact-game-table {
        min-width: 640px;
        table-layout: auto;
        font-size: 11px;
    }

    .players-display .compact-game-table thead th,
    .players-display .compact-game-table tbody td {
        white-space: nowrap;
        padding: 5px 6px;
    }

    .players-display .compact-game-table thead th {
        font-size: 10px;
        padding: 6px 4px;
    }

    .players-display .player-name-cell {
        min-width: 140px;
    }

    /* Ultra-compact tabs for tiny screens */
    .odds-tabs {
        gap: 2px;
        padding: 2px 3px;
    }

    .odds-tabs .nav-link {
        padding: 5px 6px !important;
        font-size: 9px !important;
        border-radius: 0;
    }

    .odds-tabs .nav-link i {
        margin-right: 2px !important;
        font-size: 8px !important;
    }

    .event-tabs-container {
        margin-bottom: -8px !important;
    }

    /* Top teams - small screen layout */
    .top-teams-list {
        padding: 4px;
        gap: 3px;
    }

    .team-ranking-item {
        grid-template-columns: 20px 22px 1fr;
        gap: 6px;
        padding: 6px 8px;
    }

    .team-ranking-item .rank {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .team-ranking-item .team-logo-xs {
        width: 22px;
        height: 22px;
    }

    .team-ranking-item .team-name {
        font-size: 13px;
    }

    .team-ranking-item .team-stats {
        font-size: 10px;
        gap: 5px;
    }

    .team-ranking-item .team-elo {
        font-size: 10px;
    }

    .retro-content {
        padding: 8px 6px !important;
    }

    /* Even tighter spacing for very small screens */
    .model-details {
        margin: 4px 0;
        padding: 8px;
    }

    /* Chart adjustments for very small screens */
    #league-model-performance-chart,
    #league-roi-chart {
        height: 300px !important; /* Even smaller on tiny screens */
    }

    .retro-panel .retro-content {
        padding: 4px;
    }

    .bet-log-container {
        max-height: 250px;
    }

    .bet-log-table {
        font-size: 9px;
        min-width: 700px;
    }

    .bet-log-table th,
    .bet-log-table td {
        padding: 4px 2px;
        min-width: 50px;
    }

    .bet-log-table th:first-child,
    .bet-log-table td:first-child {
        min-width: 80px;
    }

    /* Make the main results table responsive too */
    .stats-table-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #league-modeling-table {
        min-width: 600px;
        font-size: 11px;
    }

    #league-modeling-table th,
    #league-modeling-table td {
        padding: 6px 4px;
        white-space: nowrap;
    }

    /* Better detail stats grid for tiny screens */
    .detail-stats {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .detail-stats-compact {
        gap: 6px;
        font-size: 10px;
    }

    .detail-stats-compact .stat-label {
        font-size: 9px;
    }

    .detail-stats-compact .stat-value {
        font-size: 10px;
    }

    .stat-item-inline {
        gap: 2px;
    }

    .stat-separator {
        font-size: 8px;
    }

    .stat-group {
        padding: 6px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 12px;
    }
}

/* Players-specific metrics option styling */
.players-metrics-option {
    padding: 8px 12px;
    color: #FFFFFF;
    font-size: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    transition: background 0.2s ease;
}

.players-metrics-option:last-child {
    border-bottom: none;
}

.players-metrics-option:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00FF00;
}

.players-metrics-option.selected {
    background: rgba(0, 255, 0, 0.2);
    color: #00FF00;
    font-weight: 600;
}

.players-metrics-option input[type="checkbox"] {
    margin-right: 8px;
    width: 14px;
    height: 14px;
    accent-color: #00FF00;
}

.metrics-group-header {
    padding: 8px 12px 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #00FF41;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    margin-bottom: 4px;
    background: rgba(0, 255, 65, 0.05);
}

.players-metrics-option.group-select {
    background: rgba(0, 255, 65, 0.1);
    border-left: 3px solid #00FF41;
    font-weight: 500;
}

.players-metrics-option.group-select:hover {
    background: rgba(0, 255, 65, 0.15);
}

.players-metrics-option.batting-stat,
.players-metrics-option.pitching-stat {
    padding-left: 20px;
    font-size: 11px;
}

.players-metrics-option.batting-stat {
    border-left: 2px solid #4CAF50;
}

.players-metrics-option.pitching-stat {
    border-left: 2px solid #FF9800;
}

/* Player Game Log Styling */
.expand-cell {
    text-align: center;
    vertical-align: middle;
    width: 36px;
    white-space: nowrap;
}

.expand-arrow {
    transition: transform 0.2s ease;
}

.expand-arrow:hover {
    transform: scale(1.2);
}

.add-to-prop-btn {
    cursor: pointer;
    color: var(--oddizer-text-dim);
    font-size: 10px;
    margin-left: 6px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.15s;
}

.add-to-prop-btn:hover {
    color: var(--oddizer-accent);
    background: rgba(0, 255, 65, 0.1);
}

.game-log-row {
    border-left: 2px solid rgba(100, 100, 100, 0.2) !important;
}

.game-log-row td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.025) !important;
    padding: 5px 8px !important;
}

.game-log-row:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.015) !important;
}

.game-log-row:nth-child(even) td {
    background: transparent !important;
}

.game-log-row:hover td {
    background: rgba(255, 255, 255, 0.04) !important;
}

.game-info-cell {
    font-family: 'Courier New', monospace !important;
    color: #a0a0a0 !important;
    font-weight: 500 !important;
}

/* Game Result Indicators for Game Logs */
.game-log-row.game-win {
    border-left: 3px solid #22C55E !important;
}

.game-log-row.game-loss {
    border-left: 3px solid #EF4444 !important;
}

/* Stat Performance Color Coding */
.stat-excellent {
    color: #10B981 !important;
    font-weight: 600 !important;
}

.stat-good {
    color: #6EE7B7 !important;
}

.stat-below {
    color: #D97706 !important;
}

.stat-poor {
    color: #EF4444 !important;
}

/* Players Legend */
.players-legend {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
}

.players-legend .legend-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.players-legend .legend-header h6 {
    color: #00FF41;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.players-legend .legend-header i {
    margin-right: 6px;
    color: #00FF41;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 15px;
    font-size: 11px;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.legend-abbr {
    font-weight: 600;
    color: #00FF41;
    min-width: 35px;
    margin-right: 8px;
    text-align: left;
}

.legend-full {
    color: #E0E0E0;
    flex: 1;
}

.player-position {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    text-align: center;
    min-width: 30px;
}

@media (max-width: 768px) {
    .legend-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .legend-item {
        padding: 1px 0;
    }

    .players-legend {
        padding: 10px;
        margin-top: 15px;
    }
}

/* Matchup Display Styling */
.matchup-cell {
    min-width: 120px;
}

.matchup-teams {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.away-team, .home-team {
    font-weight: 600;
    color: #888888;
}

.winning-team {
    color: #fff !important;
    font-weight: 700 !important;
}

.at-symbol {
    color: #888;
    font-weight: 600;
    margin: 0 2px;
}

/* Enhanced Odds Display */
.odds-label {
    color: #00FF00;
    font-size: 9px;
    font-weight: 600;
    margin-right: 2px;
}

.odds-with-book-icon {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    margin-right: 8px;
    line-height: 1.2;
}

/* Game Result Styling */
.game-win {
    border-left: 2px solid #22C55E !important;
}

.game-loss {
    border-left: 2px solid #EF4444 !important;
}

.game-tie {
    border-left: 2px solid #9CA3AF !important;
}

.result-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    margin-left: 4px;
}

.result-badge.game-win {
    background: #10B981;
    color: white;
}

.result-badge.game-loss {
    background: #EF4444;
    color: white;
}

.result-badge.game-tie {
    background: #6B7280;
    color: white;
}

.location-badge {
    font-size: 10px;
    font-weight: 600;
}

/* Team Record Styling */
.team-record {
    color: #9CA3AF;
    font-size: 16px;
    font-weight: 600;
    margin-top: 2px;
}

/* Date Cell and Link Styling */
.date-cell {
    position: relative;
}

.game-date-link {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 11px;
    transition: all 0.2s ease;
}

.game-date-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.game-date-link:hover .result-badge {
    transform: scale(1.05);
}

/* Summary Statistics Styling */
.stddev-indicator {
    color: #9CA3AF;
    font-size: 11px;
    margin-left: 4px;
}

/* Reset Button Styling */
.reset-btn {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15), rgba(255, 68, 68, 0.05));
    border: 2px solid #ff4444;
    color: #ff4444;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;

    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reset-btn:hover {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.25), rgba(255, 68, 68, 0.15));
    border-color: #ff6666;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 20px 0;
}

.action-btn {
    width: 40px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00FF00;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00FF00;
    transform: translateY(-1px);
}

#stats-dual-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.04);
}

.team-stats-panel,
.team-players-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--oddizer-panel-bg);
}

.team-stats-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.team-stats-header::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 120px;
    height: 120px;
    background-image: var(--team-logo-url, none);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.team-stats-header > * {
    position: relative;
    z-index: 1;
}

.team-stats-logo {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    object-fit: contain;
}

.team-stats-info h6 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.team-stats-info .team-role {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Summary Stats in Dual View */
.dual-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    width: 100%;
}

.dual-summary-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.1);
    padding: 12px 10px;
    text-align: center;
    border-radius: 4px;
}

.dual-summary-label {
    color: #00FF00;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.dual-summary-value {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Compact Game Table */
.compact-game-table {
    background: transparent;
    color: #FFFFFF;
    margin: 0;
    font-size: 12px;
    border-collapse: separate;
    border-spacing: 0;
}

.compact-game-table tbody td:last-child {
    white-space: nowrap;
    max-width: 100px;
}

.compact-game-table thead th {
    color: rgba(255, 255, 255, 0.35);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    font-weight: 600;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compact-game-table tbody td {
    padding: 7px 10px;
    font-size: 12px;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

.compact-game-table tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.015);
}

.compact-game-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

/* Odds with Book Icon */
.odds-with-book-icon {
    align-items: center;
    gap: 4px;
    font-size: 10px;
}

.odds-book-icon {
    width: 16px;
    height: 16px;
}

.odds-value-compact {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Loading and Error States */
.dual-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
}

.dual-loading i {
    color: #00FF00;
    font-size: 24px;
    margin-bottom: 15px;
}

.stats-controls {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-controls label {
    color: #00FF00;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.stats-controls .form-control {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00FF00;
    font-size: 13px;
    transition: all 0.3s ease;
}

.stats-controls .form-control:focus {
    border-color: #00FF00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.9);
}

.stats-controls .form-control option {
    background: #000;
    color: #00FF00;
}

.stats-actions {
    text-align: right;
    margin-top: 10px;
}

.stats-actions .retro-btn {
    margin-left: 10px;
    font-size: 12px;
    padding: 8px 16px;
}

.stats-summary-section {
    margin-bottom: 25px;
}

.stats-summary {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 12px;
}

.stats-summary h6 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.summary-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 12px;
    text-align: center;
}

.summary-label {
    color: #00FF00;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.summary-values {
    font-family: 'Courier New', monospace;
}

.avg-value {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.stddev-value {
    color: #888;
    font-size: 11px;
}

.stats-table-section {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.stats-table {
    background: transparent;
    color: #FFFFFF;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.stats-table thead th {
    color: rgba(0, 255, 65, 0.8);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    font-weight: 600;
    border: none;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
}

.stats-table tbody td {
    padding: 8px 10px;
    font-size: 12px;
    vertical-align: middle;
    border: none;
}

@media (max-width: 991px) {
    .stats-table tbody td {
        padding: 4px 6px;
    }
}

.stats-table tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.025);
}

.opponent-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-home {
    color: #4CAF50;
    font-weight: 600;
}

.location-away {
    color: #FF9800;
    font-weight: 600;
}

.stat-value.number {
    font-family: 'Courier New', monospace;
    text-align: right;
    font-weight: 600;
}

.stat-value.decimal {
    font-family: 'Courier New', monospace;
    text-align: right;
    color: #FFD700;
}

.stats-loading,
.stats-error,
.stats-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.stats-loading i,
.stats-error i,
.stats-placeholder i {
    color: #00FF00;
    margin-bottom: 15px;
}

.stats-error {
    color: #FF6B6B;
}

.stats-error i {
    color: #FF6B6B;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
}

/* Modeling Section (Hidden by default, ready for future expansion) */
.stats-modeling-section {
    background: rgba(0, 255, 0, 0.02);
}

.modeling-controls {
    margin-top: 15px;
}

.modeling-controls label {
    color: #00FF00;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.modeling-controls .form-control {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00FF00;
    font-size: 13px;
}

/* Prediction Results Styling */
.prediction-results {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    padding: 0;
    margin-top: 20px;
}

.prediction-results h6 {
    color: #00FF00;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    padding-bottom: 8px;
}

.prediction-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.prediction-value {
    text-align: center;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    padding: 15px;
}

.prediction-label {
    display: block;
    color: #00FF00;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.prediction-number {
    display: block;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.confidence-interval {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
}

.interval-label {
    display: block;
    color: #FFF;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.interval-range {
    display: block;
    color: #FFD700;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.prediction-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}

.meta-label {
    color: #00FF00;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.prediction-factors {
    margin-bottom: 15px;
}

.factors-label {
    color: #00FF00;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.prediction-factors ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.prediction-factors li {
    color: #FFFFFF;
    font-size: 12px;
    margin-bottom: 4px;
    position: relative;
}

.prediction-factors li:before {
    content: "▶";
    color: #00FF00;
    position: absolute;
    left: -15px;
    font-size: 10px;
}

.prediction-disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 10px;
    text-align: center;
}

.prediction-disclaimer small {
    color: #FFC107;
    font-size: 11px;
}

.prediction-disclaimer i {
    margin-right: 5px;
}

.prediction-loading,
.prediction-error {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.prediction-loading i {
    color: #00FF00;
    margin-bottom: 15px;
    font-size: 24px;
}

.prediction-error {
    color: #FF6B6B;
}

.prediction-error i {
    color: #FF6B6B;
    margin-bottom: 15px;
    font-size: 24px;
}

.model-description {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    padding: 8px;
    margin-top: 5px;
}

.model-description small {
    color: #00FF00;
    font-size: 10px;
}

/* ===== PROBABILITY ANALYSIS STYLES ===== */
.team-probability-scale {
    display: block;
    width: 100%;
    margin: 15px 0;
    background: rgba(0, 255, 204, 0.03);
    border: 1px solid rgba(0, 255, 204, 0.1);
    padding: 12px;
    clear: both;
}

.probability-scale .prob-section-header {
    margin-bottom: 15px;
}

.prob-section-header {
    margin-bottom: 12px;
    text-align: center;
}

.prob-section-header h6 {
    color: #00ffcc;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.prob-section-header i {
    margin-right: 6px;
    color: rgba(0, 255, 204, 0.7);
}

.prob-fields-info {
    color: rgba(0, 255, 204, 0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
    text-align: center;
}

.probability-scale {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 204, 0.15);
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

.scale-values {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-width: 100%;
}

.prob-value-square {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*min-width: 50px;*/
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px;
}

.prob-value-square:hover {
    background: rgba(0, 255, 204, 0.2);
    border-color: #00ffcc;
    transform: translateY(-5px);
}

.prob-value-square.selected {
    background: rgba(0, 255, 204, 0.3);
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.prob-value-square.center {
    background: rgba(0, 255, 88, 0.2);
    border-color: #00ff88;
    border-width: 2px;
}

.prob-target-value {
    font-size: 18px;
    font-weight: bold;
    color: #00ffcc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.over-notation, .under-notation {
    font-size: 10px;
    color: rgba(0, 255, 204, 0.7);
    font-weight: normal;
    vertical-align: super;
}

.under-notation {
    color: rgba(255, 204, 0, 0.7); /* Slightly different color for under */
}

.prob-percentage-small {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
}

.prob-percentage-small.high {
    color: #00ff88;
}

.prob-percentage-small.medium {
    color: #ffaa00;
}

.prob-percentage-small.low {
    color: #ff6666;
}

.prob-odds-small {
    font-size: 11px;
    color: rgba(0, 255, 204, 0.8);
    text-align: center;
    line-height: 1.2;
}

.prob-toggles {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
}

.prob-method-toggle, .prob-direction-toggle {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 204, 0.3);
    display: flex;
    gap: 2px;
}

.prob-method-toggle button, .prob-direction-toggle button {
    background: none;
    border: none;
    color: rgba(0, 255, 204, 0.7);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prob-method-toggle button.active, .prob-direction-toggle button.active {
    background: rgba(0, 255, 204, 0.2);
    color: #00ffcc;
}

.prob-method-toggle button:hover, .prob-direction-toggle button:hover {
    color: #00ffcc;
}

.prob-loading {
    text-align: center;
    padding: 20px;
    color: rgba(0, 255, 204, 0.7);
}

.prob-loading i {
    margin-right: 8px;
}

.prob-error {
    text-align: center;
    padding: 20px;
    color: #ff6666;
}

.prob-field-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.prob-field-info h6 {
    color: #00ffcc;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.prob-field-info strong {
    color: #00ff88;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    .oddizer-container {
        display: block;
    }

    .sidebar-column {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--sidebar-mobile-width);
        max-width: none;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: var(--oddizer-bg);
        border-right: none;
    }

    .sidebar-column.open {
        transform: translateX(0);
    }

    .sidebar-collapse-toggle {
        display: none;
    }

    .main-column {
        width: 100%;
        flex: none;
        padding: 0;
    }

    .retro-content {
        padding: 0;
    }

    .team-logo {
        width: 48px;
        height: 48px;
    }

    .team-info h2 {
        font-size: 20px;
    }

    .team-meta {
        gap: 0.1rem;
    }

    .team-meta .team-record {
        font-size: 0.85rem;
    }

    .team-meta .team-elo {
        font-size: 0.85rem;
    }

    .game-status .game-date {
        font-size: 0.75rem;
    }

    .game-status .game-time,
    .status-value .game-time {
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .odds-display {
        grid-template-columns: 1fr;
    }

    /* League page responsive */
    .league-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .event-header {
        padding: 8px 12px;
    }

    /* Mobile tab optimization */
    .odds-tabs .nav-link {
        padding: 10px 12px;
        font-size: 14px;
        letter-spacing: 0;
    }

    .odds-tabs .nav-link i {
        margin-right: 6px;
        font-size: 12px;
    }


    .event-tabs-container {
        margin-bottom: 4px;
    }

    .recent-games-grid {
        grid-template-columns: 1fr;
    }

    .team-stats-panel,
    .team-players-panel {
        width: 100%;
        float: none;
        margin-bottom: 15px;
    }

    .prob-value-square {
        padding: 4px;
    }

    .prob-target-value {
        font-size: 16px;
    }

    .prob-percentage-small {
        font-size: 12px;
    }

    .prob-odds-small {
        font-size: 10px;
    }

    .probability-control-row {
        flex-direction: column;
        gap: 10px;
    }

    .probability-control-row .control-group {
        min-width: auto;
    }

    .team-probability-scale {
        margin: 10px 0;
        padding: 8px;
    }

    .prob-section-header h6 {
        font-size: 12px;
    }
}

/* Player Performance Styles - Reusing stats styling for consistency */
.players-filters {
    padding: 0;
}

.players-filters .filter-bar-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--oddizer-panel-bg);
    border-bottom: 1px solid var(--oddizer-border);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.players-filters .filter-bar-compact::-webkit-scrollbar {
    display: none;
}

.players-filters .advanced-filters-panel {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 12px 15px;
    border-top: 1px solid var(--oddizer-border);
    background: rgba(0, 0, 0, 0.15);
}

.players-filters .advanced-filters-panel.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
}

.players-display {
    min-height: 200px;
}

.players-dual-display {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.04);
}

.players-dual-display .team-players-panel {
    flex: 1;
    min-width: 320px;
    height: 100%;
    background: var(--oddizer-panel-bg);
}

.player-leaders {
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaders-header {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(0, 255, 204, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaders-header i {
    font-size: 11px;
}

.leaders-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.leader-chip {
    flex: 1 1 160px;
    background: rgba(0, 255, 204, 0.07);
    border: 1px solid rgba(0, 255, 204, 0.25);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.leader-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.18);
    color: #00ffcc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.leader-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.leader-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3px;
}

.leader-value {
    font-size: 16px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #00ffcc;
    min-width: 48px;
    text-align: right;
}

@media (max-width: 991px) {
    .players-dual-display {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .leaders-grid {
        flex-direction: column;
    }

    .leader-chip {
        flex: 1 1 auto;
    }
}

/* Compact team-players-header styling */
.team-players-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.team-players-header .team-stats-logo {
    width: 22px;
    height: 22px;
}

.team-players-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-players-info h6 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.team-players-info .team-role {
    color: rgba(255, 255, 255, 0.3);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-players-info .players-count {
    color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
}

/* Player-specific table cells */
.player-name-cell {
    min-width: 100px;
}

.player-name {
    font-weight: 600;
    color: var(--oddizer-text);
    font-size: 11px;
}

/* Player Hot/Cold Form Indicators */
.player-form-badge {
    margin-left: 4px;
    font-size: 10px;
    vertical-align: middle;
}

.player-hot-row .player-name {
    color: #ff9500;
}

.player-cold-row .player-name {
    color: #6495ed;
}

.games-played {
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
}

/* Reuse stats loading styling */
.players-loading {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.players-loading i {
    color: #00FF00;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Player Predictions Styling */
.player-predictions {
    border-left: 3px solid rgba(0, 255, 65, 0.4) !important;
}

.player-predictions td {
    background: rgba(0, 255, 65, 0.02) !important;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2) !important;
}

.prediction-item {

    transition: all 0.3s ease;
    cursor: pointer;
}

.prediction-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.2);
}

/* Active state when probability scale is open for this item */
.prediction-item.active-scale {
    outline: 2px solid rgba(0, 255, 204, 0.6);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.35);
}

/* Player Probability Scale Styling */
.player-probability-row {
    border-left: 3px solid rgba(0, 255, 204, 0.4) !important;
}

.player-probability-row td {
    background: rgba(0, 255, 204, 0.02) !important;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2) !important;
}

.player-probability-container {
    margin: 10px;
    background: rgba(0, 255, 204, 0.03) !important;
    border: 1px solid rgba(0, 255, 204, 0.1) !important;
    padding: 15px !important;

}

.player-probability-container .probability-scale {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 204, 0.15);
    padding: 10px;
}

.player-probability-container .prob-section-header h6 {
    color: #00ffcc;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    text-align: center;
}

.player-probability-container .prob-toggles {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
}

.player-probability-container .prob-method-toggle,
.player-probability-container .prob-direction-toggle {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 204, 0.3);
    display: flex;
    gap: 2px;
}

.player-probability-container .prob-method-btn,
.player-probability-container .prob-direction-btn {
    background: none;
    border: none;
    color: rgba(0, 255, 204, 0.7);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
}

.player-probability-container .prob-method-btn.active,
.player-probability-container .prob-direction-btn.active {
    background: rgba(0, 255, 204, 0.2);
    color: #00ffcc;
}

.player-probability-container .scale-values {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.player-probability-container .prob-value-square {
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;

    text-align: center;
}

.player-probability-container .prob-value-square:hover {
    background: rgba(0, 255, 204, 0.2);
    border-color: #00ffcc;
    transform: translateY(-2px);
}

.player-probability-container .prob-value-square.center {
    background: rgba(0, 255, 88, 0.2);
    border: 2px solid #00ff88;
}

.player-probability-container .prob-loading,
.player-probability-container .prob-error {
    text-align: center;
    padding: 15px;
    color: rgba(0, 255, 204, 0.7);
    font-size: 11px;
}

.player-probability-container .prob-error {
    color: #ff6666;
}

@media (max-width: 768px) {
    .player-predictions-grid {
        flex-direction: column !important;
        gap: 4px !important;
    }

    .prediction-item {
        min-width: auto !important;
        width: 100%;
    }

    .player-probability-container .scale-values {
        flex-wrap: wrap;
        gap: 4px;
    }

    .player-probability-container .prob-value-square {
        min-width: 60px !important;
        padding: 6px !important;
    }
}

/* League Leaders Styles */
.leaders-filters {
    padding: 8px 10px;
}

.leaders-filters .filter-row.single-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.leaders-filters .filter-group {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
}

.leaders-filters .toggle-group {
    display: flex;
    gap: 2px;
    align-items: center;
}

.leaders-filters .filter-toggle {
    flex: 0 1 auto;
    padding: 6px 10px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    box-sizing: border-box;
}

.leaders-filters .metrics-group {
    display: flex;
    align-items: center;
}

.leaders-filters .metrics-toggle {
    min-height: 30px;
    box-sizing: border-box;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-radio-container {
    position: relative;
}

.filter-radio-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.filter-radio-label {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 0.5rem 1rem;

    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.filter-radio-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-radio-label:hover {
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    transform: translateY(-1px);
}

.filter-radio-label:hover::before {
    left: 100%;
}

.filter-radio-label.active {
    background: linear-gradient(135deg, #00ff41 0%, #32cd32 100%);
    color: #0a0a0a;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.filter-radio-label.active:hover {
    background: linear-gradient(135deg, #32cd32 0%, #00ff41 100%);
}

.filter-radio-label i {
    font-size: 0.9rem;
}

/* Legacy support for any existing filter-pill styles */
.filter-pill {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 0.5rem 1rem;

    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.filter-pill i {
    font-size: 0.9rem;
}

/* Leaders grid removed - cards are now direct children */

.leaders-loading {
    color: #00ff41;
}

.leaders-loading .loading-text {
    margin-top: 12px;
    color: #b3b3cc;
}

/* Leaders Table Container */
.leaders-table-container {
    padding: 0 6px 6px;
}

/* Ranking colors for top 3 in leaders table */
#leadersTable tbody tr:nth-child(1) td:first-child {
    color: #FFD700 !important;
    font-weight: bold;
}

#leadersTable tbody tr:nth-child(2) td:first-child {
    color: #C0C0C0 !important;
    font-weight: bold;
}

#leadersTable tbody tr:nth-child(3) td:first-child {
    color: #CD7F32 !important;
    font-weight: bold;
}

/* Sortable header styling */
#leadersTable th.sortable-header {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

#leadersTable th.sortable-header:hover {
    color: #00ffcc;
}

#leadersTable th.sortable-header i {
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.8;
}

.leaders-placeholder {
    text-align: center;
    padding: 40px;
    color: #b3b3cc;
}

.leaders-placeholder .placeholder-icon {
    color: #00ff41;
    margin-bottom: 1rem;
}

/* Form styling for filters */
.leaders-filters label {
    color: #00ff41;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.leaders-filters .form-control {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #b3b3cc;
    font-size: 0.9rem;
}

.leaders-filters .form-control:focus {
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
    border-color: #00ff41;
    color: #00ff41;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 65, 0.25);
}

.leaders-filters .form-control option {
    background: #1a1a2e;
    color: #b3b3cc;
}

/* Leaders Legend Styles (reuse players legend styles) */
.leaders-legend {
    margin-top: 6px;
    padding: 0 4px;
}

.leaders-legend .players-legend {
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.15);
    padding: 6px 8px;
}

.leaders-legend .legend-header {
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
}

.leaders-legend .legend-header h6 {
    color: #00ff41;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.leaders-legend .legend-header i {
    color: rgba(0, 255, 65, 0.7);
    font-size: 0.7rem;
}

.leaders-legend .legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.4rem;
}

.leaders-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
}

.leaders-legend .legend-abbr {
    color: #00ff41;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    min-width: 28px;
    text-align: left;
    font-size: 0.7rem;
}

.leaders-legend .legend-full {
    color: #b3b3cc;
    flex: 1;
    font-size: 0.7rem;
}

/* Responsive table styles */
/* Field selector styles */
.leaders-filters .metrics-group {
    position: relative;
}

.leaders-filters .metrics-toggle {
    background: transparent;
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #b3b3cc;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.leaders-filters .metrics-toggle:hover {
    border-color: #00ff41;
    color: #00ff41;
}

.leaders-filters .metrics-toggle.open {
    border-color: #00ff41;
    color: #00ff41;
}

.leaders-filters .metrics-group {
    position: relative;
}

.leaders-filters .metrics-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1a1a1a;
    border: 1px solid rgba(0, 255, 65, 0.4);
    max-height: 350px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.leaders-filters .metrics-menu.open {
    display: block;
}

/* Allow dropdowns to escape panel overflow */
.leaders-filters {
    position: relative;
    z-index: 10;
    overflow: visible !important;
}

.leaders-filters .filter-row {
    overflow: visible !important;
}

/* Parent panel must allow overflow when dropdown is open */
.retro-panel:has(.leaders-filters .metrics-menu.open) {
    overflow: visible !important;
}

.leaders-filters .metrics-option {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 11px;
    color: #ccc;
    transition: background-color 0.15s ease;
}

.leaders-filters .metrics-option:hover {
    background: rgba(0, 255, 65, 0.08);
    color: #fff;
}

.leaders-filters .metrics-option:last-child {
    border-bottom: none;
}

.leaders-filters .metrics-option input[type="checkbox"] {
    margin: 0;
    accent-color: #00ff41;
}

.leaders-filters .metrics-option label {
    color: #b3b3cc;
    font-size: 0.85rem;
    cursor: pointer;
    margin: 0;
}

.leaders-filters .metrics-group-header {
    padding: 8px 12px;
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    margin-top: 4px;
}

.leaders-filters .metrics-group-header:first-child {
    margin-top: 0;
}

/* Team Filter Specific Styles */
.team-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.team-filter-option .team-logo-xs {
    width: 18px;
    height: 18px;
    object-fit: contain;

}

.team-filter-option .fas {
    color: var(--oddizer-green);
    font-size: 14px;
    min-width: 18px;
    text-align: center;
}

.team-filter-option .team-full-name {
    color: #999;
    font-size: 11px;
    margin-left: auto;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-option:hover .team-full-name {
    color: #bbb;
}

.team-option.selected .team-full-name {
    color: var(--oddizer-green);
}

/* Ensure team options have proper spacing */
.team-option {
    padding: 6px 8px;
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-option:first-child {
    border-top: none;
}

/* Team checkbox styling */
.team-checkbox {
    margin: 0;
    padding: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--oddizer-green);
    cursor: pointer;
}

.team-checkbox:checked {
    background-color: var(--oddizer-green);
    border-color: var(--oddizer-green);
}

/* Team filter option styling with checkbox */
.team-option .team-filter-option {
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

/* Hover effects for team options */
.team-option:hover {
    background: rgba(0, 255, 65, 0.05);
}

.team-option:hover .team-filter-option {
    color: var(--oddizer-green);
}

/* Checked state styling */
.team-checkbox:checked + .team-filter-option {
    color: var(--oddizer-green);
}

.team-checkbox:checked + .team-filter-option .team-full-name {
    color: var(--oddizer-green);
}

@media (max-width: 768px) {
    /* Leaders table compact */
    .leaders-table {
        font-size: 0.75rem;
    }

    .leaders-table th,
    .leaders-table td {
        padding: 6px 3px;
    }

    /* Leaders panel compact headers */
    .retro-panel:has(.leaders-filters) .panel-header,
    .retro-panel:has(#leadersTable) .panel-header {
        padding: 6px 8px;
    }

    .retro-panel:has(.leaders-filters) .panel-header h6,
    .retro-panel:has(#leadersTable) .panel-header h6 {
        font-size: 11px;
    }

    /* Leaders legend compact */
    .leaders-legend .legend-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.3rem;
    }

    .leaders-legend .legend-item {
        font-size: 0.7rem;
    }

    .leaders-legend {
        padding: 4px 6px;
    }

    .leaders-filters .metrics-menu {
        position: absolute;
        top: 100%;
        left: 0;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        min-width: 160px;
    }

    /* Team filter specific mobile adjustments */
    .team-filter-option {
        font-size: 10px;
    }

    .team-filter-option .team-logo-xs {
        width: 12px;
        height: 12px;
    }

    .team-filter-option .team-full-name {
        font-size: 9px;
        max-width: 70px;
    }

    /* Field selector mobile adjustments */
    .metrics-group-header {
        padding: 5px 6px;
        font-size: 0.65rem;
    }

    /* Ensure dropdowns are properly layered */
    .leaders-filters .metrics-menu.open {
        z-index: 1002;
    }

    /* Reduce retro-panel margins for leaders */
    .retro-panel:has(.leaders-filters),
    .retro-panel:has(#leadersTable) {
        margin-bottom: 8px;
    }

    /* Leaders table container compact */
    .leaders-table-container {
        padding: 0 4px 4px;
    }

    /* Compact game table on leaders */
    #leadersTable.compact-game-table th,
    #leadersTable.compact-game-table td {
        padding: 4px 3px;
        font-size: 10px;
    }

    #leadersTable.compact-game-table th {
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    /* Even more compact for small phones */
    .leaders-filters {
        padding: 4px 6px;
    }

    .leaders-filters .filter-row.single-row {
        gap: 3px;
    }

    .leaders-filters .toggle-group {
        gap: 0;
    }

    .leaders-filters .filter-toggle {
        padding: 3px 5px;
        font-size: 8px;
        min-height: 20px;
    }

    .leaders-filters .metrics-toggle {
        padding: 3px 5px;
        font-size: 8px;
        min-height: 20px;
    }

    .leaders-filters .metrics-toggle i:first-child {
        font-size: 8px;
    }

    .leaders-filters .metrics-toggle i:last-child {
        font-size: 7px;
    }

    .leaders-filters .metrics-option {
        padding: 4px 5px;
        font-size: 9px;
        min-height: 26px;
    }

    /* Even smaller panel headers */
    .retro-panel:has(.leaders-filters) .panel-header,
    .retro-panel:has(#leadersTable) .panel-header {
        padding: 4px 6px;
    }

    .retro-panel:has(.leaders-filters) .panel-header h6,
    .retro-panel:has(#leadersTable) .panel-header h6 {
        font-size: 10px;
    }

    .retro-panel:has(.leaders-filters) .panel-header h6 i,
    .retro-panel:has(#leadersTable) .panel-header h6 i {
        font-size: 10px;
    }

    /* Even smaller table */
    #leadersTable.compact-game-table th,
    #leadersTable.compact-game-table td {
        padding: 3px 2px;
        font-size: 9px;
    }

    #leadersTable.compact-game-table th {
        font-size: 8px;
    }

    /* Hide team full name on very small screens */
    .team-filter-option .team-full-name {
        display: none;
    }

    /* Reduce margins further */
    .retro-panel:has(.leaders-filters),
    .retro-panel:has(#leadersTable) {
        margin-bottom: 6px;
    }
}

.leader-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: scanline-sweep 2s linear infinite;
}

.leader-card .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 255, 65, 0.05);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding: 0.75rem 1rem;
}

.leader-card .panel-header h6 {
    margin: 0;
    color: #00ff41;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-type-badge {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);

    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: #00ff41;
    font-weight: 500;
}

.leader-list {
    padding: 1rem;
    padding-bottom: 0.5rem;
}

.leader-expand-btn {
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(179, 179, 204, 0.1);
}

.leader-button-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.expand-leaders-btn {
    flex: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #00ff41;
    padding: 0.5rem 1rem;

    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.collapse-leaders-btn {
    background: linear-gradient(135deg, #2e1a1a 0%, #3e1616 100%);
    border: 1px solid rgba(255, 65, 65, 0.3);
    color: #ff6565;
    padding: 0.5rem 0.75rem;

    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.expand-leaders-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.expand-leaders-btn:hover {
    background: linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    transform: translateY(-1px);
}

.expand-leaders-btn:hover::before {
    left: 100%;
}

.collapse-leaders-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 65, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.collapse-leaders-btn:hover {
    background: linear-gradient(135deg, #1a0f0f 0%, #2e1a1a 100%);
    border-color: #ff6565;
    box-shadow: 0 0 10px rgba(255, 65, 65, 0.2);
    transform: translateY(-1px);
}

.collapse-leaders-btn:hover::before {
    left: 100%;
}

.expand-leaders-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.collapse-leaders-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(255, 65, 65, 0.3);
}

.expand-text {
    font-weight: 600;
}

.expand-count {
    color: #b3b3cc;
    font-size: 0.8rem;
}

.expand-leaders-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(179, 179, 204, 0.1);
    transition: all 0.2s ease;
}

.leader-item:last-child {
    border-bottom: none;
}

.leader-item:hover {
    background: rgba(0, 255, 65, 0.05);

    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.leader-rank {
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00ff41 0%, #32cd32 100%);
    color: #0a0a0a;

    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 255, 65, 0.3);
}

.leader-rank .rank-number {
    line-height: 1;
}

.leader-info {
    flex: 1;
    min-width: 0;
}

.leader-info .player-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-info .player-team {
    font-size: 0.8rem;
    color: #b3b3cc;
    margin-top: 0.1rem;
}

.leader-stats {
    text-align: right;
    min-width: 100px;
}

.leader-stats .primary-stat {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-bottom: 0.2rem;
}

.leader-stats .stat-value {
    font-weight: bold;
    color: #00ff41;
    font-size: 1.1rem;
}

.leader-stats .stat-label {
    font-size: 0.7rem;
    color: #b3b3cc;
    text-transform: uppercase;
}

.leader-stats .secondary-stats {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    font-size: 0.75rem;
    color: #999;
}

.leader-stats .games-played,
.leader-stats .avg-per-game {
    white-space: nowrap;
}

/* Special styling for top ranks */
.leader-item:nth-child(1) .leader-rank {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

.leader-item:nth-child(2) .leader-rank {
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 12px rgba(192, 192, 192, 0.4);
}

.leader-item:nth-child(3) .leader-rank {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 12px rgba(205, 127, 50, 0.4);
}

/* Responsive adjustments for leaders */
@media (max-width: 991px) {
    .leaders-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }

    .filter-pills {
        gap: 0.5rem;
    }

    .filter-radio-label {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .filter-pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .leader-item {
        gap: 0.75rem;
    }

    .leader-stats {
        min-width: 85px;
    }
}

@media (max-width: 768px) {
    .leaders-cards {
        grid-template-columns: 1fr;
    }

    .filter-pills {
        justify-content: center;
    }

    .leader-card .panel-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .stat-type-badge {
        align-self: flex-end;
    }

    .expand-leaders-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .collapse-leaders-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    .collapse-leaders-btn span {
        display: none;
    }

    .expand-count {
        font-size: 0.75rem;
    }

    .leader-button-group {
        gap: 0.25rem;
    }
}

/* League Trends Styles */
.trends-controls {
    padding: 15px;
}

.trends-controls .filter-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.trends-controls .filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.trends-controls label {
    color: var(--retro-green);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.trends-controls .form-control {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--retro-green);
    color: var(--retro-green);

    padding: 8px 12px;
}

.trends-controls .form-control:focus {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--retro-green-bright);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    color: var(--retro-green-bright);
}

.team-trends-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.team-trend-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.2);
    transition: all 0.2s ease;
}

.team-trend-item:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--retro-green);
}

.team-trend-item .rank {
    width: 30px;
    height: 20px;
    background: var(--retro-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 10px;
}

.team-trend-item .team-logo-xs {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.team-trend-item .team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-trend-item .team-name {
    font-weight: 600;
    color: var(--retro-green);
    font-size: 0.9rem;
    line-height: 1.2;
}

.team-trend-item .team-record {
    font-size: 0.8rem;
    color: rgba(0, 255, 0, 0.7);
    line-height: 1.2;
}

.team-trend-item .trend-value {
    font-weight: bold;
    font-size: 1rem;
    text-align: right;
    min-width: 80px;
}

.form-matrix-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.2);
    transition: all 0.2s ease;
}

.form-row:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--retro-green);
}

.form-team {
    display: flex;
    align-items: center;
    width: 80px;
    margin-right: 10px;
}

.form-team .team-logo-xs {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    object-fit: contain;
}

.form-team .team-abbr {
    font-weight: 600;
    color: var(--retro-green);
    font-size: 0.85rem;
}

.form-games {
    display: flex;
    gap: 2px;
    flex: 1;
    margin-right: 10px;
}

.form-game {
    width: 24px;
    height: 24px;
    margin: 0 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
    border: 1px solid transparent;

    cursor: help;
    position: relative;
    transition: all 0.2s ease;
}

.form-game:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form-game.form-win {
    background: #28a745;
    color: white;
    border-color: #1e7e34;
}

.form-game.form-loss {
    background: #dc3545;
    color: white;
    border-color: #bd2130;
}

.form-game .game-result {
    font-size: 0.7rem;
    line-height: 1;
}

.form-game .game-location {
    font-size: 0.5rem;
    line-height: 1;
    margin-top: -1px;
}

.form-record {
    font-size: 0.8rem;
    color: rgba(0, 255, 0, 0.7);
    min-width: 50px;
    text-align: right;
}

.trends-loading, .trends-error {
    padding: 20px;
}

.trends-loading .loading-text {
    color: var(--retro-green);
    margin-top: 10px;
    font-size: 0.9rem;
}

.trends-error {
    color: #ffc107;
}

@media (max-width: 768px) {
    .trends-controls .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .trends-controls .filter-group {
        min-width: auto;
    }

    .team-trend-item {
        padding: 6px 8px;
    }

    .team-trend-item .team-name {
        font-size: 0.8rem;
    }

    .team-trend-item .team-record {
        font-size: 0.7rem;
    }

    .team-trend-item .trend-value {
        font-size: 0.9rem;
        min-width: 60px;
    }

    .form-team {
        width: 60px;
    }

    .form-game {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

/* Highlight changed/modified filters */
.metrics-toggle.modified {
    border-color: #ff3d71 !important;
    background: linear-gradient(135deg, rgba(255, 61, 113, 0.1), rgba(255, 61, 113, 0.05)) !important;
    box-shadow: 0 0 8px rgba(255, 61, 113, 0.3) !important;
    position: relative;
}

.metrics-toggle.modified::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff3d71, #32cd32);
    border-radius: 6px;
    z-index: -1;
    opacity: 0.6;
}

.metrics-toggle.modified .selected-text {
    color: #ff3d71 !important;
    font-weight: bold;
}

.metrics-toggle.modified i {
    color: #ff3d71 !important;
}

/* Progress bar styling to match retro theme */
.progress {
    background-color: rgba(68, 68, 68, 0.8) !important;
    border: 2px solid #32cd32;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.5),
    inset 0 0 10px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    position: relative;
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(50, 205, 50, 0.1), transparent);
    animation: scanline-sweep 2s linear infinite;
    z-index: 1;
}

.progress-bar {
    background: linear-gradient(90deg, #ff3d71, #32cd32) !important;
    border: none;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 11px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 100%
    );
    z-index: 1;
}

.progress-bar.progress-bar-striped {
    background-image: linear-gradient(45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
    );
    background-size: 20px 20px;
}

/* Overlay loading state for modeling - positioned over settings panel */
#league-modeling-loading.overlay-mode,
#team-modeling-loading.overlay-mode {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1200 !important;
    width: 90vw !important;
    max-width: 500px !important;
    padding: 0 !important;
}

#league-predictions-loading,
#event-predictions-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 500px;
    z-index: 1100;
    padding: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Disable pointer events on settings panel while loading */
.stats-modeling-section.loading-active {
    position: relative;
}

.stats-modeling-section.loading-active .retro-panel:first-child {
    pointer-events: none;
    opacity: 0.4;
    filter: brightness(0.5);
    position: relative;
}

/* Backdrop overlay - only covers the settings panel */
.stats-modeling-section.loading-active .retro-panel:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 50;
    animation: fadeIn 0.3s ease-in;
}

@media (max-width: 768px) {
    #league-modeling-loading.overlay-mode,
    #team-modeling-loading.overlay-mode {
        width: 90% !important;
        padding: 0 !important;
    }
}

/* Retro-styled sliders */
.slider-container {
    position: relative;
    margin: 10px 0;
    padding: 15px;
    background: rgba(68, 68, 68, 0.3);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 4px;
}

.slider-container.modified {
    border-color: #ff3d71;
    background: rgba(255, 61, 113, 0.1);
    box-shadow: 0 0 8px rgba(255, 61, 113, 0.3);
}

.slider-label {
    color: #32cd32;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 3px rgba(50, 205, 50, 0.8);
}

.slider-container.modified .slider-label {
    color: #ff3d71;
    text-shadow: 0 0 3px rgba(255, 61, 113, 0.8);
}

.slider-wrapper {
    position: relative;
    height: 24px;
    margin-bottom: 8px;
}

/* Single slider */
.retro-slider {
    width: 100%;
    height: 6px;
    border-radius: 0;
    background: rgba(68, 68, 68, 0.8);
    border: 1px solid #32cd32;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    box-shadow: 0 0 5px rgba(50, 205, 50, 0.3),
    inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.retro-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, rgba(50, 205, 50, 0.2), rgba(255, 61, 113, 0.2));
    border: none;
    border-radius: 0;
}

.retro-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #32cd32, #ff3d71);
    border: 2px solid #ffffff;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(50, 205, 50, 0.8),
    inset 0 0 4px rgba(255, 255, 255, 0.3);
    position: relative;
}

.retro-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 12px rgba(50, 205, 50, 1),
    0 0 8px rgba(255, 61, 113, 0.8),
    inset 0 0 4px rgba(255, 255, 255, 0.5);
}

.retro-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, rgba(50, 205, 50, 0.2), rgba(255, 61, 113, 0.2));
    border: 1px solid #32cd32;
    border-radius: 0;
}

.retro-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #32cd32, #ff3d71);
    border: 2px solid #ffffff;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(50, 205, 50, 0.8),
    inset 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Dual slider */
.dual-slider-wrapper {
    position: relative;
    height: 24px;
    margin-bottom: 8px;
}

.dual-slider {
    width: 100%;
    height: 6px;
    border-radius: 0;
    background: rgba(68, 68, 68, 0.8);
    border: 1px solid #32cd32;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    box-shadow: 0 0 5px rgba(50, 205, 50, 0.3),
    inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.dual-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 0;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 0;
    pointer-events: auto;
}

.dual-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #32cd32, #ff3d71);
    border: 2px solid #ffffff;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(50, 205, 50, 0.8),
    inset 0 0 4px rgba(255, 255, 255, 0.3);
    pointer-events: auto;
}

.dual-slider input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 12px rgba(50, 205, 50, 1),
    0 0 8px rgba(255, 61, 113, 0.8),
    inset 0 0 4px rgba(255, 255, 255, 0.5);
}

.dual-slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #32cd32, #ff3d71);
    border: 2px solid #ffffff;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(50, 205, 50, 0.8),
    inset 0 0 4px rgba(255, 255, 255, 0.3);
    pointer-events: auto;
}

/* Range highlight between thumbs */
.dual-slider-track {
    position: absolute;
    height: 6px;
    background: linear-gradient(90deg, #32cd32, #ff3d71);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    border-radius: 0;
    box-shadow: 0 0 6px rgba(50, 205, 50, 0.6);
}

/* Slider values display */
.slider-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #32cd32;
    text-shadow: 0 0 3px rgba(50, 205, 50, 0.8);
}

.slider-container.modified .slider-values {
    color: #ff3d71;
    text-shadow: 0 0 3px rgba(255, 61, 113, 0.8);
}

.slider-value {
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border: 1px solid #32cd32;
    border-radius: 2px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.slider-container.modified .slider-value {
    border-color: #ff3d71;
    background: rgba(255, 61, 113, 0.1);
}

.slider-min-max {
    font-size: 9px;
    opacity: 0.7;
}

.slider-current {
    font-size: 12px;
    font-weight: bold;
}

/* Slider mode toggle - vertical layout */
.filter-with-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.filter-mode-toggle {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px; /* Align with input content */
    margin-left: 10px;
    flex-shrink: 0;
}

.mode-btn {
    padding: 3px 6px;
    font-size: 8px;
    font-family: 'Courier New', monospace;
    background: rgba(68, 68, 68, 0.8);
    border: 1px solid #32cd32;
    color: #32cd32;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    min-width: 45px;
    text-align: center;
    writing-mode: horizontal-tb;
}

.mode-btn:hover {
    background: rgba(50, 205, 50, 0.2);
    box-shadow: 0 0 5px rgba(50, 205, 50, 0.5);
}

.mode-btn.active {
    background: linear-gradient(45deg, #32cd32, #ff3d71);
    color: #000000;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(50, 205, 50, 0.8);
}

.filter-input-area {
    flex: 1;
    min-width: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-with-toggle {
        flex-direction: column;
        gap: 8px;
    }

    .filter-mode-toggle {
        flex-direction: row;
        margin-top: 0;
        justify-content: flex-start;
    }

    .mode-btn {
        min-width: 40px;
        font-size: 7px;
        padding: 2px 4px;
    }

    .slider-container {
        padding: 10px;
    }

    .slider-values {
        font-size: 10px;
    }

    .slider-value {
        min-width: 35px;
        padding: 1px 4px;
    }

    .retro-slider::-webkit-slider-thumb,
    .dual-slider input[type="range"]::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }
}

.players-table-sortable {
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    user-select: none;
}

.players-table-sortable.sorted {
    color: rgba(255, 255, 255, 0.7);
}

.players-table-sortable .sort-indicator {
    margin-left: 4px;
    font-size: 8px;
    opacity: 0.5;
}

/* ===============================================
   H2H (Head-to-Head) Rankings Styles
   =============================================== */

.h2h-content {
    padding: 0;
}

.h2h-header {
    margin-bottom: 20px;
}

.h2h-teams-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.h2h-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h2h-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.h2h-team-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.h2h-vs {
    font-size: 14px;
    color: var(--retro-text-muted);
    font-weight: 500;
}

.h2h-panel {
    height: 100%;
}

.h2h-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.h2h-team-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.h2h-team-header img {
    width: 24px;
    height: 24px;
}

.h2h-team-header span {
    font-weight: 600;
    color: #fff;
}

.h2h-category-selector {
    display: flex;
    align-items: center;
}

.h2h-category-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--retro-border);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.h2h-category-select:focus {
    outline: none;
    border-color: var(--retro-accent);
}

.h2h-stats-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.h2h-stat-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
    transition: all 0.15s ease;
}

.h2h-stat-row:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
}

.h2h-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.h2h-rank-badge.rank-excellent {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    color: #fff;
    border: 1px solid #4ade80;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.h2h-rank-badge.rank-good {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    color: #fff;
    border: 1px solid #22c55e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.h2h-rank-badge.rank-average {
    background: linear-gradient(135deg, #a16207 0%, #ca8a04 100%);
    color: #fff;
    border: 1px solid #eab308;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.h2h-rank-badge.rank-poor {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: #fff;
    border: 1px solid #ef4444;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.h2h-rank-badge.neutral {
    background: rgba(255, 255, 255, 0.15);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.h2h-stat-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    font-family: var(--font-mono);
}

.h2h-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    min-width: 50px;
    text-align: right;
    font-family: var(--font-mono);
}

.h2h-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: var(--retro-text-muted);
    font-size: 14px;
}

.h2h-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: #f87171;
    font-size: 14px;
}

.h2h-no-data {
    padding: 30px;
    text-align: center;
    color: var(--retro-text-muted);
    font-size: 14px;
}

/* Comparison Table */
.h2h-comparison-table {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.h2h-comparison-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

.h2h-comparison-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.15s ease;
}

.h2h-comparison-row:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
}

.h2h-comparison-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.h2h-comparison-cell.team-cell {
    font-weight: 600;
    font-family: var(--font-mono);
}

.h2h-comparison-cell.team-cell img {
    width: 20px;
    height: 20px;
}

.h2h-comparison-cell.stat-cell {
    margin: 0 8px;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    min-width: 120px;
    text-align: center;
    font-family: var(--font-mono);
}

.h2h-comparison-cell.rank-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.h2h-comparison-row .h2h-comparison-cell.rank-cell:last-child {
    align-items: flex-end;
}

.h2h-comparison-cell.rank-winner {
    background: rgba(74, 222, 128, 0.15);
    padding: 6px 10px;
    margin: -8px -10px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.h2h-value-small {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 768px) {
    .h2h-teams-display {
        gap: 10px;
    }

    .h2h-team-logo {
        width: 30px;
        height: 30px;
    }

    .h2h-team-name {
        font-size: 14px;
    }

    .h2h-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .h2h-stats-list {
        padding: 6px;
        gap: 4px;
    }

    .h2h-stat-row {
        padding: 8px 10px;
        gap: 8px;
    }

    .h2h-rank-badge {
        min-width: 40px;
        font-size: 10px;
        padding: 5px 8px;
    }

    .h2h-stat-label {
        font-size: 11px;
    }

    .h2h-stat-value {
        font-size: 11px;
        min-width: 40px;
    }

    .h2h-comparison-table {
        padding: 6px;
        gap: 4px;
    }

    .h2h-comparison-header {
        padding: 10px 12px;
    }

    .h2h-comparison-header,
    .h2h-comparison-row {
        grid-template-columns: 1fr 70px 1fr;
        gap: 5px;
    }

    .h2h-comparison-row {
        padding: 8px 10px;
    }

    .h2h-comparison-cell.stat-cell {
        font-size: 10px;
        min-width: 60px;
    }

    .h2h-value-small {
        font-size: 10px;
    }

    .h2h-comparison-cell.rank-winner {
        padding: 4px 6px;
        margin: -4px -6px;
    }
}

/* ===== GAME PREVIEW SECTION ===== */
.game-preview-panel {
    background: var(--oddizer-panel-bg);
}

.game-preview-container {
    padding: 16px 20px;
    min-height: 60px;
}

.game-preview-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.game-preview-text {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: var(--oddizer-text-dim);
}

.game-preview-text .preview-content p {
    color: var(--oddizer-text-dim);
    margin: 0 0 1em 0;
}

.game-preview-text .preview-content p:last-of-type {
    margin-bottom: 0;
}

.game-preview-text strong {
    color: #fff;
    font-weight: 600;
}

.game-preview-text .player-name {
    color: var(--oddizer-accent-secondary, #ff9500);
    font-style: italic;
}

.game-preview-text .preview-callout {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--oddizer-border);
    border-left: 2px solid var(--oddizer-accent);
    border-radius: 4px;
}

.game-preview-text .callout-title {
    color: var(--oddizer-accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.game-preview-text .preview-callout ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.game-preview-text .preview-callout li {
    padding: 3px 0;
    color: var(--oddizer-text-dim);
    font-size: 12px;
}

.game-preview-error {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: var(--oddizer-text-dim);
}

@media (max-width: 768px) {
    .game-preview-container {
        padding: 12px;
    }

    .game-preview-text {
        font-size: 12px;
    }
}

/* ===== H2H GAMELOG PANEL (Overview Tab) ===== */
.h2h-model-row .h2h-gamelog-col:only-child,
.h2h-model-row .model-odds-col:only-child {
    max-width: 100%;
    flex: 0 0 100%;
}

.h2h-model-row .h2h-gamelog-col.full-width,
.h2h-model-row .model-odds-col.full-width {
    max-width: 100%;
    flex: 0 0 100%;
}

.h2h-gamelog-panel {
    height: 100%;
}

.h2h-gamelog-container {
    padding: 0;
}

.h2h-gamelog-loading, .h2h-gamelog-empty {
    padding: 20px;
    text-align: center;
    color: var(--oddizer-text-dim);
}

.h2h-gamelog-loading i {
    margin-right: 8px;
}

/* H2H Schedule Grid */
.h2h-schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.h2h-schedule-grid.single { grid-template-columns: 1fr; }
.h2h-schedule-col:nth-child(2) {
    border-left: 1px solid var(--oddizer-border);
}
@media (max-width: 768px) {
    .h2h-schedule-grid { grid-template-columns: 1fr; }
    .h2h-schedule-col:nth-child(2) { border-left: none; border-top: 1px solid var(--oddizer-border); }
}

/* H2H Game Rows */
.h2h-games-list { padding: 2px 0; }
.h2h-game-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--oddizer-text);
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.h2h-game-row:last-child { border-bottom: none; }
.h2h-game-row:hover {
    background: rgba(255,255,255,0.03);
    color: var(--oddizer-text);
    text-decoration: none;
}
.h2h-game-date {
    font-size: 10px;
    min-width: 62px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
}
.h2h-game-matchup {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.h2h-game-matchup .at-symbol {
    color: rgba(255,255,255,0.15);
    font-size: 9px;
    margin: 0 -2px;
}
.h2h-team-score {
    display: flex;
    align-items: center;
    gap: 5px;
}
.h2h-team-score .team-logo-xs {
    width: 16px;
    height: 16px;
}
.h2h-team-score > span:not(.h2h-score) {
    font-size: 11px;
    font-weight: 500;
    min-width: 28px;
}
.h2h-team-score > span.winning-team:not(.h2h-score) {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}
.h2h-score {
    font-weight: 600;
    font-size: 14px;
    min-width: 26px;
    text-align: right;
    color: rgba(255,255,255,0.3);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}
.h2h-score.winning-team {
    color: var(--oddizer-accent);
    font-weight: 800;
}
.h2h-game-future .h2h-team-score > span:not(.h2h-score) {
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* H2H Subsection Headers */
.h2h-subsection {
    margin-top: 0;
}

.h2h-subsection + .h2h-subsection {
    margin-top: 0;
}

.h2h-subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--oddizer-text-dim);
    letter-spacing: 0.5px;
    padding: 10px 12px;
    background: transparent;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
}
.h2h-series-record {
    font-size: 10px;
    font-weight: 600;
    color: var(--oddizer-accent);
    text-transform: none;
    letter-spacing: 0;
}

.h2h-subsection-header i {
    margin-right: 6px;
}

.h2h-subsection-header .h2h-tab-link {
    font-size: 9px;
    color: var(--oddizer-text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.h2h-subsection-header .h2h-tab-link:hover {
    color: var(--oddizer-accent);
}

.h2h-subsection-header .h2h-tab-link i {
    margin-left: 4px;
    font-size: 8px;
}

/* H2H Player Tables */
.h2h-players-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 12px;
    max-height: 360px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}
.h2h-players-dual.expanded { max-height: none; }
.h2h-players-toggle {
    display: none;
    justify-content: center;
    padding: 6px 0;
    cursor: pointer;
    font-size: 11px;
    color: var(--oddizer-accent);
    opacity: 0.8;
    gap: 4px;
}
.h2h-players-toggle:hover { opacity: 1; }
.h2h-players-toggle.visible { display: flex; }

.h2h-team-col {
    font-size: 11px;
    overflow-x: auto;
}

.h2h-team-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--oddizer-text-light);
}

.h2h-team-label img {
    width: 18px;
    height: 18px;
}

.h2h-player-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.h2h-player-table thead th {
    font-size: 9px;
    color: rgba(0, 255, 65, 0.8);
    font-weight: 600;
    text-align: center;
    padding: 8px 8px;
    border: none;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.h2h-player-table thead th.name-col {
    text-align: left;
}

.h2h-player-table thead th.games-col {
    text-align: center;
}

.h2h-player-table td {
    padding: 7px 8px;
    text-align: center;
    font-size: 11px;
    color: var(--oddizer-text);
}

.h2h-player-table td.player-name {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.h2h-player-table td.games-col {
    color: var(--oddizer-text-dim);
    font-size: 10px;
}

.h2h-player-table td.no-data {
    text-align: center;
    color: var(--oddizer-text-dim);
    font-style: italic;
    padding: 16px;
}

.h2h-player-table tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.025);
}

.h2h-player-table tbody tr:hover td {
    background: rgba(0, 255, 65, 0.04);
}

.h2h-player-table td.stat-high {
    color: #4ade80;
    font-weight: 600;
}

.h2h-player-table td.stat-low {
    color: #f87171;
}

.h2h-player-table td.stat-zero {
    color: var(--oddizer-text-dim);
}


/* Player Game Log Tooltip */
.player-tooltip-trigger {
    cursor: pointer;
}

.player-tooltip-trigger:hover {
    color: var(--oddizer-accent);
    text-decoration: underline;
}

.player-gamelog-tooltip {
    position: absolute;
    z-index: 9999;
    background: var(--oddizer-bg-dark, #0d0d0d);
    border: 1px solid var(--oddizer-accent);
    border-radius: 6px;
    padding: 10px;
    min-width: 220px;
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
}

.player-gamelog-tooltip.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.player-gamelog-tooltip .tooltip-header {
    font-weight: 600;
    font-size: 12px;
    color: var(--oddizer-accent);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--oddizer-border);
    padding-bottom: 6px;
}

.player-gamelog-tooltip .tooltip-loading,
.player-gamelog-tooltip .tooltip-error,
.player-gamelog-tooltip .tooltip-empty {
    text-align: center;
    color: var(--oddizer-text-dim);
    font-size: 11px;
    padding: 10px 0;
}

.player-gamelog-tooltip .tooltip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.player-gamelog-tooltip .tooltip-table th {
    color: var(--oddizer-text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 9px;
    padding: 3px 4px;
    text-align: center;
    border-bottom: 1px solid var(--oddizer-border);
}

.player-gamelog-tooltip .tooltip-table td {
    padding: 4px;
    text-align: center;
    color: var(--oddizer-text);
}

.player-gamelog-tooltip .tooltip-table td.date-col {
    color: var(--oddizer-text-dim);
    font-size: 9px;
    text-align: left;
}

.player-gamelog-tooltip .tooltip-table td.opp-col {
    font-weight: 500;
    text-align: left;
}

.player-gamelog-tooltip .tooltip-table tbody tr {
    border-bottom: 1px dotted var(--oddizer-border-light);
}

.player-gamelog-tooltip .tooltip-table tbody tr:last-child {
    border-bottom: none;
}

.player-gamelog-tooltip .tooltip-table tbody tr.current-opp-row {
    background: rgba(0, 255, 65, 0.08);
}

.player-gamelog-tooltip .tooltip-table td.current-opp {
    color: var(--oddizer-accent);
    font-weight: 600;
}
.player-gamelog-tooltip .tooltip-avg-row {
    border-top: 1px solid var(--oddizer-border);
}
.player-gamelog-tooltip .tooltip-avg-row td {
    font-weight: 600;
    color: var(--oddizer-accent);
    font-size: 10px;
}
.player-gamelog-tooltip .tooltip-avg-row td:first-child {
    text-align: left;
    font-size: 9px;
    color: var(--oddizer-text-dim);
}

@media (max-width: 767px) {
    .player-gamelog-tooltip {
        min-width: 260px;
        max-width: 90vw;
        font-size: 11px;
    }

    .player-gamelog-tooltip .tooltip-table {
        font-size: 11px;
    }

    .player-gamelog-tooltip .tooltip-table th {
        font-size: 10px;
    }
}

/* ===== MODEL ODDS PANEL ===== */
.model-odds-panel {
    border-color: var(--oddizer-border);
}

.model-odds-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-odds-panel .panel-settings-link {
    color: var(--oddizer-text-dim);
    font-size: 12px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.model-odds-panel .panel-settings-link:hover {
    opacity: 1;
    color: var(--oddizer-accent);
}

.model-odds-display {
    padding: 16px;
    min-height: 260px;
}

.model-odds-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--oddizer-text-dim);
    font-style: italic;
}
.model-odds-loading i { margin-right: 6px; }

.model-odds-matchup {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
}

.model-team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--oddizer-border);
    min-width: 110px;
    flex: 1;
    max-width: 160px;
}

.model-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.model-team-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.model-team-info .model-team-logo {
    width: 24px;
    height: 24px;
}

.model-team-abbr {
    font-size: 12px;
    font-weight: 600;
    color: var(--oddizer-text);
}

.model-team-predicted {
    font-size: 20px;
    font-weight: 700;
    color: var(--oddizer-accent);
    line-height: 1;
}

.model-team-odds {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.model-win-prob {
    font-size: 14px;
    font-weight: 600;
    color: var(--oddizer-text);
}

.model-ml {
    font-size: 11px;
    font-weight: 500;
    color: var(--oddizer-text-dim);
    font-family: 'Courier New', monospace;
}

/* Inline row for odds + EV pill on same line */
.model-odds-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}

.model-ev {
    font-size: 11px;
    font-weight: 600;
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* EV Pill Styles */
.ev-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1px;
    line-height: 1;
    white-space: nowrap;
    min-height: 18px;
    vertical-align: middle;
}

.ev-pill-positive {
    color: #0d2a14;
    background: linear-gradient(135deg, #00ff41, #00cc33);
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

.ev-pill-negative {
    color: var(--oddizer-text-dim);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* EV info tooltip icon */
.ev-info-icon {
    color: var(--oddizer-text-dim);
    font-size: 10px;
    cursor: help;
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
    position: relative;
}

.ev-info-icon:hover {
    opacity: 1;
    color: var(--oddizer-accent);
}

/* Spread/Total inline rows + EV */
.spread-odds-row {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.spread-ev,
.total-ev {
    min-height: 16px;
    display: inline-flex;
    align-items: center;
}

/* Legacy classes - redirect to pill */
.model-ev .ev-positive {
    color: #0d2a14;
    background: linear-gradient(135deg, #00ff41, #00cc33);
    padding: 2px 8px;
    border-radius: 10px;
}

.model-ev .ev-negative {
    color: var(--oddizer-text-dim);
}

.model-vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
}

.model-vs-divider .vs-text {
    font-size: 14px;
    color: var(--oddizer-text-dim);
    font-weight: 600;
}

/* EV Tooltip (CSS-only, for .ev-info-icon) */
.ev-info-icon[title] {
    position: relative;
}
.ev-info-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
    white-space: pre-line;
    min-width: 200px;
    max-width: 260px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    pointer-events: none;
}
.ev-info-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--oddizer-border);
    z-index: 101;
    pointer-events: none;
}

.model-odds-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--oddizer-border);
    font-size: 11px;
    color: var(--oddizer-text-dim);
}

.model-source {
    display: none;
}

.source-book-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.model-source .vig-removed {
    opacity: 0.7;
}

.model-type-quick-select {
    background: var(--oddizer-bg-panel, #111);
    color: var(--oddizer-text, #e0e0e0);
    border: 1px solid var(--oddizer-border, #333);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
    max-width: 160px;
}
.model-type-quick-select:hover,
.model-type-quick-select:focus {
    border-color: var(--oddizer-accent, #00ff41);
    outline: none;
}
.model-type-quick-select option,
.model-type-quick-select optgroup {
    background: #111;
    color: #e0e0e0;
}

.model-odds-backtest-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    color: var(--oddizer-text-dim, #888);
    white-space: nowrap;
}
.model-odds-backtest-stats .bt-period { display: inline-flex; gap: 3px; align-items: center; }
.model-odds-backtest-stats .bt-label { color: var(--oddizer-text-dim, #666); }
.model-odds-backtest-stats .bt-record { color: var(--oddizer-text, #ccc); }
.model-odds-backtest-stats .bt-roi.positive { color: var(--oddizer-accent, #00ff41); }
.model-odds-backtest-stats .bt-roi.negative { color: #cc6666; }
.model-odds-backtest-stats .bt-spinner {
    width: 10px; height: 10px;
    border: 1.5px solid var(--oddizer-border, #333);
    border-top-color: var(--oddizer-accent, #00ff41);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.model-total-spread .stat-label {
    color: var(--oddizer-text-dim);
    margin-right: 4px;
}

.model-odds-error {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: var(--oddizer-text-dim);
}

@media (max-width: 576px) {
    .model-odds-matchup {
        flex-direction: column;
        gap: 12px;
    }

    .model-team-block {
        width: 100%;
        max-width: none;
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 16px;
    }

    .model-team-info {
        flex-direction: row;
        gap: 12px;
    }

    .model-team-odds {
        flex-direction: row;
        gap: 12px;
    }

    .model-vs-divider {
        display: none;
    }
}

/* Model Odds Tabs */
.panel-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.panel-header-actions a {
    color: var(--oddizer-text-dim);
    font-size: 12px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.panel-header-actions a:hover {
    opacity: 1;
    color: var(--oddizer-accent);
}

.model-odds-tabs {
    display: flex;
    border-bottom: 1px solid var(--oddizer-border);
    background: transparent;
}

.model-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--oddizer-text-dim);
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s;
}

.model-tab:hover {
    color: var(--oddizer-text);
    background: rgba(0, 255, 65, 0.05);
}

.model-tab.active {
    color: var(--oddizer-accent);
    border-bottom-color: var(--oddizer-accent);
    background: #0d0d0d;
}

.model-tab-content {
    display: none;
}

.model-tab-content.active {
    display: block;
}

/* Model Distribution Chart */
#model-dist-chart,
#model-spread-chart,
#model-total-chart {
    min-height: 160px;
}

.model-dist-container {
    padding: 0 8px;
}

.dist-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px 0;
}

.dist-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dist-team-block {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 56px;
}

.dist-team-block .model-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.dist-team-block .model-team-abbr {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.dist-slider-row[data-team="away"] .model-team-abbr {
    color: #cc6666;
}

.dist-slider-row[data-team="home"] .model-team-abbr {
    color: var(--oddizer-accent);
}

.dist-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.dist-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.dist-slider-row[data-team="away"] .dist-slider::-webkit-slider-thumb {
    background: #cc6666;
}

.dist-slider-row[data-team="home"] .dist-slider::-webkit-slider-thumb {
    background: var(--oddizer-accent);
}

.dist-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.dist-slider-row[data-team="away"] .dist-slider::-moz-range-thumb {
    background: #cc6666;
}

.dist-slider-row[data-team="home"] .dist-slider::-moz-range-thumb {
    background: var(--oddizer-accent);
}

.dist-score-val {
    font-size: 13px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    color: var(--oddizer-text);
    font-family: 'Courier New', monospace;
}

.dist-slider-row .model-ml {
    font-size: 12px;
    font-weight: 700;
    color: var(--oddizer-text);
    font-family: 'Courier New', monospace;
    min-width: 42px;
    text-align: right;
}

.dist-win-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 6px 0 2px;
    font-size: 13px;
    font-weight: 600;
}

.dist-prob.away { color: #cc6666; }
.dist-prob.home { color: var(--oddizer-accent); }
.dist-vs { color: var(--oddizer-text-dim); font-size: 11px; }

/* Spread Chart Container */
.spread-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 0;
}

.spread-slider-label {
    font-size: 11px;
    color: var(--oddizer-text-dim);
    white-space: nowrap;
}

.spread-slider-val {
    font-size: 13px;
    font-weight: 700;
    color: #e0a030;
    min-width: 40px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

.spread-cover-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 4px;
}

.spread-cover-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.spread-cover-block.center {
    text-align: center;
    color: var(--oddizer-text-dim);
    font-size: 11px;
}

.spread-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.spread-cover-block .spread-team-abbr {
    font-size: 12px;
    font-weight: 700;
}

.spread-cover-block.away .spread-team-abbr { color: #cc6666; }
.spread-cover-block.home .spread-team-abbr { color: var(--oddizer-accent); }

.spread-cover-pct {
    font-size: 15px;
    font-weight: 700;
    color: var(--oddizer-text-dim);
    font-family: 'Courier New', monospace;
}

.spread-cover-ml {
    font-size: 12px;
    color: var(--oddizer-text-dim);
    font-family: 'Courier New', monospace;
}

.market-spread-value {
    color: #cc6666;
    font-weight: 600;
}

/* Total Distribution */
.total-dist-container {
    padding: 0 8px;
}

.total-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 0;
}

.total-slider-label {
    font-size: 11px;
    font-weight: 700;
    color: #e6a817;
    min-width: 58px;
}

.total-line-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.total-line-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: #e6a817;
    cursor: pointer;
}

.total-line-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: #e6a817;
    cursor: pointer;
}

.total-slider-val {
    font-size: 14px;
    font-weight: 700;
    min-width: 35px;
    text-align: center;
    color: #e6a817;
    font-family: 'Courier New', monospace;
}

.total-ou-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 4px;
}

.total-ou-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.total-ou-block.center {
    text-align: center;
}

.total-model-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--oddizer-accent);
    font-family: 'Courier New', monospace;
}

.total-model-label {
    font-size: 10px;
    color: var(--oddizer-text-dim);
}

.total-ou-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-ou-block.over .total-ou-label {
    color: var(--oddizer-accent);
}

.total-ou-block.under .total-ou-label {
    color: #5dade2;
}

.total-ou-pct {
    font-size: 15px;
    font-weight: 700;
    color: var(--oddizer-text-dim);
    font-family: 'Courier New', monospace;
}

.total-ou-pct.favored {
    color: var(--oddizer-text);
}

/* Legacy total styles */
.total-comparison-labels {
    display: none;
}

.total-direction-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.total-dir-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-direction-block.over .total-dir-label {
    color: var(--oddizer-accent);
}

.total-direction-block.under .total-dir-label {
    color: #5dade2;
}

.total-center-info {
    text-align: center;
}

.model-total-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--oddizer-accent);
    line-height: 1.2;
}

.total-label-small {
    font-size: 10px;
    color: var(--oddizer-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-comparison-labels .total-market-line {
    font-size: 11px;
    color: var(--oddizer-text-dim);
}

@media (max-width: 576px) {
    .dist-controls {
        padding: 6px 8px 0;
    }

    .dist-team-block {
        min-width: 48px;
    }

    .dist-team-block .model-team-logo {
        width: 16px;
        height: 16px;
    }

    .dist-team-block .model-team-abbr {
        font-size: 10px;
    }

    .dist-slider-row .model-ml {
        font-size: 10px;
        min-width: 36px;
    }

    .ev-pill {
        font-size: 9px;
        padding: 2px 5px;
    }

    .gauge-score-prediction {
        font-size: 16px;
        gap: 4px;
    }

    .spread-cover-summary {
        padding: 6px 10px 2px;
    }

    .spread-slider-row {
        padding: 4px 8px 0;
    }

    .total-ou-summary {
        padding: 6px 10px 2px;
    }

    .total-slider-row {
        padding: 6px 8px 0;
    }

    .spread-line-value {
        font-size: 14px;
    }

    .model-total-value {
        font-size: 20px;
    }
}

/* Spread Tab - Legacy fallback */
.model-spread-display {
    padding: 8px 0;
}

.spread-prediction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--oddizer-accent);
    margin-bottom: 16px;
}

.spread-label {
    color: var(--oddizer-text-dim);
    font-size: 11px;
    text-transform: uppercase;
}

.spread-prediction .spread-team {
    font-weight: 700;
    color: var(--oddizer-accent);
}

.spread-prediction .spread-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--oddizer-accent);
    font-family: 'Courier New', monospace;
}


.spread-team-abbr {
    font-size: 14px;
    font-weight: 700;
    color: var(--oddizer-text);
    display: block;
    margin-bottom: 8px;
}

.spread-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spread-model-line {
    font-size: 16px;
    font-weight: 600;
    color: var(--oddizer-accent);
}

.spread-market-line {
    font-size: 12px;
    color: var(--oddizer-text-dim);
}

.spread-ev {
    font-size: 11px;
}

/* Total Tab */
.model-total-display {
    padding: 8px 0;
}

.total-prediction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--oddizer-accent);
    margin-bottom: 16px;
}

.total-label {
    color: var(--oddizer-text-dim);
    font-size: 11px;
    text-transform: uppercase;
}

.total-prediction .total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--oddizer-accent);
    font-family: 'Courier New', monospace;
}

.total-comparison {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.total-side {
    flex: 1;
    /*max-width: 180px;*/
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--oddizer-border);
    text-align: center;
}

.total-direction {
    font-size: 12px;
    font-weight: 700;
    color: var(--oddizer-text);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.over-side .total-direction {
    color: var(--oddizer-accent);
}

.under-side .total-direction {
    color: var(--oddizer-blue);
}

.total-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.total-market-line {
    font-size: 16px;
    font-weight: 600;
    color: var(--oddizer-text);
}

.total-ev {
    margin-top: 8px;
    font-size: 11px;
}

.total-ev .ev-positive,
.spread-ev .ev-positive {
    color: var(--oddizer-accent);
    background: rgba(0, 255, 65, 0.15);
    padding: 2px 8px;
    border-radius: 2px;
}

.total-ev .ev-negative,
.spread-ev .ev-negative {
    color: var(--oddizer-text-dim);
}

/* View Analysis Link */
.view-analysis-link {
    color: var(--oddizer-accent);
    font-size: 11px;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.view-analysis-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.view-analysis-link i {
    margin-left: 4px;
    font-size: 10px;
}

/* ===== STRATEGY LOADING STATES ===== */
.strategy-loading-state {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px dashed rgba(148, 163, 184, 0.25);
    border-radius: 8px;
}

.loading-spinner-inline {
    flex-shrink: 0;
}

.spinner-dots {
    display: flex;
    gap: 4px;
}

.spinner-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--oddizer-accent, #2dd36f);
    animation: spinnerPulse 1.2s ease-in-out infinite;
}

.spinner-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes spinnerPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.loading-status {
    flex: 1;
}

.loading-status-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--oddizer-text, #f1f5f9);
}

.loading-status-subtext {
    font-size: 12px;
    color: var(--oddizer-text-dim, rgba(148, 163, 184, 0.8));
    margin-top: 2px;
}

.loading-elapsed {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--oddizer-text-dim, rgba(148, 163, 184, 0.7));
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* Strategy Error State */
.strategy-error-state {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 8px;
}

.strategy-error-state > i {
    font-size: 20px;
    color: var(--oddizer-red, #f87171);
}

.strategy-error-state .error-message {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.strategy-error-state .error-message strong {
    font-size: 13px;
    color: #fca5a5;
}

.strategy-error-state .error-message span {
    font-size: 12px;
    color: rgba(248, 113, 113, 0.8);
}

.strategy-error-state .retry-btn {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fca5a5;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.strategy-error-state .retry-btn:hover {
    background: rgba(248, 113, 113, 0.25);
    border-color: rgba(248, 113, 113, 0.6);
}

.strategy-error-state .retry-btn i {
    margin-right: 4px;
}

/* News Section Styles */
.news-list {
    padding: 0;
}

.news-loading {
    padding: 20px;
    text-align: center;
    color: var(--oddizer-text-dim);
}

.news-loading i {
    margin-right: 8px;
}

.news-empty {
    padding: 20px;
    text-align: center;
    color: var(--oddizer-text-dim);
}

.news-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.news-headline {
    font-size: 13px;
    line-height: 1.4;
    color: var(--oddizer-text);
    margin-bottom: 6px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
}

.news-provider {
    color: var(--oddizer-accent);
    text-decoration: none;
}

.news-provider:hover {
    text-decoration: underline;
}

.news-time {
    color: var(--oddizer-text-dim);
}

.news-team {
    background: rgba(255, 255, 255, 0.06);
    color: var(--oddizer-text-dim);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .news-item {
        padding: 10px 12px;
    }

    .news-headline {
        font-size: 12px;
    }

    .news-meta {
        gap: 8px;
        font-size: 10px;
    }
}

/* Stats Compact Filter Bar */
.stats-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 14px;
}

.stats-filters-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--oddizer-text-dim);
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.stats-filters-toggle:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--oddizer-text);
}

.stats-filters-toggle .toggle-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.stats-filters-toggle[aria-expanded="true"] .toggle-arrow {
    transform: rotate(180deg);
}

.filter-summary-text {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 10px;
}

.stats-filter-bar {
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.15);
}

.filter-chips-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-chips-scroll::-webkit-scrollbar {
    display: none;
}

.chip-group {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.chip-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.filter-chip {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 4px;
}

.filter-chip:hover {
    border-color: var(--oddizer-accent);
    color: var(--oddizer-accent);
}

.filter-chip.active {
    background: var(--oddizer-accent);
    border-color: var(--oddizer-accent);
    color: #000;
}

.filter-chip i {
    font-size: 10px;
}

/* H2H toggle chip */
.filter-chip.h2h-chip {
    gap: 4px;
    display: inline-flex;
    align-items: center;
}

.filter-chip.h2h-chip.active {
    background: rgba(0, 255, 65, 0.2);
    color: var(--oddizer-accent);
    border-color: var(--oddizer-accent);
}

.stats-filters-panel {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    transition: all 0.2s ease;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.stats-filters-panel.collapsed {
    display: none;
}

.retro-panel:has(.stats-filters-panel .metrics-menu.open) {
    overflow: visible !important;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-section.inline-options {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.filter-section-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkbox-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-compact input[type="checkbox"] {
    accent-color: var(--oddizer-accent);
    width: 14px;
    height: 14px;
}

.checkbox-compact:hover {
    color: var(--oddizer-accent);
}

.reset-btn-compact {
    background: transparent;
    border: 1px solid rgba(255, 100, 100, 0.4);
    color: rgba(255, 100, 100, 0.8);
    padding: 6px 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
}

.reset-btn-compact:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.6);
    color: #ff6b6b;
}

.reset-btn-compact i {
    margin-right: 4px;
}

.metrics-dropdown-compact {
    position: relative;
}

.metrics-toggle-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--oddizer-text);
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    min-width: 140px;
    justify-content: space-between;
}

.metrics-toggle-compact:hover {
    border-color: var(--oddizer-accent);
}

.metrics-toggle-compact i {
    font-size: 10px;
    transition: transform 0.2s;
}

.metrics-toggle-compact.open i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .stats-panel-header {
        padding: 8px 10px;
    }

    .stats-panel-header h6 {
        font-size: 11px;
    }

    .stats-filters-toggle {
        padding: 4px 8px;
        font-size: 10px;
    }

    .stats-filter-bar {
        padding: 6px 8px;
    }

    .filter-chip {
        padding: 4px 7px;
        font-size: 10px;
    }

    .stats-filters-panel {
        padding: 8px;
        gap: 10px;
    }

    .filter-section.inline-options {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .stats-dual-display {
        flex-direction: column;
        gap: 6px;
    }

    .team-stats-panel {
        width: 100% !important;
        min-width: 0;
    }

    .team-stats-header-compact {
        padding: 6px 8px;
        gap: 6px;
    }

    .team-logo-compact {
        width: 20px;
        height: 20px;
    }

    .team-abbr-compact {
        font-size: 12px;
    }

    .inline-stats {
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
        gap: 8px;
    }

    .stat-inline {
        font-size: 10px;
    }

    .stat-label-inline {
        font-size: 7px;
    }

    .prob-header-row {
        padding: 3px 6px;
    }

    .prob-expand-btn {
        font-size: 10px;
        gap: 4px;
    }

    .prob-preview {
        font-size: 10px;
    }

    .prob-method-btn,
    .prob-direction-btn {
        padding: 2px 4px;
        font-size: 8px;
    }

    .prob-scale-body {
        padding: 4px 6px;
    }

    .prob-value-square {
        min-width: 36px;
        padding: 3px 2px;
    }

    .prob-target-value {
        font-size: 9px;
    }

    .prob-percentage-small {
        font-size: 8px;
    }

    .prob-odds-small {
        font-size: 6px;
    }

    .compact-game-table {
        font-size: 10px;
    }

    .compact-game-table thead th {
        padding: 6px 6px;
        font-size: 8px;
    }

    .compact-game-table tbody td {
        padding: 6px 6px;
    }

    .matchup-cell {
        min-width: 80px;
    }

    .matchup-teams {
        font-size: 9px;
        gap: 2px;
    }

    .matchup-teams .team-logo-xs {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .stats-filters-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .filter-chip {
        padding: 3px 5px;
        font-size: 9px;
    }

    .chip-group {
        gap: 2px;
    }

    .team-stats-header-compact {
        padding: 5px 6px;
    }

    .team-logo-compact {
        width: 18px;
        height: 18px;
    }

    .team-abbr-compact {
        font-size: 11px;
    }

    .team-role-compact,
    .team-record-compact {
        font-size: 8px;
    }

    .inline-stats {
        gap: 6px;
    }

    .stat-inline {
        font-size: 9px;
    }

    .stat-value-inline {
        font-size: 10px;
    }

    .prob-header-row {
        padding: 2px 4px;
    }

    .prob-expand-btn {
        font-size: 9px;
        gap: 3px;
    }

    .prob-controls {
        gap: 2px;
    }

    .prob-method-btn,
    .prob-direction-btn {
        padding: 1px 3px;
        font-size: 7px;
    }

    .prob-scale-body {
        padding: 3px 4px;
    }

    .prob-value-square {
        min-width: 32px;
        padding: 2px 1px;
    }

    .prob-target-value {
        font-size: 8px;
    }

    .prob-percentage-small {
        font-size: 7px;
    }

    .prob-odds-small {
        font-size: 5px;
    }

    .compact-game-table {
        font-size: 9px;
    }

    .compact-game-table thead th {
        padding: 5px 4px;
        font-size: 7px;
    }

    .compact-game-table tbody td {
        padding: 5px 4px;
    }

    .matchup-teams {
        font-size: 8px;
    }

    .matchup-teams .team-logo-xs {
        width: 10px;
        height: 10px;
    }
}

/* Stats dual display - compact layout */
.stats-dual-display {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: rgba(255, 255, 255, 0.04);
}

.team-stats-panel {
    flex: 1;
    min-width: 280px;
    background: var(--oddizer-panel-bg);
}

.team-stats-panel .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Compact team header with inline stats */
.team-stats-header-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.team-logo-compact {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.team-abbr-compact {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.team-role-compact {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-record-compact {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Courier New', monospace;
}

.inline-stats {
    display: flex;
    gap: 16px;
    margin-left: auto;
    flex-wrap: wrap;
}

.stat-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 11px;
}

.stat-label-inline {
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    font-size: 8px;
    letter-spacing: 0.5px;
    order: 2;
}

.stat-value-inline {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    order: 1;
}

.stat-stddev {
    color: rgba(255, 255, 255, 0.25);
    font-size: 9px;
    order: 3;
}

/* Probability scale - compact collapsible */
.prob-compact-container {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.prob-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.1);
}

.prob-expand-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--oddizer-text);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 11px;
}

.prob-expand-btn:hover {
    color: var(--oddizer-accent);
}

.prob-expand-btn i:first-child {
    color: var(--oddizer-accent);
    font-size: 10px;
}

.prob-expand-icon {
    font-size: 8px;
    transition: transform 0.15s;
    color: rgba(255, 255, 255, 0.4);
}

.prob-expand-icon.expanded {
    transform: rotate(180deg);
}

.prob-preview {
    font-size: 11px;
}

.prob-preview strong {
    color: var(--oddizer-accent);
}

.prob-preview-odds {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.prob-controls {
    display: flex;
    gap: 4px;
}

.prob-method-toggle,
.prob-direction-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prob-method-btn,
.prob-direction-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 2px 5px;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.15s;
}

.prob-method-btn.active,
.prob-direction-btn.active {
    background: var(--oddizer-accent);
    color: #000;
}

.prob-scale-body {
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.15);
}

.scale-values {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

.prob-value-square {
    flex-shrink: 0;
    min-width: 42px;
    padding: 4px 2px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.prob-value-square:hover {
    border-color: var(--oddizer-accent);
}

.prob-value-square.center {
    border-color: var(--oddizer-accent);
    background: rgba(0, 255, 65, 0.1);
}

.prob-value-square.selected {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--oddizer-accent);
}

.prob-target-value {
    font-size: 10px;
    font-weight: 600;
    color: var(--oddizer-text);
}

.prob-percentage-small {
    font-size: 9px;
    font-weight: 700;
}

.prob-odds-small {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.5);
}

/* Date display - full on desktop, short on mobile */
.date-short {
    display: none;
}

.date-full {
    display: inline;
}

@media (max-width: 576px) {
    .date-short {
        display: inline;
    }

    .date-full {
        display: none;
    }
}

/* Stat color scaling - simple 3 color */
.stat-hi {
    color: #6ee7b7;
}

.stat-lo {
    color: #fca5a5;
}

/* Compact game table - overview context */

.matchup-cell {
    min-width: 100px;
}

.matchup-teams {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
}

.matchup-teams .team-logo-xs {
    width: 14px;
    height: 14px;
}

.matchup-teams .at-symbol {
    color: rgba(255, 255, 255, 0.3);
    font-size: 9px;
}

.odds-book-icon-inline {
    width: 14px;
    height: 14px;
    margin-right: 2px;
    vertical-align: middle;
}

/* ===== HEAT SEEKER STYLES ===== */
.heat-seeker-content {
    padding: 0;
}

.heat-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--oddizer-border);
}

.heat-select {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text);
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 3px;
}

.heat-select:focus {
    border-color: var(--oddizer-accent);
    outline: none;
}

.heat-refresh-btn {
    background: transparent;
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text-dim);
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: auto;
}

.heat-refresh-btn:hover {
    border-color: var(--oddizer-accent);
    color: var(--oddizer-accent);
}

.heat-seeker-list {
    padding: 0;
}

.heat-table {
    font-size: 12px;
}

.heat-row-wrapper {
    border-bottom: 1px solid var(--oddizer-border);
}

.heat-row-wrapper:last-child {
    border-bottom: none;
}

.heat-row-main {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) 50px minmax(60px, 1fr) minmax(140px, 1.5fr) 70px 90px;
    gap: 8px;
    padding: 10px 12px;
    align-items: center;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s;
}

.heat-row-main:hover {
    background: rgba(0, 255, 65, 0.03);
}

.heat-row-main.dir-steam {
    border-left-color: #4ade80;
}

.heat-row-main.dir-fade {
    border-left-color: #f87171;
}

.heat-row-main.dir-over {
    border-left-color: #60a5fa;
}

.heat-row-main.dir-under {
    border-left-color: #fbbf24;
}

.heat-cell {
    display: flex;
    align-items: center;
}

.heat-cell-game {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.heat-game-info {
    width: 100%;
}

.heat-teams {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.heat-logo {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.heat-abbr {
    font-size: 12px;
}

.heat-at {
    color: var(--oddizer-text-dim);
    font-size: 10px;
    margin: 0 2px;
}

.heat-datetime {
    display: flex;
    gap: 6px;
    font-size: 10px;
    margin-top: 2px;
}

.heat-date {
    color: var(--oddizer-accent);
    font-weight: 600;
}

.heat-time {
    color: var(--oddizer-text-dim);
}

.heat-cell-type {
    justify-content: center;
}

.heat-type-badge {
    font-weight: 700;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    text-align: center;
    min-width: 40px;
}

.heat-type-badge.ml {
    background: rgba(0, 255, 65, 0.15);
    color: var(--oddizer-accent);
}

.heat-type-badge.s {
    background: rgba(240, 165, 0, 0.15);
    color: #f0a500;
}

.heat-type-badge.t {
    background: rgba(93, 173, 226, 0.15);
    color: #5dade2;
}

.heat-cell-side {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.heat-cell-movement {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Courier New', monospace;
}

.heat-source {
    color: var(--oddizer-text-dim);
    font-size: 9px;
    text-transform: uppercase;
    margin-right: 4px;
}

.heat-open {
    color: var(--oddizer-text-dim);
    font-size: 11px;
}

.heat-arrow {
    color: var(--oddizer-text-dim);
    font-size: 10px;
}

.heat-curr {
    font-weight: 600;
    font-size: 12px;
}

.heat-delta {
    font-weight: 700;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
}

.heat-delta.delta-steam {
    color: #4ade80;
}

.heat-delta.delta-fade {
    color: #f87171;
}

.heat-delta.delta-over {
    color: #60a5fa;
}

.heat-delta.delta-under {
    color: #fbbf24;
}

.heat-cell-signal {
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
}

.heat-cell-signal.dir-steam {
    color: #4ade80;
}

.heat-cell-signal.dir-fade {
    color: #f87171;
}

.heat-cell-signal.dir-over {
    color: #60a5fa;
}

.heat-cell-signal.dir-under {
    color: #fbbf24;
}

.heat-cell-expand {
    justify-content: flex-end;
    gap: 6px;
    color: var(--oddizer-text-dim);
    font-size: 10px;
}

.heat-book-count {
    white-space: nowrap;
}

.heat-expand-icon {
    transition: transform 0.2s;
    font-size: 10px;
}

.heat-expand-icon.expanded {
    transform: rotate(180deg);
}

.heat-row-detail {
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 16px 12px 20px;
    border-left: 3px solid var(--oddizer-border);
}

.heat-books-table {
    display: grid;
    gap: 0;
    font-size: 11px;
}

.heat-books-header {
    display: grid;
    grid-template-columns: 90px 65px 65px 55px 90px;
    gap: 8px;
    padding: 6px 0;
    font-size: 9px;
    font-weight: 600;
    color: var(--oddizer-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--oddizer-border);
}

.heat-sort-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}

.heat-sort-header:hover {
    color: var(--oddizer-accent);
}

.heat-sort-header.active {
    color: var(--oddizer-accent);
}

.heat-book-row {
    display: grid;
    grid-template-columns: 90px 65px 65px 55px 90px;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.05);
}

.heat-book-row:last-child {
    border-bottom: none;
}

.heat-book-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.heat-book-icon {
    width: 16px;
    height: 16px;
}

.heat-book-name {
    font-weight: 500;
    font-size: 10px;
}

.heat-book-val {
    font-family: 'Courier New', monospace;
    text-align: right;
}

.heat-book-curr {
    font-weight: 600;
}

.heat-book-time {
    font-size: 10px;
    color: var(--oddizer-text-dim);
}

.heat-book-delta {
    font-weight: 700;
}

.heat-book-delta.delta-steam {
    color: #4ade80;
}

.heat-book-delta.delta-fade {
    color: #f87171;
}

.heat-book-delta.delta-over {
    color: #60a5fa;
}

.heat-book-delta.delta-under {
    color: #fbbf24;
}

.heat-game-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 10px;
    color: var(--oddizer-accent);
    text-decoration: none;
}

.heat-game-link:hover {
    text-decoration: underline;
}

.heat-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--oddizer-text-dim);
}

.heat-empty i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
    display: block;
}

.heat-seeker-loading, .heat-seeker-error {
    text-align: center;
    padding: 20px;
    color: var(--oddizer-text-dim);
}

.heat-seeker-loading i {
    margin-right: 6px;
}

@media (max-width: 900px) {
    .heat-row-main {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px;
    }

    .heat-cell-game {
        order: 1;
    }

    .heat-game-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .heat-datetime {
        margin-top: 0;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }

    .heat-cell-type,
    .heat-cell-side,
    .heat-cell-movement,
    .heat-cell-signal,
    .heat-cell-expand {
        order: 2;
    }

    .heat-row-main::after {
        content: '';
        grid-column: 1;
        display: flex;
        order: 2;
    }

    .heat-row-main {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .heat-cell-game {
        flex: 1 1 100%;
    }

    .heat-cell-type {
        flex: 0 0 auto;
    }

    .heat-cell-side {
        flex: 1 1 auto;
        min-width: 50px;
    }

    .heat-cell-movement {
        flex: 0 0 auto;
    }

    .heat-cell-signal {
        flex: 0 0 auto;
    }

    .heat-cell-expand {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .heat-books-header,
    .heat-book-row {
        grid-template-columns: 70px 50px 50px 45px 70px;
        gap: 4px;
    }

    .heat-book-time {
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .heat-filter-bar {
        flex-wrap: wrap;
    }

    .heat-select {
        flex: 1;
        min-width: 60px;
    }

    .heat-teams {
        font-size: 11px;
    }

    .heat-logo {
        width: 14px;
        height: 14px;
    }

    .heat-abbr {
        font-size: 11px;
    }

    .heat-cell-movement {
        gap: 4px;
    }

    .heat-source {
        display: none;
    }

    .heat-open, .heat-curr {
        font-size: 10px;
    }

    .heat-delta {
        font-size: 10px;
        padding: 1px 4px;
    }

    .heat-cell-signal {
        font-size: 11px;
        padding: 3px 6px;
        font-weight: 600;
    }
}

/* ===== PROP BUILDER ===== */
.prop-builder-panel {
    margin-bottom: 16px;
    overflow: visible !important;
}

.prop-builder-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prop-builder-panel .retro-content, .prop-builder-panel > div:not(.panel-header) {
    overflow: visible !important;
}

.prop-builder-clear {
    background: none;
    border: none;
    color: var(--oddizer-text-dim);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
}

.prop-builder-clear:hover {
    color: var(--oddizer-red);
}

.prop-builder-content {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    overflow: visible;
    flex-direction: row;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.prop-builder-content:empty {
    display: none;
}

/* Hide border when only add button (no slots) */
.prop-builder-content:has(.prop-add-btn:only-child) {
    border-bottom: none;
    padding: 8px 12px;
}

.prop-slots {
    display: contents; /* Let children flow directly into parent flex */
}

.prop-slot {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.04) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid var(--oddizer-border);
    border-radius: 8px;
    padding: 14px;
    padding-top: 24px;
    width: 280px;
    min-width: 260px;
    flex: 1 1 280px;
    max-width: 400px;
    position: relative;
    overflow: visible;
}

.prop-slot-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text-dim);
    cursor: pointer;
    font-size: 10px;
    padding: 2px 6px;
    transition: all 0.15s;
    z-index: 10;
}

.prop-slot-remove:hover {
    color: #fff;
    background: var(--oddizer-red);
    border-color: var(--oddizer-red);
}

/* Player Dropdown */
.prop-player-dropdown {
    position: relative;
    margin-bottom: 10px;
    z-index: 50;
}

.prop-dropdown-toggle {
    width: 100%;
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prop-dropdown-toggle:hover {
    border-color: var(--oddizer-accent);
}

.prop-dropdown-toggle i {
    color: var(--oddizer-accent);
    font-size: 11px;
    flex-shrink: 0;
}

.prop-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-accent);
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.prop-dropdown-menu.open {
    display: block;
}

.prop-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.prop-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--oddizer-accent);
    border-radius: 2px;
}

.prop-team-group {
    border-bottom: 1px solid var(--oddizer-border);
}

.prop-team-group:last-child {
    border-bottom: none;
}

.prop-team-label {
    display: block;
    padding: 6px 10px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--oddizer-accent);
    background: rgba(0, 255, 65, 0.05);
    font-weight: 600;
}

.prop-player-option {
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.prop-player-option:hover {
    background: rgba(0, 255, 65, 0.1);
}

.prop-player-option.selected {
    background: rgba(0, 255, 65, 0.15);
    color: var(--oddizer-accent);
}

/* Field Chips */
.prop-field-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    position: relative;
}

.prop-field-chips::after {
    content: 'tap multiple to stack';
    position: absolute;
    bottom: -14px;
    left: 0;
    font-size: 8px;
    color: var(--oddizer-text-dim);
    opacity: 0.6;
    font-style: italic;
}

.prop-field-chip {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text-dim);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.prop-field-chip.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.prop-field-chip:not(.disabled):hover {
    border-color: var(--oddizer-accent);
    color: var(--oddizer-text);
}

.prop-field-chip.active {
    background: var(--oddizer-accent);
    color: #000 !important;
    border-color: var(--oddizer-accent);
}

/* Combined field indicator */
.prop-combined-label {
    font-size: 11px;
    color: var(--oddizer-accent);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    background: rgba(0, 255, 65, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px dashed rgba(0, 255, 65, 0.3);
}

/* Line Input Row */
.prop-slot-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prop-dir-toggle {
    display: flex;
    flex-shrink: 0;
}

.prop-dir-btn {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text-dim);
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s;
}

.prop-dir-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.prop-dir-btn:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.prop-dir-btn.active {
    background: var(--oddizer-accent);
    color: #000;
    border-color: var(--oddizer-accent);
}

.prop-line-value {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--oddizer-accent);
    min-width: 32px;
    text-align: center;
}

.prop-line-slider {
    flex: 1;
    min-width: 80px;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, var(--oddizer-border) 0%, rgba(0, 255, 65, 0.3) 100%);
    border-radius: 3px;
    cursor: pointer;
}

.prop-line-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--oddizer-accent);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.prop-line-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--oddizer-accent);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
}

.prop-model-row {
    display: none; /* Model now in stats row */
}

.prop-model-select {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-accent);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 9px;
    cursor: pointer;
    font-weight: 600;
    min-width: 40px;
    margin-left: auto;
}

.prop-model-select:focus {
    outline: none;
    border-color: var(--oddizer-accent);
}

.prop-model-select option {
    background: var(--oddizer-panel-bg);
    color: var(--oddizer-text);
}

/* Result Display */
.prop-slot-result {
    padding: 8px 0;
    font-size: 14px;
}

.prop-result-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.prop-slot-result .prob-pct {
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.prop-slot-result .prob-pct.high {
    color: #00ff88;
}

.prop-slot-result .prob-pct.medium {
    color: #ffaa00;
}

.prop-slot-result .prob-pct.low {
    color: #ff6666;
}

.prop-slot-result .prob-odds {
    color: var(--oddizer-text-dim);
    font-size: 11px;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
}

.prop-slot-result .prob-error {
    color: var(--oddizer-text-dim);
}

.prop-ou-record {
    font-size: 10px;
    color: var(--oddizer-text);
    font-family: 'Courier New', monospace;
    background: rgba(0, 255, 65, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Chart */
.prop-slot-chart {
    margin-top: 8px;
    position: relative;
}

.prop-mini-chart {
    width: 100%;
    height: 78px; /* 20% taller */
}

.prop-bar {
    cursor: pointer;
    transition: opacity 0.1s, fill 0.15s;
}

.prop-bar-group:hover .prop-bar {
    opacity: 0.8;
}

.prop-bar-value {
    font-family: 'Courier New', monospace;
    pointer-events: none;
    transition: fill 0.15s;
}

.prop-avg-line {
    transition: y1 0.1s, y2 0.1s;
}

.prop-selected-line {
    transition: y1 0.1s, y2 0.1s;
}

.prop-stats-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

.prop-avg-label {
    font-size: 9px;
    color: #ffcc00;
    font-family: 'Courier New', monospace;
}

.prop-sd-label {
    font-size: 9px;
    color: #ff9966;
    font-family: 'Courier New', monospace;
}

.prop-ci-label {
    font-size: 9px;
    color: var(--oddizer-text-dim);
    font-family: 'Courier New', monospace;
}

.prop-chart-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--oddizer-accent);
    color: var(--oddizer-text);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s;
    pointer-events: none;
    z-index: 20;
}

.prop-chart-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.prop-loading, .prop-no-data, .prop-error {
    font-size: 11px;
    color: var(--oddizer-text-dim);
    text-align: center;
    padding: 12px;
}

/* Add Button */
.prop-add-btn {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--oddizer-text-dim);
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    min-width: 80px;
    min-height: 48px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
    opacity: 0.5;
}

.prop-add-btn:hover {
    border-color: var(--oddizer-accent);
    color: var(--oddizer-accent);
    background: rgba(0, 255, 65, 0.03);
    opacity: 1;
}

.prop-add-btn i {
    font-size: 14px;
}

/* Parlay Result */
.prop-parlay-result {
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1), transparent);
    border-top: 1px solid var(--oddizer-border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.prop-parlay-result .parlay-odds {
    font-size: 16px;
    font-weight: 700;
    color: var(--oddizer-accent);
    font-family: 'Courier New', monospace;
}

.prop-parlay-result .parlay-prob {
    font-size: 13px;
    color: var(--oddizer-text);
}

@media (max-width: 768px) {
    .prop-builder-content {
        flex-direction: column;
    }
    
    .prop-slot {
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
    }

    .prop-add-btn {
        width: 100%;
        min-height: auto;
        flex-direction: row;
        padding: 12px 16px;
    }

    .prop-add-btn i {
        font-size: 14px;
    }
}

/* ===== UNIFIED STATS/PLAYERS PANELS ===== */
.unified-stats-panel,
.unified-players-panel {
    overflow: visible;
}

.unified-stats-panel .panel-header,
.unified-players-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unified-players-panel .panel-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.unified-players-panel .prop-builder-clear {
    background: none;
    border: none;
    color: var(--oddizer-text-dim);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
}

.unified-players-panel .prop-builder-clear:hover {
    color: var(--oddizer-red);
}

/* Consistent section spacing in unified panels */
.unified-stats-panel .stats-dual-display,
.unified-players-panel .players-display {
    border-top: none;
}

/* ===== TEAM PROP BUILDER ===== */
.team-prop-builder-content {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.team-prop-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    overflow: hidden;
}

.team-prop-slot {
    border: none;
    padding: 12px;
    overflow: hidden;
    min-width: 0;
    background: var(--oddizer-panel-bg);
}

.team-prop-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.team-prop-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.team-prop-abbr {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}

.team-prop-role {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-prop-field-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.team-prop-field-chips::after {
    content: 'tap multiple to combine';
    display: block;
    width: 100%;
    font-size: 7px;
    color: var(--oddizer-text-dim);
    opacity: 0.4;
    margin-top: 1px;
}

.team-prop-field-chip {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--oddizer-text-dim);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.team-prop-field-chip:hover {
    border-color: var(--oddizer-accent);
    color: var(--oddizer-text);
}

.team-prop-field-chip.active {
    background: var(--oddizer-accent);
    color: #000 !important;
    border-color: var(--oddizer-accent);
}

.team-prop-combined-label {
    font-size: 11px;
    color: var(--oddizer-accent);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    background: rgba(0, 255, 65, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px dashed rgba(0, 255, 65, 0.3);
}

.team-prop-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.team-prop-dir-toggle {
    display: flex;
}

.team-prop-dir-btn {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text-dim);
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}

.team-prop-dir-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.team-prop-dir-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.team-prop-dir-btn.active {
    background: var(--oddizer-accent);
    color: #000;
    border-color: var(--oddizer-accent);
}

.team-prop-line-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 36px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.team-prop-line-slider {
    flex: 1;
    min-width: 80px;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, var(--oddizer-border) 0%, rgba(0, 255, 65, 0.3) 100%);
    border-radius: 3px;
    cursor: pointer;
}

.team-prop-line-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--oddizer-accent);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.team-prop-line-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--oddizer-accent);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
}

.team-prop-result {
    margin-bottom: 6px;
    padding: 6px 0;
}

.team-prop-result .prop-result-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.team-prop-result .prob-pct {
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.team-prop-result .prob-pct.high {
    color: #00ff88;
}

.team-prop-result .prob-pct.medium {
    color: #ffaa00;
}

.team-prop-result .prob-pct.low {
    color: #ff6666;
}

.team-prop-result .prob-odds {
    color: var(--oddizer-text-dim);
    font-size: 11px;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
}

.team-prop-result .prop-ou-record {
    font-size: 10px;
    color: var(--oddizer-text);
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
}

.team-prop-chart {
    margin-top: 8px;
    position: relative;
}

.team-prop-chart .prop-mini-chart {
    height: 78px;
}

.team-prop-model-select {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-accent);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 9px;
    cursor: pointer;
    font-weight: 600;
    min-width: 40px;
    margin-left: auto;
}

.team-prop-model-select:focus {
    outline: none;
    border-color: var(--oddizer-accent);
}

.team-prop-model-select option {
    background: var(--oddizer-panel-bg);
    color: var(--oddizer-text);
}

@media (max-width: 768px) {
    .team-prop-slots {
        grid-template-columns: 1fr;
    }
    
    .team-prop-field-chip {
        font-size: 9px;
        padding: 4px 8px;
    }
}

/* ===== INLINE TEAM PROPS ODDS ===== */
.team-prop-odds-inline {
    margin-top: 10px;
    border-top: 1px solid var(--oddizer-border);
    padding-top: 8px;
    min-width: 0;
    overflow: hidden;
}

.prop-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    min-width: 0;
}

.prop-scroll-btn {
    flex: 0 0 auto;
    width: 22px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--oddizer-border);
    border-radius: 4px;
    color: var(--oddizer-muted);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.prop-scroll-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    color: var(--oddizer-accent);
}

.prop-odds-track {
    flex: 1;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-width: 0;
}

.prop-odds-track::-webkit-scrollbar {
    display: none;
}

.prop-odds-card {
    flex: 0 0 auto;
    min-width: 85px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--oddizer-border);
    border-radius: 6px;
    padding: 6px 8px;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    font-size: 10px;
}

.prop-odds-card:hover {
    border-color: var(--oddizer-muted);
}

.prop-odds-card.active {
    border-color: var(--oddizer-accent);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.25);
}

.prop-odds-card.positive-ev {
    background: rgba(0, 255, 65, 0.1);
}

.prop-odds-card.active.positive-ev {
    background: rgba(0, 255, 65, 0.15);
}

/* Line group - contains best card + expandable alts */
.prop-line-group {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    position: relative;
}

.prop-line-group > .prop-odds-card {
    position: relative;
}

.poc-expand-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--oddizer-accent);
    color: #000;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 8px;
    line-height: 1;
}

.prop-alts-container {
    display: none;
    flex-direction: column;
    gap: 3px;
}

.prop-line-group.expanded .prop-alts-container {
    display: flex;
}

.prop-odds-card.alt-card {
    opacity: 0.8;
    border-left: 2px solid var(--oddizer-accent);
    margin-left: 4px;
}

.prop-odds-card.alt-card:hover {
    opacity: 1;
}

.poc-book {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    color: var(--oddizer-muted);
    font-size: 9px;
}

.poc-book img {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.poc-book span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}

.poc-wager {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.poc-dir {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
}

.poc-dir.over {
    background: rgba(0, 255, 65, 0.15);
    color: var(--oddizer-accent);
}

.poc-dir.under {
    background: rgba(255, 100, 100, 0.15);
    color: #ff6464;
}

.poc-line {
    font-size: 12px;
    font-weight: 600;
    color: var(--oddizer-text);
}

.poc-odds {
    font-size: 13px;
    font-weight: 700;
    color: var(--oddizer-accent);
}

.poc-model {
    font-size: 8px;
    color: var(--oddizer-muted);
    margin-top: 3px;
    border-top: 1px solid var(--oddizer-border);
    padding-top: 3px;
}

.poc-model .edge-pos {
    color: var(--oddizer-accent);
    font-weight: 700;
}

.poc-model .edge-neg {
    color: #ff6464;
    font-weight: 700;
}

.prop-odds-empty {
    color: var(--oddizer-muted);
    font-size: 10px;
    text-align: center;
    padding: 10px;
}

@media (max-width: 768px) {
    .prop-scroll-btn { width: 18px; font-size: 14px; }
    .prop-odds-card { min-width: 75px; padding: 5px 6px; }
    .poc-odds { font-size: 11px; }
}

/* Temperature Filter Styles */
.filter-temperature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.temp-mode-toggle {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--oddizer-border);
}

.temp-mode-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    cursor: pointer;
    background: var(--oddizer-bg-secondary);
    color: var(--oddizer-text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
}

.temp-mode-option input {
    display: none;
}

.temp-mode-option:first-child {
    border-right: 1px solid var(--oddizer-border);
}

.temp-mode-option.active {
    background: var(--oddizer-accent);
    color: #000;
}

.temp-mode-option:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
}

.temp-mode-option i {
    font-size: 14px;
}

.temp-mode-option.active .fa-fire {
    color: #000;
}

.temp-mode-option.active .fa-snowflake {
    color: #000;
}

.temp-config {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.temp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.temp-row span {
    font-size: 12px;
    color: var(--oddizer-text-muted);
}

.temp-row select,
.temp-row input[type="number"] {
    width: 80px;
    padding: 6px 8px;
    background: var(--oddizer-bg-secondary);
    border: 1px solid var(--oddizer-border);
    border-radius: 4px;
    color: var(--oddizer-text);
    font-size: 12px;
}

.temp-preview {
    text-align: center;
    padding: 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--oddizer-accent);
    border-radius: 4px;
    color: var(--oddizer-accent);
    font-size: 12px;
    font-weight: 500;
}

/* ===== PREDICTIONS RUN OVERLAY ===== */
.predictions-run-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 20, 10, 0.5) 100%);
    border: 1px dashed rgba(0, 255, 65, 0.3);
    border-radius: 8px;
}

.run-overlay-content {
    text-align: center;
    padding: 40px 30px;
    max-width: 400px;
}

.run-overlay-icon {
    font-size: 48px;
    color: var(--oddizer-accent);
    margin-bottom: 16px;
    opacity: 0.8;
}

.run-overlay-content h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--oddizer-text);
    margin-bottom: 8px;
}

.run-overlay-content p {
    font-size: 13px;
    color: var(--oddizer-text-dim);
    margin-bottom: 20px;
    line-height: 1.5;
}

.run-overlay-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.run-overlay-controls .control-label {
    font-size: 12px;
    color: var(--oddizer-text-dim);
    display: none;
}

.run-overlay-controls .predictions-date-input {
    background: var(--oddizer-panel-bg);
    border: 1px solid var(--oddizer-border);
    border-radius: 4px;
    color: var(--oddizer-text);
    padding: 6px 10px;
    font-size: 12px;
}

.run-overlay-controls .predictions-date-input:focus {
    border-color: var(--oddizer-accent);
    outline: none;
}

.run-predictions-btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
}

.run-predictions-btn i {
    font-size: 12px;
}

.predictions-reset-btn {
    padding: 6px 12px;
    font-size: 11px;
    gap: 5px;
}

.predictions-reset-btn i {
    font-size: 10px;
}

@media (max-width: 576px) {
    .predictions-run-overlay {
        min-height: auto;
    }

    .run-overlay-content {
        padding: 24px 16px;
    }

    .run-overlay-icon {
        font-size: 36px;
    }

    .run-overlay-content h5 {
        font-size: 16px;
    }

    .run-overlay-controls {
        flex-direction: column;
        gap: 6px;
    }
}

/* ===== OVERLAY STRATEGY LIST ===== */
.overlay-strategies-list {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 20px;
    text-align: left;
}

.overlay-strategies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--oddizer-border);
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--oddizer-text-dim);
}

.overlay-toggle-all-btn {
    background: transparent;
    border: 1px solid var(--oddizer-border);
    color: var(--oddizer-text-dim);
    padding: 4px 10px;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.overlay-toggle-all-btn:hover {
    border-color: var(--oddizer-accent);
    color: var(--oddizer-accent);
}

.overlay-strategies-scroll {
    padding-right: 4px;
}

.overlay-strategy-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 16px;
}

.overlay-strategy-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.overlay-strategy-item.disabled {
    opacity: 0.5;
}

.overlay-strategy-item.disabled .overlay-strategy-name {
    text-decoration: line-through;
}

.overlay-strategy-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--oddizer-accent);
    cursor: pointer;
}

.overlay-strategy-name {
    flex: 1;
    color: var(--oddizer-text);
    /*white-space: nowrap;*/
    /*overflow: hidden;*/
    text-overflow: ellipsis;
}

.overlay-strategy-tag {
    font-size: 9px;
    padding: 2px 5px;
    background: rgba(0, 255, 65, 0.15);
    color: var(--oddizer-accent);
    border-radius: 3px;
}

.overlay-no-strategies {
    text-align: center;
    color: var(--oddizer-text-dim);
    font-size: 12px;
    padding: 16px;
}

@media (max-width: 576px) {
    .overlay-strategies-list {
        max-width: 100%;
    }
    
    .overlay-strategy-item {
        font-size: 11px;
        padding: 5px 6px;
    }
}

/* Overlay CTA */
.overlay-cta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--oddizer-border);
    text-align: center;
}

.overlay-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--oddizer-accent);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--oddizer-accent);
    border-radius: 4px;
    transition: all 0.2s;
}

.overlay-cta-link:hover {
    background: rgba(0, 255, 65, 0.1);
    color: var(--oddizer-accent);
    text-decoration: none;
}

.overlay-cta-link i {
    font-size: 10px;
}

/* Strategy row with delete */
.overlay-strategy-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.overlay-strategy-row .overlay-strategy-item {
    flex: 1;
}

.overlay-strategy-delete {
    background: transparent;
    border: none;
    color: var(--oddizer-text-dim);
    padding: 4px 6px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.15s;
    font-size: 10px;
    border-radius: 3px;
}

.overlay-strategy-row:hover .overlay-strategy-delete {
    opacity: 0.6;
}

.overlay-strategy-delete:hover {
    opacity: 1 !important;
    color: var(--oddizer-red, #f87171);
    background: rgba(248, 113, 113, 0.1);
}

/* Chip value display */
.chip-value {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.85em;
    margin-left: 2px;
}

/* ===== STARTING PITCHERS MATCHUP ===== */
.sp-matchup-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.sp-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px 0;
    color: var(--oddizer-text-dim);
    font-size: 13px;
    font-weight: 600;
}

.sp-card {
    padding: 12px;
}

.sp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sp-header .sp-team-logo {
    width: 28px;
    height: 28px;
}

.sp-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.sp-hand-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--oddizer-accent);
}

.sp-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 6px;
}

.sp-stat {
    text-align: center;
    padding: 4px 0;
}

.sp-stat-val {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.sp-stat-lbl {
    display: block;
    font-size: 9px;
    color: var(--oddizer-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-recent-header {
    font-size: 10px;
    color: var(--oddizer-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 0 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--oddizer-border);
}

.sp-recent-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.sp-recent-date {
    color: var(--oddizer-text-dim);
    min-width: 28px;
    font-size: 10px;
}

.sp-recent-logo {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.sp-recent-opp {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    min-width: 26px;
}

.sp-recent-line {
    flex: 1;
    color: var(--oddizer-text-dim);
    text-align: right;
}

.sp-recent-era {
    font-weight: 600;
    min-width: 30px;
    text-align: right;
    color: rgba(255, 255, 255, 0.85);
    font-size: 10px;
}

.sp-decision {
    font-weight: 600;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 2px;
}

.sp-decision-w {
    color: var(--oddizer-accent);
    background: rgba(0, 230, 58, 0.1);
}

.sp-decision-l {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

@media (max-width: 576px) {
    .sp-matchup-grid {
        grid-template-columns: 1fr;
    }
    .sp-vs-divider {
        padding: 4px 0;
        border-top: 1px solid var(--oddizer-border);
        border-bottom: 1px solid var(--oddizer-border);
    }
    .sp-stat-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Condition filter chips & dropdown */
.condition-chips {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.condition-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 12px;
    border: 1px solid #e8a735;
    background: rgba(232, 167, 53, 0.15);
    color: #e8a735;
    cursor: default;
    white-space: nowrap;
}

.condition-chip.team-home {
    border-color: rgba(100, 180, 255, 0.5);
    background: rgba(100, 180, 255, 0.12);
    color: #8cc4ff;
}

.condition-chip.team-away {
    border-color: rgba(255, 140, 100, 0.5);
    background: rgba(255, 140, 100, 0.12);
    color: #ffaa80;
}

.condition-chip-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.condition-chip .condition-chip-remove {
    cursor: pointer;
    font-size: 9px;
    opacity: 0.7;
}

.condition-chip .condition-chip-remove:hover {
    opacity: 1;
    color: #ff6b6b;
}

.exclude-dropdowns {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.exclude-dropdown-wrap {
    position: relative;
    display: inline-flex;
}

.exclude-toggle {
    gap: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: none;
    letter-spacing: 0;
}

.exclude-btn-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
}

.exclude-toggle .exclude-team-abbr {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.exclude-toggle i {
    font-size: 8px;
    opacity: 0.5;
    margin-left: 2px;
}

.exclude-player-picker {
    display: none;
    position: absolute;
    flex-direction: column;
    min-width: 200px;
    max-height: 300px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.exclude-player-picker.open {
    display: flex;
}

.exclude-picker-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.exclude-picker-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.exclude-player-picker .condition-player-search {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    font-size: 12px;
    outline: none;
}

.exclude-player-picker .condition-player-search::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.exclude-player-picker .condition-player-list {
    overflow-y: auto;
    max-height: 250px;
}

.condition-player-item {
    padding: 6px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.condition-player-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.condition-player-item.disabled {
    opacity: 0.35;
    pointer-events: none;
}
