/* Master-only studio: same dark palette and typography as the admin dashboard. */
#video-studio{--studio-bg:#130c20;--studio-faint:#271a37}#video-studio .studio-heading{margin-bottom:22px}#video-studio .studio-heading h1{margin-bottom:3px}#video-studio .studio-card{border:1px solid var(--line);background:var(--panel);border-radius:19px;padding:19px;min-width:0}#video-studio .studio-card h3{font:600 27px 'Cormorant Garamond',serif;margin:0;color:var(--cream)}#video-studio .studio-badge{display:inline-flex;align-items:center;border:1px solid #705285;background:#3a284b;color:var(--gold);border-radius:999px;padding:7px 12px;font-size:11px;font-weight:750;white-space:nowrap}#video-studio .studio-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px}#video-studio .studio-project-picker{display:flex;align-items:center;gap:12px;min-width:0}#video-studio .studio-project-picker>strong{color:var(--muted);font-size:12px}#video-studio #studioProjects{display:flex;gap:7px;flex-wrap:wrap}#video-studio .studio-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}#video-studio .studio-actions button,#video-studio .studio-media-button,#video-studio .studio-media button{border:1px solid var(--line);border-radius:11px;background:var(--panel2);color:var(--cream);padding:10px 13px;cursor:pointer}#video-studio .studio-actions button:hover,#video-studio .studio-media-button:hover{border-color:var(--gold)}#video-studio .studio-actions button.primary{background:var(--gold);color:#21152b;border-color:var(--gold);font-weight:800}#video-studio .studio-actions button:disabled,#video-studio .studio-media button:disabled{opacity:.55;cursor:not-allowed}#video-studio .studio-empty{text-align:center;padding:48px;color:var(--muted)}#video-studio .studio-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}#video-studio .studio-bar .eyebrow{font-size:10px}#video-studio .studio-scene-strip{margin-bottom:16px}#video-studio .studio-stack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#video-studio .studio-item{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:10px;background:var(--studio-faint);color:var(--cream);border:1px solid var(--line);border-radius:14px;cursor:pointer;min-width:0}#video-studio .studio-item.active{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}#video-studio .studio-item small{display:block;color:var(--muted);font-size:11px;margin-top:4px}#video-studio .studio-item b{display:block;line-height:1.25}#video-studio .studio-scene-thumb{width:82px;height:64px;display:grid;place-items:center;flex:none;border-radius:9px;background:linear-gradient(145deg,#564074,#2b1e40);color:var(--gold);font:600 26px 'Cormorant Garamond',serif;overflow:hidden}#video-studio .studio-scene-thumb img{width:100%;height:100%;object-fit:cover}#video-studio #studioProjects .studio-item{padding:7px 11px;width:auto;max-width:260px}#video-studio #studioProjects .studio-item small{display:none}#video-studio .studio-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.78fr);gap:16px;align-items:stretch}#video-studio .studio-workspace{padding:24px}#video-studio .studio-preview{background:linear-gradient(155deg,#261938,var(--panel));text-align:center}#video-studio .studio-preview .studio-bar{text-align:left}#video-studio .studio-field{display:grid;gap:6px;margin:0 0 15px}#video-studio .studio-field label,#video-studio .studio-label{font-size:12px;color:var(--muted);margin:0 0 8px}#video-studio .studio-field input,#video-studio .studio-field textarea,#video-studio .studio-static{width:100%;border:1px solid var(--line);background:#120c1d;border-radius:10px;color:var(--cream);padding:11px 12px}#video-studio .studio-field textarea{min-height:75px;resize:vertical}#video-studio .studio-static{color:var(--muted)}#video-studio .studio-fields-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#video-studio .studio-fields-row:has(#studioTopic){grid-template-columns:1fr 1.4fr}#video-studio .studio-media{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 18px}#video-studio .studio-media button,#video-studio .studio-media-button{min-height:92px;display:grid;align-content:center;justify-items:center;text-align:center;font-size:12px;gap:4px}#video-studio .studio-media span{font-size:24px;line-height:1;color:var(--gold)}#video-studio .studio-file{position:absolute;left:-9999px;width:1px;height:1px}#video-studio .studio-frame{width:min(100%,290px);aspect-ratio:9/16;margin:5px auto 16px;border-radius:17px;border:1px solid #745794;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 36%,#715182,#342346 56%,#120c1d);display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:22px 17px;box-shadow:0 18px 35px #0005}#video-studio #studioPreviewMedia{position:absolute;inset:0;z-index:0}#video-studio #studioPreviewMedia img{width:100%;height:100%;object-fit:cover;filter:brightness(.68)}#video-studio .frame-placeholder{position:absolute;inset:18% 8% 22%;border:1px dashed #aa8cc2;border-radius:13px;display:grid;place-items:center;color:#e4d4ea;font-size:12px;padding:10px}#video-studio .frame-logo,#video-studio .frame-copy,#video-studio .frame-tag{position:relative;z-index:1;text-shadow:0 2px 8px #000c}#video-studio .frame-logo{font:700 13px 'Cormorant Garamond',serif;color:var(--cream)}#video-studio .frame-title{font:600 30px/1.06 'Cormorant Garamond',serif;color:#fff9ef}#video-studio .frame-copy p{font-size:12px;color:#fff1e5}#video-studio .frame-tag{font-size:11px;color:var(--gold)}#video-studio .studio-note{font-size:12px;line-height:1.5;color:var(--muted)}#video-studio .studio-info{display:flex;gap:13px;margin:15px 0;border:1px solid var(--line);background:#261936;border-radius:13px;padding:15px}#video-studio .studio-info>span{font-size:23px;color:var(--gold)}#video-studio .studio-info p{margin:3px 0 0;color:var(--muted);font-size:12px}#video-studio .studio-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 18px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}#video-studio .studio-bottom strong,#video-studio .studio-bottom span{display:block}#video-studio .studio-bottom span{font-size:11px;color:var(--muted)}@media(max-width:1150px){#video-studio .studio-grid{grid-template-columns:1fr}#video-studio .studio-preview{grid-row:1}#video-studio .studio-bottom,#video-studio .studio-topline{flex-wrap:wrap}}@media(max-width:760px){#video-studio .studio-stack{grid-template-columns:1fr}#video-studio .studio-media{grid-template-columns:repeat(2,1fr)}#video-studio .studio-fields-row{grid-template-columns:1fr}#video-studio .studio-fields-row:has(#studioTopic){grid-template-columns:1fr}}

