/* YouTube player with Spanish subtitles overlay (yt-subs.js) */
.ytp{margin:24px 0}
.ytp-wrap{background:#000;border-radius:12px;overflow:hidden}
.ytp-box{position:relative;aspect-ratio:16/9;container-type:inline-size;background:#000}
.ytp-box iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ytp-play{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:#000;cursor:pointer}
.ytp-play img{width:100%;height:100%;object-fit:cover;opacity:.85;display:block;margin:0;border-radius:0}
.ytp-play:hover img{opacity:1}
.ytp-icon{position:absolute;left:50%;top:50%;width:72px;height:50px;margin:-25px 0 0 -36px;background:#e62117;border-radius:14px}
.ytp-icon::after{content:"";position:absolute;left:29px;top:15px;border-style:solid;border-width:10px 0 10px 18px;border-color:transparent transparent transparent #fff}
.ytp-cc{position:absolute;left:5%;right:5%;bottom:13%;text-align:center;pointer-events:none;z-index:2}
.ytp-cc span{display:inline-block;max-width:100%;padding:.2em .55em;background:rgba(0,0,0,.72);color:#fff;border-radius:6px;white-space:pre-line;font:500 16px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:clamp(13px,2.7cqw,34px)}
.ytp-bar{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;padding:6px 8px;background:#111}
.ytp-bar button{font:600 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#fff;background:#2a2a2a;border:1px solid #444;border-radius:6px;padding:7px 10px;cursor:pointer}
.ytp-bar button:hover{background:#3a3a3a}
.ytp-tg[aria-pressed="false"]{color:#bbb}
.ytp figcaption{font-size:14px;color:#666;margin-top:6px}
.ytp-wrap:fullscreen{display:flex;flex-direction:column;border-radius:0}
.ytp-wrap:fullscreen .ytp-box{flex:1;aspect-ratio:auto}
.ytp-wrap:-webkit-full-screen{display:flex;flex-direction:column;border-radius:0}
.ytp-wrap:-webkit-full-screen .ytp-box{flex:1;aspect-ratio:auto}
