:root {
  color-scheme: dark;
  --room: #030201;
  --cabinet: #130c06;
  --cabinet-2: #050403;
  --glass: #030506;
  --glass-lit: #0a1216;
  --amber: #f3a321;
  --amber-hot: #ffbd42;
  --amber-dim: rgba(243, 163, 33, 0.28);
  --blue: #31a8ff;
  --blue-hot: #78d6ff;
  --red: #ff351f;
  --cream: #f6ead3;
  --muted: #9d8060;
  --line: rgba(230, 153, 43, 0.34);
  --shadow: rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--room);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 160, 43, 0.13), transparent 30rem),
    radial-gradient(circle at 28% 18%, rgba(50, 116, 160, 0.09), transparent 26rem),
    radial-gradient(circle at 50% 76%, rgba(123, 72, 22, 0.12), transparent 34rem),
    linear-gradient(180deg, #080604 0%, #020201 48%, #000 100%);
  color: var(--cream);
  font: 16px/1.45 "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0.7;
}

button,
a {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.receiver-app {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 34px;
}

.receiver-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding: 8px 28px;
  border: 1px solid rgba(233, 154, 43, 0.24);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 174, 55, 0.055), transparent 65%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(20, 13, 7, 0.28), rgba(0, 0, 0, 0.58));
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 195, 92, 0.08);
}

.eyebrow {
  margin: 0;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 2px 0 0;
  color: var(--amber-hot);
  font-family: "Cooper Black", "Bookman Old Style", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.25vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    0 0 9px rgba(255, 162, 36, 0.8),
    0 0 28px rgba(255, 124, 15, 0.38),
    0 2px 0 #000;
}

h2,
strong {
  text-wrap: balance;
}

.receiver-tagline {
  margin: 5px 0 0;
  color: rgba(246, 234, 211, 0.74);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

button,
.full-link {
  border: 1px solid rgba(230, 153, 43, 0.34);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 177, 56, 0.06), rgba(0, 0, 0, 0.58)),
    #050403;
  color: var(--cream);
  padding: 10px 14px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:hover,
button:focus-visible,
.full-link:hover,
.full-link:focus-visible {
  border-color: var(--amber-hot);
  color: var(--amber-hot);
  outline: none;
  box-shadow: 0 0 16px rgba(255, 169, 44, 0.22);
}

button:active {
  transform: translateY(1px);
}

.primary,
.mode-switch button.is-active {
  border-color: #e69e2d;
  background: linear-gradient(180deg, #d89424, #9c5d08);
  color: #120b03;
  box-shadow: 0 0 20px rgba(255, 160, 39, 0.24);
}

.receiver-face {
  position: relative;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) 178px;
  grid-template-areas: "meters glass knobs";
  align-items: stretch;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(230, 153, 43, 0.42);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 175, 56, 0.09), transparent 34rem),
    linear-gradient(110deg, rgba(255, 172, 55, 0.12), rgba(255, 255, 255, 0.02) 18%, transparent 56%, rgba(255, 175, 55, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 185, 78, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #21140a 0%, #100904 45%, #060403 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 191, 92, 0.24),
    inset 0 -18px 34px rgba(0, 0, 0, 0.88),
    inset 11px 0 22px rgba(255, 186, 70, 0.035),
    inset -11px 0 22px rgba(0, 0, 0, 0.55),
    0 28px 90px rgba(0, 0, 0, 0.85);
}

.receiver-face::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(0, 0, 0, 0.86);
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 172, 55, 0.08),
    inset 0 0 46px rgba(0, 0, 0, 0.7);
}

.receiver-face .meter-bank::before,
.receiver-face .knob-row::before,
.receiver-face .glass-panel::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(0, 0, 0, 0.66);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 170, 55, 0.055);
}

.receiver-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255, 170, 46, 0.07), transparent 44%);
  animation: receiverBreath 9s ease-in-out infinite;
}

