/* Click-to-load YouTube placeholder (see /assets/js/youtube-facade.js) */
.yt-facade,
.yt-facade-frame {
    display: block;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border: 0;
}

.yt-facade {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #1f1f1f;
    color: #fff;
    cursor: pointer;
}

    .yt-facade img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .yt-facade:focus-visible {
        outline: 3px solid #005fcc;
        outline-offset: 2px;
    }

.yt-facade-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    background: rgba(33, 33, 33, 0.85);
}

    .yt-facade-play::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-35%, -50%);
        border-style: solid;
        border-width: 11px 0 11px 19px;
        border-color: transparent transparent transparent #fff;
    }

.yt-facade:hover .yt-facade-play,
.yt-facade:focus-visible .yt-facade-play {
    background: #c00;
}

/* Playlist placeholders have no thumbnail, so they show a caption under the play button */
.yt-facade-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18%;
    padding: 0 16px;
    font-size: 1.1rem;
    text-align: center;
}

/* Fill the existing 16:9 padding-box wrapper on the testimony page */
.video-container .yt-facade,
.video-container .yt-facade-frame {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    height: 100%;
}
