:root {
    /* Professional Sports Betting Color Scheme */
    --primary-blue: #1e3d59;
    --secondary-blue: #2856a3;
    --accent-orange: #ff6b35;
    --success-green: #28a745;
    --warning-amber: #ffc107;
    --danger-red: #dc3545;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-heavy: rgba(0, 0, 0, 0.16);
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for better UX */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: visible; /* Critical: allows sticky positioning */
    overflow-x: hidden; /* Prevent horizontal scroll if needed */
}

header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px var(--shadow-medium);
    border-bottom: 3px solid var(--accent-orange);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
    margin-top: 90px; /* Increased to account for taller global nav (2 lines) */
    padding-top: 1.5rem; /* Normal padding */
}

/* Global Sport Navigation */
.global-sport-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    z-index: 200;
    border-bottom: 2px solid var(--accent-orange);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0; /* Remove white space below nav */
    padding-bottom: 0; /* Remove white space below nav */
}

.global-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.75rem 2rem 0.5rem 2rem;
}

.brand-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.main-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.main-brand:hover {
    opacity: 0.8;
}

.main-brand i {
    font-size: 1.1rem;
    color: var(--accent-orange);
}

/* Sport Navigation Links */
.sport-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0;
}

.sport-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sport-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.sport-link.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--white);
    border-color: var(--accent-orange);
}

.sport-link i {
    font-size: 0.9rem;
}

.sport-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sport-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.7;
    position: relative;
}

.sport-option:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.sport-option.active {
    background: var(--accent-orange);
    color: var(--white);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.sport-option i {
    font-size: 1.1rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--success-green);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: blink 1s infinite;
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }

}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-refresh {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-refresh:hover {
    background: rgba(255, 255, 255, 0.2);
}

.last-update-global {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Remove body padding - apply offsets individually to elements that need them */
/* body padding removed to allow sticky positioning to work properly */

/* Responsive adjustments for global nav */
@media (max-width: 768px) {
    .global-nav-content {
        padding: 0.75rem 1rem 0.5rem 1rem;
    }

    .brand-section {
        gap: 0.5rem;
    }

    .main-brand {
        font-size: 0.9rem;
    }

    .main-brand i {
        font-size: 1rem;
    }

    .sport-links {
        gap: 0.15rem;
        flex-wrap: nowrap;
    }

    .sport-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .sport-link i {
        font-size: 0.7rem;
    }

    .sport-selector {
        width: 100%;
        justify-content: center;
    }

    .nav-actions {
        justify-content: center;
        width: 100%;
    }

    /* Mobile header positioning */
    header {
        margin-top: 130px !important; /* Push header down below taller mobile global nav */
        padding-top: 1rem !important; /* Normal padding */
    }

    /* Update mobile-game-index top position for mobile */
    .mobile-game-index {
        top: 90px !important; /* Mobile nav height */
    }
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Legacy sport nav (now hidden in favor of global nav) */
.sport-nav {
    display: none; /* Hide old navigation */
}

.sport-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.sport-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.sport-link.active {
    background: var(--accent-orange);
    opacity: 1;
    font-weight: 600;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--white), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-orange), var(--warning-amber));
    border-radius: 2px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.nav-brand i {
    font-size: 1.5rem;
    color: var(--accent-orange);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success-green);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.25rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-switch input[type="radio"] {
    display: none;
}

.toggle-switch label {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
}

.toggle-switch input[type="radio"]:checked + label {
    background: linear-gradient(45deg, var(--accent-orange), #ff8c42);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    border-color: var(--accent-orange);
    transform: translateY(-1px);
}

.toggle-switch label:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn i {
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-orange), #ff8c42);
    color: var(--white);
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff8c42, var(--accent-orange));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.last-update {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.last-update i {
    color: var(--accent-orange);
}

main {
    max-width: 1400px;
    margin: 0 auto 1.5rem auto; /* Remove top margin, use padding instead */
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    overflow: visible !important; /* Critical: allows sticky positioning */
    position: relative; /* Creates proper stacking context */
    min-height: 100vh; /* Ensures scrollable area */
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    text-align: center;
    padding: 3rem;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-content i {
    font-size: 3rem;
    color: var(--accent-orange);
    animation: spin 2s linear infinite;
}

.loading-content h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin: 0;
    font-weight: 700;
}

.loading-content p {
    font-size: 1rem;
    color: var(--medium-gray);
    margin: 0;
    opacity: 0.8;
}

.fa-spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.skeleton-line {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.long {
    width: 100%;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* Top 5 Concentrations Section */
.top-concentrations {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--shadow-light);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--accent-orange);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.top-concentrations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--accent-orange);
    transition: var(--transition);
    box-shadow: 0 4px 16px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.top-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 107, 53, 0.02) 100%);
    pointer-events: none;
}

