/* YouTube Lazy Load Facade Styles */

.youtube-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.youtube-facade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.youtube-facade:hover img {
    opacity: 0.8;
}

/* Play Button Overlay */
.youtube-facade::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 1;
}

.youtube-facade::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #fff;
    z-index: 2;
}

.youtube-facade:hover::before {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Iframe styles when loaded */
.youtube-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Hide play button when video is playing */
.youtube-facade.playing::before,
.youtube-facade.playing::after {
    display: none !important;
}

.youtube-facade.playing {
    cursor: default;
}