/* Shared with ranking*.html list UI — used by ranking-actual.html */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #004080, #00254d);
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #004080;
    font-size: 24px;
    margin-bottom: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 2px solid #f4f4f4;
    transition: background 0.3s ease-in-out;
}

.ranking-item:hover {
    background: #f9f9f9;
}

.rank-number {
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: #004080;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.athlete-info {
    flex: 1;
    display: flex;
    align-items: center;
    text-align: left;
    padding-left: 15px;
}

.athlete-info strong {
    font-size: 16px;
    color: #004080;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.academy-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.stats {
    display: flex;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    align-items: center;
}

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

.medal, .stat {
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
}

.gold { background: #FFD700; color: #333; }
.silver { background: #C0C0C0; color: #333; }
.bronze { background: #CD7F32; color: white; }
.points { background: #004080; color: #fff; }
.wins { background: #008000; color: #fff; }

@media (max-width: 768px) {
    .ranking-item {
        flex-direction: column;
        text-align: center;
    }

    .athlete-info {
        justify-content: center;
        padding-left: 0;
        margin-bottom: 10px;
    }

    .academy-logo {
        margin-bottom: 5px;
    }

    .stats, .medals {
        justify-content: center;
    }
}

/* ranking-actual.html: esta hoja carga después de site-header-ranking.css; reforzar layout */
body.ranking-with-site-nav .container.ranking-actual-page {
    max-width: 1320px;
    width: min(95%, 1320px);
    box-sizing: border-box;
    overflow: visible;
}

body.ranking-with-site-nav .ranking-actual-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
}
