/* Permanent master hardware. Cassette is an illustrated sprite; controls stay native. */
.master-media {--mm-ink:#f7e7ff;margin:8px 21px;border:3px solid #ae78cf;outline:2px solid #0d0815;color:var(--mm-ink);background:#281336;box-shadow:inset 0 4px #6d3b89,inset 0 -5px #130b20,0 5px #07070d;position:relative;}
.mm-face {display:grid;grid-template-columns:minmax(130px,.9fr) minmax(230px,2.25fr) minmax(110px,.95fr) minmax(280px,2.4fr);align-items:center;gap:16px;padding:15px 18px 14px;}
.mm-identity {align-self:stretch;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;}
.mm-identity h2 {font:700 clamp(21px,2.6cqw,32px)/1.1 var(--purps-display);color:#f5a6d8;margin:0 0 24px;text-shadow:3px 3px #130b1d;}
.mm-noise-status {font:11px var(--purps-display);padding:7px 8px;border:2px solid #b27dc6;box-shadow:inset 0 2px #513363;background:#21132e;white-space:nowrap;}
.mm-noise-status::before {content:'';display:inline-block;width:9px;height:9px;background:#8ce4cf;margin-right:7px;box-shadow:1px 1px #151020;}
.mm-motor-status {display:block;font:10px var(--purps-display);color:#b8eacb;margin-top:10px;min-height:20px;}
.mm-art {width:100%;min-width:0;align-self:center;}
.mm-art svg {width:100%;height:auto;display:block;max-height:196px;image-rendering:pixelated;overflow:visible;}
.mm-art text {font:700 12px var(--purps-display);letter-spacing:0;}
.mm-spool,.mm-disc {transform-origin:0 0;}
.mm-mode-bank {display:grid;gap:5px;}
.mm-mode-bank button,.mm-detail-row button,.mm-stretch-row button,.mm-details-toggle {position:relative;min-height:32px;padding:5px 8px;border:2px solid #b78ecb;background:#281c38;color:#f4e5fd;font:12px var(--purps-display);text-transform:uppercase;box-shadow:inset 2px 2px #6a477d,inset -2px -3px #140d21;}
.mm-mode-bank button[aria-pressed=true] {background:#ef94ce;color:#2d1537;border-color:#ffd0ed;box-shadow:inset 2px 2px #ffbfe5,inset -2px -3px #af568f;}
.mm-mode-bank button[aria-pressed=true]::before {content:'';display:inline-block;width:9px;height:10px;margin-right:6px;vertical-align:middle;background:#38153d;clip-path:polygon(0 0,100% 50%,0 100%);}
.mm-mode-bank button:hover {border-color:#fff0ff;background:#65416f;color:#fff;}
.mm-performance {align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:10px;min-width:0;}
.mm-follow {display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #87608f;padding-bottom:9px;font:11px var(--purps-display);color:#f0dbf7;gap:8px;}
.mm-follow i {display:block;width:45px;height:12px;background:repeating-linear-gradient(135deg,#b07ac7 0 7px,transparent 7px 14px);flex-shrink:0;}
.mm-performance-controls {display:flex;align-items:center;justify-content:space-around;gap:12px;}
.mm-bypass {display:flex;flex-direction:column;gap:13px;align-items:center;font:12px var(--purps-display);padding:4px;}
.mm-switch {width:46px;height:25px;display:block;padding:3px;background:#160e22;border:2px solid #d1b2df;box-shadow:inset 2px 2px #0b0710;}
.mm-switch::before {content:'';display:block;width:15px;height:15px;background:#e5d8e6;box-shadow:inset 2px 2px white,inset -2px -2px #9988a5;}
.mm-bypass[aria-pressed=true] .mm-switch::before {transform:translateX(21px);background:#f7c278;}
.mm-amount {display:flex;flex-direction:column;align-items:center;gap:3px;font:12px var(--purps-display);color:#f6e5ff;}
.mm-amount output {font:16px var(--purps-display);}
.mm-rotary {display:block;width:82px;height:82px;position:relative;}
.mm-ticks {position:absolute;inset:0;stroke:#ecd1ef;stroke-width:3;fill:none;shape-rendering:crispEdges;width:100%;height:100%;}
.mm-knob {position:absolute;inset:13%;background:#2a1337;clip-path:polygon(30% 0,70% 0,70% 6%,85% 6%,85% 15%,94% 15%,94% 30%,100% 30%,100% 70%,94% 70%,94% 85%,85% 85%,85% 94%,70% 94%,70% 100%,30% 100%,30% 94%,15% 94%,15% 85%,6% 85%,6% 70%,0 70%,0 30%,6% 30%,6% 15%,15% 15%,15% 6%,30% 6%);box-shadow:inset 4px 4px #e1b2fa,inset -5px -5px #110b1f;}
.mm-knob {border-radius:50%;}
.mm-knob::before {content:'';position:absolute;inset:5px;border-radius:50%;background:#70408c;box-shadow:inset 3px 3px #b582d1,inset -3px -4px #402051;clip-path:inherit;}
.mm-knob i {position:absolute;inset:0;transform:rotate(var(--mm-angle));}
.mm-knob i::after {content:'';position:absolute;top:6%;left:calc(50% - 2px);width:4px;height:37%;background:#fff0e2;box-shadow:2px 1px #30133b;}
.mm-rotary input {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0;}
.mm-rotary:has(input:focus-visible) {outline:2px solid #ffdf98;outline-offset:2px;}
.mm-details-toggle {width:100px;min-height:38px;flex-shrink:0;cursor:pointer;font-size:11px;}
.mm-details:not([open]) {height:0;}
.mm-details[open] {border-top:3px solid #8f68a3;padding-top:8px;}
.mm-details summary {display:none;}
.mm-stretch-row {display:flex;align-items:center;gap:24px;border-top:2px solid #87608f;padding:12px 18px;background:#160d2266;}
.mm-stretch-main {display:flex;align-items:center;gap:12px;}
.mm-stretch-row .mm-half-time {display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:116px;min-height:64px;}
.mm-half-time strong {font-size:17px;font-weight:700;white-space:nowrap;}
.mm-half-time span {font-size:11px;}
.mm-stretch-row button[aria-pressed=true] {background:#ef94ce;color:#2d1537;border-color:#ffd0ed;box-shadow:inset 2px 2px #ffbfe5,inset -2px -3px #af568f;}
.mm-stretch-row button:hover,.mm-details-toggle:hover {border-color:#fff0ff;}
.mm-stretch-help,.mm-filter-help {font:10px/1.7 var(--purps-display);color:#e0cee9;}
.mm-variations {display:flex;flex-direction:column;gap:8px;}
.mm-variations > button {display:flex;justify-content:space-between;gap:12px;font-size:11px;}
.mm-grain-bank {display:flex;align-items:center;gap:6px;font:10px var(--purps-display);}
.mm-grain-bank > span {margin-right:4px;}
.mm-grain-bank button {flex:1;min-width:60px;font-size:11px;}
.mm-filter {margin-left:auto;min-width:88px;}
.mm-filter .mm-rotary {width:64px;height:64px;}
.mm-filter output {font-size:11px;white-space:nowrap;}
.mm-filter-help {max-width:190px;}
.mm-detail-row {padding:8px 18px;display:flex;gap:20px;flex-wrap:wrap;align-items:center;}
.mm-detail-control {font:12px var(--purps-display);display:grid;grid-template-columns:1fr auto;gap:8px;flex:1 1 110px;max-width:220px;}
.mm-detail-control input {grid-column:1/-1;grid-row:2;width:100%;min-height:30px;accent-color:#dbaaeb;}
.mm-detail-control output {color:#c6e9d7;}
.mm-details p {margin:6px 18px 16px;font:11px/1.7 var(--purps-display);color:#e0cee9;}
.master-media[data-bypass=true] .mm-art {opacity:.6;}
.master-media[data-mode=reel] {background:#2a3025;border-color:#a5b48c;box-shadow:inset 0 4px #697854,inset 0 -5px #172014,0 5px #08090b;}
.master-media[data-mode=vinyl] {background:#302131;border-color:#bf86b3;box-shadow:inset 0 4px #815070,inset 0 -5px #1b1420,0 5px #08090b;}
.master-media[data-mode=cd] {background:#20313b;border-color:#86bbd2;box-shadow:inset 0 4px #54869c,inset 0 -5px #11212b,0 5px #08090b;}
@media(max-width:1200px) {.mm-face {grid-template-columns:105px minmax(180px,1.9fr) 110px minmax(195px,1.6fr);gap:11px;padding:14px 12px;}.mm-identity h2 {font-size:23px;margin-bottom:17px;}.mm-noise-status {font-size:9px;padding:5px;}.mm-follow {font-size:9px;}.mm-follow i {width:28px;}.mm-mode-bank button {font-size:11px;}.mm-details-space {width:75px;}.mm-details summary {width:75px;right:13px;font-size:9px;}.mm-rotary {width:67px;height:67px;}.mm-performance-controls {gap:8px;}.mm-bypass,.mm-amount {font-size:10px;}}
@media(max-width:920px) {.mm-face {grid-template-columns:110px minmax(190px,1fr) 110px;gap:12px;}.mm-performance {grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center;}.mm-follow {border:0;padding:0;}.mm-follow i {display:none;}.mm-performance-controls {gap:20px;}.mm-bypass {flex-direction:row;}.mm-amount {display:grid;grid-template-columns:auto 58px 45px;gap:8px;}.mm-rotary {width:58px;height:58px;}.mm-amount output {font-size:13px;}.mm-details summary {top:auto;bottom:22px;width:83px;}.mm-details[open] summary {top:180px;bottom:auto;}.mm-details-space {width:86px;}}
@media(max-width:600px) {.master-media {margin:7px 14px 10px;}.mm-face {grid-template-columns:83px minmax(0,1fr);gap:10px;padding:12px 10px;}.mm-identity h2 {font-size:19px;margin-bottom:15px;}.mm-noise-status {font-size:8px;padding:5px 3px;}.mm-noise-status::before {width:6px;height:6px;margin-right:4px;}.mm-motor-status {font-size:8px;margin-top:7px;}.mm-art {min-width:0;}.mm-mode-bank {grid-column:1/-1;grid-template-columns:repeat(4,1fr);gap:4px;}.mm-mode-bank button {font-size:9px;padding:6px 2px;min-height:33px;}.mm-mode-bank button[aria-pressed=true]::before {width:5px;height:7px;margin-right:3px;}.mm-follow {display:none;}.mm-performance {justify-content:center;}.mm-performance-controls {width:100%;justify-content:space-between;gap:10px;}.mm-bypass {font-size:9px;flex-direction:column;gap:6px;}.mm-amount {display:flex;gap:1px;font-size:9px;}.mm-rotary {width:58px;height:58px;}.mm-amount output {font-size:12px;}.mm-details-space {width:72px;}.mm-details summary {right:12px;bottom:32px;width:72px;min-height:34px;font-size:9px;}.mm-details[open] summary {top:232px;bottom:auto;}.mm-detail-row {gap:12px;padding:8px 12px;}.mm-detail-control {font-size:11px;}.mm-details p {font-size:10px;margin-inline:12px;}}
@media(prefers-reduced-motion:reduce) {.mm-art * {transition:none;animation:none;}}

@media(max-width:1200px) {.mm-stretch-row {gap:16px;padding-inline:12px;}.mm-filter-help {display:none;}.mm-details-toggle {width:75px;font-size:9px;}}
@media(max-width:920px) {.mm-details-toggle {width:83px;}.mm-stretch-row {gap:14px;}.mm-stretch-help {font-size:9px;}.mm-filter {display:flex;flex-direction:column;gap:2px;}}
@media(max-width:600px) {.mm-stretch-row {display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:14px 8px;padding:12px;}.mm-stretch-main {grid-column:1;flex-wrap:wrap;gap:6px;}.mm-stretch-row .mm-half-time {min-width:108px;min-height:56px;}.mm-stretch-help {font-size:8px;}.mm-variations {grid-column:1/-1;grid-row:2;}.mm-filter {grid-column:2;grid-row:1;margin:0;min-width:0;}.mm-filter .mm-rotary {width:58px;height:58px;}.mm-filter output {font-size:10px;}.mm-variations > button {min-height:38px;}.mm-grain-bank button {min-height:36px;}.mm-details-toggle {width:72px;font-size:9px;}}
@media(forced-colors:active) {.mm-stretch-row button[aria-pressed=true] {border:3px solid Highlight;}.mm-knob {border:2px solid ButtonText;}.mm-knob i::after {background:ButtonText;}}

.mm-stretch-row button:disabled {opacity:.45;cursor:default;}
