* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background-color: rgb(18, 18, 18);
    color: rgb(222, 222, 222);
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.container.loaded {
    opacity: 1;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab {
    background-color: rgba(141, 181, 230, 0.2);
    border: 1px solid rgb(141, 181, 230);
    padding: 12px 24px;
    border-radius: 8px;
    color: rgb(255, 255, 255);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: rgba(141, 181, 230, 0.3);
}

.tab.active {
    background-color: rgba(141, 181, 230, 0.4);
    box-shadow: 0 0 15px rgba(141, 181, 230, 0.5);
}

.leaderboard {
    background-color: rgb(28, 28, 28);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(200, 200, 200, 0.25);
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 20px;
    background-color: rgba(141, 181, 230, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    align-items: center;
    border-left: 3px solid transparent;
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: rgb(141, 181, 230);
}

.rank.gold {
    color: rgb(255, 215, 0);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank.silver {
    color: rgb(192, 192, 192);
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank.bronze {
    color: rgb(205, 127, 50);
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

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

.player-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: rgb(255, 255, 255);
}

.player-stats {
    font-size: 0.9rem;
    color: rgb(170, 170, 170);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: right;
}

.stat-value.floats {
    font-size: 1.2rem;
}

.stat-value.positive {
    color: rgb(132, 255, 132);
}

.stat-value.negative {
    color: rgb(255, 132, 132);
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.load-more,
.load-all {
    flex: 1;
    padding: 15px;
    background-color: rgba(141, 181, 230, 0.2);
    border: 1px solid rgb(141, 181, 230);
    border-radius: 8px;
    color: rgb(255, 255, 255);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more:hover,
.load-all:hover {
    background-color: rgba(141, 181, 230, 0.3);
}

.load-more:disabled,
.load-all:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(18, 18, 18);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-screen.hidden {
    display: none;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(141, 181, 230, 0.2);
    border-top-color: rgb(141, 181, 230);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 4px solid transparent;
    border-top-color: rgb(141, 181, 230);
    border-radius: 50%;

    filter: drop-shadow(0 0 8px rgb(141, 181, 230))
        drop-shadow(0 0 12px rgba(141, 181, 230, 0.5));
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: rgb(141, 181, 230);
}

.loading-text.center {
    text-align: center;
}

.loading-text.error {
    color: rgb(255, 132, 132);
}

@media (max-width: 768px) {
    .leaderboard-item {
        grid-template-columns: 60px 1fr;
        gap: 15px;
    }

    .stat-value {
        grid-column: 2;
        text-align: left;
        margin-top: 10px;
    }

    .rank {
        font-size: 1.2rem;
    }

    .button-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .leaderboard-item {
        grid-template-columns: 50px 1fr;
        padding: 15px;
    }

    .rank {
        font-size: 1rem;
    }

    .player-name {
        font-size: 1.1rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}
