@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Share+Tech+Mono&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.sony-radio {
  margin: 0;
  min-height: 100vh;
  color: #d8d3be;
  font-family: "Share Tech Mono", "Courier New", monospace;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.15), transparent 16%),
    linear-gradient(180deg, #56565d 0%, #26262a 48%, #0a0a0c 100%);
}

body.sony-radio::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.18) 3px 4px),
    radial-gradient(circle at 50% 88%, rgba(0, 0, 0, 0.55), transparent 34%);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 10px;
  top: 10px;
  z-index: 20;
  padding: 6px;
  color: #111;
  background: #fff;
}

.stereo-nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 13px 10px 0;
}

.stereo-nav a {
  padding: 4px 9px;
  color: #c7c1a8;
  text-decoration: none;
  border: 1px solid #343434;
  border-radius: 3px;
  background: linear-gradient(#272727, #090909);
}

.stereo-nav a[aria-current="page"] {
  color: #ffe467;
}

.stereo-stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 44px);
  place-items: center;
  padding: 20px;
}

.sony-unit {
  position: relative;
  width: min(1180px, 100%);
  padding: 34px 28px 20px;
  border: 4px solid #060606;
  border-radius: 12px 12px 4px 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, #262729 0%, #111214 10%, #303033 11%, #1e1f21 55%, #101113 56%, #252528 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -9px 20px rgba(0, 0, 0, 0.7),
    0 32px 44px rgba(0, 0, 0, 0.78);
}

.top-lid {
  position: absolute;
  left: 44px;
  right: 44px;
  top: -24px;
  height: 54px;
  border: 3px solid #080808;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #424244, #17181a);
  transform: perspective(520px) rotateX(45deg);
  transform-origin: bottom;
}

.top-lid span {
  position: absolute;
  left: 39%;
  top: 17px;
  width: 26%;
  height: 12px;
  background: rgba(221, 198, 75, 0.5);
  filter: blur(1px);
}

.sony-face {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 104px;
  gap: 14px;
  align-items: stretch;
}

.side-bank {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 12px 10px;
  border: 2px solid #070707;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 24%, rgba(0, 0, 0, 0.38)),
    #202123;
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.72),
    inset 2px 0 0 rgba(255, 255, 255, 0.08);
}

.side-bank button,
.deck-button,
.seek-bank button {
  color: #cfc494;
  border: 2px solid #090909;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(180deg, #242528, #08090a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 2px rgba(0, 0, 0, 0.72);
  cursor: pointer;
  text-transform: uppercase;
}

.side-bank button {
  min-height: 38px;
  font-size: 0.8rem;
}

.side-bank button span {
  display: block;
  width: 28px;
  height: 5px;
  margin: auto;
  border-radius: 999px;
  background: #d7bc42;
  box-shadow: 0 0 8px rgba(255, 226, 71, 0.42);
}

.side-bank .channel-card.is-active span,
.side-bank .channel-card.is-active {
  color: #ffe467;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 12px rgba(255, 226, 71, 0.52);
}

.power-toggle[aria-pressed="true"] {
  color: #9dfff8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 12px rgba(157, 255, 248, 0.48);
}

.side-bank i {
  display: block;
  width: 44px;
  height: 22px;
  margin: 10px auto 0;
  border: 2px solid #080808;
  border-radius: 3px;
  background: #070707;
}

.right-bank {
  align-content: start;
}

.minidisc,
.disc-logo {
  display: block;
  margin: 9px auto 0;
  color: rgba(207, 196, 148, 0.68);
  text-align: center;
  text-transform: none;
  border: 2px solid rgba(207, 196, 148, 0.32);
  border-radius: 4px;
  padding: 4px;
  line-height: 0.8;
}

.disc-logo {
  border: 0;
  font-size: 0.72rem;
  line-height: 0.9;
}

.display-bezel {
  min-width: 0;
  padding: 22px 28px 10px;
  border: 3px solid #070707;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #050505, #111214 14%, #050505);
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 8px rgba(0, 0, 0, 0.34);
}

.screen-brand {
  margin: -6px 0 8px;
  color: #f6f6f3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 0.86;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 #777;
}

.stereo-display {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(126px, 0.22fr) minmax(0, 1fr) minmax(112px, 0.18fr);
  gap: 12px;
  min-height: 328px;
  padding: 18px 18px 58px;
  overflow: hidden;
  color: #9dfff8;
  border: 2px solid #020202;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(25, 64, 140, 0.18), transparent 20%, transparent 80%, rgba(20, 74, 120, 0.16)),
    repeating-linear-gradient(90deg, rgba(89, 255, 245, 0.05) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(0deg, rgba(89, 255, 245, 0.035) 0 1px, transparent 1px 4px),
    #020207;
  box-shadow:
    inset 0 0 44px rgba(0, 0, 0, 0.9),
    inset 0 0 18px rgba(53, 190, 255, 0.16),
    0 0 18px rgba(0, 190, 255, 0.18);
  text-shadow: 0 0 8px currentColor;
}

.stereo-display::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 57%, rgba(120, 255, 247, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 20%, rgba(0, 0, 0, 0.42));
}

