/**
 * YouTube facade — poster + play button that swaps in the iframe on click.
 * The container is a Bootstrap `.ratio.ratio-16x9`, which already makes the
 * direct child fill the box; these rules style the poster and play glyph.
 */

.dh-ytf-btn {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.dh-ytf-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dh-ytf-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    margin: -24px 0 0 -34px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 12px;
    transition: background-color 0.15s ease;
    pointer-events: none;
}

.dh-ytf-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 19px;
    border-color: transparent transparent transparent #fff;
}

.dh-ytf-btn:hover .dh-ytf-play,
.dh-ytf-btn:focus-visible .dh-ytf-play {
    background: #f00;
}

.dh-ytf-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

.dh-ytf-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
