/* Click-to-load YouTube facade.
   Shows a locally hosted thumbnail so no request reaches Google until the
   visitor explicitly clicks play. */

.yt-facade {
    position: relative;
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    overflow: hidden;
    background-color: #000;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
}

/* Padding-box fallback keeps the 16:9 ratio on browsers without aspect-ratio. */
.yt-facade::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.yt-facade > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-facade__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    margin: -24px 0 0 -34px;
    background-color: rgba(23, 23, 23, 0.75);
    border-radius: 14%;
    transition: background-color 0.15s ease-out;
}

.yt-facade:hover .yt-facade__play,
.yt-facade:focus .yt-facade__play {
    background-color: #cc0000;
}

.yt-facade__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -6px;
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
}

.yt-facade__note {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 100%;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
}

.yt-facade:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
}
