#rh-fm{--gold:#ffbb64;background:radial-gradient(ellipse at 50% 16%,#324555,#101a24 55%,#0b1118);color:#f3f5f8;padding:clamp(18px,4vw,58px) max(16px,4vw);font:16px/1.45 system-ui,sans-serif;text-align:left;overflow:hidden;color-scheme:dark}
#rh-fm *{box-sizing:border-box}#rh-fm header,#rh-fm .console{max-width:1180px;margin:auto}#rh-fm header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}#rh-fm small{color:var(--gold);font-weight:700;letter-spacing:.14em}#rh-fm h1{font-size:clamp(24px,4vw,48px);color:inherit;margin:3px 0}#rh-fm select,#rh-fm button{font:inherit;color:inherit;cursor:pointer}#rh-fm select,#rh-fm .transport button{background:#24323d;border:1px solid #536372;border-radius:8px;padding:7px 12px}
#rh-fm .stage{height:clamp(235px,31vw,350px);position:relative;perspective:950px;touch-action:pan-y;user-select:none;cursor:grab}#rh-fm .stage:active{cursor:grabbing}
#rh-fm .card{width:clamp(148px,18vw,222px);position:absolute;left:50%;top:50%;padding:0;overflow:hidden;border:0;border-radius:14px;background:#243541;box-shadow:0 9px 24px #0009;text-align:left;transition:transform .24s ease-out,opacity .24s;line-height:1.25}
#rh-fm .card img{display:block;width:100%;aspect-ratio:1.35;object-fit:cover;background:#182630;pointer-events:none}#rh-fm .card img.logo{object-fit:contain;padding:15px;background:#eef1f2}#rh-fm .caption{display:grid;padding:9px 12px;gap:3px}#rh-fm .caption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82em}#rh-fm .caption b{color:var(--gold)}
#rh-fm .console{text-align:center}#rh-fm .dial{background:repeating-linear-gradient(90deg,#76848e 0 1px,transparent 1px calc(100% / 105)) top left/100% 8px no-repeat;padding-top:4px;margin:0 8px}#rh-fm input{width:100%;margin:0;height:20px;cursor:ew-resize;accent-color:var(--gold)}#rh-fm .marks{height:1.6em;position:relative;font:12px monospace;color:#c6d2dc}#rh-fm .marks span{position:absolute;transform:translateX(-50%)}#rh-fm .readout strong{font:700 clamp(40px,6vw,74px)/1.2 system-ui;font-variant-numeric:tabular-nums}#rh-fm .station,#rh-fm .transport,#fm-links{display:flex;gap:12px;align-items:center;justify-content:center}#rh-fm .station{margin:10px 0 16px}#fm-logo{width:54px;height:54px;object-fit:contain;border-radius:10px;background:white;padding:4px}#rh-fm h2{color:inherit;margin:0;font-size:22px}#rh-fm #fm-play{background:#ffbb64;color:#18212b}#rh-fm button:disabled{opacity:.5;cursor:default}#fm-status{min-height:1.4em;color:#cad7df;margin:8px}#fm-links{flex-wrap:wrap}#fm-links a{color:#f3d6a8} @media(prefers-reduced-motion:reduce){#rh-fm .card{transition:none}}

