/* All component styles are scoped. No body, :root or WordPress theme overrides. */
.toa-film-page{--tf-bronze:#b29777;--tf-title:#d7cbbb;--tf-border:#342b23;--tf-muted:#9e9588;background:#000;color:var(--tf-title);font-family:Arial,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;width:100%;max-width:none;margin:0;padding:0 0 30px;line-height:1.5;color-scheme:dark}
.toa-film-page *,.toa-film-page *::before,.toa-film-page *::after{box-sizing:border-box}
.toa-film-page [hidden]{display:none!important}
.toa-film-page button{font:inherit;color:inherit;background:none;border:0;border-radius:0;box-shadow:none;text-transform:none;cursor:pointer;margin:0;padding:0;letter-spacing:inherit}
.toa-film-page button::before,.toa-film-page button::after{content:none}
.toa-film-page :focus-visible{outline:1px solid #d2b896;outline-offset:5px}
.toa-film-page .tf-shell{
    width:min(1180px,calc(100% - 64px));
    margin-inline:auto;
}
.toa-film-page .tf-mast{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tf-border);padding:22px 0;color:var(--tf-bronze);font-size:9px;letter-spacing:.16em}
.toa-film-page .tf-mast>span:first-child{font:25px Georgia,serif;letter-spacing:.13em}
.toa-film-page .tf-mag{font:8px Arial,sans-serif;letter-spacing:.16em;margin-left:8px}
.toa-film-page .tf-watch{max-width:840px;margin:60px auto 0;scroll-margin-top:24px;outline:none}
.toa-film-page .tf-eyebrow{display:flex;justify-content:space-between;color:var(--tf-bronze);font-size:9px;letter-spacing:.18em;margin-bottom:12px}
.toa-film-page .tf-player{position:relative;aspect-ratio:16/9;background:#191613;border:1px solid var(--tf-border);overflow:hidden}
.toa-film-page .tf-player video,.toa-film-page .tf-player iframe{display:block;width:100%;height:100%;border:0;object-fit:contain}
.toa-film-page .tf-poster{display:block;position:relative;width:100%;height:100%;text-align:left;background:linear-gradient(120deg,#1a1714,#453a2f)}
.toa-film-page .tf-poster img{width:100%;height:100%;object-fit:contain;filter:brightness(.75) saturate(.6)}
.toa-film-page .tf-play{position:absolute;right:22px;bottom:22px;border:1px solid #bfa38299;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;background:#17120fc9;color:#e5c9a4;font-size:16px;padding-left:3px}
.toa-film-page .tf-player-note{position:absolute;left:18px;bottom:18px;font-size:9px;letter-spacing:.14em;color:#fff;background:#0009;padding:5px 8px}
.toa-film-page .tf-caption{background:#0d0c0a;border:1px solid var(--tf-border);border-top:0;padding:18px 22px 0}
.toa-film-page .tf-title{margin:0;color:var(--tf-title);font-size:clamp(18px,2.1vw,27px);font-weight:400;letter-spacing:-.025em;line-height:1.5}
.toa-film-page .tf-actions{display:flex;justify-content:flex-end;gap:24px;margin:12px 0 0}
.toa-film-page .tf-actions button{display:flex;align-items:center;gap:7px;min-height:44px;font-size:10px;letter-spacing:.12em;color:var(--tf-bronze)}
.toa-film-page .tf-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linejoin:round}
.toa-film-page .tf-actions button[aria-pressed=true]{color:#f3ddbc}
.toa-film-page .tf-actions button[aria-pressed=true] svg{fill:#b2977755}
.toa-film-page .tf-comment-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:49px;font-size:10px;letter-spacing:.12em;color:var(--tf-bronze);text-align:left}
.toa-film-page .tf-comment-count{margin-left:9px;color:var(--tf-muted)}
.toa-film-page [data-expand]{font-size:21px;font-weight:300}
.toa-film-page .tf-comment-body{border-top:1px solid var(--tf-border);padding:18px 0 24px;font-size:12px}
.toa-film-page .tf-comment-input{display:block;color:var(--tf-muted)}
.toa-film-page textarea{width:100%;display:block;resize:vertical;background:transparent;border:0;border-bottom:1px solid var(--tf-border);border-radius:0;color:var(--tf-title);padding:10px 0;font:12px/1.6 Arial,sans-serif}
.toa-film-page .tf-comment-body article{padding-top:22px}
.toa-film-page .tf-comment-body article p{margin:12px 0}
.toa-film-page .tf-comment-body small{color:var(--tf-muted)}
.toa-film-page .tf-library{margin-top:52px;padding-bottom:25px;border-bottom:1px solid var(--tf-border)}
.toa-film-page .tf-total,.toa-film-page .tf-sort{font-size:9px;letter-spacing:.1em;color:var(--tf-muted)}
.toa-film-page .tf-filter-row{display:flex;align-items:center;border-bottom:1px solid var(--tf-border);margin:0;min-width:0}
.toa-film-page .tf-filters{display:flex;align-items:center;flex:1 1 0;min-width:0;gap:22px;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
.toa-film-page .tf-filters button{position:relative;font-size:10px;letter-spacing:.12em;min-height:44px;flex:0 0 auto;white-space:nowrap;color:var(--tf-muted);border-bottom:1px solid transparent}
.toa-film-page .tf-filters button[aria-pressed=true]{color:#dfc2a0;border-color:var(--tf-bronze)}
.toa-film-page .tf-sort{white-space:nowrap}
.toa-film-page .tf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px;opacity:1;transition:opacity 120ms ease}
.toa-film-page .tf-grid.is-fading{opacity:0;pointer-events:none}
.toa-film-page .tf-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(hover:hover){.toa-film-page .tf-poster:hover .tf-play{background:#816344}.toa-film-page .tf-actions button:hover{color:#e9d5b9}}

/* Pass 2: a landscape catalogue; top player styling above is unchanged. */
.toa-film-page .tf-search{display:flex;align-items:center;gap:10px;margin:10px 0 8px;color:var(--tf-bronze);font-size:9px;letter-spacing:.1em}
.toa-film-page .tf-search input{font:11px Arial,sans-serif;flex:1;min-width:0;min-height:44px;border:0;border-bottom:1px solid var(--tf-border);border-radius:0;background:transparent;color:var(--tf-title);padding:8px 3px}
.toa-film-page .tf-search input::placeholder{color:var(--tf-muted)}
.toa-film-page .tf-list-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin:8px 0 24px}
.toa-film-page .tf-list-controls{display:flex;align-items:center;flex-shrink:0;gap:8px}
.toa-film-page .tf-search-toggle,.toa-film-page .tf-random{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;min-height:44px;color:var(--tf-bronze)}
.toa-film-page .tf-search-toggle svg,.toa-film-page .tf-random svg{display:block;flex-shrink:0;width:18px;height:18px}
/* Match the existing PAGES / WARDROBE search control. */
.toa-film-page .tf-search-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.2}
.toa-film-page .tf-search-toggle[aria-expanded=true]{color:#ead7bd;background:#b2977710}
.toa-film-page .tf-player-tools{display:flex;justify-content:flex-end;margin-top:8px}
@media(hover:hover){.toa-film-page .tf-search-toggle:hover,.toa-film-page .tf-random:hover{color:#ead7bd;background:#b2977710}}
@media(min-width:601px) and (max-width:900px){.toa-film-page .tf-watch{margin-top:56px}.toa-film-page .tf-list-header{margin-bottom:22px}}
@media(max-width:600px){.toa-film-page .tf-list-header{margin-bottom:20px}}
.toa-film-page .tf-card{display:block;width:100%;text-align:left;min-width:0;padding-bottom:12px;border-bottom:1px solid #342b2370;transition:transform 240ms ease}
.toa-film-page .tf-cover{display:block;aspect-ratio:16/9;background:#10100e;overflow:hidden;border:1px solid #ffffff10}
.toa-film-page .tf-cover img{display:block;width:100%;height:100%;object-fit:contain}
.toa-film-page .tf-card-info{display:grid;grid-template-columns:1fr auto;align-content:start;padding-top:13px;min-width:0}
.toa-film-page .tf-card-top{grid-column:1/-1;font-size:9px;letter-spacing:.12em;color:var(--tf-muted);margin-bottom:6px}
.toa-film-page .tf-new{color:#cfac83}
.toa-film-page .tf-card-meta{grid-column:1;font-size:9px;letter-spacing:.1em;color:var(--tf-bronze)}
.toa-film-page .tf-card-title{grid-column:1/-1;grid-row:3;font-size:14px;line-height:1.6;margin-top:6px;color:var(--tf-title);overflow-wrap:anywhere}
.toa-film-page .tf-duration{grid-column:2;grid-row:2;font-size:10px;color:var(--tf-muted)}
.toa-film-page .tf-selected{grid-column:1/-1;min-height:19px;margin-top:6px;font-size:8px;letter-spacing:.12em;color:var(--tf-bronze)}
.toa-film-page .tf-secondary{grid-column:1/-1;font-size:9px;color:var(--tf-muted);opacity:0;transition:opacity 240ms ease;line-height:1.6}
.toa-film-page .tf-card[aria-current=true]{border-bottom-color:var(--tf-bronze)}
.toa-film-page .tf-card:focus-visible .tf-secondary{opacity:1}
.toa-film-page .tf-more-row{display:flex;flex-direction:column;align-items:center;gap:7px;padding:30px 0 10px}
.toa-film-page .tf-more,.toa-film-page .tf-reset{min-height:44px;font-size:10px;letter-spacing:.16em;color:var(--tf-bronze)}
.toa-film-page .tf-empty{text-align:center;padding:35px 0;color:var(--tf-muted);font-size:14px}
@media(hover:hover) and (min-width:601px){.toa-film-page .tf-card:hover{transform:translateY(-3px)}.toa-film-page .tf-card:hover .tf-secondary{opacity:1}}
/* The library border is the only ending line; keep separators above the final row. */
@media(min-width:901px){.toa-film-page .tf-card:nth-child(3n+1):nth-last-child(-n+3),.toa-film-page .tf-card:nth-child(3n+1):nth-last-child(-n+3)~.tf-card{border-bottom:0}}
@media(min-width:601px) and (max-width:900px){.toa-film-page .tf-card:nth-child(2n+1):nth-last-child(-n+2),.toa-film-page .tf-card:nth-child(2n+1):nth-last-child(-n+2)~.tf-card{border-bottom:0}}
@media(max-width:900px){.toa-film-page .tf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.toa-film-page .tf-shell{width:calc(100% - 48px)}}
@media(max-width:600px){
.toa-film-page .tf-shell{width:calc(100% - 32px)}.toa-film-page .tf-mast{padding:18px 0}.toa-film-page .tf-mast>span:last-child{font-size:7px}.toa-film-page .tf-watch{margin-top:47px}.toa-film-page .tf-caption{padding:13px 14px 0}.toa-film-page .tf-actions{gap:20px;margin-top:8px}.toa-film-page .tf-library{margin-top:76px}
.toa-film-page .tf-filters{gap:24px}.toa-film-page .tf-filters button{font-size:9px}.toa-film-page .tf-search input{font-size:16px}
.toa-film-page .tf-grid{grid-template-columns:1fr;gap:0}
.toa-film-page .tf-card{display:block;padding:17px 0}
.toa-film-page .tf-card:first-child{padding-top:0}
.toa-film-page .tf-card:last-child{border-bottom:0}
.toa-film-page .tf-card-info{padding-top:0}.toa-film-page .tf-card-top{font-size:8px;margin-bottom:4px}.toa-film-page .tf-card-meta{font-size:8px}.toa-film-page .tf-card-title{font-size:12px;line-height:1.5;margin-top:5px}.toa-film-page .tf-duration{grid-row:4;grid-column:1;margin-top:7px;font-size:9px}.toa-film-page .tf-selected{grid-row:5;min-height:0;font-size:7px;margin-top:4px}.toa-film-page .tf-secondary{display:none}
.toa-film-page .tf-player-note{font-size:7px;left:10px;bottom:10px}.toa-film-page .tf-play{width:39px;height:39px;right:14px;bottom:14px}
}
@media(prefers-reduced-motion:reduce){.toa-film-page *{transition:none!important;scroll-behavior:auto!important}}
/* Production-only states. The approved catalogue layout above is preserved. */
.toa-film-page .tf-caption{padding-bottom:18px}
.toa-film-page button:disabled{opacity:.45;cursor:default}
.toa-film-page .tf-error{text-align:center;padding:20px 0;color:var(--tf-title);font-size:13px}
.toa-film-page .tf-retry{min-height:44px;font-size:10px;letter-spacing:.12em;color:var(--tf-bronze)}
.toa-film-page .tf-playback-error{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px;gap:12px;text-align:center;font-size:13px}
.toa-film-page .tf-playback-error p{margin:0}
.toa-film-page .tf-playback-error a,.toa-film-page .tf-playback-error button{color:var(--tf-bronze);min-height:36px}
.toa-film-page.tf-compact .tf-shell{width:min(840px,calc(100% - 40px))}
.toa-film-page.tf-compact .tf-watch{margin-top:0}
/* =========================================================
   FILM PAGE — FULL WIDTH
   ========================================================= */

.toa-film-page:not(.tf-compact){
    padding-bottom:calc(100px + env(safe-area-inset-bottom, 0px));
    position:relative !important;

    width:100vw !important;
    max-width:none !important;

    left:50% !important;
    transform:translateX(-50%) !important;

    margin-left:0 !important;
    margin-right:0 !important;

    overflow-x:clip;
}

.toa-film-page:not(.tf-compact) .tf-shell{
    width:min(1180px, calc(100vw - 64px)) !important;
    max-width:none !important;

    margin-left:auto !important;
    margin-right:auto !important;
}

body:has(.toa-film-page:not(.tf-compact)){
    overflow-x:clip;
}

@media(max-width:900px){
    .toa-film-page:not(.tf-compact) .tf-shell{
        width:calc(100vw - 48px) !important;
    }
}

@media(max-width:600px){
    .toa-film-page:not(.tf-compact) .tf-shell{
        width:calc(100vw - 32px) !important;
    }
}
/* Film 페이지의 WordPress 기본 페이지 제목만 숨김 */
body:has(.toa-film-page:not(.tf-compact)) .wp-block-post-title,
body:has(.toa-film-page:not(.tf-compact)) .entry-title {
    display: none !important;
}
/* 1.1: idle screen, undimmed media and inline account actions. */
.toa-film-page .tf-mast>span:first-child{font:20px Georgia,serif;letter-spacing:.13em}
.toa-film-page .tf-poster img{filter:none}
.toa-film-page .tf-standby{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:radial-gradient(ellipse at center,#181614,#060606 75%);color:var(--tf-bronze);text-align:center;padding:20px}
.toa-film-page .tf-standby>span{font:clamp(18px,3vw,30px) Georgia,serif;letter-spacing:.22em}
.toa-film-page .tf-standby p{font-size:12px;color:var(--tf-muted);margin-top:20px}
.toa-film-page .tf-card-select{display:block;width:100%;text-align:left}
.toa-film-page .tf-actions{flex-wrap:wrap;justify-content:flex-start;gap:4px 18px;margin:8px 0}
.toa-film-page .tf-actions button{font-size:10px;min-height:44px}
.toa-film-page .tf-engagement{border:1px solid var(--tf-border);margin-top:-1px;background:#0d0c0a;padding:0 22px 16px}
.toa-film-page .tf-inline-panel{border-top:1px solid var(--tf-border);padding:16px 0;font-size:12px}
.toa-film-page .tf-inline-panel a{color:var(--tf-bronze)}
.toa-film-page .tf-inline-submit{min-height:44px;font-size:10px;letter-spacing:.1em;color:var(--tf-bronze)}
.toa-film-page .tf-action-status{font-size:12px;color:var(--tf-bronze);overflow-wrap:anywhere;margin:0}
.toa-film-page .tf-comment-list article{border-top:1px solid var(--tf-border);padding:16px 0}
.toa-film-page .tf-comment-list p{white-space:pre-wrap;overflow-wrap:anywhere}
.toa-film-page .tf-comment-list small{color:var(--tf-muted)}
.toa-film-page .tf-card:focus-within .tf-secondary{opacity:1}
@media(max-width:600px){.toa-film-page .tf-card-select{display:grid;grid-template-columns:43% minmax(0,1fr);gap:14px;align-items:start}.toa-film-page .tf-engagement{padding:0 14px 14px}}
/* 1.3: inline, expandable comments. Shared actions for edit/delete/reply. */
.toa-film-page .tf-actions{justify-content:flex-end}
.toa-film-page .tf-comments-preview{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:6px 12px;text-align:left;padding:14px 16px;margin:8px 0 12px;background:#191713;border:1px solid var(--tf-border);border-radius:8px;color:var(--tf-title)}
.toa-film-page .tf-comments-preview strong{font-size:11px;letter-spacing:.1em;color:var(--tf-bronze)}
.toa-film-page .tf-preview-text{grid-row:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;max-width:100%}
.toa-film-page .tf-comments-preview>span:last-child{grid-column:2;grid-row:1/3;align-self:center}
.toa-film-page .tf-comments-expanded{padding:4px 0 8px;color:var(--tf-title)}
.toa-film-page .tf-comments-expanded textarea{width:100%;box-sizing:border-box;background:transparent;color:#ddd5c8;border:0;border-bottom:1px solid #44392e;border-radius:0;min-height:72px;padding:10px 0;font:14px/1.6 Arial,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;resize:vertical}
.toa-film-page .tf-comments-expanded a{color:var(--tf-bronze)}
.toa-film-page .tf-comments-expanded button{color:var(--tf-bronze)}
.toa-film-page .tf-comment-list{margin-top:20px}
.toa-film-page .tf-comment-list .tf-comment{border-top:1px solid #40352d;padding:22px 0;margin:0;min-width:0}
.toa-film-page .tf-comment-head{display:flex;align-items:flex-start;gap:12px;min-height:24px}
.toa-film-page .tf-comment-identity{display:flex;flex:1;flex-wrap:wrap;align-items:baseline;gap:3px 12px;min-width:0}
.toa-film-page .tf-comment-identity strong{font-size:14px;font-weight:600;line-height:1.6;color:#ddd5c8;max-width:100%;overflow-wrap:anywhere}
.toa-film-page .tf-comment-identity time{color:var(--tf-muted);font-size:11px;line-height:1.6;max-width:100%;overflow-wrap:anywhere}
.toa-film-page .tf-comment-list .tf-comment>p{margin:10px 0 0;color:#ddd5c8;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.toa-film-page .tf-comment-manage{position:relative;margin-left:auto;flex-shrink:0;align-self:flex-start}
.toa-film-page .tf-comment-manage .tf-comment-toggle{width:44px;min-height:44px;margin:-10px 0;justify-content:center;font-size:14px;color:var(--tf-muted)}
.toa-film-page .tf-comment-menu{position:absolute;right:0;top:100%;display:flex;flex-direction:column;min-width:132px;padding:4px;background:#191612;border:1px solid #44392e;border-radius:6px;box-shadow:0 8px 24px #0005;z-index:2}
.toa-film-page .tf-comment-form-actions{display:flex;justify-content:flex-start;gap:0;margin:0}
.toa-film-page .tf-comments-expanded .tf-inline-submit{font-size:10px;line-height:1.5;letter-spacing:.1em;min-height:40px;padding:8px 12px;background:none;border:0;border-radius:0;box-shadow:none}
.toa-film-page .tf-comment-menu .tf-inline-submit{text-align:left;width:100%}
.toa-film-page .tf-comments-expanded .tf-inline-submit:hover{color:#ead7bd}
.toa-film-page .tf-comments-expanded button:focus:not(:focus-visible){outline:none}
.toa-film-page .tf-comments-expanded button:focus-visible{outline:1px solid #b29777;outline-offset:-3px}
.toa-film-page .tf-comment-tools{margin-left:-12px}
.toa-film-page .tf-comment-editor{margin:6px 0 0}
.toa-film-page .tf-delete-confirm{margin:0;padding:0;border:0;background:none}
.toa-film-page .tf-comment-replies:not(:empty){margin:10px 0 0 16px;padding-left:16px;border-left:1px solid var(--tf-border)}
.toa-film-page .tf-comment-replies .tf-comment-replies:not(:empty){margin-left:0;padding-left:0;border-left:0}
.toa-film-page .tf-comment-replies>.tf-comment:first-child{border-top:0;padding-top:16px}
.toa-film-page .tf-reply-context{display:block;font-size:10px;color:var(--tf-muted);margin-bottom:4px;overflow-wrap:anywhere}
.toa-film-page .tf-comments-expanded>.tf-action-status:not(:empty){margin-top:12px}
@media(max-width:600px){.toa-film-page .tf-comments-expanded textarea{font-size:16px}.toa-film-page .tf-comment-identity{gap:2px 8px}.toa-film-page .tf-comment-replies:not(:empty){margin-left:8px;padding-left:12px}}

/* Mobile editing: avoid automatic input zoom without restricting pinch zoom.
   Include wide touch devices / landscape phones as well as narrow viewports. */
@media(max-width:600px),(any-pointer:coarse){
.toa-film-page .tf-inline-panel textarea,.toa-film-page .tf-comments-expanded textarea{font-size:16px}
}

/* 2.1.2: retain the compact header; show its preview only while collapsed. */
.toa-film-page .tf-comments-preview[aria-expanded=true] .tf-preview-text{display:none}
.toa-film-page .tf-comments-preview[aria-expanded=true]>span:last-child{grid-row:1}
.toa-film-page .tf-comment-tools>.tf-inline-submit{font-size:12px;font-weight:500;line-height:1.6;min-height:44px;padding:12px;color:var(--tf-bronze)}
.toa-film-page .tf-comments-expanded textarea::placeholder{color:var(--tf-muted);opacity:1}
@media(max-width:600px){
.toa-film-page .tf-comment-list .tf-comment{padding-top:20px;padding-bottom:20px}
.toa-film-page .tf-comment-replies>.tf-comment:first-child{padding-top:16px}
}
/* A thread's final reply shares its parent's trailing space instead of stacking it. */
.toa-film-page .tf-comment-replies>.tf-comment:last-child{padding-bottom:0}
