/**
 * YouTube Facade Styles
 * 
 * Styling for lazy-loaded YouTube embeds.
 * 
 * @package YGT_2026
 * @version 1.0.0
 */

/* Facade Container */
.yt-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin: 20px 0;
}

/* Thumbnail — YouTube's maxresdefault keeps cinematic videos
   (wider than 16:9) letterboxed with black top/bottom bars.
   Scaling up 1.15x zooms past those bars and crops tiny slivers
   off the sides; normal 16:9 content stays near-identical. */
.yt-facade__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
    transform: scale(1.15);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.yt-facade:hover .yt-facade__thumb {
    transform: scale(1.18);
    filter: brightness(0.85);
}

/* Play Button */
.yt-facade__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.yt-facade__play svg {
    width: 68px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.yt-facade:hover .yt-facade__play {
    transform: translate(-50%, -50%) scale(1.1);
}

.yt-facade:hover .yt-facade__play-bg {
    fill: #ff0000;
}

/* Loaded state (iframe inside) */
.yt-facade--loaded {
    cursor: default;
}

.yt-facade--loaded iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 600px) {
    .yt-facade {
        border-radius: 8px;
        margin: 15px 0;
    }

    .yt-facade__play svg {
        width: 54px;
        height: 38px;
    }

    .yt-facade--loaded iframe {
        border-radius: 8px;
    }
}