/* YouTube Lazy Load Styles */
.zonYoutube-lazy {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    cursor: pointer;
}

.zonYoutube-lazy.zonYoutube-loaded {
    cursor: default;
}

.zonYoutube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.zonYoutube-lazy:hover .zonYoutube-thumbnail {
    opacity: 0.8;
}

.zonYoutube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.zonYoutube-lazy:hover .zonYoutube-play-button {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.zonYoutube-lazy iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* NoScript fallback */
.zonYoutube-lazy noscript iframe {
    display: block;
}

/* Hide thumbnail and play button when iframe is loaded */
.zonYoutube-loaded .zonYoutube-thumbnail,
.zonYoutube-loaded .zonYoutube-play-button {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .zonYoutube-play-button {
        width: 56px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .zonYoutube-play-button {
        width: 48px;
        height: 34px;
    }
}