/* Flavor Cache — YouTube Facade Styles */
.flavor-yt-facade {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    container-type: inline-size;
}

.flavor-yt-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.flavor-yt-facade:hover img {
    opacity: 0.85;
}

.flavor-yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    z-index: 2;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0.9;
}

.flavor-yt-facade:hover .flavor-yt-play {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.flavor-yt-play svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Responsive: smaller play button on small containers */
@container (max-width: 400px) {
    .flavor-yt-play {
        width: 48px;
        height: 34px;
    }
}

/* When iframe is loaded, remove facade styling */
.flavor-yt-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
