.ranking-section {
    padding: 140px 0 80px;
    background: radial-gradient(ellipse at 30% 20%, #1a0000 0%, #000 70%);
    min-height: 100vh;
}

.ranking-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 15px;
}

.ranking-stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    transition: all 0.3s;
}

.ranking-stat-card:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.ranking-stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--neon-red);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.ranking-stat-card .stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.ranking-stat-card .stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 5px;
}

.ranking-table-container {
    overflow-x: auto;
    border: 1px solid var(--dark-border);
    background: var(--dark-card);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.ranking-table thead th {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-red);
    padding: 15px 12px;
    border-bottom: 2px solid var(--neon-red);
    background: rgba(255, 0, 0, 0.03);
    white-space: nowrap;
}

.sort-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}
.sort-link:hover { color: var(--neon-red); }
.sort-link.active { color: var(--neon-red); }

.ranking-table tbody tr {
    border-bottom: 1px solid var(--dark-border);
    transition: all 0.2s;
}

.ranking-table tbody tr:hover {
    background: rgba(255, 0, 0, 0.05);
}

.ranking-table tbody td {
    padding: 14px 12px;
    font-size: 0.9rem;
    vertical-align: middle;
}

.rank-col {
    width: 60px;
    text-align: center;
}

.player-col {
    min-width: 220px;
}

.stat-highlight {
    font-weight: 700;
    color: var(--neon-red);
}

.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
}

.rank-medal.gold {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.rank-medal.silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

.rank-medal.bronze {
    background: linear-gradient(135deg, #cd7f32, #a0622a);
    color: #fff;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

.rank-num {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ranking-table tbody tr.top-1 {
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid #ffd700;
}

.ranking-table tbody tr.top-2 {
    background: rgba(192, 192, 192, 0.03);
    border-left: 3px solid #c0c0c0;
}

.ranking-table tbody tr.top-3 {
    background: rgba(205, 127, 50, 0.03);
    border-left: 3px solid #cd7f32;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-nick {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.player-steam code {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .ranking-section {
        padding: 100px 0 60px;
    }

    .ranking-table thead th {
        font-size: 0.6rem;
        padding: 10px 8px;
    }

    .ranking-table tbody td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .player-col {
        min-width: 160px;
    }

    .player-nick {
        font-size: 0.85rem;
    }
}
