/* A quiet header entry. The soundtrack occupies space only when opened. */
.radio-launcher { display: flex; align-items: center; flex-shrink: 0; gap: 2px; }
.radio-launcher button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 8px; border: 0; background: transparent;
  color: var(--bone-dim); font-family: var(--font-mono); font-size: var(--t-code); cursor: pointer;
}
.radio-launcher button:hover, .radio-launcher[data-playing] [data-radio-toggle] { color: var(--amber); }
.radio-launcher svg { width: 17px; height: 17px; }
.radio-launcher [data-radio-header-pause] { min-width: 36px; }
.radio-panel {
  position: fixed; inset: calc(var(--header-h) + 12px) 24px auto auto; margin: 0;
  width: 440px; max-width: calc(100vw - 32px); padding: 0;
  max-height: calc(100dvh - var(--header-h) - 32px);
  color: var(--bone); background: var(--ink); border: 1px solid var(--grey-mid);
  border-radius: 4px; box-shadow: 0 18px 60px rgb(0 0 0 / 0.35);
  font-size: 1rem; overflow: hidden;
}
.radio-panel[open] { display: flex; flex-direction: column; }
.radio-panel__head, .radio-now, .radio-library__heading { flex-shrink: 0; }
.radio-panel::backdrop { background: rgb(0 0 0 / 0.35); }
html:has(.radio-panel[open]) { overflow: hidden; }
.radio-panel button, .radio-panel a, .radio-panel summary { -webkit-tap-highlight-color: transparent; }
.radio-panel button { cursor: pointer; }
.radio-panel button, .radio-panel input { font: inherit; }
.radio-panel svg { width: 18px; height: 18px; flex-shrink: 0; }
.radio-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 18px; }
.radio-panel__head h2 { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.2; }
.radio-eyebrow { margin: 0 0 7px; color: var(--bone-dim); font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; }
.radio-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; color: var(--bone-dim); border-radius: 3px;
}
.radio-icon:hover { color: var(--amber); background: var(--grey-dark); }
.radio-now { padding: 18px 24px 14px; background: var(--ink-env); border-block: 1px solid var(--grey-dark); }
.radio-now__title { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.2; }
.radio-now [data-radio-state] { color: var(--amber); }
.radio-transport { display: flex; gap: 6px; align-items: center; position: relative; }
.radio-play { min-height: 44px; min-width: 88px; border: 0; border-radius: 3px; background: var(--bone); color: var(--ink); padding: 8px 18px; }
.radio-play:hover { background: var(--amber); }
.radio-volume { margin-left: auto; }
.radio-volume summary { display: flex; align-items: center; min-height: 44px; padding: 0 8px; cursor: pointer; color: var(--bone-dim); list-style: none; }
.radio-volume summary::-webkit-details-marker { display: none; }
.radio-volume[open] summary { color: var(--amber); }
.radio-volume__controls { position: absolute; z-index: 1; top: 100%; right: 0; display: flex; gap: 12px; align-items: center; width: 220px; padding: 8px 12px; background: var(--ink); border: 1px solid var(--grey-mid); }
.radio-volume__controls button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--bone); }
.radio-panel input[type="range"] { display: block; width: 100%; min-width: 0; height: 24px; margin: 8px 0 0; accent-color: var(--amber); }
.radio-volume__controls input[type="range"] { margin: 0; }
.radio-time { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.65rem; color: var(--bone-dim); }
.radio-library__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 24px 8px; }
.radio-library__heading h3 { font-size: 1.1rem; }
.radio-library__heading > span { font-family: var(--font-mono); font-size: 0.65rem; color: var(--bone-dim); }
.radio-library { flex: 1 1 auto; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 16px 12px; }
.radio-songs { list-style: none; padding: 0; margin: 0; }
.radio-station { padding: 16px 8px 6px; }
.radio-station h4 { margin: 0; color: var(--bone-dim); font-family: var(--font-mono); font-size: 0.65rem; font-weight: normal; letter-spacing: 0.12em; }
.radio-song { display: flex; align-items: center; border-bottom: 1px solid var(--grey-dark); border-radius: 3px; }
.radio-song:has([aria-current="true"]) { background: var(--ink-env); }
.radio-song__select { display: flex; align-items: center; gap: 12px; text-align: left; flex: 1; min-width: 0; min-height: 48px; padding: 8px; border: 0; color: var(--bone); background: transparent; }
.radio-song__select:hover, .radio-song__select[aria-current="true"] { color: var(--amber); }
.radio-song__number { color: var(--bone-dim); font-family: var(--font-mono); font-size: 0.65rem; }
.radio-song__select[aria-current="true"] .radio-song__number { color: var(--amber); }
.radio-panel__foot { flex-shrink: 0; border-top: 1px solid var(--grey-dark); padding: 12px 24px; color: var(--bone-dim); font-size: 0.85rem; }
.radio-panel__foot p { margin: 0; }
.radio-panel [data-radio-status]:not(:empty) { margin-top: 8px; color: var(--bone); }
.radio-panel [data-radio-link-fallback] { margin-top: 8px; }
.radio-panel [data-radio-link] { display: block; width: 100%; padding: 8px; background: var(--ink); color: var(--bone); border: 1px solid var(--grey-mid); }
@media (max-width: 1279px) { .site-header:has(.radio-launcher) .site-header__nav { display: none; } }
@media (max-width: 600px) {
  .site-header:has(.radio-launcher) { gap: 4px; padding-inline: 12px; }
  .site-header:has(.radio-launcher) .site-header__brand .lockup { width: 80px; }
  .site-header:has(.radio-launcher) > .button { padding-inline: 12px; font-size: 0.8rem; }
  .radio-launcher button { padding-inline: 5px; }
  .radio-launcher [data-radio-header-pause] { min-width: 32px; }
  .radio-panel { inset: auto 0 0; width: 100%; max-width: 100%; max-height: 85dvh; border-radius: 12px 12px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .radio-panel__head { padding: 18px 20px 14px; }
  .radio-now { padding-inline: 20px; }
  .radio-library__heading { padding-inline: 20px; }
  .radio-panel__foot { padding-inline: 20px; }
}
@media (max-height: 550px) {
  .radio-panel { inset: 8px 8px auto auto; width: min(440px, calc(100% - 16px)); max-height: calc(100dvh - 16px); overflow-y: auto; }
  .radio-panel__head { position: sticky; top: 0; z-index: 2; padding-block: 8px; background: var(--ink); }
  .radio-panel__head .radio-eyebrow { display: none; }
  .radio-panel__head h2 { font-size: 1.3rem; }
  .radio-now { padding-block: 8px; }
  .radio-now__title { margin-bottom: 4px; }
  .radio-library__heading { padding-block: 8px 4px; }
  .radio-library { min-height: 60px; }
  .radio-panel__foot { padding-block: 8px; }
}