.stereo-display::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.36;
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255, 255, 255, 0.11) 7px 8px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.12));
}

.stereo-display > * {
  position: relative;
  z-index: 1;
}

.lcd-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  align-content: start;
  font-family: "Orbitron", sans-serif;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.lcd-left span {
  min-height: 27px;
  padding: 4px;
  color: #62ccff;
  border: 2px solid #3ac7ff;
  box-shadow: inset 0 0 12px rgba(58, 199, 255, 0.28), 0 0 8px rgba(58, 199, 255, 0.32);
}

.lcd-left span:nth-child(2),
.lcd-left span:nth-child(5) {
  color: #ffcf3f;
  border-color: #ffcf3f;
}

.lcd-left .tiny-stack {
  grid-row: span 3;
  border: 0;
  color: #6fffee;
  box-shadow: none;
  line-height: 1.25;
}

.lcd-left .position {
  grid-column: 1 / -1;
  color: #ff3d3d;
  border: 0;
  box-shadow: none;
}

.lcd-center {
  display: grid;
  grid-template-rows: auto auto minmax(150px, 1fr);
  min-width: 0;
}

.display-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9dfff8;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.readout {
  min-width: 0;
  padding: 8px 0 0;
}

.readout h1,
.readout p {
  margin: 0 0 5px;
}

.readout h1 {
  color: #d7fff7;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.1rem, 4.5vw, 4.6rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.readout p {
  color: #8affef;
  font-size: 0.8rem;
}

.eyebrow {
  color: #ffd74e;
  text-transform: uppercase;
}

.spectrum-arch {
  position: relative;
  align-self: end;
  min-height: 175px;
  overflow: hidden;
  border-bottom: 2px solid rgba(255, 207, 63, 0.72);
}

.spectrum-arch::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -92px;
  width: min(520px, 100%);
  aspect-ratio: 2 / 1;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
  background:
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 14px, rgba(138, 255, 239, 0.9) 15px 17px, transparent 18px 24px),
    repeating-conic-gradient(from 250deg at 50% 100%, rgba(79, 214, 255, 0.8) 0 1.6deg, transparent 1.8deg 4.6deg);
  filter: drop-shadow(0 0 10px rgba(138, 255, 239, 0.72));
  animation: archPulse 1.3s steps(4, end) infinite;
}

.spectrum-arch::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 22px;
  width: 78px;
  height: 94px;
  border: 3px solid #ff3d3d;
  border-left: 0;
  opacity: 0.95;
  filter: drop-shadow(0 0 7px #ff3d3d);
  animation: redGate 1s steps(2, end) infinite;
}

.db-read {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  min-width: 112px;
  padding: 6px 10px;
  color: #9dfff8;
  text-align: center;
  border: 2px dotted #55e8ff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  font-family: "Orbitron", sans-serif;
  font-size: 1.55rem;
  transform: translateX(-50%);
}

.db-read small {
  font-size: 0.62rem;
}

.equalizer {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(22, 1fr);
  gap: 4px;
  align-items: end;
  height: 132px;
  transform: perspective(320px) rotateX(52deg);
  transform-origin: bottom;
}

