.live-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 8px 2px #00ff00;
    animation: blink 0.6s infinite alternate;
    vertical-align: middle;
}

@keyframes blink {
    0% {
        opacity: 1;
        box-shadow: 0 0 2px 1px mediumseagreen;
    }

    100% {
        opacity: 0;
        /* box-shadow: 0 0 2px 1px  darkgreen; */
    }
}

.live-players ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.live-players ul li {
    display: flex;
    align-items: center;
    /* Ensure vertical alignment */
    justify-content: flex-start;
    gap: 12px;
    border: 1px solid lightgrey;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.live-players .profile {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
    /* Prevent shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    /* Optional: fallback bg */
}

.live-players .profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the circle */
    object-position: center;
    display: block;
}

.live-players .player-name,
.live-players .game-amount {
    display: flex;
    flex-direction: column;
}

.card.live-players {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.card.live-players .card-body {
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
    scroll-behavior: smooth;           /* Smooth scrolling on desktop */
}

@media (max-width: 576px) {
    .card.live-players .card-body {
        max-height: 50vh !important; /* Increased height for mobile screens */
    }
    .card.live-players {
        max-width: 100%;
        min-width: 0;
    }

    .live-players .profile {
        width: 40px;
        height: 40px;
    }

    .live-players .player-name .name {
        font-size: 1rem;
    }

    .live-players .game-amount,
    .live-players .winning-amount {
        font-size: 0.95rem;
        margin-left: 0 !important;
    }

    .live-players ul li {
        gap: 8px;
    }
}