/* New Step 2 Styles - Game Selection */

/* Twemoji font for Windows flag support */
@font-face {
    font-family: 'TwemojiCountryFlags';
    src: url('/fonts/TwemojiCountryFlags.woff2') format('woff2');
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    font-display: swap; /* Show fallback immediately, swap when loaded */
}

/* Global emoji font fix */
.sport-icon,
.prematch-sport-icon,
.league-country,
.tab-icon,
.score-label {
    font-family: 'TwemojiCountryFlags', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
}

.games-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

/* Custom scrollbar for games container */
.games-container::-webkit-scrollbar {
    width: 8px;
}

.games-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.games-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.3;
}

.games-container::-webkit-scrollbar-thumb:hover {
    opacity: 0.5;
}

/* Header with refresh button - Enhanced glassmorphism */
.games-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Gradient overlay for header */
.games-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.03) 0%,
        rgba(157, 78, 221, 0.03) 100%);
    pointer-events: none;
}

.cache-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1;
    position: relative;
}

.cache-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.last-update {
    margin-left: 8px;
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 400;
}

.header-buttons {
    display: flex;
    gap: 12px;
    z-index: 1;
    position: relative;
}

.btn-refresh, .btn-toggle-all {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-refresh i, .btn-toggle-all i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-refresh:hover, .btn-toggle-all:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.btn-refresh:hover i {
    transform: rotate(180deg);
}

.btn-toggle-all:hover i {
    transform: scale(1.1);
}

/* Button ripple effect */
.btn-refresh:active, .btn-toggle-all:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

/* Loading and error states - Enhanced with glassmorphism */
.loading-matches, .error-state, .no-games {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.loading-matches .spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 215, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 25px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.loading-matches p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.error-state i, .no-games i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(255, 0, 110, 0.3));
}

.error-detail {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin: 12px 0 25px;
    line-height: 1.5;
}

/* Game sections - Enhanced styling */
.games-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 5px;
    letter-spacing: 0.5px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    margin-right: 8px;
}

/* Sport groups - Enhanced with better glassmorphism */
.sport-group {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.sport-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
}

.sport-header:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.sport-header::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--text-dim);
    transition: transform 0.3s ease;
}

.sport-group.collapsed .sport-header::after {
    transform: translateY(-50%) rotate(-90deg);
}

.sport-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
}

.sport-name {
    font-weight: 600;
    flex: 1;
    font-size: 1rem;
    color: var(--text-light);
}

.sport-count {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 35px;
}

/* Game cards grid - Modern layout */
.sport-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    padding: 16px;
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.sport-group.collapsed .sport-games {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
}

/* Game card - Premium glassmorphism design */
.game-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Gradient overlay for depth */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.02) 0%,
        rgba(157, 78, 221, 0.02) 50%,
        rgba(255, 0, 110, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Shine effect on hover */
.game-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translate(-70%, -70%);
    transition: transform 0.6s;
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover::after {
    transform: rotate(45deg) translate(0%, 0%);
}

/* Selected state */
.game-card.selected {
    border-color: var(--primary-color);
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 215, 0, 0.2);
}

/* Selection indicator */
.game-card.selected::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmarkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.game-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Game card content - Modern layout */
.game-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.team {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.2;
}

.team.away {
    text-align: right;
}

.team.home {
    text-align: left;
}

.vs {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    flex-shrink: 0;
}

/* Time and score styling */
.game-time, .game-score {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-dim);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.game-time i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.game-score.live {
    color: var(--text-light);
    font-weight: 600;
}

