/* radio.css: the Studio Radio console. Original drawing in CSS and SVG (a 1940s style wooden console). */
.radio-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; margin-bottom: 2rem; }
@media (min-width: 60rem) { .radio-layout { grid-template-columns: 1.3fr 1fr; } }

.console-cabinet {
  background: linear-gradient(180deg, #8a5a2b 0%, #6b4220 60%, #5a3619 100%);
  border: 4px solid #2b1a0c; border-radius: 120px 120px 18px 18px;
  padding: 2.2rem 1.2rem 1.4rem; box-shadow: 10px 10px 0 #2b1a0c;
  max-width: 34rem; margin: 0 auto;
}
.console-top { height: 14px; margin: -1rem auto 1rem; width: 60%; border-radius: 7px; background: #c89b5e; }
.console-face { background: #f3e4c4; border: 3px solid #2b1a0c; border-radius: 80px 80px 10px 10px; padding: 1.4rem 1rem 1rem; text-align: center; color: #1d1d1f; }
.speaker-grille {
  height: 70px; margin: 0 1rem 1rem; border-radius: 40px 40px 6px 6px; border: 3px solid #2b1a0c;
  background: repeating-linear-gradient(90deg, #5a3619 0 6px, #c89b5e 6px 10px);
}
.dial-window {
  position: relative; height: 44px; margin: 0 0.5rem 1rem; border: 3px solid #2b1a0c; border-radius: 8px;
  background: #fff6d6; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
}
.dial-scale { font-family: var(--font-mono); font-size: 0.72rem; color: #1d1d1f; padding-bottom: 4px; white-space: nowrap; }
.needle { position: absolute; top: 0; bottom: 0; left: 8%; width: 4px; margin-left: -2px; background: #b8400c; transition: left 0.25s ease; }

.knob-area { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.knob { width: 120px; height: 120px; border-radius: 50%; cursor: grab; touch-action: none; }
.knob:active { cursor: grabbing; }
.knob svg { width: 100%; height: 100%; transition: transform 0.25s ease; display: block; }
.knob-ring { fill: #2b1a0c; }
.knob-body { fill: #c89b5e; stroke: #5a3619; stroke-width: 4; }
.knob-mark { fill: #1d1d1f; }
.knob:focus-visible { outline: 4px solid #1d3fcf; outline-offset: 4px; }
.knob-help { margin: 0; font-size: 0.92rem; color: #1d1d1f; }

.station-stops { list-style: none; padding: 0; margin: 0.8rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; max-width: none; }
.station-stop {
  font: inherit; font-family: var(--font-mono); font-size: 0.85rem; cursor: pointer;
  background: #fff6d6; color: #1d1d1f; border: 2px solid #2b1a0c; border-radius: 999px; padding: 0.3rem 0.7rem; min-height: 36px;
}
.station-stop[aria-pressed="true"] { background: #2b1a0c; color: #fff6d6; }

.now-playing { border: 3px solid var(--text); border-radius: var(--radius); padding: 1.2rem; background: var(--bg); }
.now-playing h2 { margin-top: 0; font-family: var(--font-mono); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--support-1); }
.station-name { font-weight: 700; margin: 0; color: var(--accent); }
.ep-title { font-family: var(--font-serif); font-size: 1.3rem; margin: 0.3rem 0; }
.now-playing audio { width: 100%; margin: 0.8rem 0; }
.source-note { font-size: 0.9rem; color: var(--muted); }

.station-list { border-top: 1px solid var(--line); padding: 0.4rem 0; }
.station-list ol { max-height: 28rem; overflow-y: auto; padding-left: 2.6rem; max-width: none; }
.ep {
  font: inherit; text-align: left; background: none; border: 0; padding: 0.2rem 0; color: var(--accent);
  text-decoration: underline; cursor: pointer;
}
.ep:hover { text-decoration-thickness: 3px; }

/* Narrow screens: let the grid columns shrink so nothing pushes past the screen edge. */
.radio-layout > * { min-width: 0; }
.dial-window { justify-content: flex-start; }
.dial-scale { display: block; width: 100%; overflow: hidden; text-align: center; }
@media (max-width: 30rem) {
  .console-cabinet { box-shadow: 5px 5px 0 #2b1a0c; padding: 1.6rem 0.7rem 1rem; }
  .dial-scale { font-size: 0.6rem; }
  .speaker-grille { margin: 0 0.3rem 1rem; }
}

/* Visible focus ring on the audio player (Chrome draws none of its own on the element). */
.now-playing audio:focus { outline: 4px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