/* Logo position and editorial safe guide for vertical social video. */
#video-studio .studio-frame{display:block;padding:0}#video-studio .frame-logo{position:absolute;z-index:4;top:7%;left:9%;width:82%;height:auto;max-height:12%;object-fit:contain;filter:drop-shadow(0 2px 7px #000d)}#video-studio .frame-safe-zone{position:absolute;z-index:5;left:7%;right:7%;top:5%;bottom:20%;border:1px dashed #f4d37ea8;border-radius:5px;pointer-events:none;box-shadow:0 0 0 200px #08041217}#video-studio .frame-safe-zone[hidden]{display:none}#video-studio .frame-safe-zone span{position:absolute;bottom:0;left:50%;transform:translate(-50%,50%);white-space:nowrap;border-radius:999px;background:#23152ae8;border:1px solid #d0ac62;color:#ffe2a0;font-size:9px;padding:3px 7px}#video-studio .frame-copy{position:absolute;z-index:4;top:45%;left:10%;right:10%;text-align:center}#video-studio .frame-tag{position:absolute;z-index:4;bottom:23%;left:10%;right:10%;text-align:center}#video-studio .studio-safety-toggle{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:var(--cream);margin:8px 0}#video-studio .studio-safety-toggle input{accent-color:var(--gold)}#video-studio .frame-placeholder{inset:22% 8% 23%}#video-studio .studio-preview>.studio-note{margin-top:10px}

