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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #990000 0%, #660000 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #990000;
    font-size: 1.5rem;
}

.logo h1 {
    color: #990000;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: none;
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.nav-btn:hover {
    background: #f5f5f5;
    color: #990000;
}

.nav-btn.active {
    background: #990000;
    color: white;
    border-color: #990000;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Team Header */
.team-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.team-record {
    font-size: 1.2rem;
    font-weight: 600;
    color: #990000;
    margin: 0.5rem 0;
}

.conference-record {
    color: #666;
    font-size: 0.9rem;
}

.season-stats {
    display: flex;
    gap: 2rem;
}

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

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

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #990000;
    margin-top: 0.25rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card h3 {
    color: #990000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.stat-row span:last-child {
    font-weight: 600;
    color: #990000;
}

/* Games List */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #990000;
}

.game-info {
    display: flex;
    flex-direction: column;
}

.opponent {
    font-weight: 600;
    color: #333;
}

.game-date {
    font-size: 0.8rem;
    color: #666;
}

.game-result {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.game-result.w {
    background: #d4edda;
    color: #155724;
}

.game-result.l {
    background: #f8d7da;
    color: #721c24;
}

.game-result.t {
    background: #fff3cd;
    color: #856404;
}

/* Schedule Styles */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: white;
}

.schedule-controls select {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: #333;
    font-weight: 500;
}

.schedule-list {
    display: grid;
    gap: 1rem;
}

.schedule-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.game-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.opponent-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.game-time {
    color: #666;
    font-size: 0.9rem;
}

.game-location {
    color: #666;
    font-size: 0.8rem;
}

.game-status {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
}

.status-upcoming {
    background: #e3f2fd;
    color: #1976d2;
}

.status-live {
    background: #ffebee;
    color: #d32f2f;
    animation: pulse 2s infinite;
}

.status-final {
    background: #f3e5f5;
    color: #7b1fa2;
}

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

/* Roster Styles */
.roster-header {
    margin-bottom: 2rem;
    color: white;
}

.roster-filters {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    background: white;
    color: #990000;
}

.roster-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.player-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.player-card:hover {
    transform: translateY(-4px);
}

.player-number {
    font-size: 2rem;
    font-weight: 700;
    color: #990000;
    margin-bottom: 0.5rem;
}

.player-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

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

/* History Styles */
.history-header {
    margin-bottom: 2rem;
    color: white;
}

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

.history-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.history-card h3 {
    color: #990000;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.history-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.achievement i {
    color: #990000;
    font-size: 1.2rem;
}

/* Depth Chart Styles */
.depth-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem 0;
    padding-top: 2rem;
    border-top: 2px solid #990000;
}

.depth-chart-header h2 {
    color: white;
    margin: 0;
}

.depth-chart-controls {
    display: flex;
    gap: 0.5rem;
}

.depth-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.depth-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.depth-btn.active {
    background: white;
    color: #990000;
    font-weight: 600;
}

.depth-chart-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
}

.formation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.formation-line {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.skill-positions { background: #e8f5e8; }
.backfield { background: #e8f0ff; }
.offensive-line { background: #fff8e8; }
.defensive-line { background: #ffe8e8; }
.linebackers { background: #f0e8ff; }
.secondary { background: #e8fff8; }
.special-teams { background: #fff0f8; }

.position-group {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.position-group h4 {
    margin: 0 0 0.5rem 0;
    color: #990000;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.depth-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    position: relative;
}

.depth-player.starter {
    background: #990000;
    color: white;
    font-weight: 600;
}

.depth-player.backup {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.depth-name {
    font-size: 0.7rem;
    text-align: center;
}

.depth-order {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
}

.depth-order:first-child {
    background: #28a745;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin: 0.25rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .season-stats {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .formation-line {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .position-group {
        min-width: 100px;
        margin-bottom: 1rem;
    }
    
    .depth-chart-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .depth-chart-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .roster-list {
        grid-template-columns: 1fr;
    }

    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Year selector styling */
.year-select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    margin-right: 1rem;
}

.year-select option {
    background: #990000;
    color: white;
}

.depth-chart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .depth-chart-controls {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .year-select {
        margin-right: 0;
        width: 100%;
    }
}