/*
 * **Autor:** Lukasz Turczyn DFS
 * **Data:** 2026-09-30
 * **Opis:** Styles of the YouTube click-to-play facade (inc/class-youtube-facade.php, assets/js/youtube-facade.js):
 * a 16:9 frame with the local thumbnail and a large "Play video" button, the title and the note below. The markup is
 * phrasing content (spans), so a facade inside a <p> stays valid; every span is a block here. Works at 320 px; the
 * button is at least 48 px tall, has a visible focus ring and says what it does in words (never colour alone).
 */
.okred-yt{display:block;max-width:100%;margin:1.5rem 0}
.okred-yt__frame{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:#0b2545}
.okred-yt--portrait .okred-yt__frame{aspect-ratio:9/16;max-width:360px}
/* Two classes + element: outranks the theme's content-image rules (.post-content img, .single .entry-content figure img). */
.okred-yt .okred-yt__frame img.okred-yt__thumb{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;border-radius:0;box-shadow:none;object-fit:cover}
.okred-yt__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:.5rem;min-height:48px;max-width:calc(100% - 1.5rem);padding:.7rem 1.3rem .7rem 1rem;border:2px solid #fff;border-radius:999px;background:rgba(0,0,0,.8);color:#fff;font-family:inherit;font-size:1rem;font-weight:600;line-height:1.2;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.35)}
.okred-yt__play:hover{background:#004A99}
.okred-yt__play:focus{outline:none}
.okred-yt__play:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px #004A99}
.okred-yt__play[hidden]{display:none}
.okred-yt__icon{flex:0 0 auto;width:24px;height:24px;fill:currentColor}
.okred-yt__label{white-space:nowrap}
.okred-yt .okred-yt__frame .okred-yt__player{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;border:0}
.okred-yt__meta{display:block;margin-top:.6rem;font-size:.9rem;line-height:1.5;color:#495057}
.okred-yt__title{display:block;font-weight:600;color:#212529}
.okred-yt__note{display:block}
/* Blue, not the theme's orange content-link colour (2.9:1 on white): AA contrast for small text. !important because
   the theme's ".post-content a:not(...):not(...):not(...)" outranks any reasonable component selector. */
.okred-yt .okred-yt__privacy,.okred-yt .okred-yt__link{color:#004A99 !important;text-decoration:underline}
.okred-yt__link{display:inline-block;margin-top:.25rem;font-weight:600}
.okred-yt--link .okred-yt__meta{margin-top:0;padding:1rem;border:1px solid #dee2e6;border-radius:10px}
/* A facade that ended up inside the WordPress embed wrapper: drop the wrapper's aspect-ratio spacer. */
.wp-block-embed__wrapper:has(>.okred-yt)::before{content:none;display:none}
@media (max-width:360px){.okred-yt__play{padding:.6rem 1rem .6rem .8rem;font-size:.95rem}}
