:root {
  --bg: #0f1115; --panel: #181b22; --line: #2a2f3a; --text: #eef1f6; --muted: #9aa3b2;
  --accent: #5b8cff; --rec: #ff4d5e; --ok: #2fbf71; --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 32px 20px 64px; }
header { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #9b6bff); display: grid; place-items: center; font-weight: 800; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.02em; }
p.sub { color: var(--muted); margin: 0 0 22px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
label { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
input[type=text], select { background: #0c0e12; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; min-width: 240px; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer; background: var(--accent); color: white; }
button.rec { background: var(--rec); }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
button:disabled { opacity: .45; cursor: not-allowed; }
.stage { position: relative; margin-top: 20px; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; display: grid; place-items: center; color: var(--muted); }
.stage canvas, .stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.status { margin-top: 14px; color: var(--muted); font-size: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: pulse 1.2s infinite; display: inline-block; }
@keyframes pulse { 50% { opacity: .3; } }
.link { margin-top: 16px; padding: 14px; border: 1px solid var(--ok); border-radius: 10px; display: none; gap: 10px; align-items: center; flex-wrap: wrap; }
.link.show { display: flex; }
.link code { background: #0c0e12; padding: 6px 10px; border-radius: 8px; word-break: break-all; }
.meta { color: var(--muted); font-size: 14px; margin-top: 10px; }
.notice { color: var(--muted); font-size: 13px; margin-top: 18px; }
.sendto { margin-top: 14px; color: var(--muted); font-size: 14px; }
.sendto summary { cursor: pointer; }
.sendto input { min-width: 180px; }
.summary { margin-top: 18px; }
.summary h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 8px; }
.chapters { list-style: none; padding: 0; margin: 0; }
.chapters li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; gap: 12px; }
.chapters li:hover { background: var(--panel); }
.chapters .t { color: var(--accent); font-variant-numeric: tabular-nums; min-width: 44px; }
.cta { display: inline-block; margin-top: 22px; background: var(--ok); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 10px; }
.processing { color: var(--muted); font-size: 14px; margin-top: 14px; }