.equalizer i {
  display: block;
  height: var(--h);
  min-height: 8px;
  background:
    linear-gradient(180deg, #f7ff66 0 8%, #9dfff8 9% 62%, #2fa4ff 63%);
  box-shadow: 0 0 10px rgba(157, 255, 248, 0.78);
  animation: meter 0.72s ease-in-out infinite alternate;
}

.equalizer i:nth-child(2n) {
  animation-delay: -0.24s;
}

.equalizer i:nth-child(3n) {
  animation-delay: -0.48s;
}

.lcd-right {
  display: grid;
  gap: 14px;
  align-content: center;
}

.time-dial {
  position: relative;
  min-height: 78px;
  padding: 9px 4px 4px 26px;
  color: #9dfff8;
  font-family: "Orbitron", sans-serif;
  text-align: center;
}

.time-dial::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-right-color: #32c6ff;
  border-bottom-color: #32c6ff;
  filter: drop-shadow(0 0 7px #32c6ff);
  animation: dialSweep 2.8s linear infinite;
}

.time-dial strong {
  display: block;
  font-size: 2.5rem;
  line-height: 0.82;
}

.time-dial span {
  display: block;
  color: #f7ff66;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.dj-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  color: #9dfff8;
  border: 2px solid rgba(157, 255, 248, 0.72);
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transform: translateY(130%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dj-caption.is-live {
  opacity: 1;
  transform: translateY(0);
}

.caption-speaker {
  color: #ffd74e;
  text-transform: uppercase;
}

.caption-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-caption {
  padding: 8px 8px 0;
  color: rgba(216, 211, 190, 0.72);
  font-style: italic;
  text-align: center;
  text-transform: uppercase;
}

.lower-face {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 170px;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
  padding: 0 4px;
}

.left-logos,
.right-logos {
  display: flex;
  gap: 12px;
  align-items: end;
  color: rgba(207, 196, 148, 0.72);
  text-transform: uppercase;
}

.left-logos strong {
  font-size: 1.7rem;
  line-height: 0.72;
  font-style: italic;
}

.left-logos span,
.right-logos span,
.right-logos strong {
  font-weight: 700;
}

.bottom-controls {
  display: grid;
  grid-template-columns: 112px 108px 86px minmax(180px, 1fr) 100px 230px;
  gap: 8px;
  align-items: end;
}

.deck-button {
  min-height: 78px;
  padding: 8px;
  font-size: 1rem;
}

.deck-button.small-deck-button {
  min-height: 50px;
}

.cassette-slot {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 10px 18px;
  border: 3px solid #070707;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%),
    #252629;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.86);
}

.cassette-slot span {
  display: block;
  width: min(190px, 100%);
  height: 48px;
  border: 2px solid #111;
  border-radius: 5px;
  background:
    repeating-linear-gradient(0deg, #d9d8d2 0 4px, #8f9090 4px 8px);
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.5),
    0 0 0 4px rgba(0, 0, 0, 0.42);
}

.seek-bank {
  display: grid;
  grid-template-columns: 1fr 0.72fr 1fr;
  gap: 4px;
}

.seek-bank button {
  min-height: 76px;
  color: #cfc494;
}

.stereo-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 10px;
  margin-top: 14px;
}

.stereo-notes article {
  padding: 10px;
  color: #cfc494;
  border: 2px solid #080808;
  border-radius: 5px;
  background: linear-gradient(180deg, #1d1e20, #070707);
}

.panel-label {
  margin: 0 0 7px;
  color: #ffd74e;
  text-transform: uppercase;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(207, 196, 148, 0.17);
}

.tiny-button {
  width: 100%;
  min-height: 28px;
  color: #d8d3be;
  text-align: left;
  border: 1px solid rgba(207, 196, 148, 0.22);
  background: #060606;
}

.tiny-button.hot {
  color: #9dfff8;
}

.sony-unit.is-powered-off .stereo-display {
  color: rgba(85, 111, 112, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%),
    #010102;
  box-shadow:
    inset 0 0 44px rgba(0, 0, 0, 0.96),
    inset 0 0 18px rgba(0, 0, 0, 0.86),
    0 0 0 rgba(0, 0, 0, 0);
  text-shadow: none;
}

.sony-unit.is-powered-off .stereo-display::before {
  opacity: 0.12;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%, rgba(0, 0, 0, 0.7));
}

.sony-unit.is-powered-off .stereo-display::after {
  opacity: 0.12;
}

.sony-unit.is-powered-off .lcd-left span,
.sony-unit.is-powered-off .readout,
.sony-unit.is-powered-off .lcd-right,
.sony-unit.is-powered-off .spectrum-arch,
.sony-unit.is-powered-off .display-topline span:not(#station-status),
.sony-unit.is-powered-off .dj-caption {
  opacity: 0.12;
  filter: grayscale(1);
}

.sony-unit.is-powered-off #station-status {
  color: rgba(207, 196, 148, 0.74);
  text-shadow: none;
}

.sony-unit.is-powered-off .equalizer i,
.sony-unit.is-powered-off .spectrum-arch::before,
.sony-unit.is-powered-off .spectrum-arch::after,
.sony-unit.is-powered-off .time-dial::before {
  animation-play-state: paused;
}

.sony-unit.is-powered-off button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.stereo-display.is-static {
  animation: screenJolt 150ms steps(2, end) infinite;
}

.stereo-display.is-static::after {
  opacity: 0.8;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 3px);
}

@keyframes meter {
  from { height: calc(var(--h) * 0.34); }
  to { height: var(--h); }
}

@keyframes archPulse {
  50% { opacity: 0.72; filter: drop-shadow(0 0 18px rgba(138, 255, 239, 0.9)); }
}

@keyframes redGate {
  50% { opacity: 0.35; }
}

@keyframes dialSweep {
  to { transform: rotate(360deg); }
}

@keyframes screenJolt {
  0% { transform: translateX(0); filter: brightness(1); }
  50% { transform: translateX(2px); filter: brightness(1.35) contrast(1.2); }
  100% { transform: translateX(-1px); filter: brightness(1.05); }
}

@media (max-width: 980px) {
  .sony-face,
  .lower-face,
  .bottom-controls,
  .stereo-notes {
    grid-template-columns: 1fr;
  }

  .side-bank {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }

  .side-bank i,
  .minidisc,
  .disc-logo {
    display: none;
  }
}

@media (max-width: 720px) {
  .sony-unit {
    padding: 24px 12px 14px;
  }

  .stereo-display {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .lcd-right {
    grid-template-columns: repeat(3, 1fr);
  }

  .display-bezel {
    padding-inline: 12px;
  }

  .caption-text {
    white-space: normal;
  }
}

/* embedded homepage hero mode */

body.embedded-radio {
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

body.embedded-radio::before {
  content: none;
}

body.embedded-radio .stereo-nav,
body.embedded-radio .top-lid,
body.embedded-radio .stereo-notes {
  display: none;
}

body.embedded-radio .stereo-stage {
  min-height: 100vh;
  padding: 10px;
}

body.embedded-radio .sony-unit {
  width: min(760px, 100%);
  padding: 18px 16px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -6px 13px rgba(0, 0, 0, 0.76),
    0 18px 26px rgba(0, 0, 0, 0.48);
}

body.embedded-radio .sony-face {
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  gap: 8px;
}

body.embedded-radio .side-bank {
  gap: 7px;
  padding: 7px 6px;
}

body.embedded-radio .side-bank button {
  min-height: 27px;
  font-size: 0.58rem;
}

body.embedded-radio .display-bezel {
  padding: 12px 14px 7px;
}

body.embedded-radio .screen-brand {
  font-size: 1.52rem;
}

body.embedded-radio .stereo-display {
  min-height: 210px;
  padding: 10px 10px 38px;
  grid-template-columns: minmax(82px, 0.2fr) minmax(0, 1fr) minmax(70px, 0.16fr);
}

body.embedded-radio .lcd-left {
  font-size: 0.47rem;
}

body.embedded-radio .lcd-left span {
  min-height: 17px;
}

body.embedded-radio .readout h1 {
  font-size: clamp(1.2rem, 3vw, 2.3rem);
}

body.embedded-radio .readout p {
  font-size: 0.58rem;
}

body.embedded-radio .spectrum-arch {
  min-height: 100px;
}

body.embedded-radio .equalizer {
  height: 76px;
}

body.embedded-radio .time-dial {
  min-height: 44px;
}

body.embedded-radio .time-dial::before {
  width: 40px;
  height: 40px;
}

body.embedded-radio .time-dial strong {
  font-size: 1.2rem;
}

body.embedded-radio .lower-face {
  grid-template-columns: 112px minmax(0, 1fr) 98px;
  gap: 7px;
}

body.embedded-radio .bottom-controls {
  grid-template-columns: 58px 56px 48px minmax(90px, 1fr) 56px 116px;
  gap: 4px;
}

body.embedded-radio .deck-button,
body.embedded-radio .seek-bank button {
  min-height: 42px;
  font-size: 0.62rem;
}

body.embedded-radio .deck-button.small-deck-button {
  min-height: 32px;
}

body.embedded-radio .cassette-slot {
  min-height: 48px;
  padding: 6px 10px;
}

body.embedded-radio .cassette-slot span {
  height: 28px;
}

/* larger embedded homepage prop, after compact sizing */

body.embedded-radio .stereo-stage {
  padding: 6px;
}

body.embedded-radio .sony-unit {
  width: min(1040px, 100%);
  padding: 24px 20px 14px;
}

body.embedded-radio .sony-face {
  grid-template-columns: 82px minmax(0, 1fr) 82px;
  gap: 9px;
}

body.embedded-radio .side-bank {
  gap: 8px;
  padding: 8px 7px;
}

body.embedded-radio .side-bank button {
  min-height: 31px;
  font-size: 0.64rem;
}

body.embedded-radio .display-bezel {
  padding: 15px 18px 8px;
}

body.embedded-radio .screen-brand {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

body.embedded-radio .stereo-display {
  min-height: 255px;
  padding: 12px 12px 42px;
  grid-template-columns: minmax(104px, 0.2fr) minmax(0, 1fr) minmax(86px, 0.16fr);
}

body.embedded-radio .lcd-left {
  font-size: 0.54rem;
}

body.embedded-radio .lcd-left span {
  min-height: 20px;
}

body.embedded-radio .readout h1 {
  font-size: clamp(1.48rem, 3.3vw, 3rem);
}

body.embedded-radio .readout p {
  font-size: 0.66rem;
}

body.embedded-radio .spectrum-arch {
  min-height: 126px;
}

body.embedded-radio .equalizer {
  height: 96px;
}

body.embedded-radio .time-dial {
  min-height: 54px;
}

body.embedded-radio .time-dial::before {
  width: 50px;
  height: 50px;
}

body.embedded-radio .time-dial strong {
  font-size: 1.62rem;
}

body.embedded-radio .lower-face {
  grid-template-columns: 150px minmax(0, 1fr) 124px;
  gap: 9px;
}

body.embedded-radio .bottom-controls {
  grid-template-columns: 76px 72px 58px minmax(118px, 1fr) 72px 150px;
  gap: 5px;
}

body.embedded-radio .deck-button,
body.embedded-radio .seek-bank button {
  min-height: 54px;
  font-size: 0.76rem;
}

body.embedded-radio .deck-button.small-deck-button {
  min-height: 36px;
}

body.embedded-radio .cassette-slot {
  min-height: 58px;
  padding: 7px 13px;
}

body.embedded-radio .cassette-slot span {
  height: 34px;
}

/* compact wx-c66md pass */

body {
  background:
    radial-gradient(circle at 50% 88%, rgba(0, 0, 0, 0.48), transparent 32%),
    linear-gradient(180deg, #4b4b4f 0%, #202124 48%, #080809 100%);
}

.stereo-stage {
  min-height: calc(100vh - 42px);
  padding: 18px;
}

.sony-unit {
  width: min(920px, 100%);
  padding: 26px 22px 16px;
  border-width: 3px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, #202123 0%, #101113 12%, #242527 13%, #17181a 56%, #090a0b 57%, #202123 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -7px 16px rgba(0, 0, 0, 0.76),
    0 22px 32px rgba(0, 0, 0, 0.74);
}

.top-lid {
  left: 36px;
  right: 36px;
  top: -18px;
  height: 40px;
  border-radius: 6px 6px 0 0;
}

.sony-face {
  grid-template-columns: 82px minmax(0, 1fr) 82px;
  gap: 10px;
}

.side-bank {
  gap: 9px;
  padding: 9px 8px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 22%, rgba(0, 0, 0, 0.38)),
    #1a1b1d;
}

.side-bank button {
  min-height: 31px;
  border-radius: 3px;
  font-size: 0.68rem;
}

.side-bank button span {
  width: 23px;
  height: 4px;
}

.minidisc,
.disc-logo {
  font-size: 0.66rem;
}

.display-bezel {
  padding: 16px 20px 8px;
  border-radius: 10px;
  box-shadow:
    inset 0 0 22px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 5px rgba(0, 0, 0, 0.32);
}

.screen-brand {
  margin: -4px 0 6px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.stereo-display {
  grid-template-columns: minmax(104px, 0.2fr) minmax(0, 1fr) minmax(90px, 0.16fr);
  gap: 9px;
  min-height: 252px;
  padding: 13px 13px 45px;
  border-radius: 7px;
}

.lcd-left {
  gap: 5px;
  font-size: 0.55rem;
}

.lcd-left span {
  min-height: 21px;
  padding: 3px;
}

.display-topline {
  font-size: 0.66rem;
}

.readout h1 {
  font-size: clamp(1.5rem, 3.2vw, 3.2rem);
}

.readout p {
  font-size: 0.68rem;
}

.lcd-center {
  grid-template-rows: auto auto minmax(116px, 1fr);
}

.spectrum-arch {
  min-height: 128px;
}

.spectrum-arch::before {
  bottom: -72px;
  width: min(390px, 100%);
}

.spectrum-arch::after {
  right: 4px;
  top: 12px;
  width: 58px;
  height: 72px;
}

.db-read {
  min-width: 86px;
  padding: 4px 8px;
  font-size: 1.12rem;
}

.equalizer {
  left: 7%;
  right: 7%;
  height: 98px;
  gap: 3px;
}

.lcd-right {
  gap: 8px;
}

.time-dial {
  min-height: 56px;
  padding: 5px 2px 2px 20px;
}

.time-dial::before {
  width: 52px;
  height: 52px;
  border-width: 2px;
}

.time-dial strong {
  font-size: 1.72rem;
}

.screen-caption {
  padding-top: 6px;
  font-size: 0.72rem;
}

.lower-face {
  grid-template-columns: 160px minmax(0, 1fr) 130px;
  gap: 10px;
  margin-top: 12px;
}

.left-logos strong {
  font-size: 1.22rem;
}

.left-logos,
.right-logos {
  gap: 7px;
  font-size: 0.72rem;
}

.bottom-controls {
  grid-template-columns: 82px 78px 62px minmax(126px, 1fr) 78px 162px;
  gap: 6px;
}

.deck-button {
  min-height: 58px;
  padding: 6px;
  border-radius: 3px;
  font-size: 0.82rem;
}

.deck-button.small-deck-button {
  min-height: 38px;
}

.cassette-slot {
  min-height: 62px;
  padding: 8px 14px;
  border-radius: 5px;
}

.cassette-slot span {
  height: 36px;
}

.seek-bank button {
  min-height: 58px;
  font-size: 0.72rem;
}

.stereo-notes {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.62fr);
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
}

/* final embedded homepage button/layout fix */

body.embedded-radio {
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

body.embedded-radio::before {
  content: none;
}

body.embedded-radio .stereo-nav,
body.embedded-radio .top-lid,
body.embedded-radio .stereo-notes {
  display: none;
}

body.embedded-radio .stereo-stage {
  min-height: 100vh;
  padding: 6px;
}

body.embedded-radio .sony-unit {
  width: min(1040px, 100%);
  padding: 24px 20px 14px;
}

body.embedded-radio .sony-face {
  grid-template-columns: 82px minmax(0, 1fr) 82px;
  gap: 9px;
}

body.embedded-radio .side-bank {
  gap: 8px;
  padding: 8px 7px;
}

body.embedded-radio .side-bank button {
  min-height: 31px;
  padding-inline: 3px;
  overflow: hidden;
  font-size: 0.64rem;
  line-height: 1;
  text-overflow: ellipsis;
}

body.embedded-radio .display-bezel {
  min-width: 0;
  padding: 15px 18px 8px;
}

body.embedded-radio .screen-brand {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

body.embedded-radio .stereo-display {
  min-height: 255px;
  padding: 12px 12px 42px;
  grid-template-columns: minmax(104px, 0.2fr) minmax(0, 1fr) minmax(86px, 0.16fr);
}

body.embedded-radio .lcd-left {
  font-size: 0.54rem;
}

body.embedded-radio .lcd-left span {
  min-height: 20px;
}

body.embedded-radio .readout h1 {
  font-size: clamp(1.48rem, 3.3vw, 3rem);
}

body.embedded-radio .readout p {
  font-size: 0.66rem;
}

body.embedded-radio .spectrum-arch {
  min-height: 126px;
}

body.embedded-radio .equalizer {
  height: 96px;
}

body.embedded-radio .time-dial {
  min-height: 54px;
}

body.embedded-radio .time-dial::before {
  width: 50px;
  height: 50px;
}

body.embedded-radio .time-dial strong {
  font-size: 1.62rem;
}

body.embedded-radio .lower-face {
  grid-template-columns: 150px minmax(0, 1fr) 124px;
  gap: 9px;
}

body.embedded-radio .bottom-controls {
  min-width: 0;
  grid-template-columns: 76px 72px 58px minmax(118px, 1fr) 72px 150px;
  gap: 5px;
}

body.embedded-radio .deck-button,
body.embedded-radio .seek-bank button {
  min-width: 0;
  min-height: 54px;
  padding-inline: 4px;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1;
  text-overflow: ellipsis;
}

body.embedded-radio .deck-button.small-deck-button {
  min-height: 36px;
}

/* homepage embed: keep the deck controls aligned inside the iframe */

body.embedded-radio .lower-face {
  grid-template-columns: 1fr;
}

body.embedded-radio .left-logos,
body.embedded-radio .right-logos {
  display: none;
}

body.embedded-radio .bottom-controls {
  align-items: stretch;
  grid-template-columns: 82px 78px 62px minmax(150px, 1fr) 78px 168px;
  gap: 6px;
}

body.embedded-radio .deck-button,
body.embedded-radio .seek-bank button {
  display: grid;
  place-items: center;
  min-height: 58px;
  white-space: normal;
  text-align: center;
}

body.embedded-radio .deck-button.small-deck-button {
  min-height: 58px;
}

body.embedded-radio .seek-bank {
  grid-template-columns: 1fr 0.76fr 1fr;
}

body.embedded-radio .seek-bank button {
  min-height: 58px;
}

body.embedded-radio .cassette-slot {
  min-width: 0;
  min-height: 58px;
  padding: 7px 13px;
}

body.embedded-radio .cassette-slot span {
  height: 34px;
}

body.embedded-radio .seek-bank {
  min-width: 0;
  grid-template-columns: 1fr 0.74fr 1fr;
}

/* homepage embed: uncrush the top face buttons */

body.embedded-radio .sony-face {
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  gap: 12px;
}

body.embedded-radio .side-bank {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 8px;
  padding: 9px 8px;
}

body.embedded-radio .side-bank button {
  width: 100%;
  min-height: 37px;
  padding: 4px 3px;
  overflow: visible;
  font-size: 0.64rem;
  line-height: 1.05;
  white-space: normal;
  text-overflow: clip;
}

body.embedded-radio .side-bank button span {
  display: block;
  width: 26px;
  margin: auto;
}

body.embedded-radio .power-toggle {
  min-height: 40px;
}

/* lcd detail pass */

.lcd-mini-map {
  position: absolute;
  left: 13px;
  top: 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 18px);
  gap: 4px;
  pointer-events: none;
}

.lcd-mini-map span {
  height: 13px;
  border: 1px solid rgba(98, 204, 255, 0.92);
  box-shadow: inset 0 0 8px rgba(98, 204, 255, 0.28), 0 0 5px rgba(98, 204, 255, 0.36);
}

.screen-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 3px;
  color: #7affce;
  font-family: "Orbitron", sans-serif;
  font-size: 0.58rem;
  line-height: 1;
  text-transform: uppercase;
}

.screen-icons span {
  padding: 2px 4px;
  border: 1px solid rgba(122, 255, 206, 0.72);
  background: rgba(28, 255, 196, 0.06);
  box-shadow: 0 0 6px rgba(122, 255, 206, 0.22);
}

.disc-radar {
  position: absolute;
  left: 11%;
  top: 14px;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(108, 236, 255, 0.86);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(108, 236, 255, 0.26) 0 8deg, transparent 8deg 16deg),
    radial-gradient(circle, transparent 0 27%, rgba(108, 236, 255, 0.32) 28% 31%, transparent 32% 47%, rgba(108, 236, 255, 0.22) 48% 51%, transparent 52%);
  box-shadow: 0 0 12px rgba(108, 236, 255, 0.42);
  animation: radarPulse 2.8s linear infinite;
}

.disc-radar span {
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: #f6ff67;
  box-shadow: 0 0 10px rgba(246, 255, 103, 0.7);
}

.signal-steps {
  position: absolute;
  right: 14%;
  top: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 7px);
  align-items: end;
  gap: 4px;
  height: 38px;
}

.signal-steps i {
  display: block;
  height: calc(10px + var(--step, 1) * 5px);
  background: #ff4141;
  box-shadow: 0 0 8px rgba(255, 65, 65, 0.62);
}

.signal-steps i:nth-child(1) { --step: 1; }
.signal-steps i:nth-child(2) { --step: 2; }
.signal-steps i:nth-child(3) { --step: 3; }
.signal-steps i:nth-child(4) { --step: 2; }
.signal-steps i:nth-child(5) { --step: 4; }

.mini-meter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  color: #f7ff66;
  font-family: "Orbitron", sans-serif;
  font-size: 0.55rem;
  text-align: right;
  text-transform: uppercase;
}

.mini-meter i {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2fa4ff, #9dfff8 58%, #f7ff66);
  box-shadow: 0 0 8px rgba(157, 255, 248, 0.5);
}

.stereo-display {
  filter: contrast(1.03) saturate(1.08);
}

.stereo-display::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 23% 66%, rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 50% 120%, rgba(61, 224, 255, 0.12), transparent 50%),
    repeating-linear-gradient(90deg, rgba(64, 255, 232, 0.025) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.stereo-display::after {
  opacity: 0.22;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 16% 84%, rgba(0, 0, 0, 0.36)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 6px),
    repeating-radial-gradient(circle at 35% 45%, rgba(157, 255, 248, 0.055) 0 1px, transparent 1px 5px);
  backdrop-filter: blur(0.12px);
}

