/* --- Global & Theme --- */
:root {
    --accent-color: #38bdf8;
    --logo-bg: #ffffff;
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    color: #f1f5f9;
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 20px;
}

/* --- Header & Logo Fix --- */
.header-area {
    max-width: 1500px; 
    margin: 0 auto 30px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 15px 20px; 
    border-bottom: 2px solid var(--border-color);
}

.logo-container {
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.header-logo {
    height: 60px;
    width: auto;
}

.export-btn {
    background: #4f46e5;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.export-btn:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

/* --- Layout Grid --- */
.main-container {
    display: grid;
    /* Wider sidebar (380px), smaller gap (25px) to prevent overlap */
    grid-template-columns: 380px 1fr; 
    gap: 25px;
    max-width: 1500px;
    margin: 0 auto;
    align-items: flex-start;
}

#standings-section {
    position: sticky;
    top: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th, .standings-table td {
    padding: 12px 5px;
    border-bottom: 1px solid var(--border-color);
}

.col-pts {
    text-align: right;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Schedule Table (Closer center part) --- */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.col-date { width: 65px; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }
.col-away { width: 38%; text-align: right; } /* More space for names */
.col-score { width: 110px; text-align: center; } /* Brings names closer together */
.col-home { width: 38%; text-align: left; } /* More space for names */

.game-item td { padding: 18px 5px; vertical-align: middle; border-bottom: 1px solid var(--border-color); }

.logo-shield {
    width: 34px; height: 34px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 4px;
    vertical-align: middle;
}

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

.team-link {
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    margin: 0 8px;
    white-space: nowrap;
}

.score-pill {
    background: #000;
    border: 1px solid var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-weight: bold;
    display: inline-block;
}

.venue-info {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Bye Week Info --- */
.bye-week-info {
    margin-top: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
}
.bye-tag { color: var(--accent-color); font-weight: bold; margin-right: 5px; }

.hidden { display: none !important; }

@media (max-width: 1200px) {
    .main-container { grid-template-columns: 1fr; }
    #standings-section { position: static; width: 100%; }
}