/* ========== Dailymotion =========== */

#videoDailymotionPlayer {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 900px;
    position: relative;
}

#videoDailymotionPlayer #videoScreen.loading
{
    padding: 0;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Effet shimmer */
#videoDailymotionPlayer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent);
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
    from {
        background-position: -200% 0;
    }

    to {
        background-position: 200% 0;
    }
}

/* Spinner au centre */
#videoDailymotionPlayer::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid rgb(37 33 34);
    border-top-color: rgb(255 106 0);
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Optionnel : un “play pulse” animé */
#videoDailymotionPlayer .pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .3);
    animation: pulse 1.8s ease-out infinite;
}

#videoDailymotionPlayer .notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 60px;    
}

.list-group-item.article-views {
    background: transparent;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

#videoDailymotionPlayer.loaded::before,
#videoDailymotionPlayer.loaded::after,
#videoDailymotionPlayer.loaded .pulse,
#videoDailymotionPlayer.loaded .notice {
    animation: none !important;
    opacity: 0;
    pointer-events: none;
}


/* ========== Dailymotion =========== */