body.radio-dock-active { padding-bottom: 5rem; }

.pasture-fm {
  position: fixed;
  right: .65rem;
  bottom: .65rem;
  right: max(.65rem, env(safe-area-inset-right));
  bottom: max(.65rem, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .65rem;
  background: var(--paper);
  color: var(--plum);
  border: 2px solid currentColor;
  box-shadow: 4px 4px 0 var(--magenta);
}
[data-pasture-theme="dark"] .pasture-fm {
  border-color: var(--magenta);
  box-shadow: 4px 4px 0 var(--lime);
}
.pasture-fm[hidden] { display: none; }
.pasture-fm h2 {
  margin: 0;
  font: 800 .85rem/1.3 monospace;
  text-transform: uppercase;
}
.pasture-fm-controls { display: flex; align-items: center; gap: .55rem; }
.pasture-fm-controls button { min-width: 4.7rem; }
.radio-options { position: static; font-size: .85rem; }
.radio-options summary { cursor: pointer; }
.radio-settings {
  position: absolute;
  right: -2px;
  bottom: calc(100% + .35rem);
  width: min(17rem, calc(100vw - 1.6rem));
  padding: .65rem;
  border: 2px solid currentColor;
  background: var(--paper);
  display: grid;
  gap: .55rem;
}
.radio-settings label { display: flex; align-items: center; gap: .55rem; }
.radio-track select { min-width: 0; max-width: 100%; font: inherit; }
.radio-volume input { width: 7rem; accent-color: var(--magenta); }
#radio-status {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 100%;
  padding: .6rem;
  background: var(--paper);
  border: 2px solid currentColor;
  font-size: .85rem;
}
.pasture-fm:has(.radio-options[open]) #radio-status { bottom: calc(100% + 6rem); }
