:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  background: #08090c;
  color: #f3f0e9;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #0e1015 0, #08090c 52%, #111016 100%);
}

.is-embedded body {
  min-height: 0;
  background: #181a20;
  overflow: hidden;
}

.is-embedded .prototype-shell {
  width: 100%;
  min-height: 0;
  padding: 0;
}

.is-embedded .prototype-header {
  display: none;
}

.is-embedded .prototype-deck {
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

button,
select,
input {
  font: inherit;
}

.prototype-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 48px) 40px;
}

.prototype-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.lab-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lab-mark {
  display: grid;
  place-items: center;
  align-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid #e2b768;
  border-radius: 50%;
  background: #17191e;
  color: #f4d28c;
  font-family: Georgia, serif;
  line-height: 1;
}

.lab-mark span {
  font-size: 1.25rem;
}

.lab-mark small {
  margin-top: 3px;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.42rem;
  font-weight: 800;
}

.prototype-header h1 {
  margin: 1px 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: 0;
}

.lab-edition {
  margin: 3px 0 0;
  color: #8f94a0;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.prototype-header a {
  color: #c9c2d7;
}

.prototype-kicker {
  margin: 0;
  color: #e2b768;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.prototype-deck {
  --motor-speed: 0;
  min-height: calc(100vh - 140px);
  border: 1px solid #3c3f48;
  border-radius: 6px;
  background: #17191e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.deck-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid #363943;
  background: #20232a;
}

.source-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.55fr);
  gap: 10px;
  width: min(620px, 100%);
}

.source-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #aaaebb;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.track-select,
.deck-profile-select {
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid #555a66;
  border-radius: 4px;
  background: #111318;
  color: #f3f0e9;
}

.transport-controls {
  display: grid;
  grid-template-columns: auto 58px 58px 58px 82px;
  align-items: end;
  justify-content: end;
  gap: 8px;
}

.icon-button,
.needle-lift,
.arm-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid #5a5f6b;
  border-radius: 4px;
  background: #121419;
  color: #f3f0e9;
  cursor: pointer;
}