.disc-radar {
  display: none;
}

@keyframes radarPulse {
  0% { transform: rotate(0deg); opacity: 0.86; }
  50% { opacity: 1; }
  100% { transform: rotate(360deg); opacity: 0.86; }
}

body.embedded-radio .lcd-mini-map {
  left: 11px;
  top: 10px;
  grid-template-columns: repeat(4, 14px);
  gap: 3px;
}

body.embedded-radio .screen-icons {
  font-size: 0.48rem;
  gap: 3px;
}

body.embedded-radio .disc-radar {
  width: 42px;
  height: 42px;
  top: 12px;
}

body.embedded-radio .disc-radar span {
  inset: 13px;
}

body.embedded-radio .signal-steps {
  right: 11%;
  top: 24px;
  height: 30px;
}

body.embedded-radio .mini-meter {
  font-size: 0.46rem;
}

/* a-train green radio palette */

:root {
  --radio-cream: #f6f1c2;
  --radio-ink: #111907;
  --radio-dark: #20352e;
  --radio-green: #b9bb79;
  --radio-mid: #7b825c;
  --radio-tan: #c8c286;
}

.sony-unit {
  border-color: var(--radio-ink);
  background:
    linear-gradient(180deg, #3b4638 0%, #1d261c 46%, #10150c 100%);
}

.display-bezel,
.side-bank,
.lower-face {
  border-color: var(--radio-ink);
}

.screen-brand {
  color: var(--radio-cream);
}

.stereo-display {
  color: var(--radio-cream);
  border-color: #060906;
  background:
    linear-gradient(180deg, rgba(246, 241, 194, 0.08), transparent 28%),
    radial-gradient(circle at 48% 100%, rgba(185, 187, 121, 0.2), transparent 48%),
    #111907;
  box-shadow:
    inset 0 0 0 2px #020402,
    inset 0 0 38px rgba(185, 187, 121, 0.18),
    0 0 14px rgba(17, 25, 7, 0.8);
}

.stereo-display::before {
  background:
    linear-gradient(115deg, rgba(246, 241, 194, 0.08), transparent 23% 66%, rgba(246, 241, 194, 0.04)),
    radial-gradient(circle at 50% 120%, rgba(185, 187, 121, 0.12), transparent 50%);
}

.stereo-display::after {
  opacity: 0.18;
  background:
    linear-gradient(180deg, rgba(246, 241, 194, 0.1), transparent 18% 86%, rgba(0, 0, 0, 0.36)),
    repeating-linear-gradient(0deg, rgba(246, 241, 194, 0.04) 0 1px, transparent 1px 6px);
}

.lcd-left span {
  color: var(--radio-cream);
  border-color: var(--radio-green);
  box-shadow: inset 0 0 10px rgba(185, 187, 121, 0.24), 0 0 6px rgba(185, 187, 121, 0.28);
}

.lcd-left span:nth-child(2),
.lcd-left span:nth-child(5),
.lcd-left .tiny-stack,
.display-topline,
.screen-icons,
.mini-meter,
.readout h1,
.db-read,
.time-dial strong {
  color: var(--radio-green);
}

.lcd-left span:nth-child(2),
.lcd-left span:nth-child(5),
.screen-icons span {
  border-color: var(--radio-green);
}

.lcd-left .position,
.signal-steps i {
  color: var(--radio-cream);
  background: #d8d29d;
  box-shadow: 0 0 7px rgba(216, 210, 157, 0.45);
}

.screen-icons span {
  background: rgba(185, 187, 121, 0.07);
  box-shadow: 0 0 5px rgba(185, 187, 121, 0.2);
}

.spectrum-arch {
  border-bottom-color: rgba(185, 187, 121, 0.78);
}

.spectrum-arch::before {
  border-color: rgba(185, 187, 121, 0.9);
  box-shadow: inset 0 0 26px rgba(185, 187, 121, 0.18), 0 0 18px rgba(185, 187, 121, 0.25);
}

.spectrum-arch::after {
  border-color: var(--radio-green);
  box-shadow: 0 0 8px rgba(185, 187, 121, 0.35);
}

.equalizer i,
.mini-meter i {
  background: linear-gradient(180deg, var(--radio-cream) 0 8%, var(--radio-green) 9% 62%, var(--radio-mid) 63%);
  box-shadow: 0 0 7px rgba(185, 187, 121, 0.42);
}

.time-dial::before {
  border-color: var(--radio-green);
  box-shadow: 0 0 8px rgba(185, 187, 121, 0.35);
}

.side-bank button,
.deck-button,
.seek-bank button {
  color: var(--radio-cream);
  border-color: #080d07;
}

.side-bank .channel-card.is-active span,
.side-bank .channel-card.is-active,
.power-toggle[aria-pressed="true"] {
  color: var(--radio-green);
  box-shadow:
    inset 0 1px 0 rgba(246, 241, 194, 0.18),
    0 0 10px rgba(185, 187, 121, 0.48);
}

.side-bank button span {
  background: var(--radio-green);
}

.caption-speaker,
.dj-caption {
  border-color: var(--radio-green);
}

/* correction: keep radio mostly original black, only recolor blue/yellow lcd assets */

.sony-unit {
  border-color: #060606;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, #333338 0%, #18181b 46%, #080809 100%);
}

.display-bezel {
  background:
    linear-gradient(180deg, #111 0%, #030303 100%);
}

.side-bank,
.lower-face {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 22%, rgba(0, 0, 0, 0.38)),
    #242424;
}

.stereo-display {
  color: #d8d3be;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    radial-gradient(circle at 48% 100%, rgba(185, 187, 121, 0.14), transparent 48%),
    #030306;
}

.stereo-display::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 23% 66%, rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 50% 120%, rgba(185, 187, 121, 0.1), transparent 50%);
}

