/* ZonaSalsa Radio — Tape Visualizer
   Estética: equipo Hi-Fi japonés de finales de los 70 (aluminio cepillado, VU iluminados en ámbar, madera) */

:root {
  --room: #140e0a;
  --room-2: #241812;
  --ink: #f3e9da;
  --ink-dim: #b9a68f;
  --muted: #8a7764;
  --amber: #ffb347;
  --amber-hot: #ff8a1f;
  --salsa-red: #d8322a;
  --salsa-orange: #f07a1c;
  --salsa-gold: #f4b52c;
  --alu-1: #e9e9e6;
  --alu-2: #c9cac6;
  --alu-3: #a9aaa6;
  --alu-ink: #1d1d1f;
  --alu-ink-2: #4a4a4c;
  --black-panel: #0b0b0c;
  --wood-1: #6b3d22;
  --wood-2: #4a2814;
  --vfd-teal: #40e8d6;
  --radius: 10px;
  --f-brand: 'Michroma', 'Eurostile', 'Arial Narrow', sans-serif;
  --f-crt: 'VT323', ui-monospace, monospace;
  --f-ui: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-hand: 'Caveat', 'Comic Sans MS', cursive;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--room);
  color: var(--ink);
  font-family: var(--f-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- sala */
.room {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 30% -10%, rgba(255, 150, 60, .16), transparent 60%),
    radial-gradient(900px 600px at 100% 30%, rgba(216, 50, 42, .10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 120px),
    linear-gradient(180deg, var(--room-2), var(--room) 40%);
  transition: filter .6s ease;
}
.room.lights-off { filter: brightness(.7) saturate(.7); }

.topbar {
  max-width: 1440px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 15px; letter-spacing: .02em; }
.brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.brand strong { font-weight: 700; }
.brand em { font-style: normal; font-family: var(--f-brand); font-size: 10px; letter-spacing: .2em; color: var(--amber); margin-left: 8px; text-transform: uppercase; }
.live-pill { font-size: 12px; font-weight: 700; letter-spacing: .12em; padding: 6px 12px; border-radius: 999px; border: 1px solid #5a4636; color: var(--muted); }
.live-pill.on { color: #fff; background: var(--salsa-red); border-color: var(--salsa-red); box-shadow: 0 0 18px rgba(216,50,42,.55); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 4px rgba(216,50,42,.3); } }

.rack {
  max-width: 1440px; margin: 0 auto; padding: 4px 24px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start;
}
.stack { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; }
.hifi { width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 6px; margin-top: 22px;
  padding: 10px; border-radius: 14px;
  background: linear-gradient(180deg, #2b2019, #1b130e); box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); }

.foot { max-width: 1440px; margin: 0 auto; padding: 8px 24px 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12px; color: var(--ink-dim); }

/* ---------------------------------------------------------------- textos de marca */
.logo-word { font-family: var(--f-brand); font-size: 15px; letter-spacing: .32em; color: var(--alu-ink); font-weight: 400; }
.model { font-family: var(--f-brand); font-size: 8.5px; letter-spacing: .18em; color: var(--alu-ink-2); }

/* aluminio cepillado */
.alu, .amp-face, .deck, .spectrum {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, rgba(0,0,0,.035) 1px 2px, transparent 2px 3px),
    linear-gradient(180deg, var(--alu-1), var(--alu-2) 55%, var(--alu-3));
}

/* ---------------------------------------------------------------- TV */
.tv { width: 100%; max-width: 1000px; }
.tv-cabinet {
  display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 18px;
  padding: 22px; border-radius: 26px;
  background:
    repeating-linear-gradient(91deg, rgba(0,0,0,.10) 0 3px, transparent 3px 9px, rgba(255,255,255,.04) 9px 10px, transparent 10px 17px),
    linear-gradient(180deg, var(--wood-1), var(--wood-2));
  box-shadow: 0 30px 50px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.12), inset 0 -4px 10px rgba(0,0,0,.4);
}
.tv-screen-wrap { padding: 14px; border-radius: 30px; background: linear-gradient(145deg, #1a1a1a, #3a3a3a); box-shadow: inset 0 3px 10px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.15); }
.tv-screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 7.4; min-height: 230px;
  border-radius: 34px / 40px;
  background: radial-gradient(ellipse at 50% 45%, #1d2a2a 0%, #0c1414 60%, #050808 100%);
  box-shadow: inset 0 0 60px rgba(0,0,0,.95), inset 0 0 18px rgba(0,0,0,.9);
  color: #dffcf0; font-family: var(--f-crt);
}
.tv.off .tv-screen > *:not(.tv-glass) { opacity: 0; transition: opacity .4s; }
.tv-content { position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4%; align-items: center; padding: 5% 6%; animation: crt-on .5s ease-out; }
@keyframes crt-on { from { transform: scale(1, .02); filter: brightness(4); } 60% { transform: scale(1, 1); } to { filter: none; } }
.tv-cover-frame { height: 100%; aspect-ratio: 1; max-height: 260px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 2px rgba(223,252,240,.15), 0 0 30px rgba(120,255,220,.12); }
.tv-cover { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.15) contrast(1.05); }
.tv-info { min-width: 0; text-shadow: 0 0 6px rgba(120,255,210,.55), 0 0 1px #fff; }
.tv-onair { display: flex; align-items: center; gap: 8px; font-size: clamp(14px, 1.7vw, 20px); letter-spacing: .12em; color: #ffd7a0; text-shadow: 0 0 6px rgba(255,170,60,.7); }
.tv-onair .dot { width: 10px; height: 10px; border-radius: 50%; background: #5a3a2a; }
.tv-onair.playing .dot { background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: blink 1.2s steps(2) infinite; }
.tv-onair.buffering .dot { background: var(--amber); animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tv-title { margin: .2em 0 0; font-weight: 400; font-size: clamp(26px, 4vw, 50px); line-height: .95; letter-spacing: .01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tv-artist { font-size: clamp(20px, 2.6vw, 32px); color: #ffe7b8; text-shadow: 0 0 8px rgba(255,180,80,.6); margin-top: .15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: .6em 0 0; font-size: clamp(15px, 1.7vw, 21px); }
.tv-meta div { display: flex; gap: 8px; min-width: 0; }
.tv-meta dt { color: #7fbfae; }
.tv-meta dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
.tv-progress { display: flex; align-items: center; gap: 10px; margin-top: .7em; font-size: clamp(15px, 1.6vw, 20px); }
.tv-progress .bar { flex: 1; height: 8px; border: 1px solid rgba(223,252,240,.55); padding: 1px; }
.tv-progress .bar i { display: block; height: 100%; background: #dffcf0; box-shadow: 0 0 8px rgba(160,255,220,.8); transition: width 1s linear; }
.tv-station { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: .6em; font-size: clamp(14px, 1.5vw, 18px); color: #8fd8c2; }
.tv-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; letter-spacing: .2em; animation: blink 1s steps(2) infinite; }
.tv-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.tv-scan::after { content: ''; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(160,255,220,.05), transparent); animation: roll 7s linear infinite; }
@keyframes roll { from { top: -30%; } to { top: 100%; } }
.tv-noise { position: absolute; inset: -50%; pointer-events: none; opacity: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>"); }
.tv-screen.switching .tv-noise { opacity: .85; animation: noise .12s steps(3) infinite; }
.tv-screen.switching .tv-content { animation: crt-on .6s ease-out .45s both; }
@keyframes noise { 0% { transform: translate(0, 0); } 33% { transform: translate(-8%, 5%); } 66% { transform: translate(6%, -7%); } }
.tv-glass { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse at 30% 15%, rgba(255,255,255,.10), transparent 45%), radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0,0,0,.55) 100%); }
.tv-side { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 10px 6px; border-radius: 14px; background: linear-gradient(180deg, #2c2c2c, #151515); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.tv-brand { font-family: var(--f-brand); font-size: 10px; letter-spacing: .2em; color: #d9d9d9; text-align: center; }
.tv-brand small { display: block; font-size: 6.5px; color: var(--amber); margin-top: 4px; letter-spacing: .14em; }
.tv-knob { width: 46px; height: 46px; border-radius: 50%; background: repeating-conic-gradient(#8d8d8d 0 6deg, #c7c7c7 6deg 12deg); box-shadow: 0 4px 8px rgba(0,0,0,.6), inset 0 0 0 7px #2a2a2a, inset 0 0 0 9px #bdbdbd; position: relative; }
.tv-knob.big { width: 62px; height: 62px; transform: rotate(32deg); }
.tv-knob::after { content: ''; position: absolute; left: 50%; top: 8px; width: 3px; height: 12px; margin-left: -1.5px; background: var(--amber); border-radius: 2px; }
.tv-grille { flex: 1; width: 78%; min-height: 50px; border-radius: 8px; background: radial-gradient(circle, #050505 1.6px, transparent 2px) 0 0 / 7px 7px, #262626; }
.tv-led { width: 8px; height: 8px; border-radius: 50%; background: #3a1010; }
.tv-led.on { background: #ff3b30; box-shadow: 0 0 8px #ff3b30; }
.tv-feet { display: flex; justify-content: space-between; padding: 0 12%; }
.tv-feet i { width: 70px; height: 14px; background: linear-gradient(180deg, #3a2414, #1a0f08); border-radius: 0 0 6px 6px; }

/* ---------------------------------------------------------------- lateral */
.sidebar { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.panel {
  border-radius: 14px; padding: 16px;
  background:
    repeating-linear-gradient(91deg, rgba(0,0,0,.10) 0 3px, transparent 3px 9px, rgba(255,255,255,.035) 9px 10px, transparent 10px 17px),
    linear-gradient(180deg, #4a2b18, #2d190d);
  box-shadow: 0 16px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}
.panel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--f-brand); font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.now-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; }
.now-cover { width: 84px; height: 84px; border-radius: 6px; object-fit: cover; box-shadow: 0 6px 14px rgba(0,0,0,.5); background: #000; }
.now-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.now-text strong { font-size: 16px; line-height: 1.2; }
.now-text span { color: #ffd9a8; font-size: 14px; }
.now-text em { font-style: normal; color: var(--ink-dim); font-size: 12px; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.history li { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid rgba(255,255,255,.06); }
.history li:first-child { border-top: 0; }
.history .idx { font-family: var(--f-crt); font-size: 18px; color: var(--amber); }
.h-cover { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #000; }
.h-text { display: flex; flex-direction: column; min-width: 0; }
.h-text strong, .h-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-text strong { font-size: 13.5px; font-weight: 600; }
.h-text span { font-size: 12px; color: var(--ink-dim); }
.history time { font-family: var(--f-crt); font-size: 17px; color: var(--ink-dim); }
.site-link { text-align: center; color: var(--ink-dim); font-size: 13px; text-decoration: none; }
.site-link:hover { color: var(--amber); }
.eqbars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eqbars i { width: 3px; height: 4px; background: var(--amber); }
.eqbars.on i { animation: eq .9s ease-in-out infinite alternate; }
.eqbars.on i:nth-child(2) { animation-delay: -.3s; } .eqbars.on i:nth-child(3) { animation-delay: -.6s; } .eqbars.on i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* ---------------------------------------------------------------- perillas */
.knob-wrap { --ks: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; user-select: none; }
.knob-dial { position: relative; width: calc(var(--ks) + 22px); height: calc(var(--ks) + 22px); display: grid; place-items: center; }
.knob-tick { position: absolute; left: 50%; top: 0; width: 2px; height: 50%; margin-left: -1px; transform-origin: 50% 100%; }
.knob-tick::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 6px; background: var(--alu-ink); border-radius: 1px; }
.knob {
  width: var(--ks); height: var(--ks); border-radius: 50%; cursor: grab; touch-action: none; position: relative;
  background: repeating-conic-gradient(from 0deg, #2a2a2a 0 4deg, #6a6a6a 4deg 8deg);
  box-shadow: 0 6px 10px rgba(0,0,0,.45), 0 2px 2px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.4);
}
.knob:active { cursor: grabbing; }
.knob:focus-visible { outline: 2px solid var(--amber-hot); outline-offset: 4px; }
.knob-cap {
  position: absolute; inset: 9%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(255,255,255,.05) 18.5%, transparent 19%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.06) 0 1px, transparent 1px 3px),
    conic-gradient(from 210deg, #f2f2f2, #8a8a8a 25%, #e6e6e6 45%, #7a7a7a 70%, #f2f2f2);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), inset 0 2px 3px rgba(255,255,255,.6);
}
.knob-cap i { position: absolute; left: 50%; top: 6%; width: 3px; height: 26%; margin-left: -1.5px; border-radius: 2px; background: #111; }
.knob-wrap label { font-family: var(--f-brand); font-size: 8.5px; letter-spacing: .2em; color: var(--alu-ink); }
.knob-wrap output { font-family: var(--f-crt); font-size: 15px; color: var(--alu-ink-2); min-height: 15px; line-height: 1; }

/* ---------------------------------------------------------------- amplificador */
.amp { position: relative; border-radius: 8px; padding: 0 14px; background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 3px, transparent 3px 9px), linear-gradient(90deg, var(--wood-2), var(--wood-1) 50%, var(--wood-2)); }
.amp-face { border-radius: 4px; padding: 18px 22px 14px; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.25), 0 2px 0 rgba(0,0,0,.35); }
.amp-top { display: grid; grid-template-columns: 170px minmax(0, 1fr) 96px; gap: 20px; align-items: center; }
.amp-brand .model { margin-top: 8px; line-height: 1.6; }
.amp-specs { margin-top: 10px; font-family: var(--f-brand); font-size: 7.5px; letter-spacing: .14em; color: #8b1e17; }
.meter-window {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px;
  background: var(--black-panel); border-radius: 6px;
  box-shadow: inset 0 3px 8px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(0,0,0,.3);
}
.meter-glass { position: absolute; inset: 0; pointer-events: none; border-radius: 6px; background: linear-gradient(170deg, rgba(255,255,255,.14), transparent 35%); }
.vu { position: relative; border-radius: 3px; overflow: hidden; }
.vu svg { display: block; width: 100%; height: auto; }
.vu-face { transition: filter .5s; }
.amp:not(.powered) .vu svg { filter: brightness(.32) saturate(.4) sepia(.3); }
.amp.powered .vu svg { filter: drop-shadow(0 0 0 transparent); }
.vu-arc { fill: none; stroke: #241a12; stroke-width: 1.6; }
.vu-arc.red { stroke: #c1271c; }
.vu-arc.red.thick { stroke-width: 5; }
.vu-tick { stroke: #241a12; stroke-width: 2; }
.vu-tick.minor { stroke-width: 1; }
.vu-tick.red { stroke: #c1271c; }
.vu-num { font-family: var(--f-brand); font-size: 11px; fill: #241a12; text-anchor: middle; dominant-baseline: middle; }
.vu-num.red { fill: #c1271c; }
.vu-label { font-family: var(--f-brand); font-size: 18px; fill: #241a12; text-anchor: middle; letter-spacing: .1em; }
.vu-small { font-family: var(--f-brand); font-size: 8px; fill: #5a4632; letter-spacing: .2em; }
.vu-small.end { text-anchor: end; }
.vu-needle { stroke: #1a1a1a; stroke-width: 2; stroke-linecap: round; }
.vu-cover { fill: #141414; }
.vu-pivot { fill: #1b1b1b; stroke: #333; }
.vu-peak { position: absolute; right: 10px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: #4a1410; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.vu-peak.on { background: #ff3b30; box-shadow: 0 0 10px 2px #ff3b30; }
.amp-inputs { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-brand); font-size: 8px; letter-spacing: .18em; color: var(--alu-ink-2); }
.inp { display: flex; align-items: center; gap: 8px; }
.inp i { width: 7px; height: 7px; border-radius: 50%; background: #3a2a1a; box-shadow: inset 0 1px 1px rgba(0,0,0,.5); }
.inp.on { color: var(--alu-ink); }
.inp.on i { background: var(--amber); box-shadow: 0 0 8px var(--amber-hot); }
.amp-bottom { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.18); box-shadow: 0 -1px 0 rgba(255,255,255,.6); }
.amp-power { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.amp-power label { font-family: var(--f-brand); font-size: 8px; letter-spacing: .2em; color: var(--alu-ink); }
.power-btn { width: 46px; height: 32px; border: 0; border-radius: 4px; cursor: pointer; padding: 4px;
  background: linear-gradient(180deg, #2a2a2a, #0d0d0d); box-shadow: 0 3px 0 #000, 0 5px 8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.15); transition: transform .08s; }
.power-btn span { display: block; height: 100%; border-radius: 2px; background: linear-gradient(180deg, #f2f2f2, #9d9d9d); }
.power-btn.on { transform: translateY(2px); box-shadow: 0 1px 0 #000, 0 2px 4px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.15); }
.power-btn:focus-visible, .deck-key:focus-visible, .counter-reset:focus-visible { outline: 2px solid var(--amber-hot); outline-offset: 3px; }
.power-led { width: 8px; height: 8px; border-radius: 50%; background: #3a1010; }
.power-led.on { background: #ff3b30; box-shadow: 0 0 8px #ff3b30; }
.amp-tone { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.amp-switches { display: flex; flex-direction: column; gap: 7px; font-family: var(--f-brand); font-size: 7.5px; letter-spacing: .16em; color: var(--alu-ink-2); }
.toggle { display: flex; align-items: center; gap: 8px; }
.toggle i { width: 22px; height: 10px; border-radius: 2px; background: linear-gradient(180deg, #222, #555); position: relative; }
.toggle i::after { content: ''; position: absolute; top: 1px; left: 2px; width: 8px; height: 8px; border-radius: 1px; background: linear-gradient(180deg, #eee, #999); }
.toggle i.on::after { left: 12px; }
.amp-volume { padding-left: 6px; }

/* ---------------------------------------------------------------- tape deck */
.deck { border-radius: 6px; padding: 14px 22px 18px; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.25), 0 2px 0 rgba(0,0,0,.35); }
.deck-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.deck-brand { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.deck-badges { display: flex; gap: 6px; }
.deck-badges span { font-family: var(--f-brand); font-size: 7px; letter-spacing: .14em; padding: 3px 6px; border: 1px solid var(--alu-ink-2); color: var(--alu-ink-2); border-radius: 2px; }
.deck-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.deck-well { display: flex; flex-direction: column; gap: 6px; }
.deck-door { position: relative; border-radius: 8px; padding: 12px 14px 4px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #2a2522, #0e0c0b 75%);
  box-shadow: inset 0 0 0 3px #1a1a1a, inset 0 0 0 5px #8a8a8a, inset 0 6px 20px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.7); }
.door-glass { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.16) 0 18%, transparent 18.5% 60%, rgba(255,255,255,.06) 60.5% 66%, transparent 66.5%),
              linear-gradient(180deg, rgba(40,25,15,.25), rgba(0,0,0,.25)); }
.deck.powered .deck-door { background: radial-gradient(ellipse at 50% 30%, #4a3a2c, #120e0b 75%); }
.deck-eject-label { font-family: var(--f-brand); font-size: 7.5px; letter-spacing: .2em; color: var(--alu-ink-2); text-align: center; }

.cassette { display: block; width: 100%; height: auto; }
.cassette .shell { stroke: #0a0a0a; stroke-width: 2; }
.cassette .screw { fill: #9a9a9a; stroke: #444; }
.cassette .screw-slot { stroke: #444; stroke-width: 1.4; }
.cassette .c-label { fill: #efe5cc; }
.cassette .c-band.b1 { fill: var(--salsa-gold); }
.cassette .c-band.b2 { fill: var(--salsa-orange); }
.cassette .c-band.b3 { fill: var(--salsa-red); }
.cassette .c-side { font-family: var(--f-brand); font-size: 20px; fill: #2a2018; }
.cassette .c-hand { font-family: var(--f-hand); font-size: 21px; fill: #1f3a8a; }
.cassette .c-hand.small { font-size: 17px; fill: #8b1e17; }
.cassette .end { text-anchor: end; }
.cassette .c-rule { stroke: #b7a888; stroke-width: 1; }
.cassette .c-brand { font-family: var(--f-brand); font-size: 12px; fill: #fff; letter-spacing: .2em; }
.cassette .c-type { font-family: var(--f-brand); font-size: 7px; fill: #fff; letter-spacing: .14em; }
.cassette .c-window-frame { fill: #1b1b1f; }
.cassette .c-window { fill: #8d8478; }
.cassette .pack { fill: #3a1f10; stroke: #6b4127; stroke-width: 1.2; }
.cassette .c-window-tint { fill: rgba(40, 30, 20, .18); }
.cassette .c-window-shine { fill: none;stroke: rgba(255,255,255,.18); stroke-width: 1; }
.cassette .hub { fill: #f2efe6; stroke: #bdb6a6; }
.cassette .hub-hole { fill: #1a1a1a; }
.cassette .hub-tooth { fill: #f2efe6; }
.cassette .hub-mark { fill: #c1271c; }
.cassette .c-bottom { fill: #26262b; stroke: #0a0a0a; stroke-width: 1.5; }
.cassette .c-hole { fill: #0a0a0a; }
.cassette .tape-line { stroke: #5a3420; stroke-width: 2.5; }
.cassette .heads { transform: translateY(26px); transition: transform .38s cubic-bezier(.3, .7, .2, 1.15); }
.cassette .heads.engaged { transform: translateY(0); }
.cassette .head-plate { fill: #3a3a3e; stroke: #111; }
.cassette .erase-head { fill: #b8b8be; stroke: #555; }
.cassette .play-head { stroke: #444; stroke-width: 1; }
.cassette .head-gap { stroke: #222; stroke-width: 1; }
.cassette .pinch-roller { fill: #111; stroke: #333; stroke-width: 2; }
.cassette .pinch-axle { fill: #bbb; }

.deck-panel { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; min-width: 0; }
.deck-meter-box { background: #050607; border-radius: 6px; padding: 10px 12px 6px; box-shadow: inset 0 3px 8px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.7); }
.dm-title { display: flex; justify-content: space-between; font-family: var(--f-brand); font-size: 7.5px; letter-spacing: .2em; color: #7a8a86; margin-bottom: 6px; }
.dm-status { color: #4be8b4; }
.dm-status.idle, .dm-status.stopped { color: #7a8a86; }
.dm-status.buffering { color: var(--amber); animation: blink .6s steps(2) infinite; }
.dm-status.error { color: #ff4a3d; }
.ledmeter { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 6px; }
.lm-ch { display: grid; grid-template-rows: 1fr 1fr; font-family: var(--f-brand); font-size: 9px; color: #7a8a86; align-items: center; height: 54px; }
.lm-main canvas { display: block; width: 100%; height: 54px; }
.lm-scale { position: relative; height: 16px; font-family: var(--f-crt); font-size: 13px; color: #7a8a86; }
.lm-scale span { position: absolute; transform: translateX(-50%); top: 1px; }
.lm-scale span:last-child { transform: translateX(-100%); }
.lm-scale span:first-child { transform: none; }
.deck-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.counter { display: flex; align-items: center; gap: 3px; padding: 6px; border-radius: 4px; background: #111; box-shadow: inset 0 2px 5px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.7); }
.counter > span { width: 22px; height: 30px; display: grid; place-items: center; font-family: var(--f-crt); font-size: 28px; color: #f4f4f4; background: linear-gradient(180deg, #000, #2a2a2a 50%, #000); border-radius: 2px; }
.counter-reset { margin-left: 6px; border: 0; padding: 6px 7px; border-radius: 3px; cursor: pointer; font-family: var(--f-brand); font-size: 7px; letter-spacing: .14em; color: #111; background: linear-gradient(180deg, #eee, #aaa); box-shadow: 0 2px 0 #555; }
.counter-reset:active { transform: translateY(2px); box-shadow: none; }
.deck-leds { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 14px; font-family: var(--f-brand); font-size: 7.5px; letter-spacing: .16em; color: var(--alu-ink-2); }
.deck-leds div { display: flex; align-items: center; gap: 6px; }
.deck-leds i { width: 7px; height: 7px; border-radius: 50%; background: #3a2a1a; }
.deck-leds i.on.g { background: #3dff7a; box-shadow: 0 0 8px #3dff7a; }
.deck-leds i.on.a { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.deck-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 4px; background: #121212; box-shadow: inset 0 2px 6px rgba(0,0,0,.8); }
.deck-key {
  position: relative; border: 0; cursor: pointer; height: 58px; padding: 6px 2px 8px; border-radius: 2px 2px 4px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #f1f1ef, #bdbdb9 70%, #8e8e8a);
  box-shadow: 0 6px 0 #5d5d5a, 0 7px 6px rgba(0,0,0,.6), inset 0 1px 0 #fff;
  transform: translateY(-4px); transition: transform .07s, box-shadow .07s;
  color: var(--alu-ink);
}
.deck-key:active, .deck-key.down { transform: translateY(1px); box-shadow: 0 1px 0 #5d5d5a, 0 2px 3px rgba(0,0,0,.6), inset 0 1px 0 #fff; }
.deck-key.down { background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px), linear-gradient(180deg, #d9d9d6, #a9a9a5 70%, #7e7e7a); }
.deck-key:disabled { cursor: not-allowed; }
.k-icon { font-size: 15px; line-height: 1; letter-spacing: -2px; }
.deck-key.rec .k-icon { color: #c1271c; }
.k-txt { font-family: var(--f-brand); font-size: 7px; letter-spacing: .12em; }

/* ---------------------------------------------------------------- espectro */
.spectrum { border-radius: 6px; padding: 12px 22px 10px; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.25), 0 2px 0 rgba(0,0,0,.35); }
.sp-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.sp-screen { position: relative; border-radius: 6px; padding: 10px 26px 22px; background: #040606;
  box-shadow: inset 0 4px 12px rgba(0,0,0,.95), 0 1px 0 rgba(255,255,255,.7); }
.sp-screen canvas { display: block; width: 100%; height: 190px; }
.sp-ch { position: absolute; top: 10px; font-family: var(--f-brand); font-size: 10px; color: rgba(64,232,214,.6); }
.sp-ch.l { left: 9px; } .sp-ch.r { right: 9px; }
.sp-scale { position: absolute; left: 26px; right: 26px; bottom: 4px; height: 16px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3%; font-family: var(--f-crt); font-size: 13px; color: rgba(64,232,214,.65); }
.sp-half { position: relative; }
.sp-half span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.sp-glass { position: absolute; inset: 0; pointer-events: none; border-radius: 6px; background: linear-gradient(170deg, rgba(255,255,255,.08), transparent 30%); }
.sp-foot { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 10px; margin-top: 6px; font-family: var(--f-brand); font-size: 7.5px; letter-spacing: .2em; color: var(--alu-ink-2); }
.sp-foot span:nth-child(2), .sp-foot span:nth-child(3) { text-align: center; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .rack { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1.4fr; align-items: start; }
  .site-link { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .amp-top { grid-template-columns: minmax(0, 1fr) 80px; }
  .amp-brand { grid-column: 1 / -1; }
  .amp-bottom { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .amp-switches { display: none; }
  .deck-body { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .topbar, .rack, .foot { padding-left: 16px; padding-right: 16px; }
  .brand em { display: none; }
  .tv-cabinet { grid-template-columns: minmax(0, 1fr); padding: 12px; border-radius: 18px; }
  .tv-side { display: none; }
  .tv-screen-wrap { padding: 8px; border-radius: 20px; }
  .tv-screen { aspect-ratio: auto; min-height: 0; border-radius: 22px / 26px; }
  .tv-content { position: relative; grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 12px; }
  .tv-cover-frame { width: 58%; height: auto; margin: 0 auto; }
  .tv-loading { position: relative; min-height: 220px; }
  .hifi { padding: 6px; }
  .amp { padding: 0 6px; }
  .amp-face, .deck, .spectrum { padding-left: 12px; padding-right: 12px; }
  .amp-top { grid-template-columns: minmax(0, 1fr); }
  .amp-inputs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .meter-window { gap: 6px; padding: 6px; }
  .amp-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-items: center; }
  .amp-tone { grid-column: 1 / -1; order: 3; }
  .deck-key { height: 50px; }
  .k-txt { font-size: 6px; letter-spacing: .04em; }
  .sp-screen { padding: 8px 18px 22px; }
  .sp-screen canvas { height: 150px; }
  .sp-scale { left: 18px; right: 18px; font-size: 11px; }
  .sp-half span:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-scan::after, .live-pill.on, .eqbars.on i { animation: none; }
}
