/* ============================================================
   Shared layout for the record, clip and admin pages.
   Colors, fonts and shapes come from the show's theme (themes/<show>/theme.css),
   which sets the variables below and can add its own decoration.
   ============================================================ */
:root {
  --bg: #111; --page: #fff; --fg: #111; --muted: #666; --line: #ccc;
  --head-bg: #111; --head-fg: #fff; --head-muted: #ccc;
  --surface: #fff; --input-bg: #fff;
  --accent: #333; --accent-fg: #fff; --accent-2: #eee; --accent-2-fg: #111;
  --warn: #FFC53D; --warn-fg: #111;
  --strip-bg: var(--accent); --strip-fg: var(--accent-fg);
  --radius: 8px; --btn-radius: 8px; --bw: 2px;
  --card-shadow: none; --btn-shadow: none;
  --display: Arial, sans-serif; --display-weight: 800; --display-case: none; --display-spacing: 0;
  --body: Arial, sans-serif;
  --label: var(--body); --label-case: uppercase; --label-spacing: .12em; --label-size: 14px; --label-color: var(--accent);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { color: var(--fg); font-family: var(--body); font-weight: 500; font-size: 17px; line-height: 1.45; }
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--page); }
.display { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-spacing); }
.label { font-family: var(--label); text-transform: var(--label-case); letter-spacing: var(--label-spacing); font-size: var(--label-size); color: var(--label-color); line-height: 1.1; }

/* ---------- header ---------- */
header { background: var(--head-bg); color: var(--head-fg); padding: 26px 22px 30px; position: relative; overflow: hidden; }
header > * { position: relative; }
.hey { margin-top: 26px; }
h1 { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-spacing); font-size: 36px; line-height: 1.02; margin-top: 6px; }
header p { margin-top: 12px; color: var(--head-muted); }

/* ---------- scrolling strip ---------- */
.strip { background: var(--strip-bg); color: var(--strip-fg); overflow: hidden; height: 42px; position: relative; }
.strip div { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; animation: scroll 28s linear infinite; }
.strip span { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; font-weight: 700; padding: 0 14px; }
@keyframes scroll { to { transform: translateX(-50%); } }

main { padding: 26px 22px 60px; }
section { margin-top: 30px; }
section:first-child { margin-top: 0; }
h2 { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-spacing); font-size: 22px; line-height: 1.1; }

/* ---------- topic card ---------- */
.card { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px; box-shadow: var(--card-shadow); }
.card .topic { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-spacing); font-size: 28px; line-height: 1.05; margin-top: 8px; }
.card ul { list-style: none; margin-top: 16px; }
.card li { padding-left: 24px; position: relative; margin-top: 9px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 4px; background: var(--accent); }
.card .tiny { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 12px; margin-top: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.num { flex: none; width: 38px; height: 38px; border-radius: var(--btn-radius); background: var(--accent); color: var(--accent-fg); font-family: var(--display); font-weight: var(--display-weight); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.step b { font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-spacing);
  font-size: 20px; text-align: center; text-decoration: none;
  padding: 16px 20px; border-radius: var(--btn-radius); border: var(--bw) solid var(--accent); cursor: pointer;
  background: var(--accent); color: var(--accent-fg); box-shadow: var(--btn-shadow);
  transition: transform .08s;
}
.btn:active { transform: translateY(2px); }
.btn.alt { background: transparent; color: var(--fg); border-color: var(--line); box-shadow: none; font-size: 16px; padding: 12px 16px; margin-top: 12px; }
.btn.go { background: var(--accent-2); color: var(--accent-2-fg); border-color: var(--accent-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: currentColor; opacity: .9; }
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tips { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---------- preview ---------- */
.preview { display: none; margin-top: 18px; }
.preview.show { display: block; }
video { width: 100%; max-height: 460px; background: #000; border: var(--bw) solid var(--line); border-radius: var(--radius); display: block; }
.length { margin-top: 10px; font-weight: 700; padding: 10px 14px; border-radius: var(--radius); border-left: 6px solid var(--accent); background: var(--surface); }
.length.warn { border-left-color: var(--warn); }

/* ---------- form ---------- */
form { display: none; }
form.show { display: block; }
label.f { display: block; margin-top: 14px; font-weight: 700; font-size: 15px; }
label.f input, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; font-weight: 500;
  border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--input-bg); color: var(--fg);
}
label.f input:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 20px; font-size: 15px; }
.consent input { flex: none; width: 24px; height: 24px; margin-top: 1px; accent-color: var(--accent); }
.error { display: none; margin-bottom: 14px; padding: 10px 14px; border-radius: var(--radius); background: var(--warn); color: var(--warn-fg); font-weight: 700; }
.error.show { display: block; }

/* ---------- done ---------- */
.done { display: none; text-align: center; padding: 40px 6px 20px; }
.done.show { display: block; }
.done .big { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-spacing); font-size: 40px; line-height: 1.02; margin-top: 8px; }
.done p { margin-top: 14px; }
.proto { margin-top: 22px; padding: 12px 14px; border: var(--bw) dashed var(--line); border-radius: var(--radius); font-size: 14px; text-align: left; }

/* ---------- clip page ---------- */
textarea { min-height: 170px; margin-top: 12px; resize: vertical; }
.note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.missing { text-align: center; padding: 50px 10px; font-weight: 700; }
h2.n { display: flex; gap: 12px; align-items: center; margin-top: 30px; font-size: 19px; }
h2.n .num { width: 34px; height: 34px; font-size: 16px; }

footer { padding: 0 22px 34px; font-size: 13px; color: var(--muted); text-align: center; }