.start-stop-button {
  display: grid;
  grid-template-columns: 12px auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(106, 255, 166, 0.76);
  border-radius: 4px;
  background: rgba(22, 65, 40, 0.68);
  color: #f3f0e9;
  box-shadow: 0 0 18px rgba(106, 255, 166, 0.12);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.start-stop-button:hover,
.start-stop-button:focus-visible {
  border-color: #8dffc1;
  outline: none;
}

.start-stop-button.is-active {
  border-color: rgba(255, 89, 103, 0.88);
  background: rgba(92, 24, 32, 0.8);
  box-shadow: 0 0 20px rgba(255, 89, 103, 0.18);
}

.start-stop-lamp {
  width: 10px;
  height: 10px;
  border: 1px solid #8dffc1;
  border-radius: 50%;
  background: #58ffa0;
  box-shadow:
    0 0 10px rgba(88, 255, 160, 0.8),
    inset 0 0 3px rgba(255, 255, 255, 0.28);
}

.start-stop-button.is-active .start-stop-lamp {
  border-color: #ff9aa4;
  background: #ff344c;
  box-shadow:
    0 0 12px rgba(255, 52, 76, 0.9),
    inset 0 0 3px rgba(255, 255, 255, 0.24);
}

.speed-switch {
  display: grid;
  grid-template-columns: 42px 42px;
  gap: 3px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.speed-switch legend {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  padding: 0;
  color: #8f94a0;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
}

.speed-option {
  height: 30px;
  border: 1px solid #555a66;
  border-radius: 2px;
  background: #111318;
  color: #9ea3ae;
  cursor: pointer;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}

.speed-option:hover,
.speed-option:focus-visible {
  border-color: #e2b768;
  outline: none;
}

.speed-option.is-active {
  border-color: #e2b768;
  background: #332b1f;
  color: #f4d28c;
}

.noise-switch,
.motor-switch {
  display: grid;
  grid-template-columns: 58px;
  justify-items: center;
  gap: 3px;
  color: #8f94a0;
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
}

.surface-label,
.motor-label {
  display: block;
  width: 58px;
  color: #8f94a0;
  font-size: 0.58rem;
  line-height: 1;
  text-align: center;
}

.surface-state,
.motor-state {
  display: block;
  width: 58px;
  min-height: 1em;
  text-align: center;
}

.noise-switch input,
.motor-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 34px;
  height: 18px;
  border: 1px solid #555a66;
  border-radius: 9px;
  background: #101217;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8f94a0;
  transition: transform 160ms ease, background 160ms ease;
}

.noise-switch input:checked + .switch-track {
  border-color: #b267ff;
}

.noise-switch input:checked + .switch-track::after {
  background: #b267ff;
  transform: translateX(16px);
}

.motor-switch input:checked + .switch-track {
  border-color: #6affa6;
}

.motor-switch input:checked + .switch-track::after {
  background: #6affa6;
  transform: translateX(16px);
}

.noise-switch input:focus-visible + .switch-track,
.motor-switch input:focus-visible + .switch-track {
  outline: 1px solid #e2b768;
  outline-offset: 2px;
}

.icon-button:hover,
.icon-button:focus-visible,
.needle-lift:hover,
.needle-lift:focus-visible,
.arm-toggle:hover,
.arm-toggle:focus-visible {
  border-color: #e2b768;
  outline: none;
}

.icon-button.is-active,
.needle-lift[aria-pressed="true"],
.arm-toggle[aria-pressed="true"] {
  border-color: #b267ff;
  background: #2a1c35;
  box-shadow: inset 0 0 0 1px rgba(178, 103, 255, 0.4);
}

.play-symbol {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.deck-play.is-active .play-symbol {
  top: 13px;
  left: 13px;
  width: 16px;
  height: 16px;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px, currentColor 10px);
}

.motor-symbol,
.noise-symbol {
  position: absolute;
  inset: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.motor-symbol::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 2px;
  height: 10px;
  background: currentColor;
  transform-origin: bottom;
  transform: rotate(38deg);
}

.noise-symbol {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, transparent 0 18%, currentColor 18% 26%, transparent 26% 44%, currentColor 44% 52%, transparent 52% 70%, currentColor 70% 78%, transparent 78%);
}

.deck-surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 660px) 118px minmax(250px, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: start;
  gap: 26px 18px;
  min-height: 620px;
  padding: clamp(24px, 4vw, 64px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    #181a20;
}

.deck-control-row {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(230px, 250px) minmax(280px, 420px);
  align-items: start;
  gap: 18px;
  width: min(100%, 740px);
  z-index: 6;
}

.filter-controls {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(112, 239, 255, 0.18);
  border-radius: 4px;
  background: rgba(8, 12, 16, 0.7);
  box-shadow:
    inset 0 0 18px rgba(112, 239, 255, 0.04),
    0 12px 26px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.filter-power {
  display: grid;
  grid-template-columns: 60px 42px 48px;
  align-items: center;
  gap: 8px;
  color: #aeb3bf;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-power input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-switch {
  position: relative;
  width: 38px;
  height: 18px;
  border: 1px solid #4b535d;
  border-radius: 999px;
  background: #12171b;
}

.filter-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #747985;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.filter-toggle:checked + .filter-switch {
  border-color: rgba(112, 239, 255, 0.65);
  background: rgba(112, 239, 255, 0.12);
}

.filter-toggle:checked + .filter-switch::after {
  transform: translateX(19px);
  background: #70efff;
  box-shadow: 0 0 12px rgba(112, 239, 255, 0.78);
}

.filter-state {
  color: #70efff;
  font-family: ui-monospace, monospace;
  font-size: 0.6rem;
  text-align: right;
}

.filter-control {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  color: #aeb3bf;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-control output {
  color: #70efff;
  font-family: ui-monospace, monospace;
  font-size: 0.6rem;
  text-align: right;
  text-shadow: 0 0 7px rgba(112, 239, 255, 0.48);
}

.lowpass-fader,
.highpass-fader,
.filter-drive-fader {
  width: 100%;
  height: 24px;
  margin: 0;
  accent-color: #70efff;
  cursor: ew-resize;
}

.lowpass-fader::-webkit-slider-thumb,
.highpass-fader::-webkit-slider-thumb,
.filter-drive-fader::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #0a1114;
  border-radius: 50%;
  background: #70efff;
  box-shadow:
    0 0 0 3px rgba(112, 239, 255, 0.18),
    0 0 14px rgba(112, 239, 255, 0.7);
}

