.tour-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5000;pointer-events:none}.tour-spotlight{position:fixed;border-radius:8px;box-shadow:0 0 0 9999px #000000b3;transition:all .3s ease;pointer-events:none;z-index:5000}.tour-tooltip{position:fixed;z-index:5001;pointer-events:auto;background:var(--bg-elevated, #2a2a2a);border:1px solid var(--border-color, #444);border-radius:12px;padding:16px;color:var(--text-primary, #fff);box-shadow:0 8px 32px #0006;animation:tour-fade-in .25s ease}@keyframes tour-fade-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.tour-tooltip-title{font-size:15px;font-weight:600;margin-bottom:6px;color:var(--accent-primary, #ff5252)}.tour-tooltip-text{font-size:13px;line-height:1.5;color:var(--text-secondary, #ccc);margin-bottom:14px}.tour-tooltip-footer{display:flex;align-items:center;justify-content:space-between}.tour-dots{display:flex;gap:5px}.tour-dot{width:6px;height:6px;border-radius:50%;background:var(--text-muted, #666);transition:background .2s}.tour-dot.active{background:var(--accent-primary, #ff5252);width:16px;border-radius:3px}.tour-buttons{display:flex;gap:8px}.tour-skip-btn{background:none;border:none;color:var(--text-muted, #888);font-size:12px;cursor:pointer;padding:6px 10px;border-radius:6px}.tour-skip-btn:hover{color:var(--text-primary, #fff);background:var(--bg-tertiary, #333)}.tour-next-btn{background:var(--accent-primary, #ff5252);color:#fff;border:none;font-size:12px;font-weight:600;cursor:pointer;padding:6px 16px;border-radius:6px;transition:background .15s}.tour-next-btn:hover{background:var(--accent-hover, #e04848)}:root{--bg-primary: #f0f0f0;--bg-secondary: #e4e4e7;--bg-tertiary: #d4d4d8;--bg-elevated: #e8e8ec;--bg-hover: rgba(0, 0, 0, .08);--text-primary: #000000;--text-secondary: #5a5a5a;--text-muted: #64748b;--text-inverse: #ffffff;--border-color: #cccccc;--border-light: #e0e0e0;--accent-primary: #e53935;--accent-hover: #c62828;--accent-light: rgba(229, 57, 53, .1);--input-bg: #ffffff;--input-border: #cccccc;--input-focus: rgb(247, 193, 189);--shadow-sm: 0px 1px 3px rgba(0, 0, 0, .1);--shadow-md: 0px 1px 7px rgba(0, 0, 0, .15);--overlay-bg: rgba(0, 0, 0, .6)}[data-theme=dark]{--bg-primary: #0f0f0f;--bg-secondary: #1a1a1a;--bg-tertiary: #242424;--bg-elevated: #2d2d2d;--bg-hover: rgba(255, 255, 255, .08);--text-primary: #f1f1f1;--text-secondary: #aaaaaa;--text-muted: #717171;--text-inverse: #000000;--border-color: #3d3d3d;--border-light: #2d2d2d;--accent-primary: #ff5252;--accent-hover: #ff1744;--accent-light: rgba(255, 82, 82, .15);--input-bg: #2d2d2d;--input-border: #3d3d3d;--input-focus: rgba(255, 82, 82, .3);--shadow-sm: 0px 1px 3px rgba(0, 0, 0, .3);--shadow-md: 0px 1px 7px rgba(0, 0, 0, .4);--overlay-bg: rgba(0, 0, 0, .8)}*{box-sizing:border-box;margin:0;padding:0}html{touch-action:pan-x pan-y;-ms-touch-action:pan-x pan-y}body{font-family:Roboto,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen,Ubuntu,sans-serif;background:var(--bg-primary);color:var(--text-primary);min-height:100vh;transition:background-color .3s ease,color .3s ease}.app{min-height:100vh;display:flex;flex-direction:column;padding:10px}.app.compact{padding:10px}.backend-warning{display:flex;align-items:center;justify-content:space-between;padding:.5rem .75rem;background:#ef444426;border:1px solid rgba(239,68,68,.3);border-radius:6px;margin-bottom:.5rem;font-size:.8rem;color:#f87171}.backend-warning button{background:none;border:1px solid rgba(239,68,68,.3);border-radius:4px;color:#f87171;cursor:pointer;padding:.15rem .5rem;font-size:.7rem;flex-shrink:0;margin-left:.5rem}.backend-warning button:hover{background:#ef444433}.app.compact .app-branding{padding:.25rem .5rem;border-radius:8px 8px 0 0}.app.compact .branding-logo{height:18px}.app.compact .branding-text{font-size:.75rem}.app.compact .branding-close-btn{width:24px;height:24px}.app-branding{display:flex;align-items:center;justify-content:space-between;padding:.4rem 1rem;background:var(--bg-secondary);border-bottom:1px solid var(--border-color);border-radius:8px 8px 0 0}.branding-left{display:flex;align-items:center;gap:.5rem}.branding-logo{height:22px;width:auto}.branding-text{font-size:.85rem;font-weight:500;color:var(--text-secondary);letter-spacing:.5px}.branding-badge{font-size:.6rem;font-weight:600;text-transform:uppercase;letter-spacing:.8px;color:var(--accent-primary);opacity:.8}.branding-info{position:relative;display:flex;align-items:center;color:var(--text-secondary);opacity:.4;cursor:pointer;transition:opacity .15s ease}.branding-info:hover{opacity:.8}.branding-info-popup{position:absolute;top:calc(100% + 6px);left:0;background:var(--bg-secondary, #222);color:var(--text-primary, #fff);font-size:.7rem;padding:4px 8px;border-radius:4px;white-space:nowrap;border:1px solid var(--border-color, #444);z-index:100;opacity:1}.branding-close-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:none;border:1px solid var(--border-color);border-radius:4px;color:var(--text-secondary);cursor:pointer;transition:all .15s ease}.branding-close-btn:hover{background:var(--accent-primary);border-color:var(--accent-primary);color:#fff}.collapsible-section{background:var(--bg-secondary);border-radius:8px;overflow:hidden}.collapsible-header{display:flex;align-items:center;gap:.4rem;width:100%;padding:.5rem .75rem;background:none;border:none;color:var(--text-secondary);font-size:.85rem;font-weight:500;cursor:pointer;text-align:left;transition:color .15s}.collapsible-header:hover{color:var(--text-primary)}.collapsible-body{padding:0 .75rem .75rem}.properties-section .collapsible-body{padding:.5rem .75rem}.properties-section .clip-properties{padding:0;background:none}.properties-section .clip-properties.empty{min-height:auto;padding:.25rem 0}.editor-toolbar{display:flex;align-items:center;gap:.5rem;padding:.25rem 0}.undo-redo-buttons{display:flex;gap:.25rem}.undo-redo-buttons button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);cursor:pointer;transition:all .15s ease}.undo-redo-buttons button:hover:not(:disabled){background:var(--bg-elevated);border-color:var(--accent-primary)}.undo-redo-buttons button:disabled{opacity:.4;cursor:not-allowed}.add-media-btn{display:flex;align-items:center;gap:.35rem;padding:.4rem .75rem;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-secondary);cursor:pointer;font-size:.75rem;transition:all .15s ease;margin-left:auto}.add-media-btn:hover{background:var(--accent-primary);border-color:var(--accent-primary);color:#fff}.ffmpeg-status{text-align:center;padding:.25rem 0}.load-ffmpeg-btn{padding:.5rem 1rem;background:var(--accent-primary);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem}.load-ffmpeg-btn:disabled{opacity:.7;cursor:not-allowed}.ffmpeg-ready{color:#4ade80;font-size:.9rem}.ffmpeg-loading{color:#fbbf24;font-size:.9rem}.app-main{display:flex;flex:1;gap:1rem;padding:1rem;overflow:hidden}.left-panel{width:280px;display:flex;flex-direction:column;gap:1rem;flex-shrink:0}.center-panel{flex:1;display:flex;flex-direction:column;gap:1rem;min-width:0;overflow:hidden}.right-panel{width:280px;flex-shrink:0;display:flex;flex-direction:column;gap:1rem;overflow-y:auto}.app-main.layout-vertical .right-panel{width:420px}.app-main.layout-vertical .right-panel .global-preview{flex:1;display:flex;flex-direction:column}.app-main.layout-vertical .right-panel .global-preview .global-preview-video{flex:1;height:auto!important;aspect-ratio:auto!important}.timeline-section{background:var(--bg-secondary);border-radius:8px;padding:1rem}.timeline-section h3{margin-bottom:.75rem;font-size:1rem;color:var(--text-secondary)}.project-library{background:var(--bg-secondary);border-radius:8px;padding:.75rem;flex:1;overflow:hidden;display:flex;flex-direction:column;min-height:200px;max-height:400px;border:2px dashed transparent;transition:border-color .2s,background .2s}.project-library.dragover{border-color:var(--accent-primary);background:var(--accent-light)}.library-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.library-header h3{font-size:.9rem;color:var(--text-secondary);margin:0}.add-files-btn{width:28px;height:28px;border:none;background:var(--bg-tertiary);color:var(--text-secondary);border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}.add-files-btn:hover{background:var(--accent-primary);color:#fff}.project-library h3{font-size:.9rem;color:var(--text-secondary);margin-bottom:.5rem}.library-content{flex:1;overflow-y:auto}.library-group{margin-bottom:.75rem}.library-group-header{display:flex;align-items:center;gap:.5rem;padding:.25rem 0;color:var(--text-muted);font-size:.75rem;border-bottom:1px solid var(--bg-tertiary);margin-bottom:.5rem}.library-group-count{margin-left:auto;background:var(--bg-tertiary);padding:0 .4rem;border-radius:8px;font-size:.7rem}.library-group-items{display:flex;flex-direction:column;gap:.25rem}.library-empty{color:var(--text-muted);font-size:.7rem;padding:.25rem;font-style:italic}.library-item{display:flex;align-items:center;gap:.5rem;padding:.35rem;background:var(--bg-tertiary);border-radius:4px;cursor:grab;border:1px solid transparent;transition:border-color .2s}.library-item:hover{border-color:var(--accent-primary)}.library-item.selected{border-color:var(--accent-primary);background:var(--accent-light)}.library-item.encoding{opacity:.6;cursor:wait}.library-item:active{cursor:grabbing}.library-item-thumbnail{width:40px;height:28px;background:#000;border-radius:2px;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center}.library-item-thumbnail video,.library-item-thumbnail img{width:100%;height:100%;object-fit:cover}.library-item-thumbnail .audio-icon{color:#60a5fa}.library-item-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.library-item-name{font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px}.library-item-duration{font-size:.65rem;color:var(--text-muted);display:flex;align-items:center;gap:4px}.hls-dl-badge{display:inline-flex;align-items:center;gap:2px;font-size:.55rem;padding:1px 4px;border-radius:3px;background:var(--accent-light);color:var(--accent-primary)}.hls-dl-badge.done{background:#4ade8026;color:#4ade80}.library-item-actions{display:flex;gap:2px}.library-item-actions button{width:20px;height:20px;border:none;background:#0000004d;color:var(--text-secondary);border-radius:3px;cursor:pointer;display:flex;align-items:center;justify-content:center}.library-item-actions button:hover{background:var(--accent-primary);color:#fff}.library-hint{font-size:.65rem;color:var(--text-muted);text-align:center;padding-top:.5rem;border-top:1px solid var(--bg-tertiary);margin-top:.5rem}.video-preview{background:#000;border-radius:4px;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;overflow:hidden}.video-preview video,.video-preview audio,.video-preview img{width:100%;height:100%;object-fit:contain}.video-preview.vertical{aspect-ratio:9/16}.video-preview .no-video{color:var(--text-muted)}.video-preview .audio-preview{display:flex;flex-direction:column;align-items:center;gap:1rem;color:#4ade80}.video-preview .audio-preview audio{width:90%;height:40px}.global-preview{background:var(--bg-secondary);border-radius:8px;padding:.75rem;transition:all .2s}.global-preview-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.global-preview-header h3{font-size:.9rem;color:var(--text-secondary)}.size-controls{display:flex;gap:4px}.size-controls button{width:24px;height:24px;border:none;background:var(--bg-tertiary);color:var(--text-secondary);border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s ease}.size-controls button:hover:not(:disabled){background:var(--accent-primary);color:#fff}.size-controls button:disabled{opacity:.4;cursor:not-allowed}.global-preview.size-small .global-preview-video{height:120px;aspect-ratio:auto}.global-preview.size-medium .global-preview-video{height:200px;aspect-ratio:auto}.global-preview.size-large .global-preview-video{height:300px;aspect-ratio:auto}.global-preview.size-xlarge .global-preview-video{height:400px;aspect-ratio:auto}.global-preview.size-xxlarge .global-preview-video{height:500px;aspect-ratio:auto}.global-preview.size-xxxlarge .global-preview-video{height:600px;aspect-ratio:auto}.global-preview.size-huge .global-preview-video{height:700px;aspect-ratio:auto}.global-preview.size-massive .global-preview-video{height:800px;aspect-ratio:auto}.global-preview.size-giant .global-preview-video{height:900px;aspect-ratio:auto}.global-preview.size-max .global-preview-video{height:1000px;aspect-ratio:auto}.global-preview.size-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;border-radius:0;display:flex;flex-direction:column}.global-preview.size-fullscreen .global-preview-video{flex:1;height:auto;aspect-ratio:auto}.global-preview-video{position:relative;background:#000;border-radius:4px;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:.5rem}.global-preview.vertical-video .global-preview-video{aspect-ratio:9/16;margin-left:auto;margin-right:auto}.global-preview.aspect-4-3 .global-preview-video{aspect-ratio:4/3;margin-left:auto;margin-right:auto}.global-preview.aspect-1-1 .global-preview-video{aspect-ratio:1/1;margin-left:auto;margin-right:auto}.global-preview-video video,.global-preview-video img{width:100%;height:100%;object-fit:contain}.global-preview-video .no-video,.global-preview-video .no-clip-at-position{color:var(--text-muted);font-size:.8rem}.preview-layer-container{width:100%;height:100%;position:relative;overflow:hidden;background:#000}.preview-layer-container video,.preview-layer-container img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain;transform-origin:center center}.global-preview-controls{display:flex;align-items:center;gap:.35rem;margin-bottom:.35rem}.global-preview-controls button{width:28px;height:28px;border:none;background:var(--bg-tertiary);color:var(--text-primary);border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center}.global-preview-controls button:hover,.global-preview-controls button.loop-active,.global-preview-controls button.orientation-override{background:var(--accent-primary);color:#fff}.global-preview-controls .time-display{font-size:.75rem;color:var(--text-secondary);margin-left:auto}.compact-size-controls{display:flex;gap:4px;margin-left:.5rem}.compact-size-controls button{width:28px;height:28px;border:none;background:var(--bg-tertiary);color:var(--text-secondary);border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s ease}.compact-size-controls button:hover,.compact-size-controls button.active{background:var(--accent-primary);color:#fff}.global-preview-scrubber{position:relative;height:16px;cursor:pointer;margin-bottom:.5rem}.global-preview-scrubber .scrubber-track{position:absolute;top:6px;left:0;right:0;height:4px;background:var(--bg-tertiary);border-radius:2px}.global-preview-scrubber .scrubber-progress{position:absolute;top:6px;left:0;height:4px;background:var(--accent-primary);border-radius:2px}.global-preview-scrubber .scrubber-thumb{position:absolute;top:2px;width:12px;height:12px;background:#fff;border-radius:50%;transform:translate(-50%);box-shadow:0 0 4px #00000080}.current-clip-info{font-size:.75rem;color:var(--text-muted)}.timeline-container{background:var(--bg-tertiary);border-radius:4px;overflow:hidden}.timeline-header{display:flex;background:var(--bg-secondary);border-bottom:1px solid var(--bg-tertiary)}.track-controls-header{width:120px;padding:.5rem;font-size:.8rem;color:var(--text-muted);border-right:1px solid var(--bg-tertiary)}.timeline-content-header{flex:1;padding:.5rem;display:flex;gap:.5rem}.add-track-btn{display:flex;align-items:center;gap:4px;padding:4px 8px;background:transparent;border:1px dashed var(--text-muted);color:var(--text-secondary);border-radius:4px;font-size:.75rem;cursor:pointer}.add-track-btn:hover{border-color:var(--accent-primary);color:var(--accent-primary)}.timeline-row{display:flex;min-height:140px;border-bottom:1px solid var(--bg-secondary)}.timeline-row:last-child{border-bottom:none}.track-separator{height:2px;background:var(--accent-primary);opacity:.3}.track-controls{width:120px;padding:.5rem;background:var(--bg-secondary);border-right:1px solid var(--bg-tertiary);display:flex;flex-direction:column;align-items:center;gap:.25rem;color:#4ade80}.track-controls.audio{color:#60a5fa}.track-name{font-size:.75rem;color:var(--text-secondary)}.remove-track-btn{padding:4px;background:transparent;border:none;color:var(--text-muted);cursor:pointer;border-radius:4px}.remove-track-btn:hover{color:#f87171;background:#f871711a}.timeline-track{flex:1;padding:.5rem;display:flex;gap:.5rem;overflow-x:auto;min-height:120px;align-items:flex-start}.timeline-track.drop-target{background:var(--accent-light)}.timeline-track.audio{background:#60a5fa0d}.track-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--text-muted);font-size:.8rem;border:2px dashed var(--bg-primary);border-radius:4px}.timeline-clip{min-width:160px;max-width:220px;background:var(--bg-primary);border-radius:4px;padding:.5rem;cursor:grab;border:2px solid transparent;transition:border-color .2s;position:relative;flex-shrink:0}.timeline-clip:active{cursor:grabbing}.timeline-clip.selected{border-color:var(--accent-primary)}.timeline-clip.dragging{opacity:.5}.timeline-clip.drag-over{border-left:4px solid var(--accent-primary)}.timeline-clip.audio-clip{border-color:#60a5fa4d}.timeline-clip.audio-clip.selected{border-color:#60a5fa}.timeline-clip .thumbnail{width:100%;aspect-ratio:16/9;background:#000;border-radius:2px;margin-bottom:.5rem;overflow:hidden}.timeline-clip .thumbnail video,.timeline-clip .thumbnail img{width:100%;height:100%;object-fit:cover;pointer-events:none}.timeline-clip .thumbnail.audio-thumbnail{background:linear-gradient(135deg,var(--bg-elevated) 0%,var(--bg-tertiary) 100%);display:flex;align-items:center;justify-content:center}.audio-waveform{display:flex;flex-direction:column;align-items:center;gap:.25rem;color:#60a5fa}.waveform-bars{display:flex;align-items:center;gap:2px;height:30px}.waveform-bar{width:4px;background:#60a5fa;border-radius:2px;opacity:.6}.timeline-clip .clip-info{display:flex;align-items:center;justify-content:space-between;font-size:.7rem}.timeline-clip .clip-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.timeline-clip .clip-duration{color:var(--text-muted);margin-left:.5rem}.timeline-clip .clip-actions{position:absolute;top:4px;right:4px;display:flex;gap:2px}.timeline-clip .clip-actions button{width:22px;height:22px;border:none;background:#0009;color:var(--text-primary);border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.7rem}.timeline-clip .clip-actions button:hover{background:var(--accent-primary)}.timeline-clip .clip-actions button.audio-off{color:#f87171}.clip-scrubber{position:relative;height:20px;margin:.25rem 0;cursor:pointer;-webkit-user-select:none;user-select:none}.scrubber-bg{position:absolute;top:7px;left:0;right:0;height:6px;background:var(--bg-tertiary);border-radius:3px}.scrubber-trimmed{position:absolute;top:7px;height:6px;background:#4ade80;border-radius:3px;opacity:.6}.audio-clip .scrubber-trimmed{background:#60a5fa}.scrubber-handle{position:absolute;top:3px;width:6px;height:14px;background:var(--accent-primary);border-radius:2px;cursor:ew-resize;transform:translate(-50%);z-index:2}.scrubber-handle:hover{background:var(--accent-hover)}.scrubber-playhead{position:absolute;top:1px;width:3px;height:18px;background:#fff;border-radius:1px;cursor:ew-resize;transform:translate(-50%);z-index:3;box-shadow:0 0 4px #00000080}.scrubber-playhead:hover{background:var(--accent-primary)}.split-btn{display:flex;align-items:center;gap:3px;padding:3px 6px;background:var(--accent-primary);color:#fff;border:none;border-radius:3px;font-size:.65rem;cursor:pointer;margin-bottom:.25rem}.split-btn:hover{background:var(--accent-hover)}.export-section{background:var(--bg-secondary);border-radius:8px;padding:1rem}.export-btn{width:100%;padding:.75rem;background:var(--accent-primary);color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.9rem;font-weight:600}.export-btn:disabled{opacity:.5;cursor:not-allowed}.export-btn:not(:disabled):hover{background:var(--accent-hover)}.export-progress{margin-top:.75rem}.export-progress-bar{height:8px;background:var(--bg-tertiary);border-radius:4px;overflow:hidden}.export-progress-bar .fill{height:100%;background:#4ade80;transition:width .2s}.export-progress-text{text-align:center;font-size:.8rem;color:var(--text-secondary);margin-top:.25rem}.export-controls{display:flex;gap:.5rem;align-items:center}.export-controls .export-btn{flex:1}.export-settings-btn{padding:.75rem;background:var(--bg-secondary);border:1px solid var(--bg-tertiary);border-radius:8px;color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center}.export-settings-btn:hover{background:var(--bg-primary);color:var(--accent-primary)}.export-settings{margin-top:.75rem;padding:.75rem;background:var(--bg-secondary);border-radius:8px;display:flex;flex-direction:column;gap:.5rem}.export-settings label{font-size:.8rem;color:var(--text-secondary)}.quality-select{background:var(--bg-primary);border:1px solid var(--bg-tertiary);color:var(--text-primary);padding:.5rem;border-radius:4px;font-size:.9rem}.quality-hint{font-size:.75rem;color:var(--text-muted)}.export-cancel-btn{padding:.75rem;background:#7f1d1d;border:1px solid #991b1b;border-radius:8px;color:#fca5a5;cursor:pointer;display:flex;align-items:center;justify-content:center}.export-cancel-btn:hover{background:#991b1b;color:#fff}.export-setting-row{display:flex;flex-direction:column;gap:.35rem}.export-method-toggle{display:flex;gap:0;border-radius:6px;overflow:hidden;border:1px solid var(--bg-tertiary)}.method-btn{flex:1;padding:.5rem .75rem;background:var(--bg-primary);border:none;color:var(--text-secondary);cursor:pointer;font-size:.8rem;transition:all .15s ease}.method-btn:first-child{border-right:1px solid var(--bg-tertiary)}.method-btn:hover{background:var(--bg-tertiary)}.method-btn.active{background:var(--accent-primary);color:#fff}.setting-hint{font-size:.7rem;color:var(--text-muted);line-height:1.3}.timeline-v2{background:var(--bg-secondary);border-radius:8px;display:flex;flex-direction:column;flex:1;min-height:200px;overflow:hidden}.timeline-toolbar{display:flex;align-items:center;justify-content:space-between;padding:.5rem .75rem;background:var(--bg-tertiary);border-bottom:1px solid var(--bg-primary)}.toolbar-left,.toolbar-center,.toolbar-right{display:flex;align-items:center;gap:.5rem}.toolbar-left{position:relative}.toolbar-center{flex:1;justify-content:center;padding:0 .75rem}.toolbar-right{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}.add-menu-btn{display:flex;align-items:center;gap:2px;padding:.3rem .5rem;border:1px dashed var(--text-muted);background:transparent;color:var(--text-secondary);border-radius:4px;cursor:pointer;font-size:.75rem}.add-menu-btn:hover{border-color:var(--accent-primary);color:var(--accent-primary)}.add-menu-dropdown{position:absolute;top:100%;left:0;margin-top:4px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:6px;padding:4px;z-index:100;min-width:140px;box-shadow:0 4px 12px #0000004d}.add-menu-dropdown button{display:flex;align-items:center;gap:8px;width:100%;padding:6px 10px;border:none;background:transparent;color:var(--text-secondary);border-radius:4px;cursor:pointer;font-size:.75rem;white-space:nowrap}.add-menu-dropdown button:hover{background:var(--accent-primary);color:#fff}.action-btn{display:flex;align-items:center;gap:.3rem;padding:.3rem .6rem;border:none;background:var(--bg-secondary);color:var(--text-secondary);border-radius:4px;cursor:pointer;font-size:.7rem;white-space:nowrap}.action-btn:hover:not(:disabled){background:var(--accent-primary);color:#fff}.action-btn:disabled{opacity:.35;cursor:default}.action-btn.delete-btn:hover:not(:disabled){background:#dc2626}.clip-actions-wrap{position:relative;display:flex;align-items:center}.clip-actions-dropdown{position:absolute;top:100%;right:0;margin-top:4px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:6px;padding:4px;z-index:100;min-width:140px;box-shadow:0 4px 12px #0000004d}.clip-actions-dropdown button{display:flex;align-items:center;gap:8px;width:100%;padding:6px 10px;border:none;background:transparent;color:var(--text-secondary);border-radius:4px;cursor:pointer;font-size:.75rem;white-space:nowrap}.clip-actions-dropdown button:hover{background:var(--accent-primary);color:#fff}.clip-actions-dropdown button.active{color:var(--accent-primary)}.zoom-slider{width:100%;height:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--bg-primary);border-radius:2px;outline:none;cursor:pointer}.zoom-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:12px;height:12px;background:var(--text-secondary);border-radius:50%;cursor:pointer}.zoom-slider::-webkit-slider-thumb:hover{background:var(--accent-primary)}.zoom-slider::-moz-range-thumb{width:12px;height:12px;background:var(--text-secondary);border-radius:50%;border:none;cursor:pointer}.zoom-slider::-moz-range-thumb:hover{background:var(--accent-primary)}.timeline-scroll-container{display:flex;flex:1;overflow:hidden}.timeline-sidebar{width:120px;background:var(--bg-tertiary);flex-shrink:0;border-right:1px solid var(--bg-primary);margin-right:4px}.sidebar-ruler-space{height:24px;border-bottom:1px solid var(--bg-primary)}.sidebar-separator{height:2px;background:var(--accent-primary);opacity:.3}.track-label{height:60px;padding:.3rem .25rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;font-size:.7rem;color:#4ade80;border-bottom:1px solid var(--bg-primary)}.track-label.audio{color:#60a5fa}.track-label-top{display:flex;align-items:center;justify-content:center;gap:4px}.track-toggle-btn{display:flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;background:none;border:none;border-radius:3px;color:var(--text-tertiary);cursor:pointer;opacity:.6;transition:all .15s ease}.track-toggle-btn:hover{opacity:1;color:var(--text-primary)}.track-label.track-hidden{opacity:.4}.track-label.track-muted .track-toggle-btn{color:var(--text-tertiary);opacity:.4}.track-label-bottom{display:flex;align-items:center;justify-content:space-between;width:100%;gap:.4rem}.track-delete-btn{width:28px;height:28px;border:none;background:transparent;color:var(--text-muted);cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center}.track-delete-btn:hover{color:#f87171;background:#f871711a}.timeline-content{flex:1;overflow-x:auto;overflow-y:hidden;position:relative;-webkit-overflow-scrolling:touch}.timeline-clip-v2.dragging{touch-action:none}.timeline-content:has(.timeline-clip-v2.dragging){overflow:hidden;touch-action:none}.timeline-ruler{height:24px;background:var(--bg-tertiary);border-bottom:1px solid var(--bg-primary);position:relative;cursor:pointer}.ruler-mark{position:absolute;top:0;height:100%;display:flex;flex-direction:column;align-items:flex-start}.ruler-tick{width:1px;height:8px;background:var(--text-muted)}.ruler-label{font-size:.6rem;color:var(--text-muted);padding-left:2px;white-space:nowrap}.timeline-playhead{position:absolute;top:0;bottom:0;z-index:10;cursor:ew-resize;pointer-events:auto;transition:left 50ms linear;will-change:left;touch-action:none}.playhead-head{width:12px;height:12px;background:var(--accent-primary);border-radius:2px;transform:translate(-50%);cursor:ew-resize}.timeline-playhead:before{content:"";position:absolute;top:-4px;left:-12px;right:-12px;height:24px;cursor:ew-resize}.playhead-line{width:2px;background:var(--accent-primary);position:absolute;top:12px;bottom:0;left:50%;transform:translate(-50%);pointer-events:none}.timeline-track-v2{height:60px;position:relative;border-bottom:1px solid var(--bg-primary);background:#0003}.timeline-track-v2.audio{background:#60a5fa0d}.track-separator-v2{height:2px;background:var(--accent-primary);opacity:.3}.timeline-clip-v2{position:absolute;top:4px;height:calc(100% - 8px);background:var(--bg-primary);border-radius:4px;border:2px solid #4ade80;cursor:grab;display:flex;overflow:hidden;transition:border-color .15s;-webkit-user-select:none;user-select:none}.timeline-clip-v2:active,.timeline-clip-v2.dragging{cursor:grabbing}.timeline-clip-v2.selected{border-color:var(--accent-primary);box-shadow:0 0 8px var(--accent-light)}.timeline-clip-v2.audio{border-color:#60a5fa}.timeline-clip-v2.audio.selected{border-color:var(--accent-primary)}.timeline-clip-v2.image{border-color:#a78bfa}.timeline-clip-v2.image.selected{border-color:var(--accent-primary)}.timeline-clip-v2.text{border-color:#7c3aed;background:linear-gradient(135deg,var(--bg-primary) 0%,#2d1f4e 100%)}.timeline-clip-v2.text.selected{border-color:var(--accent-primary)}.timeline-clip-v2.group-highlighted{border-color:var(--accent-primary);box-shadow:0 0 6px var(--accent-light)}.clip-text-preview{display:flex;align-items:center;gap:.5rem;padding:0 .5rem;color:#a78bfa;flex:1;min-width:0;overflow:hidden}.clip-text-preview .text-preview{font-size:.65rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-primary)}.trim-handle{width:8px;background:var(--bg-hover);cursor:ew-resize;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:background .15s}.trim-handle:hover{background:var(--accent-primary)}.trim-handle:after{content:"";width:2px;height:20px;background:#ffffff4d;border-radius:1px}.trim-handle:hover:after{background:#fff}.clip-content{flex:1;display:flex;overflow:hidden;min-width:0}.clip-thumbnail{width:60px;flex-shrink:0;overflow:hidden}.clip-thumbnail img,.clip-thumbnail video{width:100%;height:100%;object-fit:cover;pointer-events:none}.clip-sprite-strip{display:flex;height:100%;overflow:hidden}.clip-sprite-strip .sprite-frame{height:100%;flex-shrink:0;object-fit:cover;pointer-events:none}.clip-sprite-strip .sprite-placeholder{width:40px;background:var(--bg-primary)}.clip-waveform{flex:1;position:relative;display:flex;align-items:center;padding:0;color:#60a5fa;overflow:hidden}.waveform-visual{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;gap:1px;padding:0 2px}.wave-bar{flex:1;max-width:4px;background:#60a5fa;border-radius:1px;opacity:.5}.waveform-label{position:relative;z-index:1;display:flex;align-items:center;gap:4px;padding:0 .5rem;font-size:.65rem;color:var(--text-primary);text-shadow:0 1px 3px rgba(0,0,0,.4);white-space:nowrap;overflow:hidden}.waveform-label .clip-name{overflow:hidden;text-overflow:ellipsis}.waveform-label .clip-duration{font-size:.55rem;color:var(--text-secondary);flex-shrink:0}.clip-label{flex:1;display:flex;flex-direction:column;justify-content:center;padding:0 .5rem;min-width:0;overflow:hidden}.clip-label .clip-name{font-size:.65rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.clip-label .clip-duration{font-size:.55rem;color:var(--text-muted)}.layer-indicator{position:absolute;top:2px;right:2px;font-size:.5rem;color:var(--text-muted);background:#00000080;padding:1px 3px;border-radius:2px}.group-indicator{position:absolute;bottom:2px;left:2px;display:flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:2px;color:#fff;opacity:.85;pointer-events:none}.timeline-clip-v2.grouped{border-left-width:3px;border-left-style:solid}.clip-properties{background:var(--bg-secondary);border-radius:8px;padding:.75rem;display:flex;flex-direction:column;gap:.5rem}.clip-properties.empty{display:flex;align-items:center;justify-content:center;min-height:60px;color:var(--text-muted);font-size:.85rem}.properties-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.properties-header .properties-info{flex:1;min-width:0}.prop-reset-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:4px;padding:0;background:none;border:none;border-radius:3px;color:var(--text-tertiary);cursor:pointer;opacity:.6;transition:all .15s ease}.prop-reset-btn:hover{opacity:1;color:var(--accent-primary)}.properties-groups{display:flex;flex-direction:column;gap:.5rem}.app-main.layout-vertical .properties-groups{flex-direction:row;gap:1rem}.prop-group{flex:1;min-width:0;display:flex;flex-direction:column;gap:.35rem;padding:.5rem;background:var(--bg-tertiary);border-radius:6px}.prop-group-label{font-size:.65rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;padding-bottom:.25rem;border-bottom:1px solid var(--border-light);margin-bottom:.15rem}.color-field{display:flex;align-items:center;gap:6px}.properties-actions{display:flex;gap:4px;flex-shrink:0}.properties-actions button{width:24px;height:24px;border:none;background:var(--bg-tertiary);color:var(--text-secondary);border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center}.properties-actions button:hover{background:var(--accent-primary);color:#fff}.properties-info{display:flex;align-items:center;gap:.5rem;padding:.5rem;background:var(--bg-tertiary);border-radius:4px}.properties-info .clip-name{flex:1;font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.properties-info .clip-type{font-size:.65rem;color:var(--text-muted);text-transform:uppercase;background:var(--bg-primary);padding:2px 6px;border-radius:3px}.property-group{display:flex;flex-direction:column;gap:.35rem}.property-group label{display:flex;align-items:center;gap:.35rem;font-size:.7rem;color:var(--text-muted)}.property-slider{display:flex;align-items:center;gap:.5rem}.property-slider input[type=range]{flex:1;height:6px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--border-color);border-radius:3px;cursor:pointer;outline:none}.property-slider input[type=range]::-webkit-slider-runnable-track{height:6px;background:var(--border-color);border-radius:3px}.property-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;background:var(--accent-primary);border-radius:50%;cursor:pointer;margin-top:-4px}.property-slider input[type=range]::-moz-range-track{height:6px;background:var(--border-color);border-radius:3px;border:none}.property-slider input[type=range]::-moz-range-thumb{width:14px;height:14px;background:var(--accent-primary);border-radius:50%;cursor:pointer;border:none}.property-slider input[type=range]::-moz-range-progress{background:var(--accent-primary);height:6px;border-radius:3px}.property-slider span{font-size:.7rem;color:var(--text-secondary);min-width:40px;text-align:right}.mute-btn{padding:4px 8px;font-size:.65rem;background:var(--bg-tertiary);color:var(--text-secondary);border:none;border-radius:3px;cursor:pointer}.mute-btn:hover{background:var(--accent-primary);color:#fff}.mute-btn.muted{background:#f87171;color:#fff}.text-align-buttons{display:flex;gap:2px;background:var(--bg-tertiary);border-radius:4px;padding:2px}.text-align-btn{display:flex;align-items:center;justify-content:center;padding:4px 10px;border:none;background:transparent;color:var(--text-muted);cursor:pointer;border-radius:3px;transition:all .15s}.text-align-btn:hover{color:var(--text-primary);background:var(--bg-elevated)}.text-align-btn.active{background:var(--accent-primary);color:#fff}.property-inputs{display:flex;gap:.5rem;flex-wrap:wrap}.property-inputs.crop-inputs{display:grid;grid-template-columns:1fr 1fr;gap:.35rem}.input-group{display:flex;align-items:center;gap:4px;background:var(--bg-tertiary);padding:4px 8px;border-radius:4px}.input-group span{font-size:.65rem;color:var(--text-muted)}.input-group input{width:50px;background:transparent;border:none;color:var(--text-primary);font-size:.7rem;text-align:right}.input-group input:focus{outline:none}.draggable-input{display:flex;align-items:center;gap:4px;background:var(--bg-tertiary);padding:6px 10px;border-radius:4px;cursor:ew-resize;-webkit-user-select:none;user-select:none;transition:background .15s,box-shadow .15s;min-width:80px}.draggable-input:hover{background:var(--bg-elevated)}.draggable-input.dragging{background:var(--bg-elevated);box-shadow:0 0 0 2px var(--accent-primary)}.draggable-input .drag-label{font-size:.7rem;color:var(--text-muted);font-weight:500;min-width:14px}.draggable-input input{width:60px;background:transparent;border:none;color:var(--text-primary);font-size:.8rem;text-align:right;cursor:text;padding:0}.draggable-input input:focus{outline:none}.draggable-input input::-webkit-inner-spin-button,.draggable-input input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.draggable-input input[type=number]{-moz-appearance:textfield}.draggable-input .drag-suffix{font-size:.65rem;color:var(--text-muted);min-width:16px}.position-drag-handle{display:inline-flex;align-items:center;justify-content:center;cursor:grab;padding:2px;border-radius:3px;color:var(--text-muted);margin-left:auto;transition:color .15s,background .15s}.position-drag-handle:hover{color:var(--text-primary);background:var(--bg-elevated)}.position-drag-handle.dragging{cursor:grabbing;color:var(--accent-primary);background:var(--bg-elevated)}.property-hint{font-size:.6rem;color:var(--text-muted);margin-top:4px;font-style:italic}.text-input{width:100%;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);padding:8px;font-size:.8rem;resize:vertical;min-height:60px}.text-input:focus{outline:none;border-color:var(--accent-primary)}.font-select,.weight-select{flex:1;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);padding:6px 8px;font-size:.75rem;cursor:pointer}.font-select:focus,.weight-select:focus{outline:none;border-color:var(--accent-primary)}.style-inputs{display:flex;gap:.5rem}.color-input{width:40px;height:30px;border:none;border-radius:4px;cursor:pointer;background:transparent}.color-input::-webkit-color-swatch-wrapper{padding:0}.color-input::-webkit-color-swatch{border-radius:4px;border:1px solid var(--border-color)}.color-value{font-size:.7rem;color:var(--text-secondary);font-family:monospace}.add-track-btn.text-btn{background:#7c3aed}.add-track-btn.text-btn:hover{background:#6d28d9}.property-group.timing label{margin-bottom:.25rem}.timing-info{display:grid;grid-template-columns:1fr 1fr;gap:.25rem;background:var(--bg-tertiary);padding:.5rem;border-radius:4px}.timing-info div{display:flex;justify-content:space-between;font-size:.65rem}.timing-info div span:first-child{color:var(--text-muted)}.timing-info div span:last-child{color:var(--text-secondary)}.record-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;background:var(--overlay-bg);display:flex;align-items:center;justify-content:center}.record-modal{background:var(--bg-secondary);border-radius:12px;width:480px;max-width:95vw;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-md)}.record-modal-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border-color);font-size:.9rem;font-weight:500;color:var(--text-primary)}.record-close-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:none;border:1px solid var(--border-color);border-radius:4px;color:var(--text-secondary);cursor:pointer;transition:all .15s ease}.record-close-btn:hover{background:var(--accent-primary);border-color:var(--accent-primary);color:#fff}.record-preview{position:relative;background:#000;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;overflow:hidden}.record-preview video{width:100%;height:100%;object-fit:cover}.record-timer{position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:6px;background:#000000b3;color:#fff;padding:4px 10px;border-radius:4px;font-size:.85rem;font-variant-numeric:tabular-nums}.record-dot{width:8px;height:8px;background:#ef4444;border-radius:50%;animation:record-pulse 1s ease-in-out infinite}@keyframes record-pulse{0%,to{opacity:1}50%{opacity:.3}}.record-loading,.record-error{color:var(--text-muted);font-size:.85rem}.record-error{color:#f87171;padding:1rem;text-align:center}.record-controls{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:1rem}.record-start-btn,.record-stop-btn,.record-retake-btn,.record-use-btn{display:flex;align-items:center;gap:6px;padding:.5rem 1.25rem;border:none;border-radius:6px;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s ease}.record-start-btn{background:#ef4444;color:#fff}.record-start-btn:hover{background:#dc2626}.record-stop-btn{background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-color)}.record-stop-btn:hover{background:var(--accent-primary);color:#fff;border-color:var(--accent-primary)}.record-retake-btn{background:var(--bg-tertiary);color:var(--text-secondary);border:1px solid var(--border-color)}.record-retake-btn:hover{background:var(--bg-elevated);color:var(--text-primary)}.record-use-btn{background:#4ade80;color:#000}.record-use-btn:hover{background:#22c55e}.record-audio-modal{max-width:360px}.record-audio-preview{padding:2rem;display:flex;align-items:center;justify-content:center;min-height:150px}.record-audio-preview audio{width:100%}.record-audio-indicator{display:flex;flex-direction:column;align-items:center;gap:1rem;color:var(--text-secondary)}.record-audio-indicator .recording-pulse{animation:mic-pulse 1s ease-in-out infinite;color:#ef4444}@keyframes mic-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.1)}}.global-preview-video-wrap.with-big-recorder{display:flex;flex-direction:column;gap:4px}.global-preview-video-wrap.with-big-recorder>.global-preview-video{flex:1;min-height:0}.global-preview-video-wrap.with-big-recorder.vertical-layout{flex-direction:row}.global-preview-video-wrap.with-big-recorder.vertical-layout>.global-preview-video{flex:1;min-width:0}.global-preview-video-wrap.with-big-recorder.vertical-layout>.inline-recorder-pip.pip-big{flex:1;min-width:0}.global-preview-video-wrap.with-big-recorder.vertical-layout .pip-video-area{aspect-ratio:3/4}.inline-recorder-pip.pip-small{position:absolute;z-index:50;width:180px;border-radius:8px;overflow:hidden;background:#000000d9;box-shadow:0 4px 20px #00000080;border:1px solid rgba(255,255,255,.15);-webkit-user-select:none;user-select:none}@media (max-width: 767px){.inline-recorder-pip.pip-small{width:140px}}.inline-recorder-pip.pip-big{border-radius:8px;overflow:hidden;background:#000000d9;border:1px solid rgba(255,255,255,.15);-webkit-user-select:none;user-select:none}.inline-recorder-pip.pip-big .pip-video-area{aspect-ratio:4/3}.pip-header{display:flex;align-items:center;justify-content:space-between;padding:4px 8px;background:#0009;cursor:grab;font-size:.7rem;color:#fffc}.pip-header:active{cursor:grabbing}.pip-title{font-weight:500;font-variant-numeric:tabular-nums}.pip-header-actions{display:flex;align-items:center;gap:2px}.pip-close-btn,.pip-size-btn{display:flex;align-items:center;justify-content:center;width:18px;height:18px;background:none;border:none;color:#fff9;cursor:pointer;border-radius:3px;padding:0}.pip-close-btn:hover,.pip-size-btn:hover{background:#fff3;color:#fff}.pip-video-area{position:relative;aspect-ratio:4/3;background:#000;overflow:hidden}.pip-uploading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#0009;color:#fffc;font-size:.65rem;font-weight:500}.pip-video-area video{width:100%;height:100%;object-fit:cover}.pip-timer{position:absolute;top:4px;left:4px;display:flex;align-items:center;gap:4px;background:#c80000cc;color:#fff;padding:2px 6px;border-radius:3px;font-size:.6rem;font-weight:600}.pip-timer .record-dot{width:6px;height:6px}.pip-loading,.pip-error{color:#ffffff80;font-size:.65rem;text-align:center;padding:1.5rem .5rem}.pip-error{color:#f87171}.pip-controls{display:flex;align-items:center;justify-content:center;gap:8px;padding:6px}.pip-record-btn,.pip-stop-btn,.pip-retake-btn,.pip-use-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:50%;cursor:pointer;transition:all .15s ease;padding:0}.pip-record-btn{background:#ef4444;color:#fff}.pip-record-btn:hover{background:#dc2626;transform:scale(1.1)}.pip-sync-btn{display:flex;align-items:center;justify-content:center;gap:3px;height:28px;padding:0 10px;border:none;border-radius:14px;cursor:pointer;transition:all .15s ease;background:#ef4444;color:#fff;font-size:.6rem;font-weight:600}.pip-sync-btn:hover{background:#dc2626;transform:scale(1.05)}.pip-sync-btn .sync-label{white-space:nowrap}.pip-stop-btn{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3)}.pip-stop-btn:hover{background:#ffffff4d}.pip-retake-btn{background:#ffffff26;color:#fffc}.pip-retake-btn:hover{background:#ffffff40;color:#fff}.pip-use-btn{background:#4ade80;color:#000}.pip-use-btn:hover{background:#22c55e}.hls-download-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:3000;background:var(--overlay-bg);display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.hls-download-modal{background:var(--bg-secondary);border-radius:12px;padding:2rem 2.5rem;text-align:center;box-shadow:var(--shadow-md);min-width:320px;max-width:400px}.hls-download-icon{color:var(--accent-primary);margin-bottom:.75rem;animation:hls-dl-pulse 2s ease-in-out infinite}@keyframes hls-dl-pulse{0%,to{opacity:1}50%{opacity:.5}}.hls-download-modal h3{font-size:1rem;color:var(--text-primary);margin-bottom:.5rem}.hls-download-name{font-size:.8rem;color:var(--text-secondary);margin-bottom:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hls-download-progress-bar{height:8px;background:var(--bg-tertiary);border-radius:4px;overflow:hidden;margin-bottom:.5rem}.hls-download-progress-fill{height:100%;background:var(--accent-primary);border-radius:4px;transition:width .3s ease}.hls-download-percent{font-size:.9rem;font-weight:600;color:var(--text-primary);margin-bottom:.5rem}.hls-download-hint{font-size:.75rem;color:var(--text-muted)}.compact-menu-bar{display:flex;align-items:center;justify-content:space-between;padding:.35rem .75rem;background:var(--bg-secondary);border-bottom:1px solid var(--border-color)}.compact-menu-left,.compact-menu-right{display:flex;align-items:center;gap:.25rem;flex:1}.compact-menu-center{display:flex;align-items:center;justify-content:center}.compact-menu-right{justify-content:flex-end}.compact-close-btn{color:var(--text-secondary)}.compact-close-btn:hover{background:#e5393533!important;color:var(--accent-primary)!important}.compact-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);cursor:pointer;transition:all .15s ease}.compact-btn:hover:not(:disabled){background:var(--bg-elevated);border-color:var(--accent-primary)}.compact-btn:disabled{opacity:.4;cursor:not-allowed}.compact-render-btn{display:flex;align-items:center;gap:.35rem;padding:.4rem 1rem;background:var(--accent-primary);border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:.8rem;font-weight:500;transition:all .15s ease}.compact-render-btn:hover:not(:disabled){background:var(--accent-hover)}.compact-render-btn:disabled{opacity:.5;cursor:not-allowed}.compact-download-btn{display:flex;align-items:center;gap:.35rem;padding:.4rem 1rem;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-secondary);cursor:pointer;font-size:.8rem;font-weight:500;text-decoration:none;transition:all .15s ease}.compact-download-btn:hover{background:var(--bg-tertiary);color:var(--text-primary)}.compact-post-btn{background:var(--bg-secondary);color:var(--text-secondary);border:1px solid var(--border-color)}.compact-post-btn:hover{background:var(--bg-tertiary);color:var(--text-primary)}.compact-render-progress{display:flex;align-items:center;gap:.5rem;padding:.25rem .75rem;background:var(--bg-secondary);border-bottom:1px solid var(--border-color)}.compact-render-progress-bar{flex:1;height:4px;background:var(--bg-tertiary);border-radius:2px;overflow:hidden}.compact-render-progress-fill{height:100%;background:var(--accent-primary);border-radius:2px;transition:width .3s ease}.compact-render-progress-text{font-size:.7rem;color:var(--text-secondary);white-space:nowrap}.compact-render-error{display:flex;align-items:center;justify-content:space-between;padding:.35rem .75rem;background:#ef444426;border-bottom:1px solid rgba(239,68,68,.3);font-size:.75rem;color:#f87171}.compact-render-error button{background:none;border:none;color:#f87171;cursor:pointer;padding:2px;display:flex;align-items:center}.compact-render-error button:hover{color:#fca5a5}.compact-timeline-section{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative}.compact-timeline-section .timeline-v2{flex:1}.track-add-btn{width:28px;height:28px;border:1px dashed var(--text-muted);background:transparent;color:var(--text-muted);cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s ease}.track-add-btn:hover{border-color:var(--accent-primary);color:var(--accent-primary);background:var(--accent-light)}.track-add-wrap{position:relative;display:flex;align-items:center}.track-add-popup{position:fixed;z-index:9999;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:6px;padding:4px;box-shadow:0 4px 12px #0000004d;min-width:140px}.track-add-popup button{display:flex;align-items:center;gap:8px;width:100%;padding:6px 10px;border:none;background:transparent;color:var(--text-secondary);border-radius:4px;cursor:pointer;font-size:.75rem;white-space:nowrap}.track-add-popup button:hover{background:var(--accent-primary);color:#fff}.clip-ghost{position:absolute;top:4px;height:calc(100% - 8px);background:var(--accent-primary);opacity:.25;border:2px dashed var(--accent-primary);border-radius:4px;pointer-events:none;z-index:5}.clip-settings-btn{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:none;border-radius:4px;background:#0009;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:5;padding:0;opacity:.8;transition:opacity .15s,background .15s}.clip-settings-btn:hover{opacity:1;background:var(--accent-primary)}.compact-properties-panel{position:absolute;top:0;left:0;right:0;background:var(--bg-secondary);border-bottom:2px solid var(--accent-primary);z-index:20;max-height:100%;overflow-y:auto}.compact-properties-header{display:flex;align-items:center;justify-content:space-between;padding:.35rem .75rem;background:var(--bg-tertiary);border-bottom:1px solid var(--border-color);position:sticky;top:0;z-index:1}.compact-properties-title{font-size:.8rem;font-weight:600;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-properties-close{width:24px!important;height:24px!important;flex-shrink:0}.compact-properties-panel .clip-properties{padding:.5rem}.compact-properties-panel .clip-properties .properties-header{display:none}.compact-properties-panel .clip-properties .properties-groups{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.5rem}.compact-properties-panel .clip-properties .prop-group{min-width:0}.global-preview.compact-global-preview{flex-shrink:0;padding:0;border-radius:0}.global-preview.compact-global-preview .global-preview-video{height:auto;aspect-ratio:16/9;margin-bottom:0;border-radius:0}.global-preview.compact-global-preview.vertical-video .global-preview-video{aspect-ratio:9/16;max-height:50vh;margin-left:auto;margin-right:auto}.global-preview.compact-global-preview.aspect-4-3 .global-preview-video{aspect-ratio:4/3;margin-left:auto;margin-right:auto}.global-preview.compact-global-preview.aspect-1-1 .global-preview-video{aspect-ratio:1/1;max-height:50vh;margin-left:auto;margin-right:auto}.global-preview.compact-global-preview.compact-half .global-preview-video{max-width:50%;margin-left:auto;margin-right:auto}.global-preview.compact-global-preview.compact-half.vertical-video .global-preview-video{max-height:35vh}.global-preview:fullscreen{background:#000;display:flex;flex-direction:column;width:100%;height:100%;padding:0;border-radius:0}.global-preview:fullscreen .global-preview-video{flex:1;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;border-radius:0}.global-preview:fullscreen .global-preview-video video,.global-preview:fullscreen .global-preview-video img{width:100%;height:100%;object-fit:contain}.global-preview:fullscreen .preview-layer-container{width:100%;height:100%}.global-preview:fullscreen .global-preview-controls{padding:.5rem 1rem;background:#000c}.global-preview:fullscreen .global-preview-controls button{background:#ffffff26;color:#fff}.global-preview:fullscreen .global-preview-controls button:hover{background:var(--accent-primary)}.global-preview:fullscreen .global-preview-controls .time-display{color:#ffffffb3}.global-preview:fullscreen .global-preview-scrubber{padding:0 1rem;margin-bottom:.5rem}.global-preview:fullscreen .current-clip-info{display:none}@media (max-width: 900px){.app-main{flex-direction:column;padding:.5rem;gap:.5rem;overflow-y:auto}.left-panel,.right-panel{display:none}.center-panel{width:100%}.timeline-section{padding:.5rem}.editor-toolbar{gap:.5rem;flex-wrap:wrap}.add-media-btn span{display:none}}@media (max-width: 768px){.app,.app.compact{padding:10px}.global-preview{padding:0;border-radius:0}.global-preview .global-preview-header{display:none}.global-preview .global-preview-video{height:auto!important;aspect-ratio:16/9;margin-bottom:0}.global-preview.vertical-video .global-preview-video{aspect-ratio:9/16;max-height:50vh;margin-left:auto;margin-right:auto}.global-preview.aspect-4-3 .global-preview-video{aspect-ratio:4/3;margin-left:auto;margin-right:auto}.global-preview.aspect-1-1 .global-preview-video{aspect-ratio:1/1;max-height:50vh;margin-left:auto;margin-right:auto}.global-preview .size-controls{display:none}.compact-properties-panel .clip-properties .properties-groups{grid-template-columns:1fr}.compact-menu-bar{padding:.25rem .5rem}.compact-btn{width:28px;height:28px}.compact-render-btn,.compact-download-btn{font-size:.7rem;padding:.2rem .5rem}.timeline-toolbar{padding:.35rem .5rem;gap:.25rem}.action-btn{padding:.2rem .4rem;font-size:.65rem;gap:.15rem}.action-btn span{display:none}.zoom-slider{width:100%}.timeline-sidebar{width:70px}.sidebar-ruler-space{height:20px}.track-label{height:48px;padding:.15rem;font-size:.6rem;gap:.1rem}.track-delete-btn,.track-add-btn{width:22px;height:22px}.timeline-track-v2{height:48px}.timeline-clip-v2{height:44px}.clip-label{font-size:.55rem}.layer-indicator{font-size:.5rem}.timeline-ruler .ruler-label{font-size:.55rem}}@media (max-width: 480px){.app,.app.compact{padding:10px}.compact-btn{width:24px;height:24px}.timeline-sidebar{width:55px}.track-label{height:42px;padding:.1rem}.timeline-track-v2{height:42px}.add-menu-btn{padding:.2rem .3rem;font-size:.6rem}}.video-preview-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:4000;background:var(--overlay-bg);display:flex;align-items:center;justify-content:center}.video-preview-modal{background:var(--bg-secondary);border-radius:12px;padding:1.5rem;box-shadow:var(--shadow-md);width:90vw;max-width:540px;display:flex;flex-direction:column;gap:1rem}.video-preview-header{display:flex;align-items:center;justify-content:space-between}.video-preview-header h3{margin:0;font-size:1rem;color:var(--text-primary)}.video-preview-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:4px;border-radius:4px}.video-preview-close:hover{color:var(--text-primary);background:var(--bg-hover)}.video-preview-player{border-radius:8px;overflow:hidden;background:#000}.video-preview-actions{display:flex;justify-content:flex-end;gap:.75rem}.video-preview-back{padding:.5rem 1rem;border-radius:6px;border:1px solid var(--border-color);background:var(--bg-primary);color:var(--text-primary);cursor:pointer;font-size:.85rem}.video-preview-back:hover{background:var(--bg-hover)}.video-preview-send{display:flex;align-items:center;gap:6px;padding:.5rem 1.25rem;border-radius:6px;border:none;background:var(--accent-color, #e53e3e);color:#fff;cursor:pointer;font-size:.85rem;font-weight:600}.video-preview-send:hover{opacity:.9}
