.medal-icon {
    font-size: 1.3rem;
    display: inline-block;
}

.badge-medal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25em 0.6em;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.25rem;
    font-family: 'Oswald', sans-serif;
}

.badge-medal.bg-gold {
    background-color: #ffd700;
    color: #333;
}

.badge-medal.bg-silver {
    background-color: #e8e8e8;
    color: #333;
}

.badge-medal.bg-bronze {
    background-color: #cd7f32;
    color: #fff;
}

.bg-gold {
    background-color: rgba(255, 215, 0, 0.4);
}

.bg-silver {
    background-color: rgba(192, 192, 192, 0.4);
}

.bg-bronze {
    background-color: rgba(205, 127, 50, 0.4);
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.table thead th {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #2c3e50;
    color: #ffffff;
    border-color: #34495e;
}

.table-hover tbody tr:hover {
    box-shadow: inset 0 0 0 9999px rgba(46, 204, 113, 0.05);
    cursor: default;
}

.row-fade-in {
    animation: fadeInContent 0.4s ease-out forwards;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Year navigation
   =========================== */

#yearNav {
    display: none;
    width: 100%;
    padding: 0 12px;
}

.year-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.btn-year-prev,
.btn-year-next {
    background: var(--sidebar-bg, #1a2a3a);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-year-prev:hover,
.btn-year-next:hover {
    background: var(--color-primary-light, #2ecc71);
}

.year-select {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 2px solid var(--sidebar-bg, #1a2a3a);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: var(--color-text, #2c3e50);
    cursor: pointer;
}

.year-select:focus {
    outline: none;
    border-color: var(--color-accent, #e67e22);
}

/* ===========================
   Champion card
   =========================== */

#championCard {
    margin-bottom: 16px;
}

.champion-card {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.champion-crown {
    font-size: 2rem;
    line-height: 1;
}

.champion-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    border: 3px solid #ffd700;
    margin: 4px 0;
}

.champion-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd700;
}

.champion-title {
    font-size: 0.85rem;
    opacity: 0.85;
}

.champion-points {
    font-size: 1rem;
    font-weight: 600;
}

.champion-medals {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.champion-medal {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.champion-medal .medal-icon {
    font-size: 1.1rem;
}

@media (max-width: 991.98px) {
    #championCard {
        margin-bottom: 12px;
    }
    .champion-card {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 14px 18px;
        gap: 8px 14px;
        justify-content: center;
    }
    .champion-crown {
        font-size: 1.5rem;
    }
    .champion-photo {
        width: 70px;
        height: 70px;
    }
    .champion-name {
        font-size: 1.1rem;
    }
    .champion-title {
        width: 100%;
        text-align: center;
    }
    .champion-points {
        font-size: 0.95rem;
    }
    .champion-medals {
        gap: 8px;
    }
}

@media (max-width: 767.98px) {
    .year-nav-inner {
        gap: 6px;
        margin-bottom: 12px;
    }
    .btn-year-prev,
    .btn-year-next {
        padding: 10px 16px;
        font-size: 1.15rem;
    }
    .year-select {
        font-size: 0.9rem;
        padding: 10px 10px;
    }
}
