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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
    color: #111827;
}

/* HEADER */
header {
    width: 100%;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

header h1 {
    font-size: 2rem;
    font-weight: 900;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    background: #111827;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

nav a:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

/* MAIN */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    display: grid;
    gap: 24px;
}

/* SECTION CARD */
section {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    padding: 28px;
}

section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

/* ========================= */
/* ARCHIVE LANDING (CARDS) */
/* ========================= */

#seasonList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.archive-season-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #dbe2ea;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: 0.2s ease;
}

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

.archive-season-card h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.archive-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.archive-links a {
    text-decoration: none;
    background: #111827;
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.2s ease;
}

.archive-links a:hover {
    background: #1f2937;
}

/* ========================= */
/* TABLES (TEAM + STATS) */
/* ========================= */

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

thead {
    background: #f8fafc;
}

th {
    text-align: left;
    padding: 14px 12px;
    font-weight: 800;
    font-size: 0.9rem;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

tbody tr:hover {
    background: #f8fafc;
}

/* TEAM TITLE (ARCHIVE TEAM PAGE) */
#teamTitle {
    padding: 14px 20px;
    border-radius: 18px;
    color: white;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 24px;
    color: #64748b;
    font-size: 0.9rem;
}

/* MOBILE */
@media (max-width: 900px) {
    section {
        overflow-x: auto;
    }

    table {
        min-width: 750px;
    }
}