.chero-media>.chero-poster,.chero-media>.chero-loop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;}
.chero-loop{opacity:0;transition:opacity .4s ease;}
.chero-loop.ready{opacity:1;}
.chero.playing .chero-poster,.chero.playing .chero-loop{visibility:hidden;}
.chero-play[hidden]{display:none;}
@media(max-width:768px){.chero-media>.chero-poster,.chero-media>.chero-loop{object-position:68% center;}}
@media(prefers-reduced-motion:reduce){.chero-loop{display:none;}}
.chero-modal{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(3,20,32,.78);animation:cheroFade .25s ease;}
.chero-modal-box{position:relative;width:min(1080px,100%);}
.chero-modal-frame{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000;box-shadow:0 24px 60px rgba(0,0,0,.45);}
.chero-modal-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
/* 擋住 YouTube 嵌入的外連點擊（2026-11-09，同 .yt-facade） */
.chero-modal-frame .yt-mask{position:absolute;z-index:2;background:transparent;cursor:default;}
.chero-modal-frame .yt-mask-top{top:0;left:0;right:0;height:64px;}
.chero-modal-frame .yt-mask-logo{right:0;bottom:0;width:160px;max-width:35%;height:66px;}
.chero-modal-frame .yt-mask-link{left:0;bottom:0;width:110px;max-width:25%;height:66px;}
.chero-modal-x{position:absolute;top:-52px;right:0;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#032639;font-size:28px;line-height:1;cursor:pointer;}
.chero-modal-x:focus-visible{outline:3px solid #5aa9ff;outline-offset:2px;}
@keyframes cheroFade{from{opacity:0}to{opacity:1}}
@media(max-width:600px){.chero-modal{padding:12px;}.chero-modal-frame{border-radius:10px;}}
