* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


#header-logo{max-width: 100%;width: 200px;margin: 30px auto 50px auto;}


.stat-item {
    text-align: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    min-width: 120px;
}

.stat-item i {
    font-size: 1.5em;
    color: #3b82f6;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 0.9em;
    color: #94a3b8;
    display: block;
}

.controls {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-label {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1.1em;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #3b82f6;
    background: transparent;
    color: #3b82f6;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95em;
}

.filter-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.loading {
    text-align: center;
    padding: 50px;
    color: #94a3b8;
}

.loading i {
    font-size: 3em;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.table-container {
    background: #24283d;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
     overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    
}

.table-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.table-container::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.4);
}

.table-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    
}

.table th,
.table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    box-sizing: border-box;
    height: 95px;
     white-space: nowrap;
}

.table tr {
    height: 95px;
}

.table th {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.03em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}


.table tbody tr:last-child th,
.table tbody tr:last-child td {
    border-bottom: none;
}
@media (max-width: 768px) {
    
    .table th,
    .table td {
        padding: 15px 12px;
        min-width: 120px;
    }
    
}

@media (max-width: 480px) {
    .table th,
    .table td {
        padding: 12px 8px;
        min-width: 100px;
        height: 80px;
    }
    .table tr {
        height: 80px;
    }
    
}

.podium-row {
    position: relative;
}

.podium-1 {
    
    border-left: 4px solid #FFD700;
}

.podium-2 {
    
    border-left: 4px solid #C0C0C0;
}

.podium-3 {
   
    border-left: 4px solid #CD7F32;
}

.podium-1 .rank-cell {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.podium-2 .rank-cell {
    color: #C0C0C0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.podium-3 .rank-cell {
    color: #CD7F32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.podium-1 .avatar {
    border-color: #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.podium-2 .avatar {
    border-color: #C0C0C0;
    box-shadow: 0 5px 15px rgba(192, 192, 192, 0.4);
}

.podium-3 .avatar {
    border-color: #CD7F32;
    box-shadow: 0 5px 15px rgba(205, 127, 50, 0.4);
}

.rank-cell {
    font-weight: 700;
    font-size: 1.2em;
    color: #3b82f6;
    width: 80px;
    text-align: center;
}

.profile-cell {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
margin-top: 5px;

}

.profile-header {
    text-align: left !important;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    cursor: pointer;
}

.profile-info {
    flex: 1;
}

.nickname {
    font-weight: 700;
    font-size: 1.1em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.blue {
    color: #3b82f6;
}

.stat-cell {
    font-weight: 600;
    font-size: 1.1em;
    color: #e2e8f0;
    text-align: left;
}

.stat-number {
    color: #3b82f6;
    font-size: 1.2em;
}
.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }


    .table th,
    .table td {
        padding: 15px 10px;
    }

    .avatar {
        width: 60px;
        height: 60px;
    }

    .nickname {
        font-size: 1.0em;
        font-weight: normal;
    }

    .stat-number {
        font-size: 1.0em;
    }

    .table th {
        font-size: 0.9em;
    }
}


@media (max-width: 410px) {
    .filter-btn {
        padding: 8px 20px;
        border-radius: 22px;
        font-size: 0.90em;
    }
}

@media (max-width: 370px) {
    .filter-btn {
        padding: 12px 24px;
    }
    .filter-buttons {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}