/* Top Winners Container */
.top-winners-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* TOP Section */
.top-section {
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    padding: 25px 20px;
    border-bottom: 3px solid #ffd700;
}

.top-header {
    text-align: center;
    margin-bottom: 20px;
}

.top-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
    margin: 0;
    letter-spacing: 8px;
    background: linear-gradient(180deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-subtitle {
    font-size: 1rem;
    color: #ffdd57;
    margin: 5px 0 0 0;
    font-weight: 600;
    line-height: 1.4;
}

.top-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.top-game-item {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.top-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    border-color: #ff8c00;
}

.top-game-image {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.top-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-game-name {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-game-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* WIN LIST Section */
.win-list-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 0;
}

.win-list-header {
    background: linear-gradient(90deg, #dc3545 0%, #a30c1b 100%);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    padding: 12px 0;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-top: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
}

.win-list-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

/* Custom scrollbar */
.win-list-items::-webkit-scrollbar {
    width: 6px;
}

.win-list-items::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.win-list-items::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dc3545 0%, #a30c1b 100%);
    border-radius: 3px;
}

.win-list-items::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff3b3b 0%, #dc3545 100%);
}

.win-list-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.win-list-item.even {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.1) 0%, rgba(163, 12, 27, 0.1) 100%);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.win-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

.win-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffd700;
    flex-shrink: 0;
    margin-right: 12px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.win-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.win-details {
    flex: 1;
    overflow: hidden;
}

.win-username {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win-game {
    font-size: 0.85rem;
    color: #ffdd57;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin-left: 10px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .top-title {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .top-games {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .top-game-image {
        width: 60px;
        height: 60px;
    }

    .top-game-name {
        font-size: 0.75rem;
    }

    .top-game-amount {
        font-size: 1rem;
    }

    .win-list-item {
        padding: 10px;
    }

    .win-avatar {
        width: 45px;
        height: 45px;
    }

    .win-username, .win-game {
        font-size: 0.85rem;
    }

    .win-amount {
        font-size: 1rem;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-game-item {
    animation: slideIn 0.5s ease forwards;
}

.win-list-item {
    animation: slideIn 0.5s ease forwards;
}
