/* Базовые стили контейнера (дублируем из stats-form.css) */
.fortnite-stats-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Стили для ошибки (дублируем для TOP100) */
.fortnite-stats-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    color: #c62828;
    display: none;
}

/* ================================
   TOP100 LEADERBOARD STYLES
   ================================ */

.fortnite-top100-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
}

.fortnite-top100-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.fortnite-top100-count {
    font-size: 18px;
    font-weight: 600;
}

.fortnite-top100-updated {
    font-size: 14px;
    opacity: 0.9;
}

.fortnite-top100-table-wrapper {
    overflow-x: auto;
}

.fortnite-top100-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fortnite-top100-table thead th {
    background: #f8f9fa;
    color: #333;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.fortnite-top100-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.fortnite-top100-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* TOP 3 специальные стили */
.fortnite-top100-table tbody tr.top-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 4px solid #FFD700;
}

.fortnite-top100-table tbody tr.top-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(169, 169, 169, 0.05));
    border-left: 4px solid #C0C0C0;
}

.fortnite-top100-table tbody tr.top-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(184, 115, 51, 0.05));
    border-left: 4px solid #CD7F32;
}

/* Колонки */
.fortnite-top100-table .rank-col, .fortnite-top100-table .rank-cell {
    width: 60px;
    font-weight: 600;
    color: #2196F3;
}

.fortnite-top100-table .player-col {
    width: 200px;
    text-align: left !important;
}

.fortnite-top100-table .player-cell {
    text-align: left !important;
}

.fortnite-top100-table .player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    margin: 0;
    padding: 0;
}

.fortnite-top100-table .player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
}

.fortnite-top100-table .player-name {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.fortnite-top100-table .platform-col, .fortnite-top100-table .platform-cell {
    width: 100px;
}

.fortnite-top100-table .platform-name {
    margin-left: 5px;
    font-size: 12px;
    color: #666;
}

.fortnite-top100-table .pr-col, .fortnite-top100-table .pr-cell {
    width: 80px;
    color: #2196F3;
    font-weight: 600;
}

.fortnite-top100-table .winrate-col, .fortnite-top100-table .winrate-cell {
    width: 80px;
    color: #4CAF50;
    font-weight: 600;
}

.fortnite-top100-table .matches-col, .fortnite-top100-table .matches-cell {
    width: 80px;
    color: #666;
}

.fortnite-top100-table .updated-col, .fortnite-top100-table .updated-cell {
    width: 80px;
    color: #999;
    font-size: 12px;
}

.fortnite-top100-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

.fortnite-top100-note {
    margin: 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Адаптивность для TOP100 */
@media (max-width: 768px) {
    .fortnite-top100-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .fortnite-top100-table {
        font-size: 12px;
    }
    
    .fortnite-top100-table th,
    .fortnite-top100-table td {
        padding: 6px 4px;
    }
    
    .mobile-hidden {
        display: none;
    }
    
    .fortnite-top100-table .player-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .fortnite-top100-table .player-avatar {
        width: 24px;
        height: 24px;
    }
    
    .fortnite-top100-table .platform-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .fortnite-top100-table .winrate-col,
    .fortnite-top100-table .winrate-cell {
        display: none;
    }
    
    .fortnite-top100-table .player-col {
        width: 150px;
    }
}

/* Отключаем автоматическую нумерацию Kadence для TOP100 таблицы */
.fortnite-top100-table tr td:first-child::before {
    content: none !important;
}