:root {
  --bg: #0c0d10;
  --panel: #16181e;
  --ink: #f4efe6;
  --muted: #9a9388;
  --accent: #e8c07a;
  --line: #2a2d36;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100%; }
button, [role="button"], input[type="range"] { cursor: pointer; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 28px 32px 16px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; color: var(--accent); margin: 0 0 6px; }
h1 { margin: 0; font-size: 28px; font-weight: 560; }
h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.upload {
  background: var(--accent);
  color: #1a1408;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 650;
}
main { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 96px); }
.rail { border-right: 1px solid var(--line); padding: 20px; }
.rail ul { list-style: none; padding: 0; margin: 0 0 24px; }
.rail li { padding: 10px 8px; border-radius: 8px; cursor: pointer; }
.rail li.active, .rail li:hover { background: var(--panel); }
.stage { padding: 28px 32px; }
.empty { color: var(--muted); max-width: 28rem; font-size: 18px; line-height: 1.45; }
.hidden { display: none !important; }
.player { background: var(--panel); border-radius: 16px; padding: 24px; }
#wave { width: 100%; background: #0c0d10; border-radius: 8px; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
#seek { width: 100%; }
.transport { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.transport button, #rec {
  background: #0c0d10;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
}
#play { background: var(--accent); color: #1a1408; border: 0; font-weight: 650; }
.row { display: flex; align-items: center; gap: 12px; margin: 10px 0; color: var(--muted); }
.faders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.faders label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; }
#rec { width: 100%; margin-bottom: 12px; }
#rec.live { background: #c45c4a; color: white; border: 0; }

@media (max-width: 800px) {
  main { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .faders { grid-template-columns: 1fr 1fr; }
  .top { flex-direction: column; align-items: start; gap: 12px; }
}