.top-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.top-item.rank-1 {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, var(--white) 0%, #fffbf0 100%);
}

.top-item.rank-1::after {
    content: '🥇';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.2rem;
}

.top-item.rank-2 {
    border-left-color: #c0c0c0;
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
}

.top-item.rank-2::after {
    content: '🥈';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.2rem;
}

.top-item.rank-3 {
    border-left-color: #cd7f32;
    background: linear-gradient(135deg, var(--white) 0%, #faf5f0 100%);
}

.top-item.rank-3::after {
    content: '🥉';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.2rem;
}

.top-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.top-matchup {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-matchup::before {
    content: '🎯';
    font-size: 0.9rem;
}

.top-market {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-percentage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.percentage-value {
    font-size: 2rem;
    font-weight: 900;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(45deg, var(--accent-orange), #ff8c42);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.percentage-bar {
    width: 80px;
    height: 6px;
    background-color: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), var(--warning-amber));
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* All Games Section */
.all-games {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--shadow-light);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.all-games h2 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    margin: 0;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.all-games h2::before {
    content: '🏆';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.all-games-list {
    display: flex;
    flex-direction: column;
}

.game-card {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    background: var(--white);
}

.game-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-orange), var(--warning-amber));
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 107, 53, 0.02) 100%);
    transform: translateX(4px);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.game-card:hover::before {
    opacity: 1;
}

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

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #30f900;
}

.game-matchup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team {
    font-weight: 600;
    font-size: 1.1rem;
}

.away-team {
    color: #495057;
}

.home-team {
    color: #212529;
    font-weight: 700;
}

.game-max-concentration {
    text-align: center;
}

.max-concentration-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.max-concentration-value {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-orange), var(--warning-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.max-concentration-value::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, var(--accent-orange), var(--warning-amber));
    border-radius: 1px;
}

.game-markets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.market-card {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 16px var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--warning-amber));
}

.market-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.market-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.market-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--warning-amber));
    border-radius: 1px;
}

.market-title.moneyline::before {
    content: '💵 ';
}

.market-title.runline::before {
    content: '🏃 ';
}

.market-title.totals::before {
    content: '🎯 ';
}

.market-data {
    display: grid;
    gap: 1rem;
}

.team-headers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #30f900;
    margin-bottom: 0.5rem;
}

.team-header-spacer {
    /* Empty space to align with data labels */
}

.team-header {
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #19203d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.data-values {
    display: flex;
    gap: 0.5rem;
}

.percentage {
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 50px;
}

