:root {
  --bg: #161616;
  --panel: #1f1f1f;
  --line: #2c2c2c;
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --accent: #ffb224;
  --accent-dim: rgba(255, 178, 36, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
h1.title { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
h1.title span { color: var(--accent); }
.sub { color: var(--muted); font-size: 1.05rem; margin-top: 6px; }
.note {
  background: var(--accent-dim);
  border: 1px solid rgba(255, 178, 36, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: #d8d8d8;
  margin: 20px 0;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}
label.file {
  display: inline-block;
  background: var(--accent);
  color: #161616;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
}
input[type="file"] { display: none; }
button.primary {
  background: var(--accent);
  color: #161616;
  font-weight: 700;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}
button.primary:disabled { opacity: 0.4; cursor: default; }
button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}
button.ghost:disabled { opacity: 0.4; cursor: default; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
@media (max-width: 700px) { .videos { grid-template-columns: 1fr; } }
.videos figure { margin: 0; }
.videos figcaption { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
canvas, video.preview { width: 100%; border-radius: 10px; background: #000; display: block; }
.progress { height: 8px; background: #000; border-radius: 4px; margin-top: 16px; overflow: hidden; }
.progress > div { height: 100%; width: 0%; background: var(--accent); transition: width 0.2s; }
.status { color: var(--muted); font-size: 0.9rem; margin-top: 10px; min-height: 1.4em; }
footer { margin-top: 48px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 20px; }
a { color: var(--accent); }
h2 { font-size: 1.3rem; margin-top: 0; }
