/* Pitch Black Theme - Consistent Dark Mode Colors */

/* CSS Variables for consistent dark mode */
:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2d2d2d;
    --bg-card: #050505;
    --bg-card-secondary: #0a0a0a;
    --border-primary: #333333;
    --border-secondary: #444444;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --accent-primary: #007bff;
    --accent-secondary: #0056b3;
    --base-empty: #2d2d2d;
    --base-occupied: #007bff;
    --count-dot: #2d2d2d;
    --count-dot-border: #444444;
    --count-label: #666666;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    /* Enable smooth scrolling by default */
    -webkit-overflow-scrolling: touch;
    /* Explicitly allow pull-to-refresh by default */
    overscroll-behavior: auto;
    /* Allow text selection by default */
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
    /* Allow normal touch behavior by default */
    touch-action: auto;
    /* Account for fixed header */
    padding-top: 30px;
}



/* PWA-specific styles - only apply when app is installed */
body.pwa-mode {
    /* Prevent pull-to-refresh and search bar only in PWA mode */
    overscroll-behavior: none;
    /* Prevent text selection on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent zoom on double tap */
    touch-action: manipulation;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 0px;
}

/* Site header with title and live games indicator */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    object-fit: contain;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 0;
    margin-left: 20px;
}

.site-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.9;
    margin-bottom: 0;
}

/* Live games indicator in site header */
.live-games-indicator {
    position: relative;
    background: #dc3545;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.live-games-indicator .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

/* Main content header with dark theme */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: 15px;
    border: 1px solid var(--border-primary);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Date navigation styling */
.date-navigation {
    margin-bottom: 5px;
    padding: 15px;
    background: transparent;
    border-radius: 8px;
    position: relative;
}

/* Week slider styling */
.week-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 15px;
}

.week-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.week-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.week-display {
    text-align: center;
    transition: all 0.3s ease;
}

.week-display:hover {
    color: var(--text-primary);
    transform: scale(1.02);
}

