:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #10131a; color: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% -15%, #24355f 0, transparent 31rem), #10131a; }
.app-shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 3.5rem 0 4rem; }
header { max-width: 720px; margin-bottom: 2.25rem; }
.eyebrow { margin: 0 0 .6rem; color: #8fb3ff; font-size: .75rem; font-weight: 750; letter-spacing: .13em; }
h1 { font-size: clamp(2.25rem, 5vw, 4.3rem); line-height: .98; letter-spacing: -.055em; margin: 0; }
.intro { color: #aeb9cd; line-height: 1.55; margin: 1rem 0 0; }
.source-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.source-card, .controls { border: 1px solid #2c3547; background: rgba(22, 28, 40, .82); border-radius: .9rem; }
.source-card { padding: 1.15rem; }
.source-heading { display: flex; align-items: center; gap: .6rem; } h2 { margin: 0; font-size: .95rem; }
.badge { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; background: #8fb3ff; color: #111827; border-radius: 50%; font-weight: 800; font-size: .75rem; }.badge-b { background: #8de2c2; }
.file-picker { margin-top: 1rem; min-height: 4.2rem; display: grid; place-items: center; border: 1px dashed #4b5a75; border-radius: .55rem; cursor: pointer; color: #d4def1; font-size: .88rem; transition: border-color .12s ease, background .12s ease, transform .12s ease; }.file-picker:hover, .file-picker.is-dragging { border-color: #8fb3ff; background: #1d2941; }.file-picker.is-dragging { border-style: solid; transform: scale(1.01); }.file-picker input { display: none; }
.image-duration { display: grid; grid-template-columns: 1fr auto; gap: .4rem; align-items: center; margin-top: .9rem; font-size: .78rem; color: #aeb9cd; }.image-duration input { grid-column: 1 / -1; width: 100%; accent-color: #8fb3ff; }.image-duration output { color: #f4f7fb; font-variant-numeric: tabular-nums; }.media-status { min-height: 1.3em; color: #6f809d; font-size: .75rem; margin: .55rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.controls { display: grid; grid-template-columns: 1.45fr 1fr 1.35fr 1.2fr auto; align-items: end; gap: 1rem; padding: 1.1rem; margin: 1rem 0; }.controls label { display: grid; gap: .45rem; color: #aeb9cd; font-size: .75rem; }.controls output { float: right; color: #f4f7fb; font-variant-numeric: tabular-nums; }.controls select, button { border: 1px solid #45536d; border-radius: .45rem; background: #151c29; color: #f4f7fb; min-height: 2.5rem; padding: .5rem .65rem; font: inherit; }.controls input { width: 100%; accent-color: #8fb3ff; }.controls button { background: #8fb3ff; color: #101522; border: 0; font-weight: 750; cursor: pointer; white-space: nowrap; }.controls button:disabled { opacity: .45; cursor: not-allowed; }
.stage-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #07090d; border-radius: .9rem; border: 1px solid #2c3547; }.stage-wrap canvas { display: block; width: 100%; height: 100%; }.stage-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #8492aa; font-size: .9rem; pointer-events: none; }.stage-empty[hidden] { display: none; }.timeline { position: relative; height: .35rem; margin-top: 1rem; overflow: hidden; border-radius: 9px; background: #2b3548; }.timeline i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8fb3ff, #8de2c2); }.timeline b { position: absolute; top: 50%; left: 0; width: .8rem; height: .8rem; translate: -50% -50%; border-radius: 50%; background: #eff5ff; box-shadow: 0 1px 7px #0009; }.playback-meta { display: flex; justify-content: space-between; gap: 1rem; color: #8492aa; font-size: .75rem; margin-top: .65rem; font-variant-numeric: tabular-nums; }.privacy-note { color: #74819a; font-size: .75rem; margin-top: 2rem; }
@media (max-width: 720px) { .app-shell { padding-top: 2rem; }.source-grid, .controls { grid-template-columns: 1fr; }.controls { align-items: stretch; }.controls button { width: 100%; }.playback-meta { flex-direction: column; gap: .25rem; } }
