/* Top Players Section Styles */
.top-players-section {
    margin-top: 60px;
    margin-bottom: 60px;
    position: relative;
}

.top-players-section .section-title {
    color: #ce422b;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-shadow: 0 0 15px rgba(206, 66, 43, 0.6);
    letter-spacing: 2px;
}

.top-players-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    /* Adding a mask for the bottom fade effect */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.top-players-bg {
    width: 100%;
    display: block;
    opacity: 1;
    /* Increased opacity since background is gone */
    filter: brightness(0.9) contrast(1.1);
}

.player-spot {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-spot:hover {
    transform: translate(-50%, -50%) scale(1.15) !important;
    z-index: 20;
}

.player-avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #ce422b;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(206, 66, 43, 0.9);
    background: #111;
    position: relative;
}

.player-avatar-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.player-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    margin-top: 15px;
    text-align: center;
    background: rgba(15, 15, 15, 0.85);
    padding: 8px 20px;
    border-radius: 12px;
    border: 1px solid rgba(206, 66, 43, 0.4);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.player-name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.player-rank {
    display: block;
    color: #ce422b;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Precise Positions based on character faces */
.spot-center {
    top: 22%;
    left: 48.5%;
    transform: translate(-50%, -50%);
}

.spot-right {
    top: 24%;
    left: 74.5%;
    transform: translate(-50%, -50%);
}

.spot-left {
    top: 25.5%;
    left: 21.5%;
    transform: translate(-50%, -50%);
}

/* Rank specific colors */
.spot-center .player-avatar-wrapper {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.spot-center .player-rank {
    color: #ffd700;
}

.spot-right .player-avatar-wrapper {
    border-color: #c0c0c0;
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.5);
}

.spot-right .player-rank {
    color: #c0c0c0;
}

.spot-left .player-avatar-wrapper {
    border-color: #cd7f32;
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.5);
}

.spot-left .player-rank {
    color: #cd7f32;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .player-avatar-wrapper {
        width: 70px;
        height: 70px;
        border-width: 3px;
    }

    .player-info {
        padding: 5px 15px;
    }
}

@media (max-width: 768px) {
    .top-players-section .section-title {
        font-size: 1.8rem;
    }

    .player-avatar-wrapper {
        width: 50px;
        height: 50px;
    }

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

    .player-rank {
        font-size: 0.7rem;
    }

    .player-info {
        padding: 3px 10px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .player-avatar-wrapper {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .player-info {
        display: none;
        /* Hide names on very small screens to avoid clutter */
    }
}