.lcd-left span,
.lcd-mini-map span,
.screen-icons span {
  color: var(--radio-green);
  border-color: var(--radio-green);
}

.lcd-left span:nth-child(2),
.lcd-left span:nth-child(5),
.lcd-left .tiny-stack,
.display-topline,
.screen-icons,
.mini-meter,
.readout h1,
.db-read,
.time-dial strong {
  color: var(--radio-green);
}

.lcd-left .position {
  color: #ff3d3d;
  background: transparent;
  box-shadow: none;
}

.signal-steps i {
  background: #ff4141;
  box-shadow: 0 0 8px rgba(255, 65, 65, 0.62);
}

.equalizer i,
.mini-meter i {
  background: linear-gradient(180deg, var(--radio-cream) 0 8%, var(--radio-green) 9% 62%, var(--radio-mid) 63%);
}

.side-bank button,
.deck-button,
.seek-bank button {
  color: #cfc494;
}

.power-toggle[aria-pressed="true"],
.side-bank .channel-card.is-active span,
.side-bank .channel-card.is-active {
  color: var(--radio-green);
}

/* final restore: original sony lcd accents */

.lcd-left span,
.lcd-mini-map span {
  color: #62ccff;
  border-color: #3ac7ff;
  box-shadow: inset 0 0 12px rgba(58, 199, 255, 0.28), 0 0 8px rgba(58, 199, 255, 0.32);
}