.glass-panel {
  grid-area: glass;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 9px;
  min-height: 218px;
  padding: 16px 34px 17px;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 164, 39, 0.3);
  background:
    radial-gradient(ellipse at 50% 54%, rgba(255, 168, 41, 0.2), transparent 31rem),
    linear-gradient(90deg, rgba(255, 60, 35, 0.05), transparent 16%, transparent 84%, rgba(255, 60, 35, 0.04)),
    linear-gradient(180deg, #070909, #010202 74%),
    #030303;
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, 0.95),
    inset 0 0 10px rgba(255, 154, 30, 0.08),
    0 0 28px rgba(0, 0, 0, 0.76);
}

.receiver-nameplate {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-bottom: 3px;
  text-align: center;
}

.receiver-nameplate .eyebrow {
  color: rgba(255, 189, 66, 0.82);
  font-size: 0.48rem;
  letter-spacing: 0.28em;
}

.receiver-nameplate h1 {
  color: #ffbd42;
  font-size: clamp(1.55rem, 2.35vw, 2.7rem);
  letter-spacing: 0.2em;
  text-shadow:
    0 0 8px rgba(255, 178, 55, 0.9),
    0 0 25px rgba(255, 126, 16, 0.42),
    0 2px 0 #000;
}

.receiver-nameplate .receiver-tagline {
  margin: 0;
  color: rgba(246, 234, 211, 0.68);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.055), transparent 23%, transparent 72%, rgba(255, 255, 255, 0.025)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 8px);
  pointer-events: none;
}

.dial-brand {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  padding-inline: 4px;
}

.dial-brand span {
  color: #ff3c23;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  text-shadow: 0 0 14px rgba(255, 63, 36, 0.46);
}

.dial-brand strong {
  position: relative;
  color: #ff3c23;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 63, 36, 0.55);
}

.dial-brand strong::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 999px;
  vertical-align: middle;
  background: #ff321f;
  box-shadow: 0 0 14px rgba(255, 49, 31, 0.9), inset 0 0 4px #ffd2c6;
}

.tuner-scale {
  position: relative;
  z-index: 1;
  padding: 8px 52px 8px 0;
  min-width: 0;
}

.scale-line {
  height: 76px;
  border-bottom: 1px solid rgba(255, 165, 36, 0.92);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(255, 182, 57, 0.9) calc(10% - 2px) 10%),
    repeating-linear-gradient(90deg, transparent 0 calc(2% - 1px), rgba(255, 174, 42, 0.48) calc(2% - 1px) 2%),
    repeating-linear-gradient(90deg, transparent 0 calc(1% - 1px), rgba(255, 174, 42, 0.2) calc(1% - 1px) 1%),
    linear-gradient(180deg, transparent, rgba(255, 165, 36, 0.1));
  box-shadow:
    0 0 24px rgba(255, 155, 26, 0.28),
    inset 0 -16px 32px rgba(255, 155, 26, 0.035);
}

.scale-numbers {
  display: flex;
  justify-content: space-between;
  color: var(--amber);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  margin-top: -60px;
  padding: 0 4px;
  text-shadow: 0 0 12px rgba(255, 162, 36, 0.32);
}

.mhz {
  position: absolute;
  right: 0;
  top: 21px;
  color: #ff3c23;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.tuning-needle {
  position: absolute;
  left: 50%;
  top: 3px;
  width: 2px;
  height: 112px;
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 55, 30, 0.92), 0 0 3px #fff;
  transition: left 850ms cubic-bezier(.2,.8,.2,1);
}

.receiver-label-strip {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 12px 6px;
  border-top: 1px solid rgba(255, 166, 39, 0.32);
  border-bottom: 1px solid rgba(255, 166, 39, 0.2);
  color: rgba(246, 190, 93, 0.72);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  background: linear-gradient(90deg, transparent, rgba(255, 166, 39, 0.06), transparent);
  white-space: nowrap;
}

.receiver-label-strip em {
  color: var(--amber);
  font-style: normal;
  text-shadow: 0 0 11px rgba(255, 165, 36, 0.28);
}

