.ranking-section {
    margin-top: 100px;
    min-height: 80vh;
    padding: 40px 20px;
    background-color: var(--branco); /* Fundo claro da página principal */
    display: flex;
    justify-content: center;
}

.ranking-container {
    width: 100%;
    max-width: 900px;
    background: #232145; /* Azul escuro da sua paleta */
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: white;
}

.ranking-header {
    text-align: center;
    margin-bottom: 30px;
}

.ranking-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ranking-header p {
    color: #A9A9A9;
    font-size: 1rem;
}

.filtro-box {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.select-ranking {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid var(--amarelo);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    appearance: none; /* Remove seta padrão */
}

.select-ranking:focus {
    box-shadow: 0 0 15px rgba(223, 213, 47, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.select-ranking option {
    background: #232145;
    color: white;
}

.tabela-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    min-height: 200px;
}

.estado-vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    color: #888;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ranking-table th {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    font-weight: 700;
    color: var(--amarelo);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.ranking-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

.ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.posicao {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    width: 60px;
    text-align: center;
}

.pos-1 { color: gold; font-size: 1.5rem; }
.pos-2 { color: silver; font-size: 1.3rem; }
.pos-3 { color: #cd7f32; font-size: 1.2rem; }

.atleta-info {
    display: flex;
    align-items: center;
}

.atleta-nome {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.atleta-clube {
    font-size: 0.8rem;
    color: #A9A9A9;
}

.pontos-valor {
    font-weight: 800;
    color: #10b981; /* Verde */
    font-size: 1.2rem;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .ranking-container { padding: 20px 15px; }
    .ranking-header h2 { font-size: 1.8rem; }
    .ranking-table th:nth-child(3), 
    .ranking-table td:nth-child(3) {
        display: none; /* Esconde a coluna de clube no mobile para caber na tela */
    }
    .atleta-nome { font-size: 0.95rem; }
}