/* Scoped preview-only CM styles; existing theme tokens and sections unchanged. */
.tc-film{padding:42px 24px;background:var(--paper,#fbfaf5)}
.tc-film__inner{max-width:980px;margin:auto}
.tc-film__screen{display:block;position:relative;width:100%;padding:0;border:0;border-radius:12px;overflow:hidden;background:#fbfaf5;cursor:pointer;aspect-ratio:16/9}
.tc-film video{display:block;width:100%;height:100%;object-fit:contain}
.tc-film__hint{position:absolute;right:12px;bottom:12px;padding:6px 12px;border-radius:30px;background:rgba(20,45,35,.85);color:white;font:500 13px/1.5 var(--font-body,sans-serif)}
.tc-film__actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:18px}
.tc-film__actions button{min-height:44px;padding:10px 20px;border:1px solid var(--teal,#287b6d);border-radius:8px;background:transparent;color:var(--ink,#26302b);font:700 15px/1.5 var(--font-body,sans-serif);cursor:pointer}
.tc-film__actions #filmWatch{background:var(--teal,#287b6d);color:#fff}
.tc-film__status{margin:12px 0 0;text-align:center;color:var(--muted,#566058);font-size:13px;line-height:1.7}
.tc-film-dialog{width:min(1060px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:12px;background:#fbfaf5;color:var(--ink,#26302b);overflow:auto}
.tc-film-dialog::backdrop{background:rgba(0,0,0,.78)}
.tc-film-dialog__head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px}
.tc-film-dialog__head h2{font:700 17px/1.5 var(--font-body,sans-serif);margin:0}
.tc-film-dialog__head button{min-height:44px;padding:8px 12px;border:1px solid currentColor;border-radius:6px;background:transparent;font:inherit;cursor:pointer}
.tc-film-dialog video{display:block;width:100%;max-height:calc(100dvh - 110px);background:#111}
.tc-film-modal-open{overflow:hidden}
.tc-film button:focus-visible,.tc-film-dialog button:focus-visible{outline:3px solid #ce8a20;outline-offset:3px}
@media(max-width:600px){.tc-film{padding:28px 16px}.tc-film__screen{border-radius:8px}.tc-film__hint{right:6px;bottom:6px;font-size:11px;padding:4px 8px}.tc-film__actions{gap:8px}.tc-film__actions button{padding:10px 12px;font-size:13px}.tc-film-dialog__head{padding:8px}.tc-film-dialog__head h2{font-size:14px}}
/* Latest correction: occupy the existing FV image, with no additional section. */
.fv__frame.fv__frame--film{aspect-ratio:16/9;border-radius:12px;clip-path:none;mask:none;background:#fbfaf5}
.fv__frame--film .tc-film__screen{height:100%;border-radius:inherit}
.fv__frame--film video{display:block;width:100%;height:100%;object-fit:contain}
.fv__visual .tc-film__actions{position:relative;z-index:7;justify-content:flex-end;margin-top:12px;gap:8px}
.fv__visual .tc-film__actions button{font-size:13px;padding:8px 12px;min-height:44px}
.fv__visual .tc-film__status{font-size:12px;margin:8px 0 0;text-align:right}
.tc-film__actions #cmReplay{background:var(--teal,#287b6d);color:white}
.tc-film-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#111;color:#fff}
.tc-film-dialog[open]{display:flex;flex-direction:column}
.tc-film-dialog__head{flex:0 0 60px;box-sizing:border-box;padding:8px 16px;background:#111}
.tc-film-dialog__head h2{font-size:14px}
.tc-film-dialog__head button{min-width:44px;min-height:44px;padding:6px 10px;font-size:13px}
.tc-film-dialog video{flex:1;min-height:0;width:100%;height:calc(100dvh - 60px);max-height:none;object-fit:contain;background:#111}
@media(max-width:600px){.fv__frame.fv__frame--film{aspect-ratio:16/9;border-radius:8px}.fv__visual .tc-film__actions{justify-content:flex-end}.tc-film-dialog__head{padding:8px}.fv__visual .tc-film__status{font-size:11px}}
/* Keep the close control legible against the fullscreen dark player. */
#filmClose{background:#fff;color:#26342e;border:1px solid #ccd6d2;min-width:44px;min-height:44px}
#filmClose:hover{background:#edf3ef}
#filmClose:focus-visible{outline:3px solid #ffcf66;outline-offset:3px}
/* Latest user instruction: one explicit CM entry, no inline tap affordance. */
.fv__frame--film .tc-film__screen{cursor:default}
.tc-film__error{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Safari: exclude percent/intrinsic video sizing from the 16:9 frame height. */
.fv__frame--film .tc-film__screen{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
.fv__frame--film video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
/* User-requested compact close control, matching the modal title text size. */
#filmClose{font-size:14px;line-height:1.5;padding:4px 6px;min-width:0;min-height:0;width:auto;height:auto}

/* Same-film animated image remains visible when silent video autoplay is denied. */
.fv__frame--film .tc-film__fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;opacity:1}
.fv__frame--film video{opacity:0;pointer-events:none}
.fv__frame--film .is-video-playing video{opacity:1}
.fv__frame--film .is-video-playing .tc-film__fallback{opacity:0}
.fv__frame--film .tc-film__screen{background:#fbfaf5 url('../assets/video/v5/poster.jpg') center/contain no-repeat}