.meter-bank {
  grid-area: meters;
  display: grid;
  align-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.vu-meter {
  display: grid;
  gap: 7px;
  padding: 11px 11px 13px;
  border: 1px solid rgba(41, 156, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.28)),
    #020303;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(0, 0, 0, 0.66);
}

.vu-meter span {
  color: var(--blue-hot);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(49, 168, 255, 0.58);
}

.meter-window {
  position: relative;
  height: 72px;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(76, 183, 255, 0.32), transparent 40%),
    linear-gradient(180deg, rgba(103, 201, 255, 0.18), rgba(4, 17, 31, 0.92) 58%, #02060a),
    #02060a;
  box-shadow:
    inset 0 0 22px rgba(49, 168, 255, 0.28),
    inset 0 0 0 1px rgba(111, 204, 255, 0.12);
}

.meter-window::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 9px;
  height: 40px;
  border-top: 1px solid rgba(135, 221, 255, 0.6);
  border-radius: 50% 50% 0 0;
  opacity: 0.82;
}

.meter-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 22%, transparent 65%, rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(255, 255, 255, 0.035) 11px 12px);
  pointer-events: none;
}

.meter-window i {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 2px;
  height: 51px;
  display: block;
  transform-origin: 50% 100%;
  transform: rotate(-38deg);
  background: linear-gradient(180deg, #ffefbd, #ff6145 55%, #2a0b06);
  box-shadow: 0 0 10px rgba(255, 90, 55, 0.48);
  transition: transform 180ms cubic-bezier(.22,.84,.22,1);
}

.meter-scale {
  position: absolute;
  inset: 8px 12px auto;
  display: flex;
  justify-content: space-between;
  color: rgba(127, 221, 255, 0.78);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 9px rgba(49, 168, 255, 0.65);
}

.meter-scale b:last-child {
  color: #ffad53;
}

.receiver-status {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.62rem;
  padding: 7px 8px;
  border: 1px solid rgba(255, 164, 39, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.lamp {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: #451308;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.lamp.is-on {
  background: #ff311e;
  box-shadow: 0 0 16px rgba(255, 48, 30, 0.85), inset 0 0 4px #ffd0c4;
  animation: lampBreath 3.6s ease-in-out infinite;
}

.knob-row {
  grid-area: knobs;
  display: grid;
  align-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  padding-block: 3px;
}

.knob {
  display: grid;
  justify-items: center;
  gap: 10px;
  position: relative;
  padding-top: 6px;
}

.knob::before {
  content: "";
  width: 116px;
  height: 116px;
  position: absolute;
  top: -8px;
  border-radius: 999px;
  background:
    radial-gradient(circle, transparent 58%, rgba(255, 178, 61, 0.15) 59% 61%, transparent 62%),
    repeating-conic-gradient(from -45deg, rgba(255, 185, 76, 0.55) 0 2deg, transparent 2deg 14deg);
  opacity: 0.62;
  filter: drop-shadow(0 0 12px rgba(255, 150, 32, 0.12));
}

.knob span {
  position: relative;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    conic-gradient(from 30deg, #1b0e04, #a97022, #f6c56d, #70410e, #110803, #b87924, #1b0e04),
    radial-gradient(circle, #d5983f, #2a1608 70%);
  border: 1px solid rgba(255, 206, 115, 0.34);
  box-shadow:
    inset 10px 10px 18px rgba(255, 230, 163, 0.13),
    inset -18px -20px 28px rgba(0, 0, 0, 0.76),
    0 12px 28px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(255, 160, 40, 0.16);
}

.knob span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 2px;
  height: 31px;
  background: rgba(255, 236, 196, 0.7);
  box-shadow: 0 0 6px rgba(255, 220, 150, 0.6);
}

.knob small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mode-switch,
.playlist-filters,
.radio-controls,
.jukebox-controls,
.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.mode-switch {
  margin: 0;
  padding: 11px 24px;
  border: 1px solid rgba(230, 153, 43, 0.28);
  border-top: 0;
  background: linear-gradient(180deg, #0a0603, #030201);
}

.mode-switch button {
  min-width: 112px;
  padding-block: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 187, 70, 0.08), inset 0 -7px 16px rgba(0, 0, 0, 0.58);
}

.now-playing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 350px);
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}

.now-card,
.radio-memory article,
.jukebox-browser {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 165, 40, 0.06), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(0, 0, 0, 0.24)),
    #050302;
  box-shadow:
    inset 0 0 30px rgba(255, 160, 38, 0.035),
    0 24px 70px rgba(0, 0, 0, 0.66);
}

