/**
 * Styles pour la protection DRM
 * Optimisé pour le test DRM au moment du play
 */

 .drm-protection-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Conteneur de test DRM */
.drm-test-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 6px;
    overflow: hidden;
    z-index: 999; /* S'assurer qu'il est au-dessus de l'iframe Bunny */
}

#drm-test-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Conteneur de la vraie vidéo */
.drm-real-video-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Loading spinner */
.drm-test-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 1000;
}

.drm-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: drm-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes drm-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Message d'erreur */
.drm-test-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    z-index: 1001;
    padding: 20px;
    text-align: center;
}

.drm-error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.drm-error-message {
    max-width: 80%;
    font-size: 16px;
    line-height: 1.5;
}

/* Message de blocage */
.drm-protection-blocked-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .drm-error-message {
        font-size: 14px;
    }
}