.cinema-shell{display:grid;grid-template-columns:239px 1fr;min-height:100dvh;background:#101112}
.cinema-nav{padding:8px 13px;background:#18191b}
.cinema-head,.project-tools{display:flex;align-items:center;justify-content:space-between;height:45px}
.cinema-head a{font-size:16px;font-weight:600}.cinema-shell button{color:inherit;background:#242527;border:0;border-radius:10px;padding:8px}
.destinations{margin-top:12px;display:grid;gap:2px}.destinations a,.new-project,.project-list a{display:flex;align-items:center;gap:10px;height:36px;padding:0 12px;border-radius:12px;color:#ccc}
.destinations a:first-child,.destinations a:hover,.project-list a:hover{background:#ffffff0d;color:white}.destinations i{font:18px/1 Arial;width:18px;text-align:center}
.project-tools{margin-top:10px;color:#999}.project-tools span{flex:1}.project-tools button{background:transparent}
#project-search,#project-sort{width:100%;padding:8px;background:#242526;color:white;border:1px solid #404144;border-radius:8px}
#sort-menu{inset:250px auto auto 100px;margin:0;padding:14px;border:1px solid #363739;border-radius:12px}
.cinema-shell .new-project{width:100%;justify-content:flex-start}.project-list a{font-size:13px}
.cinema-shell main{min-width:0}.film-banner{height:380px;display:grid;align-content:end;justify-items:center;gap:16px;padding:0 16px 30px;background-size:cover;background-position:center}
.cinema-shell h1{transform:none;text-shadow:none;font:700 40px/.95 Arial,sans-serif;letter-spacing:-1.6px;color:white}
.film-switch{display:flex;gap:6px}.film-switch button{width:48px;height:24px;border:1px solid #888;background-size:cover;background-position:center}
.film-switch button[aria-pressed=true]{border:2px solid white}.project-board,#project-view{padding:30px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.project-grid a,.project-grid button{display:grid;place-items:center;min-height:100px;border-radius:12px;background:#1e2022}
#project-view h1{margin:24px 0}#project-view label{display:grid;gap:8px}#project-view textarea,#new-project-dialog input{padding:12px;border-radius:10px;border:1px solid #414244;background:#232426;color:white;font:inherit}#project-view button,#project-view>a{margin:10px 10px 10px 0}main output{margin:12px 30px;display:block}
#new-project-dialog form{float:none;display:grid;gap:12px}#new-project-dialog h2{margin:0}#new-project-dialog form div{display:flex;gap:8px;justify-content:flex-end}#new-project-dialog button{font-size:14px}
.compact{grid-template-columns:58px 1fr}.compact .cinema-nav{padding-inline:6px}.compact .cinema-nav span,.compact .cinema-head a,.compact .project-tools,.compact .project-list{display:none}
@media(max-width:720px){.cinema-shell{grid-template-columns:58px 1fr}.cinema-nav{padding-inline:6px}.cinema-nav span,.cinema-head a,.project-tools,.project-list{display:none}.film-banner{height:260px}.cinema-shell h1{font-size:27px;text-align:center}.project-board,#project-view{padding:16px}}
.destinations a{padding-inline:6px;gap:8px;font-weight:400;color:#f3f3f3}
.destinations i{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;font:600 14px Arial;color:#f4f4f4;background:linear-gradient(145deg,#a0a09c,#474843);box-shadow:inset 0 1px 2px #ffffff60,inset 0 -1px 4px #ffffff20}
.destinations a:nth-child(2) i{background:linear-gradient(135deg,#8cdedc,#467b9a)}
.destinations a:nth-child(3) i{background:linear-gradient(145deg,#89cae3,#435591)}
.destinations a:nth-child(4) i{background:linear-gradient(145deg,#f5a3c0,#ba4d89)}
.destinations a:nth-child(5) i{background:linear-gradient(145deg,#bcbcb8,#656568)}
.cinema-stage{min-height:85vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:28px;padding:32px 6%;background:#131416}
.cinema-covers{height:150px;display:flex;align-items:center;justify-content:center}.cinema-covers img{width:clamp(85px,13vw,200px);height:108px;object-fit:cover;border-radius:9px;border:1px solid #777}.cinema-covers img:nth-child(2){height:145px;width:clamp(115px,18vw,255px);margin:0 -8px;z-index:1;box-shadow:0 12px 30px #0008}.cinema-stage h1{font-size:clamp(26px,2.8vw,42px);text-align:center;margin:4px 0 6px}
#cinema-composer{position:relative;display:block;width:min(780px,90%);margin-left:28px;border-radius:18px;padding:10px;background:#202123}
.cinema-modes{position:absolute;right:calc(100% + 6px);bottom:0;display:grid;background:#202123;border-radius:14px;padding:4px}.cinema-shell .cinema-modes button{font-size:12px}.cinema-modes [aria-pressed=true]{box-shadow:inset 0 0 0 1px #777}
.cinema-controls,.cinema-options{display:flex;gap:5px}.cinema-controls>*:not([hidden]){flex:1;min-width:0}.cinema-controls label,.cinema-options label,#cinema-references{display:grid;gap:3px;text-align:left;color:#bfc0c2;background:#2a2b2e;border-radius:9px;padding:7px 10px;font-size:11px}.cinema-controls select,.cinema-options select{font:inherit;font-size:13px;color:#fff;background:#2a2b2e;border:0;min-width:0}#cinema-references span{font-size:13px;color:white}
#cinema-composer textarea{display:block;border:none;border-radius:9px;width:100%;height:66px;resize:vertical;margin:6px 0;padding:12px;font:inherit;color:white;background:#27282b}.cinema-options{min-height:40px}.cinema-options label{display:flex;gap:4px;align-items:center}.cinema-shell .cinema-submit{position:absolute;bottom:10px;right:10px;background:#dcfa22;color:#121212;font-weight:650;padding:11px 18px}.cinema-contest{display:flex;justify-content:space-between;align-items:center;background:#18191a url('/workflow-night-watch.webp') center/cover;width:93%;padding:25px;border-radius:12px;font-weight:700;text-shadow:0 1px 5px black}.cinema-contest span{font-size:14px}.cinema-controls input[hidden],.cinema-options label[hidden]{display:none}#cinema-selected:empty,#cinema-composer output:empty{display:none}#cinema-selected{display:flex;flex-wrap:wrap;gap:4px;padding-top:6px}
.film-setting{white-space:nowrap;max-width:240px;overflow:hidden;text-overflow:ellipsis}
.film-setup-dialog{width:min(800px,94vw);height:min(504px,85vh);box-sizing:border-box;padding:4px;border:1px solid #333438;border-radius:20px;background:#1e1f21;color:#f1f1f3;overflow:hidden}
.film-setup-dialog::backdrop{background:#0009}.film-setup-bar{height:44px;display:flex;align-items:center;gap:8px;padding:0 6px 0 12px}.film-setup-bar strong{margin-right:auto}
.film-setup-dialog button{border:0;color:inherit;background:#333436;cursor:pointer;border-radius:20px;padding:7px 14px}
.film-setup-body{display:grid;grid-template-columns:184px minmax(0,1fr);height:calc(100% - 44px);border-radius:14px;overflow:hidden;background:#28292b}
.film-setup-body nav{position:static;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:12px;border-right:1px solid #191a1c;gap:4px}
.film-setup-body nav button{text-align:left;border-radius:8px;background:none;color:#aaa}.film-setup-body nav button[aria-pressed=true]{background:#343537;color:#fff}
.film-setup-body section{position:relative;min-width:0;overflow:hidden}.film-setup-body h3{margin:16px;font-size:14px;position:relative;z-index:1}
.film-wheel{position:absolute;left:-4%;right:-4%;bottom:-37%;height:115%;background:#303133;border-radius:50% 50% 0 0;border:1px solid #454649;display:grid;grid-template-columns:16% 40% 16%;align-items:start;justify-content:space-between;padding-top:12%;box-sizing:border-box}
.film-wheel img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:20px;border:3px solid #171719;box-sizing:border-box}.film-wheel>button:first-child{transform:translateY(110%) rotate(-45deg)}.film-wheel>button:last-child{transform:translateY(110%) rotate(45deg)}
.film-choice{position:absolute;bottom:24px;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:6px}.film-choice output{border:1px solid #545458;border-radius:20px;padding:6px 16px;background:#404145}.film-choice button{font-size:20px;line-height:20px}
.camera-wheels{display:flex;align-items:stretch}.camera-wheel{flex:1;min-width:0;display:grid;grid-template-rows:auto repeat(3,1fr);align-items:center;justify-items:center;gap:9px;padding:16px 8px}.camera-wheel:nth-child(even){background:#303133}.camera-wheel>strong{font-size:11px;text-transform:uppercase;color:#aaa}
.camera-wheel>button,.camera-wheel>output{display:flex;align-items:center;justify-content:center;text-align:center;border-radius:60px;background:#242527;box-sizing:border-box;padding:12px;width:min(100%,155px);height:78%;font-size:13px}.camera-wheel>button{opacity:.65}.camera-wheel>output{border:2px solid #ccc;background:#38393c}

.cinema-batch{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.cinema-batch button{border-radius:6px;padding:5px 9px;border:1px solid #414246;background:#252628;color:#fff}.cinema-batch button:disabled{opacity:.4}
.camera-wheels.movement-panel{display:block;min-width:0;padding:16px 21px 16px 18px;overflow:auto;max-height:100%;background:#27282a}
.movement-toolbar{display:flex;align-items:flex-start;gap:8px;min-height:66px}
.movement-toolbar div{flex:1;min-width:0}.movement-toolbar strong{font-weight:550;font-size:14px}
.movement-toolbar p{max-width:230px;margin:4px 0 0;color:#aaa;font-size:12px;line-height:16px}
.movement-toolbar input,.movement-toolbar select{min-width:0;border:1px solid #4a4a4d;border-radius:8px;font-size:13px;padding:7px 9px;color:inherit;background:#323235}
.movement-toolbar input{width:34%}.movement-toolbar select{width:auto;max-width:24%;background:transparent;border-color:transparent}
.movement-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}
.film-setup-dialog .movement-cards button{border:0;border-radius:0;background:transparent;min-width:0;overflow:hidden;padding:0;text-align:center;color:white;cursor:pointer}
.movement-cards video{width:100%;aspect-ratio:1;object-fit:cover;display:block;border-radius:8px}
.movement-cards span{display:block;margin-top:8px;font-size:12px;line-height:16px}
@media(max-width:600px){.movement-toolbar{flex-wrap:wrap;padding-bottom:8px}.movement-toolbar div{flex-basis:100%}.movement-toolbar input{flex:1}.movement-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.film-setup-dialog .film-wheel>button{background:none;padding:0;border:0;border-radius:20px;line-height:0;min-width:0}

.film-wheel[hidden],.era-preview[hidden],.era-options[hidden]{display:none}
.era-preview{width:80%;max-height:55%;object-fit:cover;aspect-ratio:16/9;display:block;margin:12px auto;border-radius:12px}
.era-options{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;position:relative}
.film-setup-dialog .era-options button{font-size:12px;border-radius:8px;padding:5px 8px}
.era-options button[aria-pressed=true]{outline:1px solid #ddd}

.cinema-duration button{color:inherit;background:#2a2b2e;border:0;border-radius:7px;padding:7px 10px;cursor:pointer}
#cinema-duration-menu{position:fixed;inset:auto;margin:0;width:min(240px,90vw);padding:14px;background:#222326;color:#fafafa;border:1px solid #414145;border-radius:12px}
#cinema-duration-menu label{display:grid;grid-template-columns:1fr auto;gap:10px;font-size:13px}
#cinema-duration-menu input{grid-column:1/-1;width:100%;accent-color:#d9f52d}

#cinema-composer.has-native-render .cinema-submit{position:static;margin:4px 0 0;background:#29292b;color:#eee;padding:6px 10px}
.cinema-generate{position:absolute;bottom:10px;right:10px;border:0;border-radius:10px;background:#dcfa22;color:#121212;font:inherit;font-weight:650;padding:11px 18px;cursor:pointer}
.cinema-generate[hidden]{display:none}.cinema-generate:disabled{opacity:.6;cursor:wait}
.cinema-options{flex-wrap:wrap;align-items:center}
#cinema-composer .cinema-submit,#cinema-composer .cinema-generate{position:static;vertical-align:middle;margin:5px 4px 0 0}
#cinema-composer>output{display:block;margin-top:4px}

#cinema-composer button.cinema-generate{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:128px;height:80px;box-sizing:border-box;padding:14px 24px 16px;background:linear-gradient(165deg,transparent,#fffa00),#d1fe17;border:0;box-shadow:inset 0 -3px #829b19,0 3px 4px #0007;border-radius:12px;color:#131517;text-transform:uppercase;font:700 12px/18px system-ui,sans-serif}
#cinema-composer button.cinema-generate[hidden]{display:none}

.cinema-covers{gap:10px}.cinema-covers[hidden]{display:none}
#featured-films{display:flex;align-items:center;justify-content:center;min-width:0}
#featured-films a{position:relative;min-width:0;color:white}
#featured-films img{display:block;max-width:100%}
#featured-films a:nth-child(2){z-index:1;margin:0 -8px}
#featured-films a:nth-child(2) img{height:145px;width:clamp(115px,18vw,255px)}
#featured-films span{position:absolute;inset:auto 0 0;padding:22px 8px 8px;background:linear-gradient(transparent,#08090bce);font-size:12px;border-radius:0 0 9px 9px}
.cinema-covers>button{flex:none;border:0;border-radius:50%;width:28px;height:28px;background:#27282c;color:white;font-size:20px;cursor:pointer}
.cinema-elements{position:absolute;bottom:54px;left:10px;z-index:8;width:min(300px,90%);max-height:260px;overflow:auto;padding:10px;border:1px solid #44454a;border-radius:12px;background:#212226;box-sizing:border-box;box-shadow:0 8px 30px #0008}
.cinema-elements[hidden]{display:none}.cinema-elements input{width:100%;box-sizing:border-box;padding:8px;background:#303136;color:white;border-radius:8px}
.cinema-elements .element-results{display:grid;gap:3px;margin-top:5px}.cinema-elements button{text-align:left}.cinema-elements p:empty{display:none}
@media(min-width:950px){
 #cinema-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
 #cinema-composer .cinema-controls,#cinema-selected,#cinema-composer>output{grid-column:1/-1}
 #cinema-composer textarea{grid-column:1;grid-row:3;box-sizing:border-box;min-height:44px;height:44px}
 #cinema-composer .cinema-options{grid-column:1;grid-row:4;gap:3px;min-width:0}
 #cinema-composer .cinema-options label{font-size:0;padding:4px}
 #cinema-composer .cinema-options select{font-size:12px}
 #cinema-composer button.cinema-generate,#cinema-composer:not(.has-native-render) .cinema-submit{grid-column:2;grid-row:3/5;margin:4px 0 4px 8px}
 #cinema-composer.has-native-render .cinema-submit{grid-column:1;grid-row:5;justify-self:start}
}