/* Medienauswahl und Szenenvorschau im dunklen Dashboard */
#video-studio .studio-media{margin-bottom:12px}
#video-studio .studio-media-button{border:1px solid var(--line);border-radius:11px;background:var(--panel2);color:var(--cream);cursor:pointer}
#video-studio .studio-media-button:hover,#video-studio .studio-replace:hover{border-color:var(--gold);color:var(--gold)}
#video-studio .studio-media-card{display:flex;align-items:center;gap:14px;padding:11px;margin:0 0 17px;background:#221730;border:1px solid #694c76;border-radius:13px;text-align:left;min-width:0}
#video-studio .studio-media-card[hidden]{display:none}
#video-studio .studio-media-card>img{width:108px;height:80px;object-fit:cover;border-radius:8px;flex:none}
#video-studio .studio-media-card>div{min-width:0;flex:1}
#video-studio .studio-media-card strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--cream)}
#video-studio .studio-media-card small{display:block;margin:4px 0 8px;color:var(--muted)}
#video-studio .studio-replace{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid var(--line);border-radius:8px;color:var(--cream);font-size:12px;cursor:pointer}
#video-studio #studioRemoveMedia{align-self:flex-start;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--cream);padding:6px 9px;cursor:pointer}
#video-studio #studioRemoveMedia:hover{border-color:#f1a5af;color:#f1a5af}
#video-studio .studio-field select{width:100%;border:1px solid var(--line);background:#120c1d;border-radius:10px;color:var(--cream);padding:11px 12px}
#video-studio .studio-subtitle{display:flex;align-items:center;gap:9px;margin:1px 0 15px;color:var(--cream);font-size:12px}
#video-studio .studio-subtitle input{accent-color:var(--gold)}
#video-studio .studio-frame.zoom-preview.playing #studioPreviewMedia img{animation:studio-zoom 12s ease-out forwards}
@keyframes studio-zoom{from{transform:scale(1)}to{transform:scale(1.17)}}
#video-studio .studio-player{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:center;gap:10px 15px;margin:0 auto 15px;max-width:335px}
#video-studio #studioPlay{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--gold);border-radius:999px;background:#3a2949;color:var(--cream);padding:7px 13px 7px 7px;cursor:pointer;font-weight:700;font-size:12px}
#video-studio #studioPlay:hover{background:#554064}
#video-studio #studioPlay img{width:27px;height:27px;object-fit:contain;border-radius:50%;background:#1a1126}
#video-studio #studioClock{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
#video-studio #studioProgress{grid-column:1/-1;width:100%;accent-color:var(--gold);height:5px;margin:0}
#video-studio #studioProgress:disabled{opacity:1}
@media(max-width:550px){#video-studio .studio-media-card>img{width:78px;height:70px}#video-studio .studio-media-card{gap:8px}}

/* Bewegungen gelten nur in der laufenden Szenenvorschau. */
#video-studio .studio-frame.playing #studioPreviewMedia img{animation-duration:var(--studio-duration);animation-timing-function:ease-in-out;animation-fill-mode:both}
#video-studio .studio-frame.playing[data-motion="zoom"] #studioPreviewMedia img{animation-name:studio-zoom}
#video-studio .studio-frame.playing[data-motion="zoom-out"] #studioPreviewMedia img{animation-name:studio-zoom-out}
#video-studio .studio-frame.playing[data-motion="pan-left"] #studioPreviewMedia img{animation-name:studio-pan-left}
#video-studio .studio-frame.playing[data-motion="pan-right"] #studioPreviewMedia img{animation-name:studio-pan-right}
#video-studio .studio-frame.playing[data-motion="rise"] #studioPreviewMedia img{animation-name:studio-rise}
#video-studio .studio-frame.playing[data-motion="fall"] #studioPreviewMedia img{animation-name:studio-fall}
#video-studio .studio-frame.playing[data-motion="fade"] #studioPreviewMedia img{animation-name:studio-fade}
@keyframes studio-zoom-out{from{transform:scale(1.18)}to{transform:scale(1)}}
@keyframes studio-pan-left{from{transform:scale(1.17) translateX(5%)}to{transform:scale(1.17) translateX(-5%)}}
@keyframes studio-pan-right{from{transform:scale(1.17) translateX(-5%)}to{transform:scale(1.17) translateX(5%)}}
@keyframes studio-rise{from{transform:scale(1.17) translateY(5%)}to{transform:scale(1.17) translateY(-5%)}}
@keyframes studio-fall{from{transform:scale(1.17) translateY(-5%)}to{transform:scale(1.17) translateY(5%)}}
@keyframes studio-fade{from{opacity:.15}to{opacity:1}}
#video-studio .studio-voice{border:1px solid var(--line);border-radius:15px;padding:16px;margin:3px 0 18px;background:#24172f}
#video-studio .studio-voice .studio-bar{margin-bottom:12px}
#video-studio .studio-voice h3{font:600 23px 'Cormorant Garamond',serif;margin:3px 0 0;color:var(--cream)}
#video-studio .studio-voice .studio-fields-row{grid-template-columns:minmax(0,2fr) minmax(120px,1fr)}
#video-studio .studio-voice .studio-actions{margin:0 0 8px}
#video-studio .studio-download{display:inline-block;border:1px solid var(--gold);border-radius:11px;padding:10px 13px;color:var(--gold);text-decoration:none}
#video-studio .studio-download[hidden]{display:none}
@media(max-width:550px){#video-studio .studio-voice .studio-fields-row{grid-template-columns:1fr}}

/* Per-scene position controls shared by preview and MP4 export. */
#video-studio .studio-logo-controls{margin:8px 0 18px;padding:16px;background:#24172f;border:1px solid var(--line);border-radius:15px}
#video-studio .studio-logo-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;color:var(--cream)}
#video-studio .studio-logo-head .studio-safety-toggle{margin:0}
#video-studio .studio-logo-sliders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#video-studio .studio-logo-sliders label,#video-studio .studio-title-position label{display:block;font-size:13px;color:var(--cream)}
#video-studio .studio-logo-sliders input,#video-studio .studio-title-position input{display:block;width:100%;margin:10px 0 0;accent-color:var(--gold)}
#video-studio .studio-logo-sliders output,#video-studio .studio-title-position output{float:right;color:var(--gold)}
#video-studio .studio-title-position{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}
#video-studio .studio-title-position .studio-note,#video-studio .studio-logo-controls>.studio-note{margin:8px 0 0}
#video-studio .frame-logo{left:var(--logo-x,50%);top:var(--logo-y,12%);width:var(--logo-size,80%);max-height:none;transform:translate(-50%,-50%);cursor:grab;touch-action:none;user-select:none}
#video-studio .frame-logo:active{cursor:grabbing}
#video-studio .frame-logo[hidden]{display:none}
#video-studio .frame-copy{top:var(--title-y,45%);cursor:ns-resize;touch-action:none;user-select:none}
@media(max-width:760px){#video-studio .studio-logo-sliders{grid-template-columns:1fr}}

#video-studio .studio-logo-delay{margin:0 0 14px}#video-studio .studio-logo-delay select{width:100%;border:1px solid var(--line);background:#120c1d;color:var(--cream);border-radius:10px;padding:11px 12px}#video-studio .studio-logo-delay .studio-note{margin:0}

#video-studio .studio-frame.playing .frame-logo:not([hidden]){animation:studio-logo-fade .7s ease-out both}
@keyframes studio-logo-fade{from{opacity:0}to{opacity:1}}