.percentage.high {
    background: linear-gradient(45deg, var(--success-green), #34d058);
    color: var(--white);
    border: 2px solid var(--success-green);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
    position: relative;
}

.percentage.high::before {
    content: '🔥';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.8rem;
}

.percentage.medium {
    background: linear-gradient(45deg, var(--secondary-blue), #4dabf7);
    color: var(--white);
    border: 2px solid var(--secondary-blue);
    box-shadow: 0 4px 16px rgba(40, 86, 163, 0.3);
}

.percentage.low {
    background: var(--light-gray);
    color: var(--medium-gray);
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.odds-values {
    display: flex;
    gap: 0.5rem;
}

.odds {
    font-family: 'Helvetica', Arial, sans-serif;
    font-weight: 700;
    color: #2064fa;
    font-size: 0.85rem;
    background-color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    text-align: center;
    min-width: 60px;
}

.spread-info {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

.total-line {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

.no-games {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-games p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--white);
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    margin-top: 3rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}

footer p {
    margin: 0;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer Disclaimer Styles */
footer .disclaimer {
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

footer .disclaimer-warning {
    color: #fbbf24;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 600;
}

footer .disclaimer-warning a {
    color: #60a5fa;
    text-decoration: underline;
}

footer .disclaimer-warning a:hover {
    color: #93c5fd;
}

footer .disclaimer-text {
    color: #cbd5e1;
    font-size: 0.9em;
    line-height: 1.6;
    opacity: 0.9;
}

footer .site-credit {
    color: var(--white);
    margin-top: 20px;
    opacity: 0.9;
}

footer .site-credit::before {
    content: none;
}

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    vertical-align: middle;
}

.footer-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 0.3rem;
    opacity: 0.9;
}

.footer-legal-links {
    margin-top: 10px;
    font-size: 0.8em;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-legal-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .nav-brand {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-brand i {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .controls {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .view-toggle {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .toggle-switch {
        justify-content: center;
    }
    
    .toggle-switch label {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    main {
        gap: 2rem;
        padding: 0 0.5rem;
        margin: 1rem auto;
    }
    
    .top-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .top-percentage {
        align-items: center;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-markets {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .market-card {
        padding: 1rem;
    }
    
    .data-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .data-values,
    .odds-values {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .team-headers {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.25rem;
    }
    
    .team-header {
        font-size: 0.7rem;
        padding: 0.25rem;
    }
    
    .percentage {
        min-width: 60px;
        font-size: 0.8rem;
    }
    
    .odds {
        min-width: 70px;
        font-size: 0.75rem;
    }
}

/* Combined View Styles */
.top-opportunities {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--shadow-light);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #00d4ff;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    margin-top: 0 !important; /* Ensure no white space */
    padding-top: calc(60px + 2rem); /* Accounts for fixed nav height + desired padding */
}

.top-opportunities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.opportunities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.opportunity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--white) 0%, rgba(0, 212, 255, 0.02) 100%);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.opportunity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

.opportunity-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.opportunity-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.opportunity-type.sharp-money {
    color: #00d4ff;
}

.opportunity-type.heavy-action {
    color: var(--accent-orange);
}

.opportunity-type.extreme {
    color: var(--danger-red);
}

.opportunity-type.public-heavy {
    color: var(--accent-orange);
}

.opportunity-score {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.opportunity-details {
    flex-basis: 100%;
    margin-bottom: 1rem;
}

.opportunity-matchup {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.opportunity-market {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.opportunity-explanation {
    flex-basis: 100%;
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #00d4ff;
    margin-bottom: 1rem;
}

.explanation-text {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.bet-money-comparison {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.odds-display {
    flex-basis: 100%;
    text-align: center;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Combined Games Section */
.combined-games {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--shadow-light);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-top: 0; /* Collapse margins on sections */
}

/* Remove top margin from first child headings */
.top-opportunities h2:first-child,
.combined-games h2:first-child,
section h1:first-child,
section h2:first-child,
section h3:first-child,
section p:first-child {
    margin-top: 0 !important;
}

.combined-games h2 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    margin: 0;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.combined-games-list {
    display: flex;
    flex-direction: column;
}

.combined-game-card {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    background: var(--white);
}

.combined-game-card:hover {
    background: linear-gradient(135deg, var(--white) 0%, rgba(0, 212, 255, 0.02) 100%);
    transform: translateX(4px);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.combined-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #00d4ff;
}

.combined-matchup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.combined-teams {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.best-opportunity {
    font-size: 0.9rem;
    color: #00d4ff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opportunity-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opportunity-badge.high {
    background: linear-gradient(45deg, var(--success-green), #34d058);
    color: var(--white);
}

.opportunity-badge.medium {
    background: linear-gradient(45deg, var(--warning-amber), #ffeb3b);
    color: var(--dark-gray);
}

.opportunity-badge.low {
    background: var(--light-gray);
    color: var(--medium-gray);
}

/* Market Analysis Grid */
.markets-analysis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.market-analysis {
    background: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 16px var(--shadow-light);
    transition: var(--transition);
}

.market-analysis:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.market-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.market-icon-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.market-opportunity-level {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.market-opportunity-level.high { background: var(--success-green); color: white; }
.market-opportunity-level.medium { background: var(--warning-amber); color: var(--dark-gray); }
.market-opportunity-level.low { background: var(--light-gray); color: var(--medium-gray); }

/* Split Bar Visualization */
.split-bar-container {
    margin: 1rem 0;
    position: relative;
}

.split-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.split-bar {
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: var(--light-gray);
    border: 1px solid #dee2e6;
    width: 100%;
}

.bet-bar {
    height: 50%;
    background: linear-gradient(90deg, var(--secondary-blue), #4dabf7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.money-bar {
    height: 50%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.gap-indicator {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 700;
}

.gap-indicator.sharp-money { color: #00d4ff; }
.gap-indicator.public-heavy { color: var(--accent-orange); }
.gap-indicator.balanced { color: var(--medium-gray); }

.external-text {
    position: absolute;
    top: 0;
    height: 100%;
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    white-space: nowrap;
    padding: 0.2rem 0.4rem;
}

/* Separate positioning for bet and money percentage labels */
.external-bet-text {
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    height: 20px;
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: 700;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.2rem 0.4rem;
}

.external-money-text {
    position: absolute;
    top: 75%;
    transform: translateY(-50%);
    height: 20px;
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: 700;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.2rem 0.4rem;
}

.market-summary {
    background: rgba(0, 212, 255, 0.05);
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.summary-text {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-weight: 600;
    text-align: center;
}

.odds-section {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.5rem;
}

.odds-item {
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex: 1;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .game-markets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .markets-analysis {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .opportunities-list {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .top-item {
        padding: 1.25rem;
    }
}

/* Mobile Responsiveness for Combined View */
@media (max-width: 768px) {
    .opportunities-list {
        display: block;
        gap: 1rem;
    }
    
    .opportunity-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .combined-game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .markets-analysis {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bet-money-comparison {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .split-bar {
        height: 50px;
    }
}

/* NFL-specific styling */
.concentration-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.concentration-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.market-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.side-data {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.side-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.side-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
}

.concentration-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.concentration-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.market-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.game-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.team-names {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.game-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.opportunity-score {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.combined-game-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.combined-game-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.combined-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.markets-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.market-analysis {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.market-title {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.bet-money-comparison {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.comparison-item {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.comparison-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.comparison-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.split-visualization {
    margin: 1rem 0;
}

.split-bar {
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 0.5rem 0;
}

.split-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}
    
    .gap-indicator {
        position: static;
        text-align: center;
        margin-top: 0.5rem;
    }

/* ========================================
   MOBILE UI IMPROVEMENTS - TEST BRANCH
   ======================================== */

/* Game Index Navigation - Dropdown Style (All Screen Sizes) */
.mobile-game-index {
    display: block !important; /* Visible on all screen sizes */
    position: sticky !important;
    position: -webkit-sticky !important; /* Safari support */
    top: 100px !important; /* Increased to match taller global nav height */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    z-index: 90 !important; /* Below fixed nav (200) but above content */
    width: calc(100% - 2rem); /* Full width minus margins */
    max-width: 1400px; /* Match header/main width */
    background: transparent; /* Transparent background */
    transition: all 0.3s ease;
    isolation: isolate; /* Creates new stacking context */
}

/* Remove all visual effects when sticky - keep it clean */
.mobile-game-index.is-sticky {
    /* No background, blur, or shadow - just the dropdown button */
}

.game-index-container {
    position: relative;
}

.games-dropdown-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: 2px solid var(--accent-orange);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow: 0 2px 10px var(--shadow-medium);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.games-dropdown-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow-heavy);
}

.games-dropdown-button .dropdown-icon {
    transition: transform 0.3s ease;
}

.games-dropdown-button.open .dropdown-icon {
    transform: rotate(180deg);
}

.game-index-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: 2px solid var(--accent-orange);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 15px var(--shadow-heavy);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 10001; /* Above parent */
}

.game-index-list.open {
    display: block;
}

.game-chip {
    display: block;
    background: transparent;
    color: var(--white);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-chip:last-child {
    border-bottom: none;
}

.game-chip:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--white);
}

.game-chip.active {
    background: var(--accent-orange);
    color: var(--white);
    font-weight: 600;
}

.game-chip-score {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.2rem 0.4rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Mobile Card Improvements */
@media (max-width: 768px) {
    /* Adjust dropdown width for mobile */
    .mobile-game-index {
        max-width: none; /* Full width on mobile */
        width: calc(100% - 1rem); /* Account for margins */
        top: 90px; /* Mobile nav height */
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    /* Adjust main content padding for mobile index */
    main {
        padding-top: 30px; /* Reduced since dropdown is now sticky */
    }

    /* Remove padding from top opportunities section on mobile for carousel */
    .top-opportunities {
        padding: 0;
    }

    /* Enhanced Mobile Game Cards */
    .combined-game-card,
    .game-card {
        margin-bottom: 1rem;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
        scroll-margin-top: 84px; /* For smooth scrolling to games */
        position: relative;
        z-index: 1;
    }

    /* Ensure headers have relative positioning */
    .combined-game-header,
    .game-header {
        position: relative;
    }

    /* Mobile-optimized data layout */
    /* Market Carousel Wrapper */
    .market-carousel-wrapper {
        position: relative;
        width: 100%;
        margin-top: 1rem;
    }

    /* Carousel-enabled markets analysis */
    .markets-analysis.carousel {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 0 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    /* Hide scrollbar for Chrome, Safari, Opera */
    .markets-analysis.carousel::-webkit-scrollbar {
        display: none;
    }

    /* Market cards in carousel */
    .markets-analysis.carousel .market-analysis {
        flex: 0 0 calc(100% - 40px); /* Almost full width with partial preview */
        scroll-snap-align: start;
        min-width: calc(100% - 40px);
        box-sizing: border-box;
    }

    /* Non-carousel markets (fallback) */
    .markets-analysis:not(.carousel) {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Carousel Pagination Dots */
    .carousel-pagination {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0.5rem 0;
    }

    .carousel-pagination .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.3);
        border: 2px solid var(--accent-orange);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .carousel-pagination .dot.active {
        background-color: var(--accent-orange);
        width: 24px;
        border-radius: 4px;
    }

    /* Opportunities Carousel */
    .opportunities-carousel-wrapper {
        position: relative;
        width: 100%;
        padding-bottom: 3rem;
    }

    .opportunities-list.carousel {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 0 10px;
        margin-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .opportunities-list.carousel::-webkit-scrollbar {
        display: none;
    }

    .opportunities-list.carousel .opportunity-item {
        flex: 0 0 calc(100% - 40px);
        scroll-snap-align: start;
        min-width: calc(100% - 40px);
        box-sizing: border-box;
    }

    .market-section {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 1rem;
        border-left: 4px solid var(--accent-orange);
    }

    .market-header {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: var(--accent-orange);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Touch-friendly elements */
    .game-chip,
    .combined-game-header,
    .game-header {
        min-height: 44px; /* Apple's recommended touch target */
        display: flex;
        align-items: center;
    }

    /* Improved mobile typography */
    .game-matchup {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .team {
        padding: 0.25rem 0;
    }

    /* Mobile-specific animations */
    .combined-game-card,
    .game-card {
        transform: translateX(0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Opportunity score mobile styling */
    .opportunity-score-mobile {
        background: linear-gradient(135deg, var(--success-green), #20c997);
        color: white;
        padding: 0.4rem 0.8rem;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-left: 0.5rem;
    }

    /* Mobile betting percentages */
    .bet-money-comparison {
        flex-direction: column;
        gap: 0.75rem;
    }

    .percentage-display {
        font-size: 1rem;
        padding: 0.5rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .game-chip {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .combined-game-header,
    .game-header {
        padding: 1rem;
    }

    .game-matchup {
        font-size: 1rem;
    }

    .mobile-game-index {
        width: calc(100% - 0.5rem);
        left: 0.25rem;
        right: 0.25rem;
    }

    main {
        padding-top: 20px; /* Further reduced for extra small screens */
    }
}