/* WritingNepal 8.48: YouTube video card in Catches (inc/youtube-cards.php). */
.wn-yt{ border:1px solid #E7E0D2; border-radius:16px; overflow:hidden; background:#fff; margin:10px 0 4px; max-width:640px; }
.wn-yt.is-short{ max-width:340px; }
.wn-yt-play{ position:relative; display:block; width:100%; aspect-ratio:16/9; padding:0; border:0; margin:0; background:#120A08; cursor:pointer; overflow:hidden; }
.wn-yt.is-short .wn-yt-play, .wn-yt.is-short .wn-yt-frame{ aspect-ratio:9/16; }
.wn-yt-play img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease; }
.wn-yt-play:hover img{ transform:scale(1.02); }
.wn-yt-btn{ position:absolute; left:50%; top:50%; width:68px; height:48px; margin:-24px 0 0 -34px; border-radius:14px; background:#FF0033; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(0,0,0,.35); transition:transform .15s ease; }
.wn-yt-play:hover .wn-yt-btn, .wn-yt-play:focus-visible .wn-yt-btn{ transform:scale(1.08); }
.wn-yt-play:focus-visible{ outline:3px solid #F7C600; outline-offset:-3px; }
.wn-yt-frame{ display:block; width:100%; aspect-ratio:16/9; border:0; background:#000; }
.wn-yt-meta{ display:flex; align-items:center; gap:12px; padding:10px 14px; }
.wn-yt-t{ flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.wn-yt-t strong{ font-size:.95rem; line-height:1.35; color:#120A08; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.wn-yt-t span{ font-size:.78rem; color:#6b6359; }
.wn-yt-out{ flex:none; font-size:.78rem; font-weight:600; color:#5A5247; text-decoration:underline; text-underline-offset:2px; white-space:nowrap; }
@media (max-width:480px){ .wn-yt-meta{ flex-wrap:wrap; } }
[data-theme="dark"] .wn-yt{ background:#1A1512; border-color:#2A2420; }
[data-theme="dark"] .wn-yt-t strong{ color:#F4EEE4; }
[data-theme="dark"] .wn-yt-t span, [data-theme="dark"] .wn-yt-out{ color:#B8AEA2; }
