:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #111111; color: #f1f3f5; --accent: #b5f576; --muted: #a1a6ae; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 880px; margin: auto; padding: max(36px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
header { margin-bottom: 28px; }
.eyebrow { color: var(--muted); font-size: .75rem; letter-spacing: .16em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.055em; margin: 6px 0; line-height: 1.1; }
.accent { color: var(--accent); }
p { line-height: 1.65; }
header p { color: var(--muted); margin: 12px 0 0; }
button, input { font: inherit; }
button, .file-button { min-height: 46px; border: 1px solid #3b3e42; border-radius: 9px; padding: 10px 16px; background: #25272b; color: inherit; cursor: pointer; }
button:hover:enabled { border-color: var(--accent); }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, input:focus-visible, .file-button:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.file-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; min-width: 0; }
.file-button { position: relative; flex-shrink: 0; background: var(--accent); color: #17210e; border-color: var(--accent); font-weight: 650; overflow: hidden; }
.file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#filename { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; min-width: 0; }
.player { position: relative; background: #090a0a; border: 1px solid #2d3033; border-radius: 12px; overflow: hidden; }
video { display: block; width: 100%; max-height: 58vh; aspect-ratio: 16 / 9; object-fit: contain; }
.empty { position: absolute; inset: 0 0 48px; display: flex; align-items: center; justify-content: center; flex-direction: column; pointer-events: none; color: var(--muted); font-size: .875rem; }
.empty[hidden] { display: none; }
.empty p { color: #e0e3e5; font-size: 1rem; margin: 4px 0; }
.play-mark { font-size: 3rem; color: var(--accent); }
.timeline { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .875rem; padding: 14px 2px 22px; font-variant-numeric: tabular-nums; }
.muted, .note, footer { color: var(--muted); }
.panel { border: 1px solid #303338; border-radius: 12px; padding: 22px; margin-bottom: 14px; background: #191b1e; }
.section-title { display: flex; justify-content: space-between; align-items: center; }
h2 { margin: 0; font-size: 1rem; font-weight: 600; }
#speed-value { color: var(--accent); font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
#speed { width: 100%; accent-color: var(--accent); height: 36px; margin: 14px 0 0; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .875rem; margin-bottom: 18px; }
.presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.presets button { padding: 10px 2px; font-variant-numeric: tabular-nums; }
button[aria-pressed="true"] { background: var(--accent); color: #17210e; border-color: var(--accent); font-weight: 650; }
.note { font-size: .875rem; margin: 14px 0 0; }
.frame-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.frame-panel .note { margin: 4px 0 0; }
.frame-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fps-label { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
#fps { width: 78px; min-height: 46px; background: #111; border: 1px solid #3b3e42; border-radius: 9px; padding: 8px; color: #fff; font-size: 1rem; }
.message { font-size: .875rem; min-height: 1.65em; }
footer { border-top: 1px solid #303338; margin-top: 24px; padding-top: 18px; font-size: .875rem; }
.status-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer p { margin-bottom: 0; }
.shortcuts { font-size: .8125rem; }
@media (max-width: 480px) { main { padding-top: max(24px, env(safe-area-inset-top)); } .panel { padding: 16px; } .presets { gap: 5px; } .presets button { font-size: .875rem; } .file-row { align-items: flex-start; flex-direction: column; gap: 10px; } .frame-controls { width: 100%; } .empty { bottom: 36px; } .play-mark { font-size: 2rem; } }
