/* Paper radio: centered, dense ASCII cabinet. Bright splashes on paper. No dark stage. */
.field-radio {
  float: none;
  display: block;
  width: min(68ch, 100%);
  max-width: 100%;
  margin: 1.25rem auto 1.7rem;
  color: #201B0F;
  background: #F4EBD0;
  font: clamp(12px, 2.15vw, 17px)/1.05 "DejaVu Sans Mono", ui-monospace, monospace;
  letter-spacing: 0;
  box-sizing: border-box;
  padding: 14px 12px 16px;
  border: 8px solid #201B0F;
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 3px #F4EBD0,
    inset 0 0 0 6px #201B0F,
    5px 5px 0 rgba(32,27,15,.18);
  position: relative;
  overflow: hidden;
}
.field-radio * { box-sizing: border-box; }
.radio-art, .radio-grill {
  margin: 0;
  white-space: pre;
  line-height: .92;
  overflow: hidden;
  user-select: none;
}
.radio-art .radio-line, .radio-grill .radio-line { white-space: pre; line-height: .92; overflow: hidden; }
.radio-face-line { font-weight: 400; text-align: center; }
.radio-row { margin: .2rem .15rem; background: rgba(232,220,190,.45); border-radius: 0; }
.radio-title-card, .radio-display {
  display: flex; align-items: center; gap: 1ch; min-width: 0; width: 100%;
  padding: .45rem .8ch; text-decoration: none; color: #201B0F; background: #FBF5DF;
  border: 2px solid #201B0F; min-height: 48px; box-sizing: border-box;
}
.radio-title-card { cursor: default; }
.radio-title-card.is-linked { cursor: pointer; }
.radio-title-card.is-linked::after {
  content: "→"; flex: 0 0 auto; font-weight: 800; font-size: 1.05em;
}
.radio-title-card.is-linked:hover,
.radio-title-card.is-linked:focus-visible {
  background: #FAD50C; color: #201B0F;
  outline: 3px solid #201B0F; outline-offset: 1px;
}
.radio-title-card.is-linked:hover #radio-title,
.radio-title-card.is-linked:focus-visible #radio-title { color: #201B0F; }
.radio-lamp { color: #9b4e2e; flex: 0 0 auto; }
.is-playing .radio-lamp { color: #4b643c; }
.radio-window { overflow: hidden; min-width: 0; flex: 1; }
#radio-title { display: block; width: max-content; min-width: 100%; white-space: nowrap; animation: field-marquee 24s linear infinite; color: #201B0F; }
.field-radio:not(.is-playing) #radio-title { animation-play-state: paused; }
.radio-controls { display: flex; justify-content: space-evenly; align-items: center; gap: 10px; padding: .45rem .35rem; }
.radio-controls button {
  font: inherit; font-size: 1.35em; font-weight: 800;
  min-width: 52px; min-height: 52px; padding: 0 .4rem;
  border: 3px solid #201B0F; border-radius: 3px;
  background: #FCAF2C; color: #201B0F; cursor: pointer;
  box-shadow: 3px 3px 0 #201B0F;
}
.radio-controls #radio-back { background: #7ABEA8; }
.radio-controls #radio-play { background: #FA522C; min-width: 64px; }
.radio-controls #radio-next { background: #FAD50C; }
.radio-controls button:disabled { opacity: .4; cursor: default; box-shadow: 2px 2px 0 #201B0F; }
.radio-controls button:focus-visible { outline: 3px solid #201B0F; outline-offset: 2px; }
.radio-controls button:hover:not(:disabled) { filter: brightness(1.06); }
.radio-controls button:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 #201B0F;
}
.radio-status { font: 11px/1.5 ui-monospace, monospace !important; margin: .5rem 1ch 0 !important; color: #333 !important; max-width: none; text-align: center; }
#fr .hero .big { font-size: clamp(2.2rem, 5vw, 5rem); line-height: 1.08; letter-spacing: .035em; max-width: 12ch; }
#fr .hero::after { content: ""; display: block; clear: both; }
#fr .rule { clear: both; }
#field-radio-slot { width: 100%; }
#field-radio-dock:empty { display: none; }
@keyframes field-marquee { 0%,15% { transform: translateX(0); } 85%,100% { transform: translateX(min(0px, calc(-100% + 36ch))); } }

.radio-grain, .radio-grain .wg { color: #8b5a2b; }
.radio-grain .wg {
  display: inline;
  animation: wood-grain-shift 32s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.28s);
}
@keyframes wood-grain-shift {
  0%, 100% { color: #c4a35a; }
  16%      { color: #7a4e2d; }
  33%      { color: #a85a3a; }
  50%      { color: #d2b48c; }
  66%      { color: #8a8680; }
  83%      { color: #6b2e2a; }
}
.radio-face-line .wg { font-weight: 400; }

/* Color splash: glyph tint only, paper stays light */
.radio-grain .wg.is-splash { animation: none; }

@media (max-width: 700px) {
  .field-radio { float: none; margin: 1rem auto 1.4rem; width: 100%; font-size: clamp(10px, 3.05vw, 13px); }
  #fr .hero .big { max-width: none; }
  .radio-status { font-size: 11px !important; }
}
/* Compact when parked on album/song views */
#fr:not(.fr-home) .field-radio {
  width: min(52ch, 100%);
  font-size: clamp(11px, 1.8vw, 14px);
  margin: .7rem auto 1rem;
}
@media (prefers-reduced-motion: reduce) {
  #radio-title { animation: none; white-space: normal; width: auto; overflow-wrap: anywhere; }
  .radio-grain, .radio-grain .wg { animation: none !important; color: #8b5a2b !important; }
  .radio-controls button:hover:not(:disabled) { filter: none; }
  .radio-controls button:active:not(:disabled) { transform: none; box-shadow: inset 0 3px 0 rgba(32,27,15,.25); }
}

#radio-title { color: #201B0F; }
