.leaderboard-row {
    background: #fff;
    border: 2px solid #5d4a37;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px rgba(93, 74, 55, 0.1);
}

.leaderboard-row:hover {
    transform: translateX(5px);
    box-shadow: 3px 3px 0px rgba(93, 74, 55, 0.2);
}

.player-level {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-level i {
    font-size: 3rem;
    color: #76afb7;
    position: absolute;
}

.player-level span {
    position: absolute;
    font-weight: 800;
    font-size: 0.75rem;
    color: #5d4a37;
    z-index: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .player-level i {
        font-size: 2.5rem;
    }

    .player-level span {
        font-size: 0.65rem;
    }
}

.player-score {
    background: #d6e85d;
    border: 2px solid #5d4a37;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 800;
    color: #5d4a37;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-row.current-user {
    background: linear-gradient(to right, #ffce44, #f4a100);
    border-color: #5d4a37;
    font-weight: 800;
}

.rank-badge {
    background: #5d4a37;
    color: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #5d4a37;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #5d4a37;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #e9a96a);
    color: #fff;
}

.player-info {
    flex: 1;
    margin: 0 15px;
    min-width: 0;
}

.player-name {
    font-weight: 800;
    color: #5d4a37;
    font-size: 1.1rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-score {
    background: #d6e85d;
    border: 2px solid #5d4a37;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 800;
    color: #5d4a37;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.search-container {
    background: #fff;
    border: 3px solid #5d4a37;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0px rgba(93, 74, 55, 0.1);
}

.search-input {
    border: 2px solid #5d4a37;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    color: #5d4a37;
    width: 100%;
}

.search-input:focus {
    outline: none;
    border-color: #76afb7;
    box-shadow: 0 0 0 3px rgba(118, 175, 183, 0.2);
}

.btn-animated {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(93, 74, 55, 0.3);
}

.btn-animated:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(93, 74, 55, 0.2);
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animated:active::before {
    width: 300px;
    height: 300px;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5d4a37;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #5d4a37;
}

.empty-state img {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.page-info {
    font-weight: 800;
    color: #5d4a37;
    text-align: center;
    flex: 1;
}

@media (max-width: 768px) {
    .leaderboard-row {
        padding: 8px 10px;
        gap: 8px;
    }

    .rank-badge {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .player-info {
        flex: 1;
        margin: 0 8px;
        min-width: 0;
    }

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

    .player-score {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 8px;
    }

    .player-level i {
        font-size: 2rem;
    }

    .player-level span {
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .leaderboard-row {
        padding: 6px 8px;
        gap: 6px;
    }

    .rank-badge {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .player-info {
        margin: 0 6px;
    }

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

    .player-score {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .player-level i {
        font-size: 1.8rem;
    }

    .player-level span {
        font-size: 0.55rem;
    }
}

@media (max-width: 576px) {
    .search-container .row {
        gap: 8px;
    }

    .btn-animated {
        padding: 8px 12px !important;
        font-size: 0.9rem;
    }
}