.week-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.week-dates {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Week buttons styling */
.week-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.day-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.week-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    min-width: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.week-btn:hover {
    background: rgba(0, 86, 179, 0.15);
    border-color: rgba(0, 86, 179, 0.4);
    color: var(--text-primary);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.week-btn.active {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.5);
    transform: scale(1.05);
}

.day-date {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* Date picker styling */
.date-picker {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.date-display {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.date-display:hover {
    border-color: #007bff;
}

.date-picker input[type="date"] {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-picker input[type="date"]:hover {
    border-color: #007bff;
}

.date-picker input[type="date"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Controls section */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding: 5px 0;
    flex-wrap: wrap;
    gap: 15px;
}

/* Live games counter - now moved to site header */
.live-games-counter {
    display: none; /* Hidden since moved to site header */
}

.live-games-counter span {
    display: none; /* Hidden since moved to site header */
}

/* Sport filters */
.sport-filters {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0 10px;
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.sport-filters::-webkit-scrollbar {
    display: none;
}

.sport-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
    min-width: 50px;
    flex-shrink: 0;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sport-btn:hover {
    background: rgba(0, 86, 179, 0.15);
    border-color: rgba(0, 86, 179, 0.4);
    color: var(--text-primary);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.sport-btn.active {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.5);
    transform: scale(1.05);
}

/* Scores container with dark theme */
.scores-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 10px;
}

/* Mobile-first grid adjustments */
@media (max-width: 768px) {
    .scores-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 5px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .site-header {
        padding: 6px 12px !important;
        margin-bottom: 15px !important;
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(26, 26, 26, 0.8) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    }
    
    .header-left {
        flex-direction: row;
        align-items: center;
    }
    
    .logo-container {
        gap: 15px;
    }
    
    .site-logo {
        width: 24px;
        height: 24px;
    }
    
    .site-header h1 {
        font-size: 1.2rem;
        margin-bottom: 0;
        margin-left: 15px;
    }
    
    .site-header p {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    .live-games-indicator {
        padding: 4px 8px;
        font-size: 0.7rem;
        margin-left: auto;
    }
    
    .header h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .header p {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .date-navigation {
        padding: 20px;
        margin-bottom: 3px;
    }
    
    .week-buttons {
        gap: 8px;
    }
    
    .week-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 45px;
    }
    
    .day-button {
        flex-direction: column;
        gap: 6px;
    }
    
    .day-date {
        font-size: 0.85rem;
    }
    
    .sport-filters {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .sport-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .scores-container {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
        padding: 5px;
    }
    
    .score-card {
        padding: 14px;
        margin: 0;
    }
    
    .game-header {
        margin-bottom: 10px;
    }
    
    .sport-type {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .game-status {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .inning-display {
        padding: 3px 6px;
        font-size: 0.7rem;
        margin-left: 6px;
    }
    
    .game-content {
        gap: 4px;
        /* Ensure proper spacing on mobile */
        justify-content: space-between;
    }
    
    .teams {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    /* Limit teams width only when bases are expanded (live games) */
    .score-card:has(.mlb-game-state.live-game) .teams {
        max-width: 70%;
    }
    
    .team {
        padding: 4px 6px;
        gap: 4px;
    }
    
    .team-logo {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }
    
    .team-name {
        font-size: 0.85rem;
    }
    
    .team-score {
        font-size: 0.95rem;
    }
    
    .pitcher-info {
        font-size: 0.8rem;
        margin-top: 1px;
    }
    
    .game-info {
        padding-top: 6px;
        font-size: 0.8rem;
    }
    
    .game-time, .game-date {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    /* MLB game state mobile optimization - DEFAULT (non-live games) */
    .mlb-game-state {
        min-width: 60px;
        max-width: 80px;
        gap: 1px;
        flex-shrink: 0;
        flex: 0;
    }
    
    /* MLB game state mobile optimization - LIVE GAMES ONLY */
    .mlb-game-state.live-game {
        min-width: 80px;
        max-width: 30%;
        gap: 2px;
        /* Allow bases to take up 30% of space on mobile for live games */
        flex-shrink: 0;
        flex: 1;
    }
    
    .bases-diamond {
        margin-top: 4px;
        /* Default size for non-live games */
        transform: scale(0.8);
        transform-origin: center;
        /* Better centering on mobile */
        width: 100%;
        justify-content: center;
    }
    
    /* Larger bases diamond for live games only */
    .mlb-game-state.live-game .bases-diamond {
        margin-top: 4px;
        /* Small size increase for live games */
        transform: scale(0.9);
    }
    
    /* Ensure even spacing for live game bases */
    .mlb-game-state.live-game .bases-row {
        gap: 10px;
    }
    
    .bases-row {
        gap: 8px;
        justify-content: center;
    }
    
    .base {
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
        /* Ensure bases don't overflow */
        flex-shrink: 0;
        border-width: 1px;
    }
    
    /* Larger bases for live games only */
    .mlb-game-state.live-game .base {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
    
    .base span {
        font-size: 0.6rem;
        line-height: 1;
    }
    
    /* Larger base span text for live games only */
    .mlb-game-state.live-game .base span {
        font-size: 0.6rem;
    }
    
    .count-dots-container {
        gap: 0px;
        /* Default size for non-live games */
        transform: scale(0.8);
        transform-origin: left center;
    }
    
    /* Larger count dots for live games only */
    .mlb-game-state.live-game .count-dots-container {
        gap: 1px;
        transform: scale(0.8);
    }
    
    .count-dots {
        gap: 0px !important;
        min-height: 2px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .count-dot {
        width: 2px;
        height: 2px;
        font-size: 0.5px;
    }
    
    .count-label {
        font-size: 6px !important;
        width: 10px !important;
        height: 6px !important;
        margin-right: 2px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    /* PWA-specific extra small mobile styles - only apply when app is installed */
    body.pwa-mode {
        /* Ensure full screen on mobile */
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
        /* Prevent address bar from showing */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    body.pwa-mode .container {
        height: 100vh;
        overflow-y: auto;
        /* Prevent pull-to-refresh and search bar */
        overscroll-behavior: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .header p {
        font-size: 0.8rem;
    }
    
    .date-navigation {
        padding: 8px;
    }
    
    .week-buttons {
        gap: 4px;
    }
    
    .week-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-width: 40px;
    }
    
    .sport-filters {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .sport-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .scores-container {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 15px;
        padding: 3px;
    }
    
    /* MLB game state extra small mobile optimization */
    .mlb-game-state {
        min-width: 40px;
        max-width: 50px;
        gap: 1px;
    }
    
    .bases-diamond {
        margin-top: 0px;
        transform: scale(0.9);
        /* Better centering on extra small mobile */
        width: 100%;
        justify-content: center;
    }
    
    .bases-row {
        gap: 8px;
        justify-content: center;
    }
    
    .base {
        width: 6px;
        height: 6px;
        font-size: 0.2rem;
        flex-shrink: 0;
        border-width: 1px;
    }
    
    .base span {
        font-size: 0.6rem;
        line-height: 1;
    }
    
    .count-dots-container {
        transform: scale(0.5);
    }
    
    .count-dot {
        width: 2px;
        height: 2px;
        font-size: 1px;
    }
    
    .count-label {
        font-size: 6px;
        width: 10px;
        height: 6px;
    }
    
    .score-card {
        padding: 12px;
    }
    
    .game-header {
        margin-bottom: 8px;
    }
    
    .sport-type, .game-status, .inning-display {
        padding: 3px 6px;
        font-size: 0.85rem;
    }
    
    .inning-display {
        margin-left: 4px;
    }
    
    .game-content {
        gap: 2px;
        /* Ensure proper spacing on extra small mobile */
        justify-content: space-between;
    }
    
    .teams {
        gap: 8px;
    }
    
    .team {
        padding: 2px 4px;
        gap: 2px;
    }
    
    .team-logo {
        width: 20px;
        height: 20px;
        margin-right: 4px;
    }
    
    .team-name {
        font-size: 0.8rem;
    }
    
    .team-score {
        font-size: 0.85rem;
    }
    
    .game-info {
        padding-top: 3px;
        font-size: 0.85rem;
    }
    
    .game-time, .game-date {
        padding: 2px 4px;
        font-size: 0.8rem;
    }
    
    /* MLB game state extra small mobile */
    .mlb-game-state {
        min-width: 35px;
        gap: 1px;
    }
    
    .base {
        width: 12px;
        height: 12px;
        font-size: 0.6rem;
    }
    
    .count-dot {
        width: 1.5px;
        height: 1.5px;
        font-size: 0.3px;
    }
    
    .count-label {
        font-size: 6px;
        width: 10px;
        height: 6px;
    }
}

/* Baseball diamond styling */
.bases-diamond {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    position: relative;
    width: 100%;
    /* Ensure proper centering on mobile */
    justify-content: center;
}

.bases-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    /* Ensure bases don't overflow */
    max-width: 100%;
}

.base {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-secondary);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.3s ease;
    transform: rotate(45deg);
    /* Ensure bases don't get cut off */
    flex-shrink: 0;
}

.base span {
    transform: rotate(-45deg);
    /* Ensure text is readable */
    font-size: 12px;
    line-height: 1;
}

.base.empty {
    background: var(--base-empty);
    border-color: var(--border-secondary);
    color: var(--text-muted);
}

.base.occupied {
    background: var(--base-occupied);
    border-color: var(--accent-secondary);
    color: var(--text-primary);
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
}

.second-base {
    margin-bottom: 2px;
    align-self: center;
    /* Center the second base properly */
    margin-left: auto;
    margin-right: auto;
}

.first-base {
    margin-right: 2px;
}

.third-base {
    margin-left: 2px;
}

/* MLB bases container styling */
/* MLB game state container - positioned to the right of teams */
.mlb-game-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 120px;
    /* Ensure it doesn't overflow on mobile */
    max-width: 100%;
    /* Better centering and containment */
    justify-content: center;
    overflow: hidden;
}

/* Mobile-first approach - apply mobile styles by default */
@media (max-width: 768px) {
    .mlb-game-state {
        min-width: 60px !important;
        max-width: 80px !important;
        gap: 1px !important;
        flex: 0 !important;
        justify-content: center !important;
    }
    
    /* Live games get expanded layout */
    .mlb-game-state.live-game {
        min-width: 80px !important;
        max-width: 30% !important;
        gap: 2px !important;
        flex: 1 !important;
        justify-content: center !important;
    }
}

.mlb-bases-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlb-count-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Count dots styling for balls, strikes, and outs - arranged in a grid layout */
.count-dots-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: flex-start;
    /* Make count dots more compact by default */
    transform: scale(0.9);
    transform-origin: left center;
    margin-top: 8px;
}

.count-dots {
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 10px;
    width: 100%;
}

.count-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--count-dot);
    border: 1px solid var(--count-dot-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3px;
    color: var(--count-label);
    transition: all 0.3s ease;
}

.count-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.5);
    color: var(--text-primary);
}

.count-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: bold;
    width: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12px;
    flex-shrink: 0;
}

/* Specific layouts for each count type */
.balls-dots .count-dot {
    margin-right: 1px;
}

.strikes-dots .count-dot {
    margin-right: 1px;
}

.outs-dots .count-dot {
    margin-right: 1px;
}

/* Ensure last dot has no right margin */
.balls-dots .count-dot:last-child,
.strikes-dots .count-dot:last-child,
.outs-dots .count-dot:last-child {
    margin-right: 0;
}

/* Score cards with dark theme and team logos */
.score-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: visible;
    cursor: pointer;
}

.score-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Score change animation removed - scores will update without visual effects */

@keyframes scoreUpdate {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    25% {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(40, 167, 69, 0.3);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 12px 35px rgba(40, 167, 69, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sport-type {
    background: transparent;
    color: #007bff;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.8);
}

.game-status {
    background: transparent;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.game-status.live {
    background: transparent;
    color: #dc3545;
    animation: pulse 2s infinite;
    text-shadow: 0 0 15px rgba(220, 53, 69, 0.8);
}

.game-status.final {
    background: transparent;
    color: #28a745;
    text-shadow: 0 0 15px rgba(40, 167, 69, 0.8);
}

.game-status.scheduled {
    background: transparent;
    color: #6c757d;
    text-shadow: 0 0 15px rgba(108, 117, 125, 0.8);
}

/* Inning display in header */
.inning-display {
    background: transparent;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.inning-display.live {
    background: transparent;
    color: #dc3545;
    text-shadow: 0 0 15px rgba(220, 53, 69, 0.8);
}

.inning-display.final {
    background: transparent;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    font-weight: 600;
}

.inning-display.scheduled {
    background: transparent;
    color: #6c757d;
    text-shadow: 0 0 15px rgba(108, 117, 125, 0.8);
}

.inning-display.halftime {
    background: transparent;
    color: #ffc107;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
    font-weight: 600;
}

/* Game content container - mixed layout for different sports */
.game-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* NFL field should be full width below scores */
.nfl-game-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    order: 2; /* Force it to appear after teams */
}

/* MLB game state should stay on the right */
.mlb-game-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
    max-width: 80px;
    flex-shrink: 0;
    order: 1; /* Keep it in original position */
}

/* Mobile-first approach - apply mobile styles by default */
@media (max-width: 768px) {
    .game-content {
        gap: 8px !important;
        flex-direction: row !important; /* Keep horizontal layout on mobile */
        align-items: center !important;
    }
    
    /* On mobile, NFL field still goes below, but MLB can stay compact */
    .nfl-game-state {
        order: 2 !important;
        width: 100% !important;
    }
    
    .mlb-game-state {
        order: 1 !important;
        align-self: center !important;
        min-width: 35px !important;
        max-width: 40px !important;
        justify-content: center !important;
    }
}

/* Teams section with logos */
.teams {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 2;
}

/* Mobile-first approach - apply mobile styles by default */
@media (max-width: 768px) {
    .teams {
        gap: 8px !important;
        flex: 1 !important; /* Allow teams to take up available space */
        min-width: 0 !important; /* Prevent overflow */
    }
    
    /* Limit teams width only when bases are expanded (live games) */
    .score-card:has(.mlb-game-state.live-game) .teams {
        max-width: 70% !important; /* Teams get 70%, bases get 30% */
    }
}

.team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border: 1px solid #444;
    transition: all 0.3s ease;
    cursor: pointer;
}

.team:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}


.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-record {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.8;
}

/* Team logo styling */
.team-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.team-logo .fallback-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    line-height: 1;
}

.team-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s ease;
}

.team-name:hover {
    color: var(--accent-primary);
}

.team-score {
    font-size: 1rem;
    font-weight: 700;
    color: #007bff;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #cccccc;
}

.game-time, .game-date {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid #444;
}

/* Game time styling */
.game-time {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 5px;
}

/* Live game time styling */
.game-time:contains('Q'), .game-time:contains('P'), .game-time:contains('T'), .game-time:contains('B'), .game-time:contains('H') {
    color: #00ff88;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

/* Game date styling */
.game-date {
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* Info and error messages with dark theme */
.info, .error {
    text-align: center;
    padding: 40px;
    color: #cccccc;
    font-size: 1.1rem;
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
}

.error {
    color: #ff6b6b;
    border-color: #dc3545;
}

/* Winner highlighting */
.team.winner {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    padding: 4px;
}

.team.winner .team-name {
    color: var(--accent-success);
    font-weight: 600;
}

.team.winner .team-score {
    color: #007bff;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.team.winner .team-logo {
    border: none;
    box-shadow: none;
}

/* Possession/At-bat highlighting */
.team.possession .team-name,
.team.at-bat .team-name {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.team.possession .team-score,
.team.at-bat .team-score {
    color: #007bff;
    font-weight: inherit;
    text-shadow: none;
}

/* Scheduled game score styling */
.team-score.scheduled {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 500;
}

/* Pitcher information styling */
.pitcher-info {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
    opacity: 0.8;
}

.team.possession .team-logo,
.team.at-bat .team-logo {
    border: none;
    box-shadow: none;
}

/* Hover effect for winner teams */
.team.winner:hover {
    background: rgba(76, 175, 80, 0.15);
}

/* Pulse animation for live games */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* MLB game state styling */
.mlb-game-state {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    min-width: 60px;
    max-width: 80px;
    flex-shrink: 0;
}

/* NFL field visualization */
.nfl-game-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    max-width: 80px;
    flex-shrink: 0;
    order: 1; /* Keep it in original position on the right */
}

.nfl-field-container {
    position: relative;
    width: 100%;
    height: 120px;
    border: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    justify-content: center;
}

.field-tick-marks {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 25px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 4px;
}

.field-tick {
    position: absolute;
    right: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}

.field-tick.goal-line {
    height: 4px;
    background: rgba(255, 255, 255, 1);
    width: 100%;
    border-radius: 2px;
}

.field-tick.ten-yard-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
}

.field-tick.five-yard-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    width: 60%;
}

.yard-number {
    position: absolute;
    right: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    min-width: 20px;
    text-align: center;
}

.ball-position {
    position: absolute;
    display: flex;
        flex-direction: column;
    align-items: center;
    gap: 2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.team-logo-small {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.field-logo {
    position: relative;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.team-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.team-logo-small .fallback-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
}

.mlb-bases-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.mlb-count-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Bases diamond visualization */
.bases-diamond {
    display: flex;
        flex-direction: column;
    align-items: center;
        gap: 4px;
    margin-top: 8px;
}

.bases-row {
    display: flex;
        gap: 10px;
    align-items: center;
}

.base {
        width: 16px;
        height: 16px;
    background: var(--base-empty);
    border: 2px solid var(--count-dot-border);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.6rem;
    font-weight: bold;
    /* Make bases diamond shaped */
    transform: rotate(45deg);
}

.base.occupied {
    background: var(--base-occupied);
    border-color: var(--base-occupied);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.base span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    /* Rotate the text back to normal */
    transform: rotate(-45deg);
}

/* Count dots visualization - balls, strikes, outs in horizontal rows */
.count-dots {
    display: flex;
    flex-direction: row;
        gap: 4px;
    align-items: center;
    margin-top: 4px;
}

.count-row {
    display: flex;
    align-items: center;
        gap: 4px;
    }
    
.count-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--count-dot-border);
    background: var(--count-dot);
    transition: all 0.3s ease;
}

.count-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

/* Specific colors for different count types */
.balls-dots .count-dot.active {
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.5);
}

.strikes-dots .count-dot.active {
    background: #ffc107;
    border-color: #ffc107;
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.5);
}

.outs-dots .count-dot.active {
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.5);
}

.count-label {
    font-size: 0.7rem;
    color: var(--count-label);
    font-weight: 600;
    text-align: center;
    margin-right: 6px;
    min-width: 20px;
}

/* Count dots container */
.count-dots-container {
    display: flex;
    flex-direction: column;
        gap: 4px;
    align-items: center;
    margin-top: 8px;
}

/* Specific styling for balls, strikes, outs rows - horizontal layout */
.balls-dots, .strikes-dots, .outs-dots {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Responsive design for dark theme */
@media (max-width: 768px) {
    .container {
        padding: 8px;
    }
    
    /* PWA-specific mobile styles - only apply when app is installed */
    body.pwa-mode {
        /* Prevent address bar from showing/hiding */
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    body.pwa-mode .container {
        height: 100vh;
        overflow-y: auto;
        /* Prevent pull-to-refresh */
        overscroll-behavior: none;
    }
    
    .header {
        padding: 40px 20px;
        margin-bottom: 40px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .header p {
        font-size: 0.8rem;
    }
    
    .date-navigation {
        padding: 8px;
    }
    
    .week-buttons {
        gap: 4px;
    }
    
    .week-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-width: 40px;
    }
    
    .sport-filters {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .sport-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .scores-container {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 15px;
        padding: 3px;
    }
    
    /* MLB game state extra small mobile optimization */
    .mlb-game-state {
        min-width: 40px;
        max-width: 50px;
        gap: 1px;
    }
    
    .bases-diamond {
        margin-top: 0px;
        transform: scale(0.9);
        /* Better centering on extra small mobile */
        width: 100%;
        justify-content: center;
    }
    
    .bases-row {
        gap: 8px;
        justify-content: center;
    }
    
    .base {
        width: 6px;
        height: 6px;
        font-size: 0.2rem;
        flex-shrink: 0;
        border-width: 1px;
    }
    
    .base span {
        font-size: 0.6rem;
        line-height: 1;
    }
    
    .count-dots-container {
        transform: scale(0.5);
    }
    
    .count-dot {
        width: 2px;
        height: 2px;
        font-size: 1px;
    }
    
    .count-label {
        font-size: 6px;
        width: 10px;
        height: 6px;
    }
    
    .score-card {
        padding: 12px;
    }
    
    .game-header {
        margin-bottom: 8px;
    }
    
    .sport-type, .game-status, .inning-display {
        padding: 3px 6px;
        font-size: 0.85rem;
    }
    
    .inning-display {
        margin-left: 4px;
    }
    
    .game-content {
        gap: 2px;
        /* Ensure proper spacing on extra small mobile */
        justify-content: space-between;
    }
    
    .teams {
        gap: 8px;
    }
    
    .team {
        padding: 2px 4px;
        gap: 2px;
    }
    
    .team-logo {
        width: 20px;
        height: 20px;
        margin-right: 4px;
    }
    
    .team-name {
        font-size: 0.8rem;
    }
    
    .team-score {
        font-size: 0.85rem;
    }
    
    .game-info {
        padding-top: 3px;
        font-size: 0.85rem;
    }
    
    .game-time, .game-date {
        padding: 2px 4px;
        font-size: 0.8rem;
    }
    
    /* MLB game state extra small mobile */
    .mlb-game-state {
        min-width: 35px;
        gap: 1px;
    }
    
    .base {
        width: 12px;
        height: 12px;
        font-size: 0.6rem;
    }
    
    .count-dot {
        width: 1.5px;
        height: 1.5px;
        font-size: 0.3px;
    }
    
    .count-label {
        font-size: 6px;
        width: 10px;
        height: 6px;
    }
}

/* Mobile: Make bases look like desktop and smaller banner text */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 15px !important;
    }
    
    .logo-container {
        gap: 18px;
    }
    
    .site-logo {
        width: 28px;
        height: 28px;
    }
    
    .site-header h1 {
        font-size: 1.2rem !important;
        margin-left: 18px !important;
    }
    
    .site-header p {
        font-size: 0.7rem !important;
    }
    
    .bases-diamond {
        transform: scale(0.9) !important;
        gap: 1px !important;
    }
    
    /* Larger bases diamond for live games only */
    .mlb-game-state.live-game .bases-diamond {
        transform: scale(1.0) !important;
        gap: 1px !important;
    }
    
    /* Ensure even spacing for live game bases on mobile */
    .mlb-game-state.live-game .bases-row {
        gap: 10px !important;
    }
    
    .base {
        width: 16px !important;
        height: 16px !important;
        border-width: 1px !important;
    }
    
    /* Larger bases for live games only */
    .mlb-game-state.live-game .base {
        width: 18px !important;
        height: 18px !important;
    }
    
    .count-dots-container {
        transform: scale(0.8) !important;
        gap: 1px !important;
    }
    
    /* Larger count dots for live games only */
    .mlb-game-state.live-game .count-dots-container {
        transform: scale(0.9) !important;
        gap: 1px !important;
    }
    
    .count-dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    /* Larger count dots for live games only */
    .mlb-game-state.live-game .count-dot {
        width: 7px !important;
        height: 7px !important;
    }
    
    .mlb-game-state {
        order: 1 !important;
        align-self: center !important;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1rem !important;
    }
    
    .site-header p {
        font-size: 0.6rem !important;
    }
    
    .base {
        width: 20px !important;
        height: 20px !important;
    }
    
    .count-dot {
        width: 7px !important;
        height: 7px !important;
    }
}

/* Standings Page Styles */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header h1 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: var(--accent-secondary);
}

.sport-filter {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.main-content {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.loading-indicator {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.error-message {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.standings-container {
    display: grid;
    gap: 30px;
}

/* Team logo styles for standings page only */
.standings-container .team-logo-container {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.standings-container .team-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.standings-container .team-initials {
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.standings-container .team-col {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Team page styles - scoped to team page only */
.team-page .team-info-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.team-page .team-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.team-page .team-header .back-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.team-page .team-header .back-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.team-page .team-logo-large {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.team-page .team-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.team-page .team-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border-radius: 6px;
}

.team-page .team-logo-fallback .team-initials {
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.team-page .team-details h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.team-page .team-record {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.team-page .team-division {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.team-page .tab-nav {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.team-page .tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-page .tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.team-page .tab-btn.active {
    background: var(--accent-primary);
    color: white;
}

.team-page .tab-content {
    min-height: 400px;
}

.team-page .tab-panel {
    display: none;
}

.team-page .tab-panel.active {
    display: block;
}

.team-page .section-header {
    margin-bottom: 16px;
}

.team-page .section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.team-page .current-team {
    background: var(--accent-primary);
    color: white;
}

.team-page .current-team .team-name {
    font-weight: 600;
}

.team-page .depth-chart-container,
.team-page .schedule-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 20px;
}

/* Schedule styles */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.schedule-date-section {
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
}

.schedule-date-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

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

.schedule-game {
    padding: 16px;
    border-bottom: 1px solid var(--border-primary);
    transition: background-color 0.2s ease;
}

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

.schedule-game:hover {
    background: var(--bg-secondary);
}

.schedule-game.completed {
    background: var(--bg-secondary);
}

.schedule-game.live {
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-left: 4px solid var(--accent-primary);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.game-time {
    font-weight: 600;
    color: var(--text-primary);
}

.game-venue {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.game-matchup {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

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

.vs-divider {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.score {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-left: auto;
}

.game-status {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
}

.game-status.scheduled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.game-status.completed {
    background: var(--text-secondary);
    color: white;
}

.game-status.live {
    background: var(--accent-primary);
    color: white;
    animation: pulse 2s infinite;
}

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

/* Depth chart styles */
.depth-chart-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.position-group {
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
}

.position-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
}

.players-list {
    display: flex;
    flex-direction: column;
}

.player-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-primary);
    transition: background-color 0.2s ease;
}

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

.player-row:hover {
    background: var(--bg-secondary);
}

.player-row.starter {
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-left: 4px solid var(--accent-primary);
}

.depth-label {
    width: 60px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.starter .depth-label {
    color: var(--accent-primary);
    font-weight: 700;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.player-number {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 150px;
}

.player-college {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.player-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.height-weight {
    font-weight: 500;
}

.experience {
    font-style: italic;
}

.info-message {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-message p {
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
}

.standings-info {
    padding: 20px;
    text-align: center;
}

.standings-info p {
    color: var(--text-secondary);
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.standings-link {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.standings-link:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}


.sport-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}

.sport-title {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-primary);
}

.conference-section {
    padding: 20px;
}

.conference-title {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.divisions-container {
    display: grid;
    gap: 25px;
}

.division-section {
    background: var(--bg-card-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.division-title {
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-primary);
}

.standings-table {
    padding: 0;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-primary);
}

.team-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-secondary);
    transition: background-color 0.2s ease;
}

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

.team-row:hover {
    background: var(--bg-primary);
}

.team-row.first-place {
    background: rgba(0, 123, 255, 0.1);
}

.team-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank {
    background: var(--accent-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.team-name {
    color: var(--text-primary);
    font-weight: 500;
}

.record-col,
.pct-col,
.gb-col {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile responsiveness for standings page */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .main-content {
        padding: 15px;
        margin-top: 120px;
    }
    
    .table-header,
    .team-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .pct-col,
    .gb-col {
        display: none;
    }
    
    .divisions-container {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.3rem;
    }
    
    .sport-title {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .conference-section {
        padding: 15px;
    }
    
    .division-title {
        padding: 12px 15px;
    }
    
    .table-header,
    .team-row {
        padding: 10px 15px;
    }
}


