:root {
  --ink: #2f271f;
  --ink-soft: #574b3e;
  --paper: #eee4ce;
  --paper-deep: #d8cab0;
  --cream: #f7f1df;
  --radio-main: #c9a87a;
  --radio-light: #ead7ad;
  --radio-dark: #8f6f45;
  --radio-edge: #5a4530;
  --lcd-bg: #18251c;
  --lcd-text: #d4d693;
  --lcd-dim: #8e976e;
  --accent: #c5614a;
  --accent-2: #6f8b66;
  --shadow: rgba(61, 48, 34, .26);
  --radius: 34px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: ui-rounded, "Trebuchet MS", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle, rgba(255,255,255,.85) 1.5px, transparent 2.3px) 0 0 / 26px 26px repeat,
    radial-gradient(circle, rgba(255,255,255,.45) 1.5px, transparent 2.3px) 13px 13px / 26px 26px repeat,
    linear-gradient(145deg, #f3ead6 0%, #e7dcc3 42%, #efe5d0 100%) no-repeat;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 320px; height: 320px;
  left: -130px; top: 18vh;
  border-radius: 50%;
  background: rgba(197,97,74,.12);
  filter: blur(20px);
}
body::after {
  width: 380px; height: 380px;
  right: -170px; top: 8vh;
  border-radius: 50%;
  background: rgba(111,139,102,.12);
  filter: blur(30px);
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
}

.site-header {
  position: fixed;
  left: clamp(20px, 4vw, 58px);
  top: 0;
  z-index: 20;
  transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }

