#spaceRadio { --station-color: #88edc6; color: #e7eceb; width: min(880px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: 0; border: 1px solid #74827f; border-radius: 22px; background: #182324; box-shadow: 0 28px 100px #000c, 0 0 0 5px #090f13; overflow: auto; font-family: "Courier New", monospace; }
#spaceRadio::backdrop { background: #030c15d9; backdrop-filter: blur(7px); }
#spaceRadio { scrollbar-width: thin; scrollbar-color: #71817a #172127; }
#spaceRadio * { box-sizing: border-box; }
#spaceRadio button { font: inherit; cursor: pointer; color: inherit; }
#spaceRadio button:focus-visible, #spaceRadio summary:focus-visible { outline: 2px solid #adffe0; outline-offset: 4px; }
#spaceRadio button:disabled { opacity: .35; cursor: default; }
.receiver-shell { padding: 24px 32px 19px; background: linear-gradient(115deg, #14202318, #030c126b), url("../assets/images/radio/worn-avionics-v1.webp") center / cover, #263036; position: relative; box-shadow: inset 0 2px 1px #c1b39b55, inset 2px 0 2px #a9b4ac35, inset -3px -4px 4px #020609bb, inset 0 0 0 7px #0a141533, inset 0 0 30px #080b1044; border-radius: inherit; }
.receiver-fasteners { position: absolute; inset: 0; pointer-events: none; }
.receiver-fasteners i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(45deg, transparent 41%, #0b1015 43% 55%, #91a39770 57%, transparent 59%), radial-gradient(circle at 35% 28%, #9c9e8f, #515f60 55%, #192426 80%); box-shadow: 0 1px 1px #000c, 0 0 0 2px #07101699, inset 0 1px 1px #ccd0b880; }
.receiver-fasteners i:nth-child(1) { left: 11px; top: 11px; }
.receiver-fasteners i:nth-child(2) { right: 11px; top: 11px; transform: rotate(25deg); }
.receiver-fasteners i:nth-child(3) { left: 11px; bottom: 11px; transform: rotate(-15deg); }
.receiver-fasteners i:nth-child(4) { right: 11px; bottom: 11px; transform: rotate(60deg); }
.receiver-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.receiver-brand { flex: 1; min-width: 0; }
.receiver-eyebrow { display: block; font-size: 9px; color: #c0c2b4; letter-spacing: 2.5px; text-shadow: 0 1px 2px #000; }
#spaceRadio .receiver-logo { position: relative; width: min(100%, 440px); aspect-ratio: 4.65; margin: 10px 0 14px -4px; overflow: hidden; }
.receiver-logo img { position: absolute; top: 50%; left: 0; transform: translateY(-50%); width: 100%; height: auto; display: block; }
#receiverClose { flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 1px solid #9c9f8a; background: linear-gradient(#414b49aa, #111d22dd), url("../assets/images/radio/worn-avionics-v1.webp") center / 240px; box-shadow: inset 0 1px 1px #d0c7b17a, 0 2px 5px #000a; border-radius: 50%; font-size: 17px; }
.receiver-hardware { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; letter-spacing: 1.4px; color: #bdc8bf; padding: 7px 0 14px; text-shadow: 0 1px 2px #000; }
.receiver-pause { color: #f2c784; } .receiver-pause i { display: inline-block; width: 6px; height: 6px; background: #f2c784; border-radius: 50%; margin-right: 5px; }
.receiver-main { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: stretch; }
.receiver-speaker { position: relative; border-radius: 15px; border: 2px solid #0b1317; background: radial-gradient(circle, #03090c 1.4px, transparent 1.7px) 0 0 / 5px 5px, linear-gradient(130deg, #293739, #152022); box-shadow: inset 1px 2px 12px #0009, 1px 1px 1px #77817b50; }
.speaker-cone { width: 125px; height: 125px; border-radius: 50%; position: absolute; top: calc(50% - 68px); left: 10px; box-shadow: 0 0 20px #0005, inset 0 0 25px #0006; border: 4px solid #0b131635; }
.receiver-speaker > span { position: absolute; bottom: 14px; width: 100%; text-align: center; font-size: 8px; letter-spacing: 1px; color: #7e9593; }
.receiver-screen { min-width: 0; padding: 15px 23px 10px; background: repeating-linear-gradient(0deg, #0b1c1960 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 30%, #193d37, #071c1b 90%); border: 5px solid #0b1216; border-radius: 13px; color: var(--station-color); box-shadow: inset 0 0 25px #0009, 0 1px 1px #79877e80, 0 0 25px #61ffbc0a; }
.receiver-screen-top { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; letter-spacing: 1px; }
.receiver-frequency { display: flex; align-items: center; gap: 15px; }
#receiverFrequency { font-size: clamp(48px, 8vw, 74px); line-height: 1.2; letter-spacing: -4px; text-shadow: 0 0 16px #95ffc940; }
.receiver-frequency > span + span { font-size: 16px; line-height: 1.3; }
.receiver-frequency small { font-size: 8px; letter-spacing: 1px; opacity: .7; }
#receiverStation { font-size: 23px; letter-spacing: 3px; margin: 0; line-height: 1.15; }
#receiverShow { font-size: 11px; margin: 7px 0 0; color: #b4d6c8; }
#receiverScope { display: block; width: 100%; height: 32px; opacity: .85; }
.receiver-status { min-height: 12px; font-size: 8px; letter-spacing: 1px; }
.receiver-band { position: relative; margin: 18px 0 12px; height: 36px; background: repeating-linear-gradient(90deg, #abc5bf70 0 1px, transparent 1px 2%); background-size: 100% 8px; background-repeat: no-repeat; background-position: bottom; border-bottom: 1px solid #59706d; }
.receiver-band > div { display: flex; justify-content: space-between; color: #a4b7b0; font-size: 9px; }
.receiver-band i { position: absolute; bottom: -3px; width: 2px; height: 28px; background: #ffb66e; box-shadow: 0 0 8px #ffb66e80; transition: left .12s; }
.receiver-controls { display: flex; align-items: center; justify-content: space-around; gap: 15px; margin: 10px 0 15px; }
.receiver-knob-group { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 145px; }
.receiver-knob-group label { color: #cdd9d4; font-size: 10px; letter-spacing: 3px; }
.receiver-knob-group output { font-size: 8px; letter-spacing: .6px; color: #98aca4; }
.receiver-knob { width: 92px; height: 92px; border-radius: 50%; position: relative; background: repeating-conic-gradient(#53615f 0deg 2deg, #1a2527 3deg 8deg); border: 5px solid #10191c; box-shadow: 0 6px 9px #0009, 0 -1px 0 #78887d, 0 0 0 1px #5b6b6150; }
.receiver-knob::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: linear-gradient(140deg, #bbc5b847, #07131999 80%), url("../assets/images/radio/worn-avionics-v1.webp") 20% 30% / 260px; box-shadow: inset 0 1px 2px #e1d6b4a0, inset 0 -3px 8px #0008; }
.receiver-knob span { position: absolute; inset: 9px; transform: rotate(var(--knob-angle, 0deg)); z-index: 1; }
.receiver-knob span::after { content: ""; position: absolute; left: calc(50% - 2px); top: 2px; width: 4px; height: 16px; border-radius: 2px; background: #ffbb79; box-shadow: 0 0 6px #ffb66e80; }
.receiver-knob.small { width: 76px; height: 76px; }
.receiver-knob:focus-within { outline: 2px solid #adffe0; outline-offset: 5px; }
.receiver-knob input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ns-resize; z-index: 2; touch-action: none; margin: 0; }
.receiver-switches { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; max-width: 245px; }
.receiver-switches button { border: 1px solid #929d8c; border-bottom: 3px solid #0a1213; padding: 11px 14px; font-size: 10px !important; background: linear-gradient(#7a857d55, #122022aa), url("../assets/images/radio/worn-avionics-v1.webp") 75% 30% / 280px; border-radius: 5px; box-shadow: inset 0 1px 1px #d1cab647, 0 3px 6px #0009; text-shadow: 0 1px 2px #000; }
.receiver-switches button:active { transform: translateY(2px); box-shadow: none; }
#receiverPower i { display: inline-block; width: 6px; height: 6px; background: #4b6055; border-radius: 50%; margin-right: 6px; }
#receiverPower[aria-pressed=true] i { background: #9bffd1; box-shadow: 0 0 9px #9bffd1; }
.receiver-preset-label { display: flex; justify-content: space-between; color: #b5c1b7; letter-spacing: 2px; font-size: 8px; margin: 15px 0 9px; text-shadow: 0 1px 2px #000; }
#receiverPresets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
#receiverPresets button { text-align: left; min-width: 0; border: 1px solid #4c635c; border-bottom: 4px solid #08120e; border-radius: 7px; background: linear-gradient(#2f423f, #172926); padding: 12px; box-shadow: 0 3px 5px #0005; }
#receiverPresets span { display: block; font-size: 9px; color: #a7bcb1; letter-spacing: 1px; }
#receiverPresets strong { display: block; font-size: 12px; letter-spacing: 1px; margin: 7px 0; }
#receiverPresets small { display: block; font-size: 7px; color: #99aaa5; letter-spacing: .7px; }
#receiverPresets button[aria-pressed=true] { border-color: var(--station-color); background: linear-gradient(#42594d, #243d32); box-shadow: inset 0 0 14px #a8ffbb0c; }
#receiverPresets button[aria-pressed=true] strong { color: var(--station-color); }
.receiver-caption { margin-top: 17px; padding: 12px 15px; background: #09171890; border-left: 2px solid var(--station-color); min-height: 99px; }
#receiverSpeaker { font-size: 9px; letter-spacing: 1.5px; color: var(--station-color); text-transform: uppercase; }
#receiverCaption { font: 12px/1.55 system-ui, sans-serif; margin: 5px 0 0; color: #c3d2d0; }
.receiver-transcript { font: 12px/1.6 system-ui, sans-serif; margin-top: 8px; color: #bdcfca; }
.receiver-transcript summary { cursor: pointer; font-size: 10px; }
.receiver-setlist { margin-top: 9px; font: 11px/1.5 system-ui, sans-serif; color: #d8d8bb; }
.receiver-setlist summary { cursor: pointer; }
#receiverTracks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 9px 0; }
#receiverTracks button { padding: 9px; border: 1px solid #647062; border-radius: 4px; background: #112327; text-align: left; font-size: 10px; }
#receiverTracks button[aria-pressed=true] { color: var(--station-color); border-color: var(--station-color); }
#spaceRadio [hidden] { display: none !important; }
@media(max-width: 650px) { #receiverPresets { grid-template-columns: repeat(2, 1fr); } #receiverTracks { grid-template-columns: 1fr; } }
#receiverTranscript { max-height: 180px; overflow: auto; padding-right: 10px; }
.receiver-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 15px; }
.receiver-footer > span { font-size: 7px; color: #b2c0b8; letter-spacing: .6px; text-shadow: 0 1px 2px #000; }
.receiver-footer i { margin: 0 6px; font-style: normal; }
#receiverFly { background: #db9a64; color: #16201e; padding: 10px 14px; border: 0; border-radius: 4px; font-size: 10px; font-weight: bold; white-space: nowrap; }
#receiverFly kbd { margin-left: 7px; border: 1px solid #263c3270; padding: 1px 4px; }
.receiver-off .receiver-screen { filter: saturate(.2); opacity: .6; }
#receiverLaunch { position: absolute; bottom: 46px; left: calc(50% - 190px); z-index: 120; border: 1px solid #567c7870; color: #b8d4cc; border-radius: 5px; padding: 7px 12px; background: #0a1b26d9; font: 10px "Courier New", monospace; letter-spacing: 1px; cursor: pointer; }
#receiverLaunch.on-air { color: #a8f8d7; border-color: #88edc660; }
@media(max-width: 650px) { .receiver-shell { padding: 18px; } .receiver-main { grid-template-columns: 1fr; } .receiver-speaker { display: none; } .receiver-knob-group { min-width: 100px; } .receiver-switches { gap: 5px; } .receiver-switches button { padding: 8px; font-size: 9px !important; } .receiver-controls { gap: 4px; } #receiverPresets button { padding: 9px 7px; } #receiverPresets strong { font-size: 10px; letter-spacing: .3px; } #receiverPresets small { font-size: 6px; } .receiver-hardware { font-size: 7px; } .receiver-footer { flex-wrap: wrap; } .receiver-footer > span { flex: 1; line-height: 1.8; } #receiverLaunch { left: calc(50% - 155px); padding: 6px; font-size: 8px; } }
@media(prefers-reduced-motion: reduce) { .receiver-band i { transition: none; } #spaceRadio::backdrop { backdrop-filter: none; } }
@media (min-width: 651px) and (max-height: 850px) {
  .receiver-shell { padding: 18px 28px 14px; }
  #spaceRadio .receiver-logo { width: 320px; margin: 3px 0 4px -3px; }
  .receiver-eyebrow { font-size: 8px; }
  .receiver-hardware { padding: 3px 0 9px; }
  .receiver-screen { padding: 10px 20px 8px; }
  #receiverFrequency { font-size: 54px; }
  #receiverStation { font-size: 21px; }
  #receiverScope { height: 23px; }
  .receiver-band { height: 26px; margin: 10px 0 7px; }
  .receiver-controls { margin: 5px 0 9px; }
  .receiver-knob { width: 68px; height: 68px; }
  .receiver-knob.small { width: 60px; height: 60px; }
  .receiver-knob-group { gap: 4px; }
  .receiver-preset-label { margin: 7px 0; }
  #receiverPresets button { padding: 9px 12px; }
  #receiverPresets strong { margin: 4px 0; }
  .receiver-caption { margin-top: 10px; min-height: 70px; padding: 8px 12px; }
  #receiverCaption { line-height: 1.4; max-height: 51px; overflow-y: auto; }
  .receiver-transcript { margin-top: 5px; }
  .receiver-footer { padding-top: 9px; }
}
