.a3w-lazy-youtube {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
    background: #000;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
}
.a3w-lazy-youtube.loaded {
    padding-top: 0;
    height: auto;
}
.a3w-lazy-youtube.loaded > iframe {
    height: 100%;
}

.a3w-lazy-youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.a3w-lazy-youtube-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.a3w-lazy-youtube-play > svg {
    width: 35px;
    height: 35px;
}

.a3w-lazy-youtube.loading {
    position: relative;
    background: #121212;
}

.a3w-lazy-youtube.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Animation de rotation */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Désactiver les interactions pendant le chargement */
.a3w-lazy-youtube.loading button {
    display: none; /* Cache le bouton pendant le chargement */
}