.plaque {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
  padding: 10px 22px 12px;
  border-radius: 14px 14px 16px 16px / 10px 10px 16px 16px;
  border: 3px solid #5a4530;
  background:
    linear-gradient(rgba(255,255,255,.3), rgba(255,255,255,0) 32%),
    repeating-linear-gradient(90deg, rgba(122,90,55,.09) 0 3px, transparent 3px 9px),
    linear-gradient(145deg, #eed9ab 0%, #cfab79 55%, #b8905e 100%);
  box-shadow:
    0 6px 0 #76583a,
    0 12px 18px rgba(61,48,34,.22),
    inset 0 3px 0 rgba(255,255,255,.4);
  transform-origin: 50% -42px;
  animation: plaqueSway 5.5s ease-in-out infinite;
}
@keyframes plaqueSway {
  0%, 100% { transform: rotate(-.55deg); }
  50% { transform: rotate(.65deg); }
}
/* 四角钉子 */
.plaque::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 9px 8px, #6b4e31 0 2.4px, rgba(255,255,255,.4) 2.8px 3.4px, transparent 4px),
    radial-gradient(circle at calc(100% - 9px) 8px, #6b4e31 0 2.4px, rgba(255,255,255,.4) 2.8px 3.4px, transparent 4px),
    radial-gradient(circle at 9px calc(100% - 8px), #6b4e31 0 2.4px, rgba(255,255,255,.4) 2.8px 3.4px, transparent 4px),
    radial-gradient(circle at calc(100% - 9px) calc(100% - 8px), #6b4e31 0 2.4px, rgba(255,255,255,.4) 2.8px 3.4px, transparent 4px);
}

.rope {
  position: absolute;
  top: -42px;
  width: 5px;
  height: 48px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(-24deg, rgba(90,66,40,.5) 0 3px, rgba(160,125,84,.9) 3px 6px),
    linear-gradient(90deg, #7a5a38, #a9835a 45%, #6d4f30);
  box-shadow: 1px 1px 1px rgba(61,48,34,.3);
}
.rope::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border: 3px solid #6d4f30;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.3);
}
.rope-left { left: 15%; transform: rotate(3deg); }
.rope-right { right: 15%; transform: rotate(-3deg); }

.brand {
  display: block;
  width: clamp(64px, 6.5vw, 92px);
  height: auto;
  filter: drop-shadow(0 5px 4px rgba(67,51,34,.2));
  transition: transform .25s ease;
}
.brand:hover { transform: rotate(-2deg) translateY(-2px); }
.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.header-copy {
  display: grid;
  gap: 5px;
  transform: rotate(-1.5deg);
}
.header-kicker {
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 900;
  letter-spacing: .14em;
  color: #4d3d2c;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.header-sub {
  font-family: "Courier New", monospace;
  font-size: clamp(11px, 1.05vw, 15px);
  color: #6b573f;
}

.main-stage {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 185px 80px 120px;
}

.radio-scene {
  position: relative;
  width: min(960px, 76vw);
  display: grid;
  place-items: center;
}

.radio-shadow {
  position: absolute;
  width: 92%;
  height: 12%;
  bottom: -3.2%;
  border-radius: 50%;
  background: rgba(74,58,41,.28);
  filter: blur(16px);
}

.radio {
  position: relative;
  width: 100%;
  padding-top: 1.9rem;
  border-radius: 42px 42px 34px 34px;
  border: 4px solid var(--radio-edge);
  background: linear-gradient(145deg, #edd9ac 0%, #cfab79 40%, #b48b5c 100%);
  box-shadow:
    0 18px 0 #87663f,
    0 24px 35px var(--shadow),
    inset 0 4px 0 rgba(255,255,255,.55),
    inset 0 -10px 18px rgba(81,61,39,.13);
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease;
}
.radio.playing {
  transform: translateY(-2px);
  box-shadow:
    0 19px 0 #87663f,
    0 28px 42px rgba(61,48,34,.30),
    inset 0 4px 0 rgba(255,255,255,.55),
    inset 0 -10px 18px rgba(81,61,39,.13);
}

.radio-top { position: relative; height: 26px; }
.antenna-mount {
  position: absolute;
  left: 50%;
  top: -50px;
  width: 230px;
  height: 95px;
  transform: translateX(-20%);
  pointer-events: none;
}
.antenna-joint {
  position: absolute;
  left: 4px;
  bottom: 9px;
  width: 36px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--radio-edge);
  background: linear-gradient(#e9dab9, #a77e4d);
  transform: rotate(-18deg);
}
.antenna-arm {
  position: absolute;
  left: 22px;
  bottom: 24px;
  width: 180px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(#f2ede1, #9b9a91 48%, #62615c 55%, #d9d8cf);
  border: 2px solid #5e5c57;
  transform: rotate(-17deg);
  box-shadow: 0 2px 2px rgba(39,31,23,.25);
}
.antenna-tip {
  position: absolute;
  right: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #5d5b56;
  background: #e2e0d5;
}
.radio-screw {
  position: absolute;
  top: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7d6142;
  border: 2px solid #4d3a28;
  box-shadow: inset 2px 2px 2px rgba(255,255,255,.35);
}
.screw-left { left: 22px; }
.screw-right { right: 22px; }

.radio-face {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .9fr);
  gap: 34px;
  padding: 16px 38px 26px;
  align-items: stretch;
}

.speaker-panel {
  display: grid;
  gap: 12px;
  align-content: center;
  min-width: 0;
}
.speaker-frame {
  position: relative;
  aspect-ratio: 1 / .96;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #9c784d, #634a31);
  border: 3px solid #553e2a;
  box-shadow:
    inset 0 4px 3px rgba(255,255,255,.2),
    inset 0 -10px 16px rgba(18,13,9,.28),
    0 5px 0 #76583a;
}
.speaker-grille {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 23px;
  color: #dfceb0;
  background: #382b1d;
  box-shadow: inset 0 0 0 4px #4f3a26, inset 0 0 24px rgba(0,0,0,.45);
}
.speaker-grille svg { display: block; width: 100%; height: 100%; }
.speaker-rim {
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(247,234,205,.16);
  border-radius: 19px;
  pointer-events: none;
}
.speaker-label {
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-align: center;
  color: #6a4d30;
}

.control-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 15px;
  align-content: center;
}

.lcd-bezel {
  padding: 12px;
  border-radius: 21px;
  background: linear-gradient(145deg, #5c513d, #28231c);
  border: 3px solid #413628;
  box-shadow: inset 0 3px 2px rgba(255,255,255,.15), 0 4px 0 #846547;
}
.lcd-screen {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 15px;
  border-radius: 12px;
  border: 3px solid #111911;
  background:
    linear-gradient(rgba(210,229,173,.035), rgba(210,229,173,.035)),
    repeating-linear-gradient(0deg, rgba(199,221,157,.035) 0 1px, transparent 1px 3px),
    var(--lcd-bg);
  color: var(--lcd-text);
  box-shadow: inset 0 0 22px rgba(90,144,82,.1);
  font-family: "Courier New", monospace;
  overflow: hidden;
}
.lcd-screen::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(215,232,166,.1);
  border-radius: 8px;
  pointer-events: none;
}
.lcd-header, .lcd-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lcd-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
#trackCounter { color: var(--lcd-dim); }
.lcd-title-row {
  padding-top: 10px;
  padding-bottom: 7px;
  color: #8eaa77;
  font-size: 9px;
  letter-spacing: .18em;
}
.lcd-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.lcd-signal i {
  display: block;
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  opacity: .4;
}
.lcd-signal i:nth-child(2) { height: 7px; }
.lcd-signal i:nth-child(3) { height: 10px; }
.radio.playing .lcd-signal i { animation: signalPulse .7s infinite alternate; }
.radio.playing .lcd-signal i:nth-child(2) { animation-delay: .16s; }
.radio.playing .lcd-signal i:nth-child(3) { animation-delay: .28s; }
@keyframes signalPulse { from { opacity: .25; } to { opacity: .95; } }

.playlist {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #63704f transparent;
  padding-right: 3px;
}
.playlist::-webkit-scrollbar { width: 6px; }
.playlist::-webkit-scrollbar-track { background: transparent; }
.playlist::-webkit-scrollbar-thumb { background: #5f6d4c; border-radius: 99px; }
.playlist-empty {
  padding: 30px 8px;
  color: #8e976e;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}
.track-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px dashed rgba(188,207,145,.16);
  background: transparent;
  color: #a9ba8b;
  cursor: pointer;
  text-align: left;
}
.track-item::before {
  content: ">";
  position: absolute;
  left: -2px;
  top: 9px;
  color: #e6edac;
  opacity: 0;
  transition: opacity .15s ease;
}
.track-item:hover::before,
.track-item.active::before { opacity: 1; }
.track-item:hover { color: #d8e4aa; }
.track-item.active {
  color: #ecf1b3;
  background: rgba(200,221,149,.08);
}
.track-index {
  font-size: 10px;
  color: #69725a;
}
.track-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 700;
}
.track-ext {
  font-size: 9px;
  color: #69725a;
}
.lcd-current {
  position: relative;
  z-index: 1;
  padding-top: 8px;
  color: #dfe9ad;
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playback-readout {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  align-items: center;
  color: #6f583d;
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 800;
}
.progress-range {
  width: 100%;
  height: 7px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.progress-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: #8b704f;
}
.progress-range::-webkit-slider-thumb {
  appearance: none;
  width: 14px; height: 14px;
  margin-top: -4px;
  border-radius: 50%;
  border: 2px solid #573d27;
  background: #ebd7ac;
  box-shadow: 0 2px 2px rgba(55,39,25,.25);
}
.progress-range::-moz-range-track { height: 6px; border-radius: 999px; background: #8b704f; }
.progress-range::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%; border: 2px solid #573d27; background: #ebd7ac;
}

.hardware-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
}
.volume-cluster {
  display: grid;
  justify-items: center;
  gap: 5px;
}
.volume-knob {
  --knob-angle: 38deg;
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #5a4028;
  background:
    radial-gradient(circle at 34% 28%, #f7e4bc 0 8%, transparent 9%),
    radial-gradient(circle at 34% 28%, #dac08d 0 48%, #aa8251 49% 70%, #7c5a39 71% 100%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.5), 0 5px 0 #714f2f, 0 7px 8px rgba(61,48,34,.16);
  cursor: grab;
  touch-action: none;
}
.volume-knob:active { cursor: grabbing; transform: translateY(2px); box-shadow: inset 0 2px 2px rgba(255,255,255,.5), 0 3px 0 #714f2f, 0 5px 6px rgba(61,48,34,.13); }
.knob-marker {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 16px;
  border-radius: 99px;
  background: #473322;
  transform: translateX(-50%) rotate(var(--knob-angle));
  transform-origin: 50% 24px;
  box-shadow: 0 1px 1px rgba(255,255,255,.25);
}
.hardware-caption {
  font-family: "Courier New", monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #6f563a;
}
.volume-value {
  font-family: "Courier New", monospace;
  font-size: 8px;
  color: #83684a;
}
.transport-cluster { min-width: 0; }
.transport-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hardware-button {
  width: 58px;
  height: 43px;
  border-radius: 16px;
  border: 3px solid #5e432a;
  background: linear-gradient(180deg, #f1dfb4, #b78e5c);
  color: #493522;
  box-shadow: 0 5px 0 #714f2f, 0 7px 8px rgba(61,48,34,.15), inset 0 2px 2px rgba(255,255,255,.55);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, filter .18s ease;
}
.hardware-button:hover { filter: brightness(1.04); }
.hardware-button:active,
.hardware-button.pressed {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #714f2f, 0 3px 5px rgba(61,48,34,.1), inset 0 2px 2px rgba(255,255,255,.42);
}
.play-button { background: linear-gradient(180deg, #f4c8a6, #bb7153); color: #432318; }
.button-icon { display: inline-block; font-size: 13px; line-height: 1; letter-spacing: -2px; transform: translateX(1px); }
.transport-caption {
  display: grid;
  grid-template-columns: 58px 58px 58px;
  gap: 10px;
  justify-content: center;
  text-align: center;
  font-size: 7px;
  letter-spacing: .04em;
  margin-top: 7px;
}

.radio-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 18px;
  font-family: "Courier New", monospace;
  font-size: 8px;
  letter-spacing: .04em;
  color: #725a3d;
  text-align: center;
}
.status-led {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #7b5e44;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,.35);
}
.radio.playing .status-led {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(197,97,74,.6), inset 1px 1px 2px rgba(255,255,255,.4);
  animation: ledPulse 1.2s infinite ease-in-out;
}
@keyframes ledPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

.radio-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 42px 24px;
}
.serial-mark, .brand-mark, .bottom-lines {
  color: #795b3c;
  font-family: "Courier New", monospace;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}
.brand-mark { line-height: .9; text-align: right; letter-spacing: .12em; }
.bottom-lines { display: flex; gap: 5px; }
.bottom-lines i { width: 24px; height: 4px; border-radius: 99px; background: #92704a; box-shadow: inset 0 1px 1px rgba(255,255,255,.4); }

.cat-companion {
  position: fixed;
  right: clamp(20px, 5vw, 76px);
  bottom: clamp(22px, 4.5vh, 50px);
  z-index: 15;
  width: clamp(120px, 11vw, 190px);
  pointer-events: none;
}
.cat-companion img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 7px rgba(67,51,34,.2));
  transform-origin: 50% 85%;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.cat-companion img.is-dragging {
  cursor: grabbing;
  animation: none;
}
.cat-companion.is-listening img { animation: catBop 1.05s infinite ease-in-out; }
@keyframes catBop { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1.1deg); } }
.cat-bubble {
  position: absolute;
  right: 74%;
  bottom: 70%;
  padding: 6px 9px;
  border: 2px solid #584733;
  border-radius: 14px 14px 7px 14px;
  background: rgba(251,245,225,.9);
  color: #5c4c3a;
  font-family: "Courier New", monospace;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 4px 6px rgba(60,47,33,.12);
  transform: rotate(-3deg);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.cat-companion.is-listening .cat-bubble { opacity: .92; transform: rotate(-3deg) translateY(-3px); }

.note-cloud {
  position: absolute;
  inset: 0;
  overflow: visible;
}
.note {
  position: absolute;
  left: var(--x);
  bottom: 38%;
  color: #5a6f50;
  font-family: Georgia, serif;
  font-weight: 800;
  font-size: var(--size);
  opacity: 0;
  transform: translateX(0) rotate(var(--r)) scale(.6);
  animation: noteFloat var(--dur) ease-out forwards;
  text-shadow: 1px 1px 0 rgba(255,255,255,.4);
}
@keyframes noteFloat {
  0% { opacity: 0; bottom: 38%; transform: translateX(0) rotate(var(--r)) scale(.6); }
  14% { opacity: .95; }
  65% { opacity: .75; }
  100% { opacity: 0; bottom: 108%; transform: translateX(var(--dx)) rotate(calc(var(--r) * -1)) scale(1); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 50;
  max-width: min(92vw, 460px);
  padding: 10px 15px;
  border-radius: 14px;
  border: 2px solid #604b36;
  background: rgba(249,241,219,.96);
  color: #543f2c;
  box-shadow: 0 8px 18px rgba(61,48,34,.16);
  font-size: 12px;
  font-weight: 800;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-footer {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 20px 24px;
  background:
    radial-gradient(circle, rgba(255,255,255,.5) 1.5px, transparent 2.3px) 0 0 / 26px 26px repeat,
    linear-gradient(180deg, #e7dabf 0%, var(--paper-deep) 100%);
  border-top: 3px solid rgba(90,69,48,.4);
  box-shadow: inset 0 8px 16px rgba(61,48,34,.08);
}
.visitor-counter {
  display: block;
  height: 46px;
  width: auto;
  image-rendering: pixelated;
  opacity: .92;
  filter: drop-shadow(0 4px 6px rgba(67,51,34,.18));
}
.made-by {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  color: var(--ink-soft);
  opacity: .85;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .09;
  background-image:
    radial-gradient(circle at 20% 30%, #342719 0 1px, transparent 1.2px),
    radial-gradient(circle at 80% 65%, #342719 0 1px, transparent 1.2px);
  background-size: 11px 13px, 17px 19px;
  mix-blend-mode: multiply;
}

@media (max-width: 1023px) {
  .main-stage { padding: 165px 45px 110px; }
  .radio-scene { width: min(840px, 88vw); }
  .radio-face { gap: 24px; padding-inline: 26px; }
  .lcd-screen { min-height: 300px; }
  .cat-companion { width: clamp(110px, 18vw, 170px); right: 3.5vw; bottom: 3.5vh; }
  .header-copy { display: none; }
  .plaque { padding: 8px 16px 10px; gap: 12px; }
}

@media (max-width: 767px) {
  .site-header { left: 14px; }
  .plaque { margin-top: 34px; padding: 7px 13px 9px; border-width: 2px; }
  .rope { top: -34px; height: 40px; }
  .plaque { animation: none; }
  .brand { width: 58px; }
  .brand img { max-height: 52px; }
  .main-stage { padding: 140px 18px 150px; min-height: 100vh; align-items: start; }
  .radio-scene { width: min(100%, 430px); }
  .radio { border-radius: 34px 34px 26px 26px; padding-top: 17px; }
  .radio-top { height: 18px; }
  .antenna-mount { top: -45px; width: 165px; height: 82px; transform: translateX(-8%); }
  .antenna-arm { width: 132px; height: 8px; }
  .radio-face {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 14px 17px 20px;
  }
  .speaker-panel { grid-row: 1; }
  .speaker-frame { aspect-ratio: 1.45 / 1; padding: 12px; border-radius: 25px; }
  .speaker-grille { border-radius: 18px; }
  .speaker-rim { inset: 13px; border-radius: 15px; }
  .speaker-label { display: none; }
  .control-panel { grid-row: 2; gap: 12px; }
  .lcd-screen { min-height: 300px; }
  .hardware-row { grid-template-columns: 70px 1fr; gap: 8px; }
  .volume-knob { width: 56px; height: 56px; }
  .transport-buttons { gap: 8px; }
  .hardware-button { width: 62px; height: 45px; }
  .transport-caption { grid-template-columns: 62px 62px 62px; gap: 8px; }
  .radio-bottom { padding: 0 20px 18px; }
  .serial-mark, .brand-mark, .bottom-lines { font-size: 7px; }
  .bottom-lines i { width: 15px; }
  .cat-companion {
    width: 132px;
    right: 12px;
    bottom: 16px;
  }
  .cat-bubble { right: 58%; bottom: 68%; }
}

@media (max-width: 380px) {
  .main-stage { padding-inline: 12px; }
  .radio-face { padding-inline: 12px; }
  .hardware-row { grid-template-columns: 62px 1fr; }
  .hardware-button { width: 55px; }
  .transport-caption { grid-template-columns: 55px 55px 55px; }
  .transport-buttons { gap: 6px; }
  .cat-companion { width: 110px; }
  .playback-readout { grid-template-columns: 34px 1fr 34px; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