.score-label {
    display: inline-flex;
    align-items: center;
    background: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 10px rgba(255, 0, 110, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Odds section - Premium design */
.game-odds {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.odds-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.odds-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.team-short {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.odds-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.odds-divider {
    color: var(--text-dim);
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Selected game info in Step 2.5 */
.selected-game-card {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.selected-game-card h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-summary .teams {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.game-summary .sport {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-summary .status {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.game-summary .status.live {
    color: var(--accent-color);
    font-weight: 600;
}

/* Mobile responsiveness - Enhanced */
@media (max-width: 768px) {
    .games-container {
        max-height: 500px;
        padding: 12px;
    }
    
    .games-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 16px;
    }
    
    .header-buttons {
        justify-content: flex-end;
        width: 100%;
    }
    
    .btn-refresh, .btn-toggle-all {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .games-section {
        margin-bottom: 24px;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .sport-group {
        margin-bottom: 16px;
    }
    
    .sport-header {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .sport-icon {
        font-size: 1.5rem;
    }
    
    .sport-name {
        font-size: 0.95rem;
    }
    
    .sport-games {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .game-card {
        padding: 12px 14px;
        min-height: 80px;
    }
    
    .game-teams {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .team {
        font-size: 0.95rem;
    }
    
    .vs {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    
    .game-time, .game-score {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .odds-item {
        padding: 6px;
    }
    
    .team-short {
        font-size: 0.7rem;
    }
    
    .odds-value {
        font-size: 1rem;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .sport-games {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .game-card:hover {
        transform: none;
    }
    
    .sport-header:hover {
        transform: none;
    }
}

/* Tab Navigation Styles */
.games-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.games-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.games-tab:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.games-tab.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.games-tab.active .tab-count {
    background: rgba(255, 215, 0, 0.2);
}

/* Section Content */
.games-section-content {
    display: none;
}

.games-section-content.active {
    display: block;
}

/* PRE-MATCH Filters */
.prematch-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.filter-select {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* PRE-MATCH Tree Structure */
.prematch-tree {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.prematch-sport {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.prematch-sport.collapsed .prematch-leagues {
    display: none;
}

.prematch-sport-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prematch-sport-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.prematch-sport-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prematch-sport-icon {
    font-size: 1.8rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
}

.prematch-sport-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.prematch-sport-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.expand-icon {
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: transform 0.3s ease;
}

.prematch-sport.collapsed .expand-icon {
    transform: rotate(-90deg);
}

/* Leagues */
.prematch-leagues {
    padding: 0 16px 16px;
}

.prematch-league {
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.prematch-league.collapsed .prematch-games {
    display: none;
}

.prematch-league-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prematch-league-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.prematch-league-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.league-flag {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 8px;
}

.league-country {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'TwemojiCountryFlags', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
}

.league-country-code {
    display: inline-block;
    padding: 3px 7px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    font-family: 'Poppins', 'Arial', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.league-country-code:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

.prematch-league-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
}

.prematch-league-count {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Games in PRE-MATCH */
.prematch-games {
    padding: 0 16px 12px;
    display: grid;
    gap: 10px;
}

.prematch-game {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prematch-game:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prematch-game.selected {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
}

.prematch-game-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.prematch-team {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
}

.prematch-vs {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 0 8px;
}

.prematch-game-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.prematch-game-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prematch-game-odds {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prematch-game-odds .odd-value {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.prematch-game-odds.no-odds {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .prematch-filters {
        flex-direction: column;
    }
    
    .search-input {
        min-width: unset;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .prematch-sport-header {
        padding: 14px;
    }
    
    .prematch-sport-icon {
        font-size: 1.5rem;
    }
    
    .prematch-sport-name {
        font-size: 1rem;
    }
}

/* League sections for football */
.league-section {
    margin-bottom: 20px;
}

.league-section-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.league-section-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.league-section-content {
    max-height: none;
    overflow: visible;
    transition: all 0.3s ease-out;
}

.league-section.collapsed .league-section-content {
    display: none;
}

.league-section .expand-icon {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.league-section.collapsed .expand-icon {
    transform: rotate(-90deg);
}

.major-leagues .league-section-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.other-leagues .league-section-header {
    background: rgba(255, 255, 255, 0.03);
    color: #a0a0a0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* League group styles for LIVE football */
.league-group {
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.league-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.league-header > span {
    display: inline-flex;
    align-items: center;
}

.league-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.league-games {
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    max-height: none;
    overflow: visible;
}

.league-group.collapsed .league-games {
    display: none;
}

.league-group .expand-icon {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.league-group.collapsed .expand-icon {
    transform: rotate(-90deg);
}

.major-leagues .prematch-league {
    background: rgba(255, 215, 0, 0.02);
}

.major-leagues .prematch-league-header:hover {
    background: rgba(255, 215, 0, 0.08);
}