/**
 * CDS Platform 6.5.1 — affichage vidéo des événements.
 * La vidéo conserve ses proportions et l'image mise en avant sert de poster.
 */
.cdsmia-event-video,
.event-card video.event-thumb,
.cds94-events-first video.event-thumb,
.cds93-events-block video.event-thumb {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    background: #050505 !important;
    transform: none !important;
}

.cdsmia-fallback-image,
.event-card img.cdsmia-fallback-image,
.cds94-events-first img.cdsmia-fallback-image,
.cds93-events-block img.cdsmia-fallback-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    background: #050505 !important;
    transform: none !important;
}

body.single-cdsd_event .cdspel-prose > video.cdsmia-event-video,
body.single-cdsd_event video.cdspel-featured.cdsmia-event-video {
    display: block !important;
    width: min(100%, 540px) !important;
    height: auto !important;
    max-height: 80vh !important;
    aspect-ratio: 9 / 16;
    margin: 0 auto 24px !important;
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .32);
}

@media (max-width: 650px) {
    .cdsmia-event-video,
    .event-card video.event-thumb {
        min-height: 0 !important;
    }

    body.single-cdsd_event .cdspel-prose > video.cdsmia-event-video,
    body.single-cdsd_event video.cdspel-featured.cdsmia-event-video {
        max-height: 72vh !important;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cdsmia-event-video {
        scroll-behavior: auto;
    }
}
