/* Scoped presentation. The legacy page remains a fallback if layout JS cannot run. */
body.cinema-ready{--bg:#0d1015;--panel:#171b22;--text:#e8e9ec;--muted:#a1aab8;--stroke:#2c333e;--accent:#edab76;--orange:#edab76;background:var(--bg);font-family:'Segoe UI',Arial,sans-serif;color:var(--text);font-size:14px}
.cinema-ready [hidden]{display:none!important}.cinema-ready *, .cinema-ready *:before,.cinema-ready *:after{box-sizing:border-box}.cinema-ready button,.cinema-ready a,.cinema-ready input,.cinema-ready select,.cinema-ready textarea{font-family:inherit}.cinema-ready button:focus-visible,.cinema-ready a:focus-visible,.cinema-ready input:focus-visible,.cinema-ready select:focus-visible,.cinema-ready textarea:focus-visible,.cinema-ready summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.cinema-ready button{position:relative;overflow:hidden;transition:background .16s,border-color .16s,transform .16s,box-shadow .16s}.cinema-ready button:not(:disabled):hover{border-color:var(--accent)}.cinema-ready button:not(:disabled):active{transform:scale(.98)}.cinema-ready .wrap{max-width:none;width:auto;margin-left:24px;margin-right:24px}.cinema-ready main.studio{padding:0;margin:0 24px}.cinema-top{height:87px}.cinema-ready .cinema-top header{height:87px;min-height:0;display:flex;align-items:center;padding:0;gap:20px;border:0}.cinema-ready .brand{font-size:11px;line-height:1.2;letter-spacing:.025em;gap:12px;min-width:213px}.cinema-ready .brand .mark{font-size:29px;border:0;background:none;padding:0;width:28px;height:auto}.cinema-ready .brand .mark span{color:var(--accent)}.cinema-ready .header nav{display:none}.cinema-top-balances{flex:1;min-width:0}.cinema-ready .studio-wallets{margin:0;gap:24px;flex-wrap:nowrap}.cinema-ready .studio-wallets div{padding:0;border:0;min-width:0;display:grid;grid-template-columns:auto auto;gap:0 9px;align-items:center}.cinema-ready .studio-wallets div small{font-size:10px}.cinema-ready .studio-wallets div strong{font-size:14px;font-weight:500;color:var(--text)}.cinema-ready #token-reserved{grid-column:1/-1;color:var(--accent);font-size:9px}.cinema-ready .studio-wallets div:last-child small:last-child{display:none}.cinema-ready #account-link{font-size:12px;border:1px solid var(--stroke);background:var(--panel);border-radius:7px;padding:9px 12px;white-space:nowrap;color:var(--text)}.cinema-ready #logout{font-size:11px;color:var(--muted)}.cinema-ready #availability{margin:0 0 10px;border:0;border-left:2px solid var(--stroke);background:var(--panel);padding:6px 12px;font-size:11px;line-height:1.45;border-radius:0 6px 6px 0}.cinema-grid{display:grid;grid-template-columns:234px minmax(0,1fr) 350px;gap:18px;height:calc(100dvh - 155px);min-height:540px}.cinema-models,.cinema-inspector{background:var(--panel);border:1px solid var(--stroke);border-radius:15px;overflow:hidden;min-width:0}.cinema-models{display:flex;flex-direction:column}.cinema-model-heading{padding:17px 17px 5px}.cinema-eyebrow{font-size:9px;letter-spacing:.16em;color:var(--muted);font-weight:500}.cinema-ready .cinema-model-heading h2,.cinema-ready .cinema-inspector h2{font-size:21px;letter-spacing:-.04em;margin:4px 0 0}.cinema-ready .model-catalogue{margin:0;display:flex;flex-direction:column;min-height:0;flex:1}.cinema-ready .catalogue-filters{gap:4px;margin:8px 12px}.cinema-ready .catalogue-filters button{padding:6px 7px;font-size:10px;min-height:30px;border:1px solid transparent;border-radius:5px;background:none;flex:1;white-space:nowrap;color:var(--muted)}.cinema-ready .catalogue-filters button:hover{background:var(--surface-raised);color:var(--text)}.cinema-ready .catalogue-filters button[aria-pressed=true]{background:var(--stroke);color:var(--text);border-color:var(--stroke)}.cinema-ready .catalogue-tools{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:3px 12px 7px}.cinema-ready .catalogue-tools label{font-size:10px;margin:0 0 4px;color:var(--muted)}.cinema-ready .catalogue-tools input,.cinema-ready .catalogue-tools select{font-size:12px;padding:8px 10px;min-height:35px;background:var(--surface);border:1px solid var(--stroke);border-radius:7px;color:var(--text)}.cinema-filter-more summary{font-size:10px;color:var(--muted);cursor:pointer;padding:2px 0}.cinema-filter-more>div{margin-top:8px}.cinema-ready #model-filter-reset{font-size:10px;min-height:26px;margin:6px 0 0;padding:3px 6px}.cinema-ready #model-result-count,.cinema-ready #catalogue-status{font-size:9px;line-height:1.5;margin:3px 15px}.cinema-ready #catalogue-status{max-height:44px;overflow:auto}.cinema-ready #catalogue-retry{margin:6px 12px;font-size:11px;min-height:32px;padding:6px}.cinema-ready .catalogue-grid{display:flex;flex-direction:column;gap:3px;overflow:auto;min-height:0;padding:8px 9px 14px;scrollbar-width:thin;scrollbar-color:var(--stroke) transparent;flex:1}.cinema-ready .catalogue-card{position:relative;min-height:66px;flex:none;background:transparent;border:1px solid transparent;border-radius:8px;padding:11px 27px 9px 47px;display:flex;flex-direction:column;justify-content:center;gap:2px;transition:background .18s,transform .18s}.cinema-ready .catalogue-card:hover{background:var(--hover);transform:translateX(2px)}.cinema-ready .catalogue-card:before{content:attr(data-symbol);position:absolute;left:9px;top:17px;width:29px;height:29px;border:1px solid var(--stroke);border-radius:8px;background:var(--surface-raised);display:grid;place-items:center;font-size:13px}.cinema-ready .catalogue-card[data-selected=true]{border-color:var(--accent-border);background:var(--accent-soft)}.cinema-ready .catalogue-card[data-selected=true]:before{color:var(--accent);background:var(--accent-soft);border-color:transparent}.cinema-ready .catalogue-card h3{font-size:13px;line-height:1.3;font-weight:500;margin:0;order:-1;letter-spacing:0;pointer-events:none}.cinema-ready .catalogue-card>small{font-size:9px;color:var(--muted);pointer-events:none}.cinema-ready .catalogue-card>:not(h3):not(small):not(button){display:none}.cinema-ready .catalogue-card>button:not(.cinema-card-info){position:absolute;inset:0;opacity:0!important;margin:0!important;padding:0;width:100%;min-height:0;border:0;z-index:1}.cinema-ready .catalogue-card:has(>button:focus-visible){outline:2px solid var(--accent);outline-offset:-2px}.cinema-ready .catalogue-card .cinema-card-info{position:absolute;right:5px;top:22px;width:21px;height:21px;min-height:0;padding:0!important;border:1px solid var(--stroke);border-radius:50%;background:transparent;color:var(--muted);font-size:11px;line-height:18px;z-index:2;margin:0!important}.cinema-ready .catalogue-card .cinema-card-info:hover{color:var(--accent);border-color:var(--accent)}
.cinema-center{display:flex;flex-direction:column;min-width:0;min-height:0}.cinema-stage-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:6px 0 15px}.cinema-ready .cinema-stage-heading h1{font-size:29px;line-height:1.3;letter-spacing:-.05em;font-weight:600;margin:4px 0 0}.cinema-stage-heading h1>span{color:var(--accent)}.cinema-stage-heading button,.cinema-section-heading button,.cinema-bottom button,.cinema-history-tools button{font-size:10px;color:var(--muted);border:0;background:none;padding:6px;white-space:nowrap}.cinema-results{flex:1;min-height:0;display:flex;overflow:auto;scrollbar-width:thin}.cinema-ready .cinema-results>.studio-panel{margin:0;border-radius:14px;background:var(--surface);border:1px solid var(--stroke);width:100%;min-height:330px;max-height:none;padding:14px;position:static;display:flex;flex-direction:column;overflow:auto;scrollbar-width:thin}.cinema-ready .cinema-results .panel-heading{margin-bottom:9px;gap:8px}.cinema-ready .cinema-results .panel-heading h2{font-size:14px}.cinema-ready .cinema-results .panel-heading .eyebrow{font-size:9px}.cinema-ready .cinema-results .subtle{font-size:10px}.cinema-ready .cinema-results .result-empty{background:radial-gradient(ellipse at center,var(--surface-raised),var(--surface));border:1px solid var(--stroke);min-height:200px;border-radius:8px;padding:24px 16px}.cinema-ready .cinema-results .result-empty h2{font-size:25px;font-weight:500;line-height:1.3}.cinema-ready .cinema-results .result-empty p{font-size:12px;line-height:1.65}.cinema-ready .cinema-results .empty-icon{font-size:50px;margin-bottom:13px}.cinema-ready .cinema-results video{width:100%;min-height:0;max-height:calc(100dvh - 355px);object-fit:contain;flex:1;background:var(--surface);border-radius:8px}.cinema-ready .cinema-results .scene-summary{margin:0 0 10px;border:0;padding:0}.cinema-ready .cinema-results .scene-summary .eyebrow{display:none}.cinema-ready .cinema-results #scene-summary{font-size:11px;margin:0;color:var(--muted)}.cinema-ready .cinema-results #scene-readiness{font-size:10px;margin:4px 0 0}.cinema-ready .cinema-results .time-rule{margin-top:12px;padding-top:9px;gap:10px}.cinema-ready .cinema-results .time-rule p{font-size:10px;line-height:1.5}.cinema-ready .cinema-results .time-rule>span{font-size:20px}.cinema-ready .cinema-results #job-progress{padding:10px 0 0}.cinema-ready .cinema-results #job-progress h2{font-size:16px;margin:0}.cinema-ready .cinema-results #job-timer{font-size:16px;margin:4px 0}.cinema-ready .cinema-results .hint{font-size:10px;margin:5px 0;overflow-wrap:anywhere}.cinema-ready .cinema-results .small-button{font-size:11px;min-height:31px;padding:6px 10px;align-self:start}.cinema-recent{margin-top:15px}.cinema-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.cinema-ready .cinema-section-heading h2{font-size:13px;letter-spacing:0;margin:0}.cinema-ready #cinema-recent-list{display:flex;gap:8px;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}.cinema-ready #cinema-recent-list>.hint{padding:14px;margin:0;border:1px dashed var(--stroke);border-radius:8px;width:100%;font-size:11px;color:var(--muted)}.cinema-recent-card{border:1px solid var(--stroke);background:var(--panel);border-radius:8px;min-width:145px;max-width:190px;flex:1;padding:10px;text-align:left;color:var(--text)}.cinema-recent-card:hover{background:var(--hover)}.cinema-recent-card strong{font-size:11px;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}.cinema-recent-card small{font-size:9px;color:var(--muted);display:block;margin-top:4px}.cinema-recent-icon{color:var(--accent);font-size:18px;float:left;margin-right:8px}.cinema-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:9px;font-size:9px;color:var(--muted)}.cinema-bottom button{font-size:9px;padding:4px}
.cinema-inspector{display:flex;flex-direction:column}.cinema-inspector-heading{padding:17px 18px 12px}.cinema-sources{display:grid;grid-template-columns:1fr 1fr;margin:0 16px 12px;padding:4px;gap:4px;border:1px solid var(--stroke);background:var(--surface);border-radius:9px}.cinema-sources button{border:1px solid transparent;border-radius:6px;background:none;color:var(--muted);font-size:12px;text-align:left;padding:7px 9px;cursor:pointer}.cinema-sources button small{display:block;font-size:9px;opacity:.75;margin-top:2px}.cinema-sources button[aria-pressed=true]{background:var(--surface-raised);border-color:var(--stroke);color:var(--text)}.cinema-sources #cinema-rent{grid-column:1/-1;font-size:10px;border-top:1px solid var(--stroke);border-radius:0;padding:5px 9px 2px;color:var(--accent)}#cinema-rent span{float:right}.cinema-selection{display:flex;gap:10px;margin:0 18px 12px;align-items:center;min-width:0}.cinema-selection>#cinema-model-symbol{display:grid;place-items:center;width:31px;height:31px;border:1px solid var(--stroke);border-radius:8px;background:var(--surface-raised);color:var(--accent);flex:none}.cinema-selection small{font-size:9px;color:var(--muted);display:block}.cinema-selection strong{font-size:12px;font-weight:500;line-height:1.4;display:block;overflow-wrap:anywhere}.cinema-tabs{display:flex;gap:18px;padding:0 18px;border-bottom:1px solid var(--stroke);flex-shrink:0}.cinema-tabs button{border:0;border-bottom:2px solid transparent;color:var(--muted);font-size:12px;background:none;padding:8px 0 10px;cursor:pointer}.cinema-tabs button[aria-selected=true]{color:var(--text);border-color:var(--accent)}.cinema-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--stroke) transparent;padding:16px 17px}.cinema-ready #local-studio-workspace,.cinema-ready #commercial-studio{display:block;margin:0}.cinema-ready #cinema-params .studio-panel{background:none;border:0;border-radius:0;padding:0}.cinema-ready #cinema-params .studio-panel>.panel-heading,.cinema-ready .model-back{display:none}.cinema-ready #cinema-params form{display:flex;flex-direction:column;gap:14px;margin:0}.cinema-ready #cinema-params label,.cinema-ready #cinema-params legend{font-size:12px;color:var(--text);line-height:1.5;margin-bottom:6px;letter-spacing:0}.cinema-ready #cinema-params input:not([type=checkbox]):not([type=radio]),.cinema-ready #cinema-params select,.cinema-ready #cinema-params textarea{color:var(--text);background:var(--surface);border:1px solid var(--stroke);border-radius:7px;width:100%;font-size:13px;padding:10px;min-width:0}.cinema-ready #cinema-params textarea{line-height:1.7;min-height:140px;resize:vertical}.cinema-ready #cinema-params .hint{font-size:10px;line-height:1.6;margin:6px 0;color:var(--muted);overflow-wrap:anywhere}.cinema-ready #cinema-params p{max-width:100%}.cinema-ready #cinema-params h3{font-size:14px;margin:6px 0}.cinema-ready #cinema-params .field-grid,.cinema-ready #cinema-params .commercial-controls,.cinema-ready #cinema-params .commercial-advanced{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cinema-ready #cinema-params .commercial-field label{font-size:12px}.cinema-ready .cinema-model-guide{margin:0 0 12px;border:1px solid var(--stroke);border-radius:7px;padding:8px 10px}.cinema-model-guide summary{font-size:11px;cursor:pointer;color:var(--muted)}.cinema-ready #commercial-model-guide{border:0;margin:10px 0 0;padding:0}.cinema-ready #commercial-model-guide p{font-size:11px;line-height:1.65}.cinema-ready #commercial-model-notice{font-size:10px;line-height:1.55;margin:6px 0 12px;padding-left:8px;border-left:2px solid var(--stroke)}.cinema-ready .quality-modes{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.cinema-ready .quality-modes .mode{padding:9px 3px;text-align:center;border-color:var(--stroke)}.cinema-ready .quality-modes strong{font-size:11px}.cinema-ready .quality-modes span,.cinema-ready .quality-modes small{display:none}.cinema-ready .mode:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.cinema-ready #cinema-params .commercial-quality-list{gap:5px}.cinema-ready #cinema-params .commercial-quality-list button{min-width:0;flex:1;padding:6px;font-size:11px;gap:3px}.cinema-ready #cinema-params .commercial-quality-list small{font-size:9px}.cinema-ready #cinema-params .small-button{font-size:11px;min-height:32px;padding:6px 9px;border-color:var(--stroke)}.cinema-ready #cinema-params .text-button{font-size:11px}.cinema-ready #cinema-params details:not(.cinema-model-guide){border:1px solid var(--stroke);border-radius:8px;padding:10px}.cinema-ready #cinema-params summary{font-size:12px;line-height:1.5;cursor:pointer}.cinema-ready #cinema-params .advanced-content{padding-top:12px;gap:12px}.cinema-ready #cinema-params #advanced-state{font-size:9px}.cinema-ready #cinema-params .vip-option{background:var(--accent-soft)}.cinema-ready #cinema-params .vip-option summary{display:flex;gap:7px;align-items:center;padding:0}.cinema-ready #cinema-params .vip-heading{font-size:12px}.cinema-ready #cinema-params .vip-price{font-size:10px}.cinema-ready #cinema-params .vip-badge{font-size:10px;padding:4px}.cinema-ready #cinema-params .vip-body{padding-top:12px}.cinema-ready #cinema-params .switch-row{align-items:flex-start;display:flex;gap:8px}.cinema-ready #cinema-params input[type=checkbox]{flex:none;width:16px;height:16px;margin-top:2px;accent-color:var(--accent)}.cinema-ready .commercial-price{padding:12px;border-radius:8px;background:var(--surface)}.cinema-ready .commercial-price dl{font-size:11px;margin:9px 0}.cinema-ready .commercial-price dd.price-amount{font-size:15px}.cinema-ready .reference-slots{grid-template-columns:1fr}.cinema-ready .reference-slot{padding:10px}.cinema-ready #cinema-params .reference-slot input{font-size:10px;padding:6px}.cinema-ready .commercial-form[aria-busy=true]{opacity:.75}.cinema-ready #seedance-workflows{gap:5px;flex-wrap:wrap}.cinema-ready #seedance-workflows button{font-size:10px!important;padding:6px!important}.cinema-ready .commercial-shot{padding:10px}.cinema-ready .cinema-submit{flex-shrink:0;border-top:1px solid var(--stroke);padding:13px 17px;background:var(--panel)}.cinema-ready .cinema-submit .button{display:block;margin:0;width:100%;border-radius:8px;background:var(--accent);color:var(--accent-ink);font-size:13px;padding:13px 10px;min-height:45px;border:1px solid var(--accent)}.cinema-ready .cinema-submit .button:not(:disabled):hover{box-shadow:0 4px 22px var(--accent-shadow);transform:translateY(-1px)}.cinema-ready .cinema-submit .button:disabled{opacity:.45;cursor:not-allowed}.cinema-ready .cinema-submit .hint{font-size:10px;line-height:1.5;max-height:47px;overflow:auto;margin:8px 0 0;scrollbar-width:thin}.cinema-ready .cinema-submit .small-button{width:100%;font-size:11px;min-height:32px;margin-top:6px;padding:6px}.cinema-cost{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);margin-bottom:9px}.cinema-cost strong{font-size:12px;color:var(--accent);font-weight:500}.cinema-ready .draft-actions{flex-wrap:wrap;gap:8px}.cinema-ready .prompt-footer{margin-top:3px}.cinema-history-tools{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.cinema-history-tools p{font-size:11px;color:var(--muted);margin:0 0 12px}.cinema-ready #cinema-history-notice{font-size:10px;line-height:1.55;color:var(--muted);margin:4px 0 12px}.cinema-history-item{border:1px solid var(--stroke);background:var(--surface);border-radius:9px;padding:12px;margin-bottom:10px;overflow-wrap:anywhere}.cinema-history-item>small{font-size:9px;color:var(--accent)}.cinema-ready .cinema-history-item h3{font-size:13px;line-height:1.5;margin:5px 0;font-weight:500}.cinema-ready .cinema-history-item .hint{font-size:10px;line-height:1.55;margin:6px 0}.cinema-history-prompt{font-size:12px;line-height:1.65;margin:8px 0;white-space:pre-wrap;max-height:200px;overflow:auto}.cinema-history-actions{display:flex;flex-wrap:wrap;gap:6px}.cinema-ready .cinema-history-actions button{font-size:10px;padding:6px 8px;min-height:30px}.cinema-ready #cinema-history-list>.hint{font-size:12px}.cinema-ready .cinema-help{margin:15px 0 25px;border-top:1px solid var(--stroke);padding-top:10px}.cinema-help>summary{font-size:11px;color:var(--muted);cursor:pointer}.cinema-ready .cinema-help .studio-section{margin-top:20px}.cinema-ready .cinema-help .packages{grid-template-columns:1fr 1fr}.cinema-ready .cinema-help .packages h3{font-size:24px}.cinema-ready body>footer,.cinema-ready>footer{display:none}.cinema-ready dialog{border:1px solid var(--stroke);background:var(--panel);color:var(--text);border-radius:16px;max-width:min(680px,92vw);padding:23px;max-height:85dvh;overflow:auto}.cinema-ready dialog::backdrop{background:#030810bd;backdrop-filter:blur(5px)}.cinema-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:17px}.cinema-dialog-heading h2{font-size:22px;line-height:1.3}.cinema-dialog-heading button{background:none;border:0;color:var(--muted);font-size:26px;cursor:pointer}.cinema-ready #cinema-info-body p{font-size:13px;line-height:1.7;margin:10px 0}.cinema-ready #cinema-info-body details{border-top:1px solid var(--stroke);padding:12px 0}.cinema-ready #cinema-info-body summary{font-size:13px;cursor:pointer}.cinema-ready #cinema-info-body li{font-size:13px}.cinema-ready #cinema-info-body .model-specs span{font-size:11px}.cinema-mobile{display:none}.cinema-focus .cinema-grid{grid-template-columns:minmax(0,1fr)}.cinema-focus .cinema-models,.cinema-focus .cinema-inspector{display:none}.cinema-focus .cinema-center{max-width:1250px;width:100%;margin:auto}.cinema-focus .cinema-results video{max-height:calc(100dvh - 275px)}.cinema-focus .cinema-recent{display:none}.cinema-ripple{position:absolute;background:currentColor;border-radius:50%;opacity:.13;transform:scale(0);pointer-events:none;animation:cinema-ripple .45s ease-out forwards}@keyframes cinema-ripple{to{transform:scale(2.5);opacity:0}}
@media(min-width:1600px){.cinema-grid{grid-template-columns:260px minmax(0,1fr) 390px;gap:25px}.cinema-ready .brand{min-width:235px}.cinema-ready #cinema-params textarea{font-size:14px}.cinema-ready .catalogue-card h3{font-size:14px}.cinema-ready .catalogue-card{min-height:70px}.cinema-stage-heading{margin-bottom:20px}}
@media(max-width:1150px){.cinema-ready .wrap,.cinema-ready main.studio{margin-left:14px;margin-right:14px}.cinema-grid{grid-template-columns:190px minmax(0,1fr) 318px;gap:12px}.cinema-ready .brand{min-width:170px}.cinema-ready .cinema-stage-heading h1{font-size:24px}.cinema-stage-heading{align-items:flex-start}.cinema-stage-heading button{font-size:9px}.cinema-ready .catalogue-card{padding-left:41px;padding-right:25px}.cinema-ready .catalogue-card:before{left:6px;width:27px;height:27px}.cinema-ready .catalogue-card h3{font-size:12px}.cinema-ready .catalogue-filters{flex-wrap:wrap}.cinema-ready .catalogue-filters button{min-width:35px}.cinema-ready .catalogue-card>small{font-size:8px}.cinema-scroll{padding:13px}.cinema-ready .cinema-submit{padding:12px 13px}.cinema-stage-heading .cinema-eyebrow{font-size:8px}}
@media(max-width:950px){.cinema-grid{grid-template-columns:178px minmax(0,1fr);height:auto;min-height:0}.cinema-models{height:640px}.cinema-center{height:640px}.cinema-inspector{grid-column:1/-1;height:760px}.cinema-ready .cinema-results video{max-height:390px}.cinema-ready .studio-wallets{gap:16px}.cinema-ready .brand{min-width:160px}.cinema-ready .cinema-top header{gap:14px}.cinema-focus .cinema-center{height:calc(100dvh - 150px);min-height:400px}}
@media(max-width:640px){.cinema-ready .wrap,.cinema-ready main.studio{margin-left:10px;margin-right:10px}.cinema-top,.cinema-ready .cinema-top header{height:auto;min-height:97px}.cinema-ready .cinema-top header{flex-wrap:wrap;padding:12px 0;gap:10px}.cinema-ready .brand{min-width:0;flex:1;font-size:10px}.cinema-ready #account-link{font-size:11px;padding:7px 8px}.cinema-ready #logout{font-size:10px}.cinema-top-balances{order:5;flex:1 0 100%}.cinema-ready .studio-wallets{justify-content:space-between;gap:9px}.cinema-ready .studio-wallets div strong{font-size:13px}.cinema-ready #availability{font-size:10px;padding:6px 9px}.cinema-mobile{display:flex;gap:5px;padding:4px;margin:10px 0;background:var(--panel);border:1px solid var(--stroke);border-radius:8px}.cinema-mobile button{flex:1;font-size:12px;border:0;background:none;color:var(--muted);padding:9px 4px;border-radius:5px}.cinema-mobile button[aria-pressed=true]{background:var(--hover);color:var(--text)}.cinema-grid{display:block;height:auto}.cinema-grid[data-panel=models] .cinema-center,.cinema-grid[data-panel=models] .cinema-inspector,.cinema-grid[data-panel=video] .cinema-models,.cinema-grid[data-panel=video] .cinema-inspector,.cinema-grid[data-panel=options] .cinema-center,.cinema-grid[data-panel=options] .cinema-models{display:none}.cinema-center{height:auto;min-height:520px}.cinema-models{height:calc(100dvh - 235px);min-height:440px}.cinema-inspector{height:calc(100dvh - 230px);min-height:620px}.cinema-ready .catalogue-card{min-height:68px;padding-left:50px}.cinema-ready .catalogue-card h3{font-size:14px}.cinema-ready .catalogue-card>small{font-size:10px}.cinema-ready .catalogue-card:before{left:11px;width:29px;height:29px}.cinema-ready .catalogue-card .cinema-card-info{right:10px}.cinema-ready .catalogue-filters button{font-size:12px;min-height:34px}.cinema-ready .catalogue-tools input{font-size:14px;min-height:39px}.cinema-stage-heading{margin:12px 3px 16px}.cinema-ready .cinema-stage-heading h1{font-size:29px}.cinema-ready .cinema-results>.studio-panel{min-height:410px}.cinema-ready .cinema-results video{max-height:480px;min-height:270px}.cinema-ready .cinema-results .result-empty{min-height:260px}.cinema-ready #cinema-params textarea{font-size:14px}.cinema-focus .cinema-mobile{display:none}.cinema-focus .cinema-grid .cinema-center{display:flex}.cinema-focus .cinema-grid .cinema-inspector,.cinema-focus .cinema-grid .cinema-models{display:none}.cinema-focus .cinema-center{height:auto}.cinema-ready .cinema-help .packages{grid-template-columns:1fr}.cinema-ready dialog{padding:18px;width:94vw}.cinema-ready .history-row{flex-direction:column;align-items:stretch}}
@media(prefers-reduced-motion:reduce){.cinema-ready *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}.cinema-no-motion *{transition:none!important;animation:none!important;scroll-behavior:auto!important}

.cinema-ready .brand .mark{display:inline-block;position:relative;line-height:1;width:29px;padding-right:4px;overflow:visible}.cinema-ready .brand .mark span{position:absolute;right:-1px;top:0;font-size:16px;line-height:1}.cinema-ready> #availability{margin-left:24px;margin-right:24px}.cinema-about>h2{font-size:22px!important;margin:7px 0 17px!important;overflow-wrap:anywhere}.cinema-about #cinema-info-body>p:first-child{font-size:14px;line-height:1.7;color:var(--text)}.cinema-about #cinema-info-body .model-specs{display:flex;gap:5px;flex-wrap:wrap}.cinema-about #cinema-info-body .model-specs span{font-size:10px;padding:4px 7px}.cinema-about #cinema-info-body p,.cinema-about #cinema-info-body li{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.cinema-about #cinema-info-body details{border:1px solid var(--stroke);border-radius:8px;padding:11px;margin:9px 0;background:var(--surface)}.cinema-about #cinema-info-body summary{font-size:12px;color:var(--text);line-height:1.6;cursor:pointer}.cinema-about #cinema-info-body ul{padding-left:18px}.cinema-about #cinema-info-body .model-availability{padding:10px;border-left:2px solid var(--accent);background:var(--accent-soft);margin:12px 0!important}.cinema-ready .cinema-tabs{gap:15px}.cinema-ready .cinema-tabs button{font-size:11px}.cinema-ready .catalogue-card .cinema-library-open{z-index:1}.cinema-ready .catalogue-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.cinema-ready .catalogue-filters button{padding:6px 2px;font-size:9px;white-space:normal;line-height:1.25}.cinema-ready .cinema-results .scene-summary{background:none}.cinema-ready .cinema-results .scene-summary:before{display:none}
@media(max-width:1150px){.cinema-ready> #availability{margin-left:14px;margin-right:14px}.cinema-ready .catalogue-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.cinema-ready .catalogue-filters button{font-size:10px}}
@media(max-width:640px){.cinema-ready> #availability{margin-left:10px;margin-right:10px}.cinema-ready .catalogue-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.cinema-ready .cinema-tabs button{font-size:12px}}
.cinema-site-menu{position:relative;order:6;z-index:10}.cinema-site-menu summary{font-size:11px;color:var(--muted);cursor:pointer;white-space:nowrap}.cinema-ready .cinema-site-menu nav{display:flex!important;position:absolute;right:0;top:28px;min-width:200px;background:var(--panel);border:1px solid var(--stroke);border-radius:9px;padding:12px;box-shadow:0 15px 40px #0005;flex-direction:column;align-items:stretch;gap:4px}.cinema-ready .cinema-site-menu nav a{font-size:12px;padding:7px}.cinema-ready .cinema-site-menu nav a:hover{background:var(--hover);color:var(--accent);border-radius:5px}@media(max-width:640px){.cinema-site-menu{order:3}.cinema-site-menu summary{font-size:10px}}

/* Status messages moved into the inspector footer must stay visible. */
.cinema-ready .cinema-submit p.hint{display:block}
.cinema-ready .cinema-submit p.hint[hidden]{display:none}
.cinema-ready .cinema-submit #commercial-policy-field{margin:8px 0;font-size:11px;line-height:1.35}
.cinema-ready .cinema-submit #commercial-policy-field p{margin:4px 0}
.cinema-ready .cinema-submit #commercial-submit-hint{margin:6px 0;color:var(--accent)}
.cinema-ready .cinema-submit .button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}

/* Give settings the inspector height; the desktop model header uses the center space. */
.cinema-setup{flex:none;display:grid;gap:10px;margin:0 0 12px;padding:12px;border:1px solid var(--stroke);border-radius:10px;background:var(--panel)}
.cinema-setup .cinema-selection{margin:0}
.cinema-setup .cinema-sources{margin:0;grid-template-columns:1fr 1fr auto}
.cinema-setup .cinema-sources #cinema-rent{grid-column:auto;border-top:0;border-left:1px solid var(--stroke);padding:7px 9px;max-width:135px;align-self:stretch}
.cinema-ready .cinema-inspector-heading{padding:12px 17px 8px}
.cinema-ready .cinema-inspector-heading>.cinema-eyebrow{display:none}
.cinema-ready .cinema-inspector-heading h2{font-size:17px;margin:0}
.cinema-ready .cinema-submit{padding-top:10px;padding-bottom:10px}
.cinema-ready .cinema-submit #commercial-policy-field{margin:6px 0}
.cinema-ready .cinema-submit #commercial-policy-field label{font-size:11px;line-height:1.4;align-items:flex-start;gap:7px;margin:0;color:var(--text)}
.cinema-ready .cinema-submit #commercial-policy-accept{appearance:auto;-webkit-appearance:auto;width:16px;min-width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:1px 0 0;padding:0;accent-color:var(--accent)}
.cinema-ready .cinema-submit #commercial-policy-accept::after{display:none}
.cinema-ready .cinema-submit #commercial-policy-field p.hint{font-size:10px;margin:3px 0 0 23px}
.cinema-ready #cinema-params #commercial-prompt,.cinema-ready #cinema-params #prompt{height:112px;min-height:96px}
@media(min-width:951px){.cinema-ready .cinema-scroll{min-height:200px}.cinema-ready .cinema-stage-heading{margin-bottom:10px}}
@media(max-width:640px){.cinema-ready .cinema-submit #commercial-policy-field label{font-size:12px}.cinema-ready .cinema-inspector{min-height:680px}}
/* Model controls share the title's row instead of consuming a separate wide row. */
.cinema-stage-header{flex:none;min-width:0;margin-bottom:12px}
@media(min-width:951px){
 .cinema-stage-header{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(220px,1.2fr);gap:8px 12px;align-items:start}
 .cinema-ready .cinema-stage-heading{grid-column:1;grid-row:1;display:block;margin:3px 0 0}
 .cinema-ready .cinema-stage-heading h1{font-size:clamp(20px,2vw,29px);margin:6px 0}
 .cinema-stage-heading .cinema-eyebrow{font-size:8px;letter-spacing:1px}
 .cinema-stage-heading #cinema-focus{padding:0;font-size:9px}
 .cinema-stage-header>.studio-editor-entry{grid-column:1;grid-row:2;margin:0;gap:5px}
 .cinema-stage-header>.studio-editor-entry button{font-size:10px;padding:6px 8px;min-height:30px}
 .cinema-stage-header>.cinema-setup{grid-column:2;grid-row:1 / span 2;margin:0;padding:9px;gap:7px}
 .cinema-setup .cinema-sources{grid-template-columns:1fr 1fr;padding:3px}
 .cinema-setup .cinema-sources button{padding:6px;font-size:10px}
 .cinema-setup .cinema-sources button small{font-size:8px;margin-top:3px}
 .cinema-setup .cinema-sources #cinema-rent{grid-column:1/-1;border-left:0;border-top:1px solid var(--stroke);max-width:none;padding:4px 6px;text-align:right;font-size:9px}
}
@media(min-width:951px) and (max-width:1020px){.cinema-stage-header{grid-template-columns:1fr}.cinema-stage-header>.cinema-setup{grid-column:1;grid-row:3}}
/* Keep the launch area compact; the complete consent remains expandable. */
.cinema-ready .cinema-submit{padding:7px 12px}
.cinema-ready .cinema-submit .cinema-cost{margin-bottom:4px;line-height:1.3}
.cinema-ready .cinema-submit #commercial-policy-field{margin:4px 0 6px}
.cinema-ready .cinema-submit #commercial-policy-field label{font-size:11px;line-height:1.3;gap:6px}
.cinema-ready .cinema-submit #commercial-policy-accept{width:14px;min-width:14px;height:14px;min-height:14px;flex-basis:14px;outline-offset:2px}
.cinema-ready .cinema-submit .cinema-policy-details{margin:3px 0 0 20px;font-size:10px;line-height:1.4}
.cinema-ready .cinema-submit .cinema-policy-details summary{cursor:pointer;color:var(--muted);font-size:10px}
.cinema-ready .cinema-submit .cinema-policy-details[open]{max-height:130px;overflow:auto}
.cinema-ready .cinema-submit #commercial-policy-field .cinema-policy-details p{font-size:11px;line-height:1.4;margin:5px 0}
.cinema-ready .cinema-submit .button{min-height:36px;padding:8px 10px;font-size:12px;line-height:1.4}
.cinema-ready .cinema-submit #commercial-submit-hint{margin:4px 0;font-size:10px;line-height:1.3}
.cinema-ready .cinema-submit .hint{margin:5px 0 0;font-size:10px;line-height:1.35}
@media(max-width:640px){.cinema-ready .cinema-submit .button{min-height:40px}.cinema-ready .cinema-submit #commercial-policy-field label{font-size:12px}}

/* The player takes the remaining viewport; avoid scrolling through a cropped video. */
.cinema-ready-notice{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding:6px 9px;margin-bottom:6px;border:1px solid var(--accent);border-radius:7px;font-size:11px;background:var(--panel)}
.cinema-ready-notice .small-button{font-size:11px;padding:5px 8px;min-height:28px;white-space:nowrap}
@media(min-width:951px){
 .cinema-top,.cinema-ready .cinema-top header{height:64px}
 .cinema-ready .brand{min-width:175px}
 .cinema-ready .studio-wallets{gap:16px}
 .cinema-ready #studio-rewards-open{padding:6px 9px;min-height:30px;font-size:11px;grid-column:3;grid-row:1 / span 2;margin-left:8px}
 .cinema-grid{grid-template-columns:200px minmax(0,1fr) 320px;gap:12px;height:calc(100dvh - var(--cinema-grid-top,100px) - 12px);min-height:450px}
 .cinema-stage-header{grid-template-columns:minmax(180px,.8fr) minmax(245px,1.2fr);gap:4px 10px;margin-bottom:7px}
 .cinema-ready .cinema-stage-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:0;min-width:0}
 .cinema-stage-heading .cinema-eyebrow{display:none}
 .cinema-ready .cinema-stage-heading h1{font-size:22px;white-space:nowrap;margin:0;line-height:1.3}
 .cinema-stage-heading #cinema-focus{font-size:9px;max-width:64px;text-align:right;white-space:normal;flex:none}
 .cinema-stage-header>.studio-editor-entry{align-items:center;gap:5px}
 .cinema-stage-header>.studio-editor-entry button{padding:4px 7px;min-height:27px;font-size:10px}
 .cinema-stage-header>.cinema-setup{padding:6px;gap:4px}
 .cinema-setup .cinema-selection>#cinema-model-symbol{width:25px;height:25px;font-size:12px}
 .cinema-setup .cinema-selection small{font-size:8px;line-height:1.2}
 .cinema-setup .cinema-selection strong{font-size:11px;line-height:1.3}
 .cinema-setup .cinema-sources{grid-template-columns:1fr 1fr auto;padding:2px;gap:2px}
 .cinema-setup .cinema-sources button{font-size:10px;padding:4px;line-height:1.2;min-height:0}
 .cinema-setup .cinema-sources button small{display:none}
 .cinema-setup .cinema-sources #cinema-rent{grid-column:auto;border-top:0;border-left:1px solid var(--stroke);font-size:8px;padding:5px;max-width:88px}
 .cinema-results{overflow:hidden;flex:1;min-height:0}
 .cinema-ready .cinema-results>.studio-panel{height:100%;min-height:0;padding:10px;overflow:auto}
 .cinema-ready .cinema-results video{flex:1 1 0;height:0;min-height:80px;max-height:none;object-fit:contain;background:#050608}
 .cinema-ready .cinema-results .panel-heading{flex:none;margin-bottom:5px}
 .cinema-ready .cinema-results .panel-heading h2{font-size:12px}
 .cinema-ready .commercial-result:has(>#commercial-result-video:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(80px,1fr) auto;gap:5px 8px}
 .cinema-ready .commercial-result:has(>#commercial-result-video:not([hidden]))>.panel-heading{grid-column:1/-1;grid-row:1;margin:0}
 .cinema-ready .commercial-result:has(>#commercial-result-video:not([hidden]))>#commercial-result-video{grid-column:1/-1;grid-row:2;height:100%;min-height:0}
 .cinema-ready .commercial-result:has(>#commercial-result-video:not([hidden]))>#commercial-job-id{display:none}
 .cinema-ready .commercial-result:has(>#commercial-result-video:not([hidden]))>#commercial-job-note{grid-column:1;grid-row:3;align-self:center;margin:0}
 .cinema-ready .commercial-result:has(>#commercial-result-video:not([hidden]))>#commercial-download{grid-column:2;grid-row:3;align-self:center}
 .cinema-ready .cinema-results .result-empty{flex:1;min-height:80px;padding:12px}
 .cinema-ready .cinema-results .result-empty h2{font-size:21px}
 .cinema-ready .cinema-results #job-progress{flex:none;padding-top:5px}
 .cinema-ready .cinema-results #job-progress h2,.cinema-ready .cinema-results #job-timer{font-size:12px;margin:2px 0}
 .cinema-ready .result-panel:has(>#result-video:not([hidden])) #job-progress{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:center}
 .cinema-ready .result-panel:has(>#result-video:not([hidden])) #job-progress .hint{margin:0}
 .cinema-ready .cinema-results:has(video:not([hidden])) .time-rule{display:none}
 .cinema-recent{flex:none;margin-top:6px}
 .cinema-recent .cinema-section-heading{margin-bottom:5px}
 .cinema-ready .cinema-recent h2{font-size:12px}
 .cinema-recent-card{padding:6px 8px;min-width:135px;max-width:175px}
 .cinema-recent-card strong{font-size:10px;-webkit-line-clamp:1}
 .cinema-recent-card small{font-size:9px;margin-top:2px}
 .cinema-bottom{display:none}
 .cinema-focus .cinema-grid{grid-template-columns:minmax(0,1fr)}
 .cinema-focus .cinema-center{max-width:none;height:100%;margin:0}
 .cinema-focus .cinema-stage-header{display:flex;align-items:center;justify-content:space-between}
 .cinema-focus .cinema-setup{display:none}
 .cinema-focus .cinema-stage-heading{gap:20px}
 .cinema-focus .cinema-stage-heading #cinema-focus{max-width:none}
}
@media(min-width:1600px){.cinema-grid{grid-template-columns:220px minmax(0,1fr) 340px;gap:16px}}
@media(min-width:951px) and (max-width:1120px){.cinema-grid{grid-template-columns:175px minmax(0,1fr) 290px;gap:10px}.cinema-stage-header{grid-template-columns:minmax(130px,.65fr) minmax(210px,1fr)}.cinema-stage-header>.cinema-setup{grid-column:2;grid-row:1 / span 2}.cinema-ready .cinema-stage-heading{display:block}.cinema-ready .cinema-stage-heading h1{font-size:19px}}