.lowpass-fader::-moz-range-thumb,
.highpass-fader::-moz-range-thumb,
.filter-drive-fader::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #0a1114;
  border-radius: 50%;
  background: #70efff;
  box-shadow:
    0 0 0 3px rgba(112, 239, 255, 0.18),
    0 0 14px rgba(112, 239, 255, 0.7);
}

.device-plate {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid #747985;
  border-radius: 2px;
  background: #292c32;
  box-shadow: inset 0 0 0 1px #111318;
  color: #c8cbd1;
  font-family: ui-monospace, monospace;
  font-size: 0.55rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.device-plate strong {
  color: #e2b768;
  font-size: 0.58rem;
}

.turntable-social-actions {
  position: absolute;
  right: 188px;
  bottom: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 5;
}

.turntable-like-button,
.turntable-share-button {
  min-height: 34px;
  padding: 0 10px;
  color: #d8dce4;
  background: #1f232a;
  border: 1px solid #555c66;
  border-radius: 2px;
  font-family: ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.turntable-like-button:hover,
.turntable-share-button:hover,
.turntable-like-button.is-liked {
  color: #fff;
  border-color: #e2b768;
  box-shadow: 0 0 18px rgba(226, 183, 104, 0.14);
}

.turntable-like-button span {
  color: #ff9be9;
}

.turntable-like-button.is-liked {
  background: rgba(226, 183, 104, 0.12);
}

.master-volume-control {
  position: absolute;
  left: clamp(660px, 56vw, 824px);
  bottom: 76px;
  z-index: 6;
  display: grid;
  grid-template-rows: 28px 184px 18px;
  align-items: center;
  justify-items: center;
  gap: 9px;
  width: 62px;
  color: #aeb3bf;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.master-volume-control > span {
  display: grid;
  place-items: center;
  height: 28px;
  line-height: 1.15;
  text-align: center;
}

.master-volume-value {
  width: 100%;
  color: #f4d28c;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  text-align: center;
}

.master-volume-fader {
  width: 30px;
  height: 184px;
  margin: 0;
  accent-color: #e2b768;
  cursor: ns-resize;
  direction: rtl;
  writing-mode: vertical-lr;
}

.platter-zone {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(360px, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  gap: 18px;
  min-width: 0;
}

.platter-shadow {
  grid-area: 1 / 2;
  width: min(500px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #090a0d;
  box-shadow: 0 26px 45px rgba(0, 0, 0, 0.55);
}

.prototype-platter {
  --platter-angle: 0deg;
  position: relative;
  grid-area: 1 / 2;
  width: min(480px, 100%);
  aspect-ratio: 1;
  border: 8px solid #343741;
  border-radius: 50%;
  background: #07080a;
  box-shadow:
    inset 0 0 0 2px #0c0d11,
    inset 0 0 0 14px #242730,
    0 0 0 2px #5b606b;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: rotate(var(--platter-angle));
  will-change: transform;
}

.prototype-platter.is-held {
  cursor: grabbing;
  box-shadow:
    inset 0 0 0 2px #0c0d11,
    inset 0 0 0 14px #2e2538,
    0 0 0 2px #b267ff,
    0 0 30px rgba(178, 103, 255, 0.22);
}

.platter-grooves {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #15171b 0 2px, #060709 2px 5px);
  box-shadow: inset 0 0 40px #000;
}

.record-label {
  position: absolute;
  inset: 36%;
  display: grid;
  place-items: center;
  border: 1px solid #e2b768;
  border-radius: 50%;
  background:
    linear-gradient(rgba(123, 35, 80, 0.2), rgba(123, 35, 80, 0.38)),
    var(--record-art, #7b2350) center / cover no-repeat;
  color: #f4d28c;
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 4vw, 2.4rem);
}

.record-label.has-art span {
  padding: 4px 7px;
  background: rgba(7, 8, 10, 0.68);
  font-size: 0.55em;
}

.spindle {
  position: absolute;
  top: calc(50% - 6px);
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d5d7db;
  box-shadow: 0 0 0 3px #3d4149;
}

.platter-note {
  margin: 16px 0 0;
  color: #8f94a0;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.tonearm-control {
  --tonearm-min-angle: 27;
  --tonearm-max-angle: 50;
  --tonearm-angle: 27deg;
  position: relative;
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  min-height: 500px;
  transform: translateX(-34px);
}

.tonearm-base {
  position: absolute;
  top: 18px;
  left: calc(50% - 30px);
  width: 60px;
  height: 60px;
  border: 8px solid #474b55;
  border-radius: 50%;
  background: #13151a;
  box-shadow: 0 8px 18px #000;
}

.tonearm {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 34px;
  height: 410px;
  transform: translateX(-50%) rotate(var(--tonearm-angle));
  transform-origin: 50% 0;
  cursor: grab;
  touch-action: none;
  z-index: 2;
}

.tonearm-tube {
  position: absolute;
  top: 0;
  left: 14px;
  width: 6px;
  height: 370px;
  border-radius: 4px;
  background: linear-gradient(90deg, #777b83, #d3d5d7 45%, #656973);
  box-shadow: 3px 5px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-11px);
  transition: transform 240ms cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 240ms ease;
}

.tonearm-head {
  position: absolute;
  bottom: 12px;
  left: 7px;
  width: 22px;
  height: 44px;
  border-radius: 2px;
  background: #ad3c4c;
  box-shadow: 0 4px 8px #000;
  transform: translateY(-11px) rotate(-3deg);
  transform-origin: 50% 0;
  transition: transform 240ms cubic-bezier(0.22, 0.8, 0.28, 1), box-shadow 240ms ease;
}

.tonearm-head::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 10px;
  width: 2px;
  height: 12px;
  background: #e7dfca;
  transform: rotate(12deg);
}

.needle-is-down .tonearm-tube {
  box-shadow:
    3px 7px 9px rgba(0, 0, 0, 0.68),
    inset -1px 0 rgba(0, 0, 0, 0.28);
  transform: translateY(0);
}

.needle-is-down .tonearm-head {
  box-shadow: 1px 7px 9px rgba(0, 0, 0, 0.78);
  transform: translateY(0) rotate(0);
}

.needle-is-down .tonearm-head::after {
  height: 15px;
  background: #f1ead9;
}

.needle-toolbar-control,
.arm-toolbar-control {
  display: grid;
  grid-template-rows: 44px 12px;
  align-items: start;
  justify-items: center;
  gap: 4px;
  width: 58px;
  height: 60px;
}

.needle-lift-label,
.arm-toggle-label {
  width: 58px;
  color: #aeb3bf;
  font-size: 0.56rem;
  line-height: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.needle-toolbar-control .needle-lift,
.arm-toolbar-control .arm-toggle {
  position: relative;
}

.needle-lift span::before,
.needle-lift span::after {
  content: "";
  position: absolute;
  left: 13px;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.needle-lift span::before {
  top: 15px;
}

.needle-lift span::after {
  top: 25px;
}

.needle-lift span {
  position: absolute;
  inset: 0;
}

.needle-lift span {
  background: linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
}

.arm-toggle span::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 21px;
  width: 4px;
  height: 23px;
  border-radius: 3px;
  background: currentColor;
  box-shadow: 8px 9px 0 -1px currentColor;
  transform: rotate(34deg);
  transform-origin: 50% 0;
}

.arm-toggle span::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 7px;
  width: 13px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(16deg);
}

.arm-toggle[aria-pressed="true"] span {
  opacity: 0.42;
}

.arm-toggle[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 21px;
  height: 2px;
  background: #ff8790;
  transform: rotate(-32deg);
}

.prototype-deck.arm-hidden .tonearm-control {
  opacity: 0;
  pointer-events: none;
}

.deck-readout {
  grid-column: 3;
  grid-row: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  padding-left: clamp(14px, 2vw, 30px);
  border-left: 1px solid #3c3f48;
}

.deck-status {
  min-height: 2.4em;
  margin: 0 0 24px;
  color: #aeb3bf;
  font-size: 0.8rem;
}

.deck-status.is-error {
  color: #ff8790;
}

.deck-track-title {
  margin: 0 0 28px;
  font-family: Georgia, serif;
  font-size: clamp(2.15rem, 3vw, 3.4rem);
  font-weight: 500;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.deck-track-title.is-long {
  font-size: 2.65rem;
}

.deck-track-title.is-very-long {
  font-size: 2.05rem;
  line-height: 1.12;
}

.time-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #d7d9de;
  font-variant-numeric: tabular-nums;
}

.deck-progress {
  width: 100%;
  margin: 12px 0 34px;
  accent-color: #b267ff;
}

.deck-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: 100%;
  margin: 0 0 4px;
  padding: 5px;
  border: 1px solid #555c66;
  border-radius: 3px;
  background: #070b0d;
  box-shadow:
    inset 0 0 18px rgba(83, 238, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.deck-metrics div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #202a2f;
  background: #0a1114;
}

.deck-metrics dt {
  color: #6e8a91;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deck-metrics dd {
  margin: 4px 0 0;
  color: #70efff;
  font-family: ui-monospace, monospace;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow:
    0 0 4px rgba(112, 239, 255, 0.85),
    0 0 12px rgba(112, 239, 255, 0.32);
  overflow-wrap: anywhere;
}

.modulation-controls {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 62px 72px;
  align-self: center;
  align-items: start;
  justify-content: center;
  gap: 8px;
}

.pitch-control,
.wow-flutter-control {
  display: grid;
  grid-template-rows: 28px 184px 18px;
  align-items: center;
  justify-items: center;
  gap: 9px;
  width: 62px;
  color: #aeb3bf;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pitch-control > span,
.wow-flutter-control > span {
  display: grid;
  place-items: center;
  height: 28px;
  line-height: 1.15;
  text-align: center;
}

.wow-flutter-control {
  width: 72px;
}

.pitch-fader,
.wow-flutter-fader {
  width: 30px;
  height: 184px;
  margin: 0;
  accent-color: #e2b768;
  cursor: ns-resize;
  direction: rtl;
  writing-mode: vertical-lr;
}

.pitch-value,
.wow-flutter-value {
  width: 62px;
  color: #f4d28c;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  text-align: center;
}

.wow-flutter-value {
  width: 72px;
}

.modulation-controls .start-stop-button {
  grid-column: 1 / -1;
  justify-self: stretch;
  min-height: 42px;
  margin-top: 2px;
  padding: 0 10px;
}

@media (max-width: 1180px) {
  .deck-surface {
    grid-template-columns: minmax(0, 610px) 96px minmax(230px, 1fr);
    gap: 24px 14px;
    padding: clamp(24px, 3vw, 40px);
  }

  .platter-zone {
    grid-template-columns: 124px minmax(340px, 1fr);
    gap: 14px;
  }

  .platter-shadow {
    width: min(450px, 100%);
  }

  .prototype-platter {
    width: min(430px, 100%);
  }

  .tonearm-control {
    transform: translateX(-28px);
  }

  .deck-readout {
    grid-column: 3;
    grid-row: 2;
    min-height: 0;
    margin-top: 0;
    padding: 0 0 0 14px;
    border-top: 0;
    border-left: 1px solid #3c3f48;
  }

  .deck-track-title {
    font-size: 2rem;
  }

  .deck-track-title.is-long {
    font-size: 1.72rem;
  }

  .deck-track-title.is-very-long {
    font-size: 1.42rem;
  }

}

@media (max-width: 1100px) {
  .deck-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .source-controls {
    width: 100%;
  }

  .transport-controls {
    width: 100%;
    justify-content: end;
  }
}

@media (max-width: 640px) {
  .prototype-shell {
    width: 100%;
    padding: 14px 10px 24px;
  }

  .prototype-deck {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .prototype-header {
    align-items: start;
  }

  .lab-brand {
    align-items: start;
  }

  .lab-mark {
    width: 50px;
    height: 50px;
  }

  .prototype-header a {
    width: 100%;
  }

  .prototype-header h1 {
    font-size: 1.55rem;
  }

  .source-controls {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .transport-controls {
    grid-template-columns: auto 50px 50px 44px;
    width: 100%;
    min-height: 44px;
    justify-content: start;
    gap: 6px;
  }

  .start-stop-button {
    min-width: 108px;
    padding: 0 10px;
  }

  .noise-switch,
  .motor-switch {
    grid-template-columns: 50px;
  }

  .surface-state,
  .motor-state {
    width: 50px;
  }

  .surface-label,
  .motor-label {
    width: 50px;
  }

  .needle-toolbar-control {
    display: block;
    width: 44px;
    height: 44px;
  }

  .arm-toolbar-control {
    display: none;
  }

  .needle-lift-label {
    display: none;
  }

  .deck-surface {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 24px 12px;
    overflow: hidden;
  }

  .deck-control-row {
    grid-column: 1;
    grid-row: 1;
    display: contents;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .filter-controls {
    display: none;
  }

  .filter-control {
    grid-template-columns: 70px minmax(0, 1fr) 52px;
  }

  .filter-power {
    grid-template-columns: 70px 42px 52px;
  }

  .platter-zone {
    grid-template-columns: minmax(0, 1fr);
    grid-row: 2;
  }

  .platter-shadow,
  .prototype-platter {
    grid-area: 1 / 1;
  }

  .deck-metrics {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    top: auto;
    left: auto;
    right: auto;
    width: min(420px, 100%);
    margin-bottom: 14px;
  }

  .platter-shadow {
    width: min(320px, 84vw);
  }

  .prototype-platter {
    width: min(310px, 82vw);
    border-width: 5px;
  }

  .tonearm-control {
    display: none;
  }

  .tonearm-base {
    top: 8px;
    left: calc(50% - 22px);
    width: 44px;
    height: 44px;
    border-width: 6px;
  }

  .tonearm {
    top: 30px;
    height: 275px;
    pointer-events: auto;
  }

  .tonearm-tube {
    height: 245px;
  }

  .deck-readout {
    grid-column: 1;
    grid-row: 3;
    min-height: 280px;
    width: 100%;
    margin-top: 28px;
    padding: 28px 0 0;
  }

  .deck-track-title {
    margin-bottom: 20px;
    font-size: 2rem;
  }

  .deck-track-title.is-long {
    font-size: 1.7rem;
  }

  .deck-track-title.is-very-long {
    font-size: 1.4rem;
  }

  .time-row {
    width: calc(100vw - 64px);
    font-size: 0.78rem;
  }

  .deck-progress {
    width: calc(100vw - 64px);
    min-width: 0;
  }

  .modulation-controls {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    width: calc(100vw - 64px);
    padding: 18px 0 4px;
  }

  .device-plate {
    position: static;
    grid-column: 1;
    justify-self: end;
    margin-top: 20px;
  }

  .turntable-social-actions {
    position: static;
    grid-column: 1;
    justify-self: end;
    margin-top: 16px;
  }

  .master-volume-control {
    display: none;
  }

  .pitch-control,
  .wow-flutter-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .pitch-control > span,
  .wow-flutter-control > span {
    display: block;
    height: auto;
    flex: 0 0 76px;
    line-height: 1.15;
    text-align: left;
  }

  .pitch-fader,
  .wow-flutter-fader {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 44px;
    cursor: ew-resize;
    direction: ltr;
    writing-mode: horizontal-tb;
  }

  .pitch-value,
  .wow-flutter-value {
    flex: 0 0 52px;
    width: 52px;
    text-align: right;
  }
}
