:root { --fg:#1d1d1b; --muted:#6b6b66; --bg:#f6f4ee; --card:#fff; --accent:#e2b100; --accent-fg:#1d1d1b; --line:#e4e1d8; --err:#b3261e; }
@media (prefers-color-scheme: dark) { :root { --fg:#f1efe8; --muted:#a8a59c; --bg:#171715; --card:#22221f; --line:#3a3a35; --err:#ff8a80; } }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--fg); background:var(--bg); }
a { color:inherit; }
.page { max-width:720px; margin:0 auto; padding:16px; }
.brand { font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:8px 0 16px; }
.brand a { text-decoration:none; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px; }
.album { display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; margin-bottom:12px; }
.cover { width:220px; max-width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; background:#ddd; }
.cover.small { width:140px; }
h1 { margin:0 0 4px; font-size:1.6rem; } h2 { font-size:1.15rem; margin:24px 0 8px; }
.artist { margin:0 0 8px; color:var(--muted); font-size:1.1rem; }
.desc { white-space:pre-line; }
.tracks { color:var(--muted); }
.row { display:flex; gap:8px; flex-wrap:wrap; align-items:flex-end; }
.row > input { flex:1 1 220px; }
.row label input, .row label select { flex:none; }
input, select, textarea, button, .btn { font:inherit; padding:10px 12px; border-radius:8px; border:1px solid var(--line); background:var(--card); color:var(--fg); }
button, .btn { background:var(--accent); color:var(--accent-fg); border-color:var(--accent); font-weight:600; cursor:pointer; text-decoration:none; display:inline-block; }
.btn.ghost, .inline button { background:transparent; color:var(--fg); border-color:var(--line); font-weight:500; }
.buttons { display:flex; gap:8px; flex-wrap:wrap; }
.tracklist { width:100%; border-collapse:collapse; }
.tracklist td { padding:8px 4px; border-top:1px solid var(--line); }
.tracklist .dl { text-align:right; white-space:nowrap; }
.tracklist .dl a { margin-left:10px; }
.error { color:var(--err); }
.hint { color:var(--muted); font-size:.9rem; }
.foot { color:var(--muted); font-size:.9rem; padding:20px 0; text-align:center; }
/* admin */
.topnav { display:flex; gap:18px; padding:12px 16px; border-bottom:1px solid var(--line); background:var(--card); flex-wrap:wrap; }
.topnav a { text-decoration:none; color:var(--muted); }
.wide { max-width:1100px; margin:0 auto; padding:16px; }
.head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.grid { width:100%; border-collapse:collapse; font-size:.92rem; display:block; overflow-x:auto; }
.grid th, .grid td { background:var(--card); text-align:left; padding:8px; border-bottom:1px solid var(--line); white-space:nowrap; }
.grid tr.off { opacity:.5; }
.stack { display:flex; flex-direction:column; gap:12px; max-width:520px; }
.stack label, .row label { display:flex; flex-direction:column; gap:4px; font-size:.9rem; color:var(--muted); }
.inline { display:inline-flex; gap:6px; } .inline button { padding:4px 8px; font-size:.85rem; }
.flash { padding:10px 12px; border-radius:8px; background:var(--card); border:1px solid var(--line); }
.flash.error { border-color:var(--err); color:var(--err); }
code { font-size:.85em; }

/* ---------- customer pages: black theme of the shop and website ---------- */
@font-face { font-family:"Archivo"; src:url("fonts/archivo_wght.woff2") format("woff2"); font-weight:100 900; font-display:swap; }
body.site {
  --fg:#fffcfc; --muted:#c4c4c4; --bg:#000; --card:#17181a; --line:#2e2f33;
  --accent:#fbb833; --accent-fg:#000; --err:#ff8a80;
  font-family:"Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:var(--bg); color:var(--fg);
}
body.site .brand { padding:8px 0 20px; text-align:center; }
body.site .logo { height:96px; width:auto; display:inline-block; }
body.site a { color:var(--fg); }
body.site .foot a, body.site .desc a { color:var(--accent); }
body.site .card { background:var(--card); border-color:var(--line); }
body.site .cover { background:#222; }
body.site input { background:#000; color:var(--fg); border-color:#4a4b50; }
body.site input:focus { outline:2px solid var(--accent); outline-offset:1px; }
body.site .hint strong { color:var(--fg); }
body.site .error { color:var(--err); }
/* tracklists: numbers right-aligned in a fixed column, titles all start at the same x */
.tracklist .num { width:2.5em; padding-right:12px; text-align:right; vertical-align:top;
  font-variant-numeric:tabular-nums; color:var(--muted); white-space:nowrap; }
.tracklist .title { vertical-align:top; overflow-wrap:anywhere; }
.tracklist .dl { vertical-align:top; }
body.site .tracklist .dl a { color:var(--accent); font-weight:600; text-decoration:none; }
@media (max-width:480px) {
  body.site .logo { height:72px; }
  .album { gap:14px; } .cover { width:100%; }
  .tracklist .dl a { margin-left:8px; }
}
/* home page QR scanner */
.scan { text-align:center; }
.scan-btn { font-size:1.1rem; padding:14px 22px; width:100%; max-width:340px; }
.scan-view { position:relative; width:100%; max-width:420px; margin:0 auto 8px; aspect-ratio:1;
  overflow:hidden; border-radius:12px; background:#000; }
[hidden] { display:none !important; }
.scan-view video { width:100%; height:100%; object-fit:cover; display:block; }
.scan-frame { position:absolute; inset:15%; border:3px solid var(--accent); border-radius:12px;
  box-shadow:0 0 0 999px rgba(0,0,0,.35); }
