:root { --bg: #121418; --panel: #1a1d23; --panel-2: #22262e; --border: #2e333d; --text: #e6e8eb; --muted: #8b929e; --accent: #5b9dff; --accent-2: #3d7fe0; --red: #ef4444; --red-2: #d53434; --green: #3fb67a; --amber: #e0a33a; --radius: 8px; color-scheme: dark; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif; font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg); } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; } h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; } h3, h4 { margin: 0 0 10px; font-weight: 600; } h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-top: 6px; } .muted { color: var(--muted); } .small { font-size: 12px; } .spacer { flex: 1; } .grow { flex: 1; } .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .error-text { color: #ff8a8a; } .warn-text { color: var(--amber); } input, textarea, select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 9px; } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); } textarea { resize: vertical; } input[type='range'] { padding: 0; accent-color: var(--accent); } input[type='checkbox'] { accent-color: var(--accent); } /* ---- buttons ---- */ .btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 500; color: var(--text); background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; cursor: pointer; white-space: nowrap; text-decoration: none !important; } .btn:hover:not(:disabled) { background: #2a2f38; } .btn:disabled { opacity: 0.45; cursor: default; } .btn.primary { background: var(--accent-2); border-color: var(--accent-2); color: white; } .btn.primary:hover:not(:disabled) { background: var(--accent); } .btn.record { background: var(--red-2); border-color: var(--red-2); color: white; } .btn.record:hover:not(:disabled) { background: var(--red); } .btn.danger { color: #ff8a8a; } .btn.danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.15); } .btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover:not(:disabled) { background: var(--panel-2); } .btn.small { padding: 3px 8px; font-size: 12px; } .btn.big { padding: 10px 20px; font-size: 15px; } .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; } .icon-btn:hover:not(:disabled) { background: var(--panel-2); border-color: var(--border); } .icon-btn:disabled { opacity: 0.35; cursor: default; } .icon-btn.danger:hover:not(:disabled) { color: #ff8a8a; } .icon-btn.play { width: 36px; height: 36px; background: var(--panel-2); border-color: var(--border); } /* ---- page chrome ---- */ .page { min-height: 100vh; display: flex; flex-direction: column; } .page.loading { align-items: center; justify-content: center; color: var(--muted); } .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--panel); position: sticky; top: 0; z-index: 10; } .topbar-title { font-weight: 600; font-size: 15px; } .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; margin-right: 12px; } .brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25); } .search { width: 260px; } .title-input { font-size: 16px; font-weight: 600; background: transparent; border-color: transparent; min-width: 200px; width: 40vw; } .title-input:hover { border-color: var(--border); } .save-state { font-size: 12px; color: var(--muted); } .save-state.error { color: #ff8a8a; } .banner { margin: 10px 16px 0; padding: 8px 12px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); } .banner.error { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.4); color: #ffb3b3; cursor: pointer; } .toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--border); padding: 8px 16px; border-radius: 20px; z-index: 50; } .panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; } .field { display: flex; flex-direction: column; gap: 4px; } .field > span { font-size: 12px; color: var(--muted); } .field.grow { flex: 1; } .check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; } .empty { text-align: center; padding: 70px 20px; } .empty p { margin-bottom: 20px; } /* ---- modal ---- */ .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 100; } .modal { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 20px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); } .modal.wide { width: min(640px, calc(100vw - 32px)); } .modal-body { display: flex; flex-direction: column; gap: 12px; } .modal-body p { margin: 0; } .modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; } /* ---- crop dialog ---- */ .modal.crop-modal { width: min(1000px, calc(100vw - 32px)); } .crop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .crop-frame-wrap { display: flex; justify-content: center; padding: 8px; background: #000; border-radius: var(--radius); } .crop-frame { position: relative; max-width: 100%; touch-action: none; cursor: crosshair; user-select: none; } .crop-frame video { display: block; width: 100%; height: 100%; pointer-events: none; } .crop-shade { position: absolute; inset: 0; overflow: hidden; pointer-events: none; } .crop-shade div { position: absolute; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6); } .crop-rect { position: absolute; outline: 1px solid rgba(255, 255, 255, 0.9); cursor: move; } .crop-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.67% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.67% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.67% + 0.5px), transparent calc(66.67% + 0.5px)), linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.35) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.67% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.67% - 0.5px), rgba(255, 255, 255, 0.35) calc(66.67% + 0.5px), transparent calc(66.67% + 0.5px)); } .crop-handle { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: white; border: 1px solid rgba(0, 0, 0, 0.5); border-radius: 2px; } .crop-handle.nw, .crop-handle.se { cursor: nwse-resize; } .crop-handle.ne, .crop-handle.sw { cursor: nesw-resize; } .crop-handle.n, .crop-handle.s { cursor: ns-resize; } .crop-handle.e, .crop-handle.w { cursor: ew-resize; } .crop-scrub { display: flex; align-items: center; gap: 10px; } .crop-scrub input { flex: 1; } .crop-modal .modal-footer { align-items: center; } /* ---- library ---- */ .library { padding: 20px 16px 40px; } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; } .card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color 0.12s, transform 0.12s; } .card:hover { border-color: #454c59; } .card.dragging { opacity: 0.4; } .thumb { position: relative; aspect-ratio: 16 / 9; background: #0b0c0f; } .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .thumb-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #3a404b; } .duration { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, 0.75); padding: 1px 6px; border-radius: 4px; font-size: 12px; font-variant-numeric: tabular-nums; } .thumb .kinds { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, 0.6); border-radius: 4px; padding: 2px 4px; } .kinds { display: inline-flex; gap: 5px; color: var(--muted); } .thumb .kinds { color: #dfe3e8; } .card-body { padding: 10px 12px 12px; } .card-title { font-weight: 600; margin-bottom: 3px; } .card-desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; } .card-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); } .tag { font-size: 11px; padding: 0 6px; border-radius: 10px; border: 1px solid; } .tag.ok { color: var(--green); } .tag.warn { color: var(--amber); } .card-actions { position: absolute; top: 6px; right: 6px; display: none; gap: 4px; } .card-actions .icon-btn { background: rgba(15, 17, 21, 0.85); } .card-actions .icon-btn:first-child { color: var(--red); } .card:hover .card-actions { display: flex; } .grip { position: absolute; top: 8px; left: 6px; color: #dfe3e8; background: rgba(15, 17, 21, 0.7); border-radius: 4px; padding: 2px; display: none; cursor: grab; } .card:hover .grip { display: flex; } /* ---- editor ---- */ .editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; padding: 16px; align-items: start; } @media (max-width: 1100px) { .editor-grid { grid-template-columns: 1fr; } } .editor-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .editor-side { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 0; max-height: calc(100vh - 86px); } .editor-side .panel { border-top-left-radius: 0; border-top-right-radius: 0; overflow: auto; min-height: 300px; max-height: calc(100vh - 124px); } .tabs { display: flex; gap: 2px; } .tabs button { flex: 1; font: inherit; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-bottom: none; border-radius: 8px 8px 0 0; padding: 7px 8px; cursor: pointer; white-space: nowrap; } .tabs button.active { color: var(--text); background: var(--panel); } textarea.notes { min-height: 320px; flex: 1; font-size: 13px; } .stage { position: relative; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; cursor: pointer; } .stage-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; } .stage-inner .layer { position: absolute; background: #000; } .stage-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); } .transport { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .transport .sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; } .timecode { font-variant-numeric: tabular-nums; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; margin-left: 6px; } .zoom { display: inline-flex; align-items: center; gap: 6px; } .zoom input { width: 100px; } .timeline-scroll { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); } .timeline { position: relative; min-width: 100%; height: 104px; user-select: none; cursor: text; touch-action: none; } .tl-ruler { position: relative; height: 20px; border-bottom: 1px solid var(--border); } .tl-tick { position: absolute; top: 3px; font-size: 10px; color: var(--muted); padding-left: 3px; border-left: 1px solid var(--border); line-height: 14px; font-variant-numeric: tabular-nums; } .tl-track { position: absolute; top: 28px; left: 0; right: 0; height: 68px; } .tl-seg { position: absolute; top: 0; bottom: 0; background: hsl(var(--hue) 45% 30%); border: 1px solid hsl(var(--hue) 50% 45%); border-radius: 5px; overflow: hidden; box-sizing: border-box; } .tl-seg.selected { border: 2px solid #fff; } .tl-wave { position: absolute; inset: 0; width: 100%; height: 100%; } .tl-label { position: absolute; left: 5px; top: 2px; font-size: 10px; color: rgba(255, 255, 255, 0.85); pointer-events: none; white-space: nowrap; } .tl-range { position: absolute; top: 20px; bottom: 0; background: rgba(239, 68, 68, 0.28); border-left: 1px solid var(--red); border-right: 1px solid var(--red); pointer-events: none; } .tl-mark { position: absolute; top: 20px; bottom: 0; width: 0; border-left: 2px dashed var(--red); pointer-events: none; } .tl-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 4px rgba(0, 0, 0, 0.8); } .tl-playhead::before { content: ''; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: #fff; } .shortcuts { margin: 0; } .section-title { margin-top: 10px; font-size: 14px; } .takes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; } .take { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; } .take-head { display: flex; align-items: center; gap: 8px; } .take-head .kinds { margin-left: auto; } .take-swatch { width: 10px; height: 10px; border-radius: 3px; background: hsl(var(--hue) 50% 45%); } .take-actions { display: flex; align-items: center; gap: 6px; margin-top: 4px; } .take-actions .icon-btn { margin-left: auto; } .seg-control { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; width: fit-content; } .seg-control button { font: inherit; font-size: 12px; color: var(--muted); background: var(--bg); border: none; border-right: 1px solid var(--border); padding: 5px 10px; cursor: pointer; } .seg-control button:last-child { border-right: none; } .seg-control button.active { background: var(--accent-2); color: white; } .export-box { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .export-box p { margin: 0; } .export-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .progress { width: 100%; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; } .progress > div { height: 100%; background: var(--accent); transition: width 0.3s; } /* ---- transcript ---- */ .transcript { display: flex; flex-direction: column; gap: 10px; } .transcript-bar { display: flex; align-items: center; gap: 10px; justify-content: space-between; } .transcript-status { display: flex; flex-direction: column; gap: 4px; } .transcript-words { line-height: 1.8; font-size: 14px; } .word { cursor: pointer; border-radius: 3px; padding: 1px 1px; } .word:hover { background: var(--panel-2); } .word.current { background: rgba(91, 157, 255, 0.35); } .word.selected { background: rgba(239, 68, 68, 0.35); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.5); } .seg-break { display: inline-block; width: 2px; height: 1em; vertical-align: middle; background: var(--amber); margin: 0 5px; } /* ---- recorder ---- */ .recorder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr); gap: 16px; padding: 16px; align-items: start; } @media (max-width: 1000px) { .recorder-grid { grid-template-columns: 1fr; } } .source { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--border); } .source > .check { font-weight: 500; } .source-opts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-left: 24px; } .source-opts select { max-width: 340px; } .mic-tools { margin-left: 24px; display: flex; flex-direction: column; gap: 6px; max-width: 420px; } .mic-tools p { margin: 0; } .meter-row { display: flex; align-items: center; gap: 10px; } .meter { position: relative; flex: 1; height: 8px; background: var(--bg); border-radius: 3px; overflow: hidden; } .meter-zone { position: absolute; top: 0; bottom: 0; background: rgba(63, 182, 122, 0.25); } .meter-bar { position: relative; height: 100%; width: 0; background: var(--green); transition: width 0.05s linear; } .meter-bar.hot { background: var(--red); } .meter-hold { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--text); } .meter-readout { font-size: 12px; color: var(--muted); min-width: 90px; font-variant-numeric: tabular-nums; } .gain-row input[type='range'] { flex: 1; } .gain-value { min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; } .check-result { display: flex; flex-direction: column; gap: 4px; } .ok-text { color: var(--green); } .previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; } .preview { aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; } .preview video { width: 100%; height: 100%; object-fit: contain; display: block; } .preview-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; } .rec-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; } .rec-indicator { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-right: 8px; } .rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; } .rec-indicator.paused .rec-dot { background: var(--amber); animation: none; } @keyframes blink { 50% { opacity: 0.3; } } .notes-panel { position: sticky; top: 70px; max-height: calc(100vh - 90px); } .notes-view { white-space: pre-wrap; font-size: 18px; line-height: 1.6; overflow: auto; } .countdown-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; z-index: 200; pointer-events: none; } .countdown-num { font-size: 180px; font-weight: 700; color: white; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); } /* ---- prompter ---- */ .prompter { height: 100vh; display: flex; flex-direction: column; } .prompter-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--border); } .prompter-tools { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-bottom: 1px solid var(--border); } .prompter-body { flex: 1; overflow: auto; padding: 24px 28px; white-space: pre-wrap; line-height: 1.5; } /* ---- settings ---- */ .settings { max-width: 760px; width: 100%; margin: 0 auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; } .settings p { margin: 0; } .settings .row > span { min-width: 240px; } .ok-text { color: var(--green); } .matte-status { display: flex; flex-direction: column; gap: 4px; } .matte-status p { margin: 4px 0 0; } .progress.mini { width: 120px; height: 6px; }