/* Relief: one neutral moulded instrument. Shared receiver controls and audio own behaviour. */
html[data-theme=relief]:not([data-mini=true]){color-scheme:light;--relief-paper:#f5f5f5;--relief-ink:#272727;--relief-recess:inset 3px 4px 9px #0000000c,inset -3px -3px 8px #ffffff,0 1px 0 #ffffff}
html[data-theme=relief]:not([data-mini=true]) #radio-app{--bg:#f5f5f5;--surface:#f5f5f5;--raised:#e7e7e7;--ink:var(--relief-ink);--muted:#5b5b5b;--line:#d3d3d3;--control:#272727;--on-control:#fff;background:linear-gradient(125deg,#fafafa,#f2f2f2 80%)!important;color:var(--relief-ink);font-family:"Krapp Archivo",Arial,sans-serif;container-type:size}
html[data-theme=relief] #radio-app .app-heading{padding:18px 24px!important;border-bottom:0;min-height:72px}
html[data-theme=relief] .app-heading .icon-button{border-radius:50%;color:#484848;transition:box-shadow .16s,transform .16s;background:transparent}
html[data-theme=relief] .app-heading .icon-button:hover{color:#151515;background:#f6f6f6;box-shadow:3px 3px 8px #0000000c,-3px -3px 8px #fff}
html[data-theme=relief] #radio-app #edition-display{padding:12px 28px 8px;gap:10px;display:grid;grid-template-rows:18px clamp(40px,8cqh,68px) minmax(100px,1fr) auto 44px;min-height:0;overflow:hidden}
.relief-meta{display:flex;justify-content:space-between;align-items:center;font:11px "IBM Plex Mono",monospace;color:#666;letter-spacing:.02em}
.relief-live{display:flex;align-items:center;gap:7px}.relief-live i{width:5px;height:5px;border-radius:50%;background:#b0b0b0;box-shadow:0 0 0 3px #00000003}
[data-edition=relief][data-playback=playing] .relief-live i{background:#b98a65;box-shadow:0 0 7px #c58b5c33}
.relief-glass{position:relative;border-radius:12px;background:linear-gradient(135deg,#e5e5e5,#ededed);box-shadow:var(--relief-recess);border:1px solid #fff9;overflow:hidden;isolation:isolate}
.relief-glass::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(155deg,#ffffff5c,transparent 50%);box-shadow:inset 0 1px 3px #00000008;border-radius:inherit}
.relief-grid{position:absolute;inset:12px 14px;background-image:linear-gradient(#0000000a 1px,transparent 1px),linear-gradient(90deg,#00000008 1px,transparent 1px);background-size:100% 16px,38px 100%}
.relief-spectrum{position:absolute;inset:12px 17px;display:flex;align-items:flex-end;gap:3px}
.relief-spectrum i{height:100%;flex:1;background:#969696;border-radius:2px 2px 0 0;transform-origin:bottom;transform:scaleY(calc(.035 + var(--relief-level,0)*.85));opacity:.64;transition:transform 65ms linear}
.relief-zero{position:absolute;left:14px;right:14px;bottom:12px;height:1px;background:#78787844}
.relief-instrument{min-height:0;display:grid;place-items:center;padding:0}
[data-edition=relief] .edition-dial{--dial-angle:-135deg;color:#626262;position:relative;flex:none;margin:0}
.relief-instrument .edition-dial{width:min(78cqw,34cqh,270px);height:auto;aspect-ratio:1/1.13;max-height:100%;max-width:100%;min-width:0;min-height:0}
[data-edition=relief] .dial-scale{inset:0;width:100%;height:100%;opacity:.8;stroke:#7f7f7f;stroke-width:.65}
[data-edition=relief] .dial-scale text{font:7px Arial,sans-serif;fill:#777}
[data-edition=relief] .dial-grip{left:15%;top:15%;width:70%;aspect-ratio:1;cursor:grab;touch-action:none;background:linear-gradient(135deg,#e6e6e6,#bfbfbf);border:1px solid #b4b4b4;box-shadow:0 1px 2px #0002,4px 10px 15px #0002,-5px -6px 14px #fff,inset 0 1px 1px #fff}
[data-edition=relief] .dial-grip::before{content:"";position:absolute;inset:2px;border-radius:inherit;border:1px solid #ffffffc9;box-shadow:0 0 0 1px #00000013}
[data-edition=relief] .dial-cap{inset:4px;background:radial-gradient(ellipse at 31% 12%,#fff,#fafafa 45%,#eeeeee 90%);box-shadow:inset 0 1px 2px #fff,inset 0 -1px 1px #00000010;transition:transform .12s ease-out}
[data-edition=relief] .dial-cap i{width:4px;height:10px;left:calc(50% - 2px);top:12%;border-radius:2px;background:#3b3b3b;box-shadow:0 1px 1px #fff}
[data-edition=relief] .dial-label{bottom:-4px;justify-content:center;gap:9px;font-size:12px;line-height:18px;padding:0 2px;color:#626262}
[data-edition=relief] .dial-label output{font-family:"IBM Plex Mono",monospace;color:#333}
[data-edition=relief] .dial-grip[aria-disabled=true]{opacity:.55;cursor:default;box-shadow:0 2px 4px #0001}
[data-edition=relief] .dial-grip[data-dragging]{cursor:grabbing;box-shadow:0 1px 2px #0002,2px 5px 10px #0002,-4px -4px 12px #fff}
.relief-caption{min-width:0;text-align:center;align-self:center}
.relief-caption h2{font-size:clamp(28px,8cqw,38px);font-weight:550;letter-spacing:-.05em;line-height:1.12;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.relief-caption h2 a{text-decoration:none;text-underline-offset:4px}.relief-caption h2 a:hover{text-decoration:underline;text-decoration-thickness:1px}
.relief-caption p{font-size:13px;line-height:1.4;margin:9px 0 0;color:#626262;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.relief-channel{display:block;font-size:14px;color:#555;margin-top:10px;text-underline-offset:4px}.relief-channel:hover{text-decoration:underline}
[data-edition=relief][data-media=recorded] .relief-caption h2{font-size:clamp(20px,5.8cqw,26px);-webkit-line-clamp:2;line-height:1.18}
[data-edition=relief][data-media=recorded] .relief-caption p{display:none}
.relief-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0}
.relief-bottom .edition-dial{width:94px;height:94px}
.relief-bottom .dial-grip{left:21%;top:16%;width:58%;box-shadow:1px 3px 5px #0002,-3px -3px 7px #fff}
.relief-bottom .dial-cap{inset:3px}.relief-bottom .dial-cap i{width:3px;height:6px;left:calc(50% - 1.5px)}
.relief-bottom .dial-label{font-size:11px;gap:6px;bottom:2px}.relief-bottom .dial-scale text{display:none}
html[data-theme=relief] .relief-bottom .edition-stations{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:0;background:none;border:0;font-size:14px;min-height:48px;min-width:0;color:#505050;box-shadow:none;margin:0}
html[data-theme=relief] .edition-stations svg{width:18px;height:18px;stroke-width:1.5}
html[data-theme=relief] #radio-app .player-controls{padding:14px 26px 22px!important;border:0;background:transparent}
html[data-theme=relief] #radio-app .now-playing{grid-template-columns:1fr 1.3fr 1fr;gap:14px;align-items:center}
html[data-theme=relief] #radio-app :is(.station-step,.play-button){height:58px!important;min-height:58px!important;border-radius:16px;border:1px solid #fff9;background:linear-gradient(140deg,#fafafa,#f1f1f1);color:#3c3c3c;box-shadow:4px 5px 10px #0000000d,-4px -4px 10px #fff,inset 0 1px 1px #fff;margin:0;transform:none}
html[data-theme=relief] #radio-app .play-button{background:linear-gradient(140deg,#fff,#eeeeee);box-shadow:5px 6px 12px #00000012,-5px -5px 12px #fff,inset 0 1px 1px #fff}
html[data-theme=relief] #radio-app :is(.station-step,.play-button):active{box-shadow:inset 3px 3px 7px #00000014,inset -3px -3px 7px #fff;transform:translateY(1px)}
html[data-theme=relief] #radio-app :is(.station-step,.play-button) svg{width:23px;height:23px}
html[data-theme=relief] #radio-app :focus-visible{outline:2px solid #303030;outline-offset:4px}
/* Existing podcast seek/actions occupy one compact tray, no repeated title. */
html[data-theme=relief] .recorded-controls{padding:0 0 12px;background:transparent;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px}
html[data-theme=relief] .recorded-controls[hidden]{display:none}
html[data-theme=relief] .recorded-title{grid-column:2;grid-row:1/4;align-self:center;gap:1px}
html[data-theme=relief] .recorded-title strong{display:none}
html[data-theme=relief] .recorded-title .icon-button{width:36px;height:40px;min-width:36px;background:none;color:#505050}
html[data-theme=relief] .recorded-controls input{grid-column:1;grid-row:1;height:22px;min-width:0}
html[data-theme=relief] .recorded-times{grid-column:1;grid-row:2;font-size:11px}
html[data-theme=relief] .recorded-actions{grid-column:1;grid-row:3;gap:10px}
html[data-theme=relief] .recorded-actions [data-archive]{display:none}
html[data-theme=relief] .recorded-actions button,html[data-theme=relief] .recorded-actions label{min-height:34px;font-size:12px}
@media(max-height:640px){html[data-theme=relief] #radio-app #edition-display{gap:4px;padding:4px 20px;grid-template-rows:16px 40px minmax(80px,1fr) auto 44px}.relief-instrument .edition-dial{width:min(64cqw,26cqh,140px)}}
@media(prefers-reduced-motion:reduce){[data-edition=relief] :is(.dial-cap,.relief-spectrum i){transition:none}html[data-theme=relief] #radio-app :is(.station-step,.play-button):active{transform:none}}
html[data-effects=still] [data-edition=relief] .relief-spectrum i{transform:scaleY(.035);transition:none}

html[data-theme=relief] body #player-page{padding-top:0!important}html[data-theme=relief] #radio-app :is(.station-step,.play-button){width:100%!important}
.relief-instrument .dial-label{display:flex;bottom:0;min-height:24px}.relief-instrument .dial-label output{font-size:16px}
[data-edition=relief][data-playback=playing] .relief-caption p{display:none}
.relief-instrument .dial-scale text{display:none}
.relief-caption h2 :is(a,button){display:block!important;font:inherit!important;letter-spacing:inherit!important;line-height:inherit!important}
html[data-theme=relief] .recorded-controls input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;accent-color:#656565;cursor:pointer}
html[data-theme=relief] .recorded-controls input[type=range]::-webkit-slider-runnable-track{height:3px;background:#969696;border-radius:3px;border:0;box-shadow:0 1px 0 #fff}
html[data-theme=relief] .recorded-controls input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin-top:-6.5px;border-radius:50%;background:#fafafa;border:1px solid #888;box-shadow:1px 2px 4px #0002,-1px -1px 3px #fff}
html[data-theme=relief] .recorded-controls input[type=range]::-moz-range-track{height:3px;background:#969696;border-radius:3px}
html[data-theme=relief] .recorded-controls input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fafafa;border:1px solid #888;box-shadow:1px 2px 4px #0002}

.relief-caption h2 button{padding:0;border:0;background:none;color:inherit;text-align:inherit;cursor:pointer;min-height:44px;width:100%;white-space:normal}

/* One instrument, an independent title, then the complete episode/station list. */
html[data-theme=relief] #radio-app #edition-display .relief-caption h2{font-size:clamp(21px,6.5cqw,32px)!important;line-height:1.16!important;overflow:visible;display:block;margin:0!important}
html[data-theme=relief] #radio-app .relief-caption h2 button{display:block!important;min-height:44px;line-height:inherit!important}
html[data-theme=relief] #radio-app .relief-title-copy{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.relief-bottom{justify-content:center}
[data-edition=relief] .dial-grip[data-dragging] .dial-cap{transition:none}
/* Short landscape keeps the title/list beside the instrument instead of clipping them. */
@media(max-height:480px) and (min-width:600px){
 html[data-theme=relief] #radio-app #edition-display{grid-template-columns:minmax(0,1fr) 100px;grid-template-rows:14px 32px minmax(32px,1fr) 36px;gap:4px 18px;padding:4px 20px}
 .relief-meta{grid-column:1/-1;grid-row:1}.relief-glass{grid-column:1;grid-row:2}.relief-instrument{grid-column:2;grid-row:2/5}.relief-caption{grid-column:1;grid-row:3}.relief-bottom{grid-column:1;grid-row:4}
 .relief-instrument .edition-dial{width:100px;max-height:none}.relief-instrument .dial-label{bottom:30px;z-index:1;pointer-events:none}.relief-instrument [data-dial-caption]{display:none}.relief-instrument .dial-label output{font-size:14px}
 html[data-theme=relief] #radio-app #edition-display .relief-caption h2{font-size:18px!important}.relief-caption .relief-channel{margin-top:2px;font-size:12px}
 html[data-theme=relief] #radio-app .relief-bottom .edition-stations{min-height:36px;font-size:13px}
}
@media(max-height:480px) and (min-width:600px){
 html[data-theme=relief] #radio-app>.player-controls{padding:8px 20px 12px!important}
 html[data-theme=relief] #radio-app .recorded-controls{padding:0!important}
 html[data-theme=relief] #radio-app .recorded-timeline{min-height:40px}
 html[data-theme=relief] #radio-app #edition-display .relief-caption h2{font-size:17px!important}
 html[data-theme=relief] #radio-app .relief-title-copy{-webkit-line-clamp:1}
}

/* Give the readout its own space below the painted knob, including narrow portraits. */
.relief-instrument .dial-scale{height:auto;aspect-ratio:1}
.relief-instrument .dial-grip{top:13.4%}
@media(max-height:640px){.relief-instrument .edition-dial{width:min(60cqw,24cqh,124px)}}
/* These compact rules must beat the later shared control stylesheet. */
@media(max-height:480px) and (min-width:600px){
 html[data-theme=relief] #player-page #radio-app>.app-heading{min-height:52px;padding:4px 16px!important}
 html[data-theme=relief] #player-page #radio-app>.player-controls{padding:6px 20px 8px!important}
 html[data-theme=relief] #player-page #radio-app .recorded-controls{padding:0!important}
 html[data-theme=relief] #player-page #radio-app .recorded-timeline{min-height:44px}
 html[data-theme=relief] #player-page #radio-app #edition-display{grid-template-rows:12px 24px minmax(52px,1fr) 44px}
 html[data-theme=relief] #player-page #radio-app .relief-bottom .edition-stations{min-height:44px}
 .relief-instrument .edition-dial{width:88px;aspect-ratio:1}.relief-instrument .dial-grip{top:15%}
}
/* Size the instrument against its own remaining grid slot, never the whole viewport. */
.relief-instrument{container-type:size}
.relief-instrument .edition-dial{width:min(78cqw,88cqh,270px)}
@media(max-height:640px){.relief-instrument .edition-dial{width:min(78cqw,88cqh,124px)}}
@media(max-height:480px) and (min-width:600px){.relief-instrument .edition-dial{width:min(100cqw,88cqh,88px)}}
