.server-stats-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.server-stats-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.stats-section {
    margin-bottom: 0;
}

.stats-section h3 {
    color: #ff122d;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.leaderboard-item:hover {
    transform: translateY(-3px);
}

.rank {
    font-size: 1.2em;
    font-weight: bold;
    color: #666;
    width: 30px;
    text-align: center;
}

.name {
    flex: 1;
    font-weight: 600;
    color: #333;
    padding: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.value {
    font-weight: bold;
    color: #ff122d;
    min-width: 80px;
    text-align: right;
}

.top-1 .rank {
    color: gold;
}

.top-2 .rank {
    color: silver;
}

.top-3 .rank {
    color: #cd7f32;
}

.server-stats-error {
    text-align: center;
    color: #e74c3c;
    padding: 20px;
    background: #fdecea;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .server-stats-container {
        padding: 15px;
    }
    
    .leaderboard-item {
        padding: 12px 15px;
    }
    
    .name {
        padding: 0 10px;
    }
}