.leaderboard {
    width: 100%;
    /* background: #7E5DB0; */
    /* border-radius: 15px; */
    /* margin-top: 20px; */
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.top-three {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    /* background-color: #8E6DC1; */
}

.medal {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.first-place {
    background-color: #FFD700;
    color: #333;
    border-radius: 10px;
    padding: 10px;
    width: 90px;
    height: 130px;
    margin-top: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.second-place,
.third-place {
    background-color: #C0C0C0;
    color: #333;
    border-radius: 10px;
    padding: 10px;
    width: 80px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.third-place {
    background-color: #CD7F32;
}

.medal img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.medal-name {
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
}

/* .header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #8E6DC1;
    font-weight: bold;
    font-size: 18px;
} */

.player-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    /* background-color: #9A7ED387; */
    margin: 25px 0;
    border-radius: 10px;
    color: #650688;
    transition: all 0.3s ease;
    border: rgba(0, 0, 0, 0.25) solid 0.5px;
    /* box-shadow: 0 4px 8px #E46DB085, 
                0 6px 20px #E46DB085; */
}

.player-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 
            0 12px 40px rgba(0, 0, 0, 0.25);
}

.pricing_wrap{
    padding: 1.3rem !important;
}

.pricing_wrap:hover {
    transform: scale(1.05); /* فقط در محور Y بزرگ شود */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 
            0 12px 40px rgba(0, 0, 0, 0.25);
}

/* .player-item:nth-child(odd) {
    box-shadow: 0 4px 8px #E46DB085, 
                0 6px 20px #E46DB085;
} */

.player-rank {
    background-color: #f1efff;
    color: #650688;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 10px;
}

.player-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.player-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    transition: width 0.3s ease, height 0.3s ease;
}

.player-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* .player-name {
    font-weight: bold;
    font-size: 16px;
} */

.player-level {
    font-size: 14px;
    color: #ddd;
}

.player-stats {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-top: 5px;
    gap: 10px;
    color: #FFD700;
}

.player-badges {
    display: flex;
    gap: 8px;
}

.badge_style {
    width: 50px;
    border-radius: 50%;
    border: rgba(0, 0, 0, 0.25) solid 1px;
    margin-left: 5px;
}

.v-line{
    border-left: rgba(0, 0, 0, 0.25) solid 1px;
    height: 100px; 
    margin: 10px;
}

.player-tag{
    position: absolute;
    top: -5px;
    background-color: #f1efff;
    color: #650688; 
    border-radius: 15px; 
    white-space: nowrap; 
    z-index: 5;
}

.profile-img{
    width: 100px; 
    border-radius: 50%;
}

.profile-img-first{
    width: 100px; 
    border-radius: 50%;
}

.badge_style_first{
    width: 30px;
    border: rgba(0, 0, 0, 0.25) solid 1px;
    border-radius: 50%;
    margin:2px;
}

.player-tag-right{
    position: absolute;
    top: -5px;
    left: 50%;
    padding: 7px 10px;
    background-color: #f1efff;
    color: #650688; 
    border-radius: 15px; 
    white-space: nowrap;
    z-index: 5;
}

.player-tag-left{
    position: absolute;
    top: -5px;
    right: 59%;
    white-space: nowrap;
}
.recommended{
    background-color: #f1efff !important;
    color: #650688 !important;
}

.height-badge-list{
    height: 35px;
}


.profile-img-main{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover;
    border-radius: 50%;
}

@media only screen and (max-width: 480px) {
    .player-item {
        padding: 10px;
    }

    .player-photo {
        width: 30px;
        height: 30px;
    }

    .badge {
        width: 15px;
        height: 15px;
    }

    .player-rank {
        width: 28px;
        font-size: 10px;
    }

    .player-level,
    .player-stats {
        font-size: 10px;
    }

    .profile-img{
        width: 50px; 
        border-radius: 50%;
    }
    .badge_style{
        width: 30px;
        border: rgba(0, 0, 0, 0.25) solid 1px;
        margin:2px;
    }

    .v-line{
        margin: 5px;
    }

    .player-name {
        font-size: 13px;
        text-align: center;
        margin-top: .25rem !important;
        margin-bottom: .25rem !important;
        max-width: 100px !important;
        overflow: hidden !important;          
        white-space: nowrap !important;        
        text-overflow: ellipsis !important;   
    }

    .player-tag{
        right: -20px; 
        padding: 5px;
        font-size: 11px;
    }


    .butterfly-m{
        margin-left: 5px !important;
        padding:2px !important;
        text-align: center !important;
    }

    .profile-img-div{
        position: relative;
        width: 50px;
        height: 50px;
        z-index: 4;
        margin: auto;
    }
}

@media only screen and (max-width: 768px) and (min-width: 480px) {
    .container{
        max-width: 100% !important;
    }
    .top-three {
        flex-direction: column;
    }

    .first-place,
    .second-place,
    .third-place {
        width: 80px;
        height: 100px;
        margin: 10px 0;
    }

    .medal img {
        width: 50px;
        height: 50px;
    }

    .player-photo {
        width: 40px;
        height: 40px;
    }

    .profile-img{
        width: 50px; 
        border-radius: 50%;
    }
    .badge_style{
        width: 30px;
        border: #DA03C2 solid 1px;
        margin:2px;
    }

    .v-line{
        margin: 5px;
    }

    .badge {
        width: 20px;
        height: 20px;
    }

    .player-rank {
        width: 30px;
        height: 30px;
    }

    .player-name {
        font-size: 13px;
        text-align: center;
        margin-top: .25rem !important;
        margin-bottom: .25rem !important;
    }

    .player-tag{
        right: -20px; 
        padding: 5px;
        font-size: 11px;
    }

    .player-level,
    .player-stats {
        font-size: 12px;
    }

    .butterfly-m{
        margin-left: 5px !important;
        padding:5px !important;
        text-align: center !important;
    }

    .profile-img-div{
        position: relative;
        width: 50px;
        height: 50px;
        z-index: 4;
        margin: auto;
    }
}

/* Media Queries for Responsive Design */
@media only screen and (max-width: 992px) and (min-width: 768px) {
    .container{
        max-width: 100% !important;
    }
    .top-three {
        flex-direction: column;
    }

    .first-place,
    .second-place,
    .third-place {
        width: 80px;
        height: 100px;
        margin: 10px 0;
    }

    .medal img {
        width: 50px;
        height: 50px;
    }

    .player-photo {
        width: 40px;
        height: 40px;
    }

    .profile-img{
        width: 75px; 
        border-radius: 50%;
    }

    .badge {
        width: 20px;
        height: 20px;
    }

    .player-rank {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .player-name {
        font-size: 14px;
        text-align: center;
        margin-top: .25rem !important;
        margin-bottom: .25rem !important;
    }

    .badge_style {
        width: 50px;
        border-radius: 50%;
        border: rgba(0, 0, 0, 0.25) solid 1px;
        margin-left: 5px;
    }

    .player-tag{
        right: -20px; 
        padding: 5px 10px; 
        font-size: 12px;
    }

    .player-level,
    .player-stats {
        font-size: 12px;
    }

    .butterfly-m{
        margin-left: 1.5rem !important;
        padding: .5rem !important;
    }

    .image-game-size{
        height: 20px;
        width: 20px;
    }

    .div-game-size{
        padding: .25rem !important;
        margin-left: .25rem !important;
    }

    .div-game-size-second{
        padding: .25rem !important;
    }

    .three-users-top-name{
        font-size: 14px;
    }

    .profile-img-div{
        position: relative;
        width: 75px;
        height: 75px;
        z-index: 4;
        margin: auto;
    }
}

@media only screen and (min-width: 992px) {
    .player-badges {
        display: flex;
        gap: 8px;
    }
    
    .badge_style {
        width: 50px;
        border-radius: 50%;
        border: rgba(0, 0, 0, 0.25) solid 1px;
        margin-left: 5px;
    }
    
    .v-line{
        border-left: rgba(0, 0, 0, 0.25) solid 1px;
        height: 100px; 
        margin: 10px;
    }
    
    .player-tag{
        right: -10px; 
        padding: 5px 10px; 
        font-size: 12px;
    }
    
    .profile-img{
        width: 100px; 
        border-radius: 50%;
    }

    .butterfly-m{
        margin-left: 1.5rem !important;
        padding: .5rem !important;
    }

    .player-rank {
        width: 35px;
        height: 35px;
    }

    .player-name {
        font-size: 16px;
        text-align: right;
        margin-top: .75rem !important;
        margin-bottom: .75rem !important;
    }

    .image-game-size{
        height: 24px;
        width: 24px;
    }

    .div-game-size{
        padding: .5rem !important;
        margin-left: 1rem !important;
    }

    .div-game-size-second{
        padding: .5rem !important;
    }

    .three-users-top-name{
        font-size: 16px;
    }

    .profile-img-div{
        position: relative;
        width: 100px;
        height: 100px;
        z-index: 4;
        margin: auto;
    }
}