.lcd-left span:nth-child(2),
.lcd-left span:nth-child(5) {
  color: #ffcf3f;
  border-color: #ffcf3f;
}

.lcd-left .tiny-stack,
.display-topline,
.screen-icons,
.mini-meter,
.readout h1,
.db-read,
.time-dial strong {
  color: #9dfff8;
}

.screen-icons span {
  color: #7affce;
  border-color: rgba(122, 255, 206, 0.72);
  background: rgba(28, 255, 196, 0.06);
  box-shadow: 0 0 6px rgba(122, 255, 206, 0.22);
}

.equalizer i,
.mini-meter i {
  background: linear-gradient(180deg, #f7ff66 0 8%, #9dfff8 9% 62%, #2fa4ff 63%);
  box-shadow: 0 0 8px rgba(157, 255, 248, 0.42);
}

.spectrum-arch {
  border-bottom-color: rgba(255, 207, 63, 0.72);
}

.spectrum-arch::before,
.time-dial::before {
  border-color: #6cecff;
  box-shadow: 0 0 10px rgba(108, 236, 255, 0.32);
}

.spectrum-arch::after {
  border-color: #ff3d3d;
  filter: drop-shadow(0 0 7px #ff3d3d);
}

.side-bank button span {
  background: #ffcf3f;
}

.power-toggle[aria-pressed="true"],
.side-bank .channel-card.is-active span,
.side-bank .channel-card.is-active {
  color: #9dfff8;
}