/* The cards and the printed scale share the same cabinet width. */
#rh-fm header,#rh-fm .stage,#rh-fm .console{width:100%;max-width:1400px;margin-inline:auto}
#rh-fm .stage{overflow:hidden;height:clamp(245px,27vw,330px)}
#rh-fm .card{width:clamp(176px,21vw,268px);box-shadow:0 5px 16px #0006}
#rh-fm .card img{aspect-ratio:1.95}
#rh-fm .caption b{font-size:1.12em}
#rh-fm .readout strong{font-size:clamp(48px,6.6vw,84px)}
#rh-fm .dial{--knob:clamp(48px,6vw,76px);position:relative;margin:0;border:1px solid #58636b;border-radius:10px;padding:0;
background:linear-gradient(180deg,#131b21,#202a31 62%,#151c20);box-shadow:inset 0 3px 12px #0008}
#rh-fm .marks{position:relative;height:85px;margin-inline:calc(var(--knob) / 2);pointer-events:none;color:#f4d59d;
background:repeating-linear-gradient(90deg,#bca782 0 1px,transparent 1px calc(100% / 210)) left 27px/100% 7px no-repeat,
repeating-linear-gradient(90deg,#e4ca9b 0 1px,transparent 1px calc(100% / 21)) left 19px/100% 15px no-repeat}
#rh-fm .marks span{top:39px;font:bold clamp(11px,1.2vw,16px) monospace}
#rh-fm .marks span::before{content:'';position:absolute;left:50%;width:2px;height:25px;bottom:calc(100% + 5px);background:#f0d4a6}
#rh-fm .dial input{appearance:none;-webkit-appearance:none;position:absolute;z-index:2;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:grab}
#rh-fm .dial input:active{cursor:grabbing}
#rh-fm .dial input::-webkit-slider-runnable-track{height:100%;background:none;border:0}
#rh-fm .dial input::-moz-range-track{height:100%;background:none;border:0}
#rh-fm .dial input::-webkit-slider-thumb{appearance:none;box-sizing:border-box;width:var(--knob);height:78px;margin:3px 0 0;border:0;border-radius:5px;
background:linear-gradient(90deg,transparent calc(50% - 1px),#ffb653 calc(50% - 1px) calc(50% + 1px),transparent calc(50% + 1px)) center top/100% 57px no-repeat,
repeating-linear-gradient(90deg,#4c4843 0 2px,#b4a99c 2px 4px,#746e68 4px 6px) center bottom/100% 20px no-repeat;
filter:drop-shadow(0 2px 2px #0009);cursor:inherit}
#rh-fm .dial input::-moz-range-thumb{appearance:none;box-sizing:border-box;width:var(--knob);height:78px;margin:3px 0 0;border:0;border-radius:5px;
background:linear-gradient(90deg,transparent calc(50% - 1px),#ffb653 calc(50% - 1px) calc(50% + 1px),transparent calc(50% + 1px)) center top/100% 57px no-repeat,
repeating-linear-gradient(90deg,#4c4843 0 2px,#b4a99c 2px 4px,#746e68 4px 6px) center bottom/100% 20px no-repeat;
filter:drop-shadow(0 2px 2px #0009);cursor:inherit}

/* Extend the backdrop into the gap under the site header. */
#rh-fm{box-shadow:0 -100px 0 #101a24;padding-top:clamp(8px,1.2vw,18px)}
#rh-fm h1{font-size:clamp(20px,2.3vw,32px);font-weight:620;letter-spacing:-.025em}
#rh-fm .stage{--card-width:clamp(176px,21vw,268px);height:calc(var(--card-width) * 1.5 + 44px)}
#rh-fm .card{width:var(--card-width);aspect-ratio:2/3;display:grid;grid-template-rows:minmax(0,1fr) auto}
#rh-fm .card[hidden]{display:none}
#rh-fm .card img{width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:cover}
#rh-fm .card img.logo{object-fit:contain}
#rh-fm .card .caption{min-height:0;gap:2px;padding:7px 10px}
#rh-fm .caption strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#rh-fm .station{display:flex;flex-wrap:nowrap;gap:clamp(6px,1.25vw,18px);align-items:center;margin:6px auto}
#rh-fm .identity{text-align:left;min-width:0;max-width:32em}
#rh-fm .identity h2{font-size:clamp(18px,2.6vw,36px);line-height:1.15;overflow-wrap:anywhere}
#rh-fm #fm-logo{width:clamp(57px,8vw,105px);height:clamp(57px,8vw,105px);padding:0;border:0;border-radius:0;background:transparent;filter:drop-shadow(0 3px 6px #0008)}
#rh-fm #fm-play{display:grid;place-items:center;flex:none;width:clamp(46px,5vw,64px);height:clamp(46px,5vw,64px);border:0;border-radius:50%;font-size:26px;line-height:1}
#rh-fm #fm-links{flex-wrap:nowrap;gap:2px}
#rh-fm #fm-links a{display:grid;place-items:center;min-width:26px;height:36px;text-decoration:none;font-size:19px}
