@font-face {
  font-family: "Roboto Condensed";
  src: url("../roboto-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  color: #fff;
  background: #000;
  --yellow: #ffd000;
  --line: #ffffff35;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1440px, 100%); margin: auto; padding: clamp(12px, 2.5vw, 32px); }
.stage { height: clamp(330px, 65vh, 780px); position: relative; background: #000; overflow: hidden; }
.stage:fullscreen { height: 100%; }
canvas { width: 100%; height: 100%; display: block; }

.stage-top, .meters { position: absolute; display: flex; left: 12px; right: 12px; gap: 10px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.stage-top { top: 10px; align-items: center; justify-content: space-between; }
#status { min-width: 0; overflow-wrap: anywhere; }
#fullscreen { flex: 0 0 auto; }
.meters { bottom: 10px; pointer-events: none; }
.meters div { display: grid; gap: 2px; width: clamp(42px, 6vw, 78px); }
meter { width: 100%; height: 6px; }
meter::-webkit-meter-bar { background: #262626; border: 0; border-radius: 0; }
meter::-webkit-meter-optimum-value { background: var(--yellow); border-radius: 0; }
meter::-moz-meter-bar { background: var(--yellow); }

.controls, .transport, .settings { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.controls { justify-content: space-between; padding-top: 8px; }
button, .file {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #050505;
  color: #fff;
  font: inherit;
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (hover: hover) {
  button:not(:disabled):hover, .file:hover { background: var(--yellow); color: #000; }
}
button:focus-visible, .file:focus-within, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.file { position: relative; }
.file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }

audio { width: min(246px, 66vw); height: 32px; border: 1px solid var(--line); }
audio::-webkit-media-controls-enclosure { border-radius: 0; background: #111; }
.gain { display: grid; gap: 2px; padding: 0 2px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.gain input { appearance: none; width: 90px; height: 14px; margin: 0; background: transparent; accent-color: var(--yellow); cursor: pointer; }
.gain input::-webkit-slider-runnable-track { height: 4px; background: #454545; }
.gain input::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; margin-top: -3.5px; border: 0; border-radius: 0; background: var(--yellow); }
.gain input::-moz-range-track { height: 4px; background: #454545; }
.gain input::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 0; background: var(--yellow); }

@media (pointer: coarse) {
  button, .file { min-height: 40px; }
  audio { height: 40px; }
  .gain input { height: 22px; }
}
