/* Click-to-play YouTube facade — see js/yt-facade.js */
.yt-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: block;
}
.yt-facade-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.yt-facade-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 0, 0, 0.86);
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.yt-facade-btn::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 4px;
}
.yt-facade:hover .yt-facade-btn,
.yt-facade:focus-visible .yt-facade-btn {
    background: #f00;
    transform: translate(-50%, -50%) scale(1.08);
}
.yt-facade:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}
.yt-facade-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 26px 12px 11px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}
.yt-facade-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
@media (prefers-reduced-motion: reduce) {
    .yt-facade-btn { transition: none; }
    .yt-facade:hover .yt-facade-btn { transform: translate(-50%, -50%); }
}
