/* --- Main Container & Titles --- */

.archive-container .page-title {
    text-align: center;
    font-size: 2em;
}

.archive-container .section-title {
    text-align: center;
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #445;
    padding-bottom: 8px;
}


/* --- Season Selector Box --- */

.season-selector-box {
    background: #1c2836;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid #3a4b5f;
}

.season-selector-box h4 {
    margin: 0 0 15px 0;
    color: orange;
    font-weight: 500;
}

.season-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.season-link {
    display: inline-block;
    padding: 8px 15px;
    background: #2a3a4c;
    color: #cddde8;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    border: 1px solid #445;
}

.season-link:hover {
    background: #3a4a5c;
    color: #fff;
}

.season-link.active {
    background: orange;
    color: #151d27;
    border-color: orange;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}


/* --- Stats Grid (Replaces old 'Top Performers') --- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #243447;
    border-radius: 8px;
    padding: 15px;
}

.stat-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: orange;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a4b5f;
}

.stat-card .stats-table {
    width: 100%;
    table-layout: fixed;
}
.stat-card .stats-table .name-cell {
    text-align: left;
}
.stat-card .stats-table .stat-cell {
    text-align: right;
    font-weight: bold;
}


/* --- Match Detail Back Link --- */
.back-link {
    font-size: 0.8em;
    margin-left: 15px;
    color: #aaa;
    text-decoration: none;
}
.back-link:hover {
    color: orange;
}

.stats-table .name-cell {
    vertical-align: middle;
    text-align: left;
}

.stats-table .stat-cell {
    justify-content: center; /* Horizontally centers */
    align-items: center;
}

.stats-table th:nth-child(1),
.stats-table td:nth-child(1) {
    width: 10%;
}

.stats-table th:nth-child(2),
.stats-table td:nth-child(2) {
    width: 50%;
    text-align: left;
}

.stats-table th:nth-child(3),
.stats-table td:nth-child(3) {
    width: 20%;
    text-align: center;
}

.stats-table th:nth-child(4),
.stats-table td:nth-child(4) {
    width: 20%;
    text-align: center;
}

.team-badge-small {
    height: 45px;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

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

@media screen and (max-width: 650px) {
    .team-badge-small {
        height: 35px;
        margin-right: 5px;
    }
}