.now-card {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 30px);
  padding: clamp(16px, 2.2vw, 24px);
  align-items: center;
  min-height: 390px;
}

.cover-frame {
  width: min(100%, 380px);
  aspect-ratio: 1;
  padding: 9px;
  background: linear-gradient(145deg, #c47f24, #120904 30%, #050302 72%, #5e3510);
  box-shadow:
    inset 0 0 0 1px rgba(255, 199, 105, 0.2),
    0 22px 48px rgba(0, 0, 0, 0.62);
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 520ms ease;
}

.cover-frame img.is-loaded {
  opacity: 1;
}

.now-copy {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
}

.now-copy h2 {
  margin: 0;
  color: #fff5dd;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.18rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(255, 160, 43, 0.18), 0 2px 0 #000;
}

.meta,
.credits,
.radio-memory em {
  color: var(--muted);
}

.meta,
.credits {
  max-width: 58ch;
  margin: 0;
}

.broadcast-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.broadcast-row b {
  color: var(--cream);
  font-weight: 700;
}

.on-air-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 49, 30, 0.58);
  color: #ff5a43;
  padding: 4px 8px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.on-air-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff351f;
  box-shadow: 0 0 10px rgba(255, 49, 30, 0.85);
}

.progress-shell {
  width: min(100%, 620px);
  height: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 160, 42, 0.12);
}

.stereo-display {
  width: min(100%, 520px);
  height: 44px;
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 160, 42, 0.18);
  background:
    linear-gradient(180deg, rgba(49, 168, 255, 0.07), rgba(0, 0, 0, 0.34)),
    #030506;
  box-shadow: inset 0 0 22px rgba(49, 168, 255, 0.08);
}

.stereo-display span {
  flex: 1;
  min-width: 3px;
  height: 38%;
  background: linear-gradient(180deg, #ffcc5c, #159cff);
  box-shadow: 0 0 9px rgba(49, 168, 255, 0.22);
  opacity: 0.78;
}

.stereo-display span:nth-child(3n) { height: 64%; }
.stereo-display span:nth-child(4n) { height: 48%; }
.stereo-display span:nth-child(5n) { height: 78%; }
.stereo-display span:nth-child(8n) { height: 90%; background: linear-gradient(180deg, #ff5a37, #ffbd42); }

.progress-shell span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), #ffe0a1);
  box-shadow: 0 0 14px rgba(255, 171, 44, 0.62);
}

audio {
  display: none;
}

.full-link {
  justify-self: start;
}

.radio-memory {
  display: grid;
  grid-template-rows: 1fr 1fr auto;
  gap: 12px;
}

.radio-memory article {
  min-height: 0;
  padding: 16px;
  display: grid;
  align-content: start;
}

.memory-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.memory-row img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  background: #090909;
  border: 1px solid rgba(255, 160, 40, 0.2);
}

.memory-row img[hidden] {
  display: none;
}

.memory-row:has(img[hidden]) {
  grid-template-columns: 1fr;
}

.memory-row strong {
  display: block;
  font-size: 1rem;
  line-height: 1.05;
  color: var(--cream);
}

.memory-row em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.78rem;
}

.receiver-clock {
  justify-self: end;
  color: var(--blue-hot);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(49, 168, 255, 0.54);
}

.jukebox-browser {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.browser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.browser-head h2 {
  margin: 4px 0 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
}

.queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.track-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 96px;
  text-align: left;
  background: rgba(0, 0, 0, 0.5);
}

.track-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.track-card strong,
.track-card span {
  display: block;
}

