/**
 * IRDE – CSS (version corrigée 16/01/2026)
 */

/* Wrapper vidéo */
.irde-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
}

/* Vidéo */
.irde-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay de chargement */
.irde-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none; /* IMPORTANT : ne bloque plus la vidéo */
}

/* Spinner */
.irde-loading-overlay::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: irde-spin 0.8s linear infinite;
}

@keyframes irde-spin {
    to { transform: rotate(360deg); }
}

/* Masquage du spinner */
.irde-hidden {
    display: none !important;
}

/* Cellule URL dans l’admin */
.irde-url-cell {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