.track-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.is-room-mode,
:fullscreen {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 153, 35, 0.11), transparent 34rem),
    #010101;
}

.is-room-mode .receiver-app,
:fullscreen.receiver-app {
  width: min(1580px, calc(100% - 26px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 16px 0;
}

.is-room-mode .receiver-top,
:fullscreen .receiver-top {
  opacity: 0.9;
}

.is-room-mode .now-card,
:fullscreen .now-card {
  min-height: 390px;
}

.is-room-mode .mode-switch,
:fullscreen .mode-switch {
  opacity: 0.72;
}

.is-room-mode .jukebox-browser,
:fullscreen .jukebox-browser {
  display: none !important;
}

@keyframes lampBreath {
  0%, 100% { filter: brightness(0.88); }
  50% { filter: brightness(1.18); }
}

@keyframes receiverBreath {
  0%, 100% { opacity: 0.46; }
  50% { opacity: 0.66; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .receiver-app {
    width: min(100% - 18px, 560px);
    padding-top: 14px;
  }

  .receiver-top,
  .browser-head {
    display: grid;
  }

  .receiver-top {
    padding: 10px 8px;
    overflow: hidden;
    justify-content: center;
  }

  .receiver-face {
    grid-template-columns: 1fr;
    grid-template-areas:
      "glass"
      "meters"
      "knobs";
    padding: 14px;
    overflow: hidden;
  }

  .glass-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 230px;
    padding: 18px;
  }

  .tuner-scale {
    width: 100%;
  }

  .dial-brand em {
    white-space: normal;
  }

  .meter-bank {
    grid-template-columns: 1fr 1fr;
  }

  .meter-bank .receiver-status {
    grid-column: 1 / -1;
  }

  .knob-row {
    grid-template-columns: 1fr 1fr;
  }

  .mode-switch,
  .radio-controls,
  .jukebox-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-switch button {
    min-width: 0;
  }

  .now-playing-section,
  .now-card {
    grid-template-columns: 1fr;
  }

  .now-card {
    gap: 20px;
  }

  .cover-frame {
    width: min(100%, 330px);
    margin: 0 auto;
  }

  .now-copy h2 {
    font-size: clamp(2.4rem, 15vw, 4.65rem);
  }
}

@media (max-width: 640px) {
  .receiver-app {
    width: calc(100% - 12px);
  }

  h1 {
    font-size: 1.5rem;
    letter-spacing: 0.13em;
  }

  .top-actions {
    width: 100%;
    justify-content: center;
  }

  .top-actions button {
    width: min(100%, 260px);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    padding-inline: 8px;
  }

  .receiver-tagline {
    font-size: 0.74rem;
  }

  .receiver-nameplate h1 {
    font-size: clamp(1.05rem, 7vw, 1.42rem);
    letter-spacing: 0.08em;
    max-width: 100%;
  }

  .receiver-nameplate .eyebrow {
    font-size: 0.42rem;
    letter-spacing: 0.16em;
  }

  .receiver-nameplate .receiver-tagline {
    font-size: 0.52rem;
    line-height: 1.25;
  }

  .dial-brand span {
    font-size: 1.3rem;
  }

  .glass-panel {
    padding: 12px 10px;
    min-width: 0;
  }

  .tuner-scale {
    padding-right: 0;
  }

  .scale-numbers {
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .scale-numbers span:nth-child(even) {
    display: none;
  }

  .scale-line {
    height: 48px;
  }

  .mhz {
    display: none;
  }

  .receiver-label-strip {
    gap: 7px;
    padding-inline: 6px;
    font-size: 0.42rem;
    letter-spacing: 0.08em;
  }

  .receiver-label-strip em {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mode-switch,
  .radio-controls,
  .jukebox-controls {
    grid-template-columns: 1fr;
  }

  .meter-bank {
    grid-template-columns: 1fr;
  }

  .knob-row {
    grid-template-columns: 1fr;
  }

  .memory-row {
    grid-template-columns: 62px 1fr;
  }

  .memory-row img {
    width: 62px;
    height: 62px;
  }
}
