/* v62: Same capsule design and height as the existing loop button. */
.book-ready .book-radio-toggle,
.book-radio-toggle {
  -webkit-appearance:none;
  appearance:none;
  box-sizing:border-box;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:62px;
  min-width:62px;
  height:var(--book-loop-height,36px);
  min-height:var(--book-loop-height,36px);
  padding:0 13px;
  margin:0;
  border:1px solid #ffffff35;
  border-radius:20px;
  background:#ffffff10;
  color:#91e6cf;
  box-shadow:none;
  outline-offset:3px;
  vertical-align:middle;
  line-height:1;
  cursor:pointer;
  white-space:nowrap;
  transition:background .16s,border-color .16s,color .16s;
}
.book-ready .book-radio-toggle:hover{background:#ffffff20;border-color:#79e9c0}
.book-ready .book-radio-toggle:focus-visible{outline:2px solid #e3c681}
.book-ready .book-radio-toggle[aria-pressed="true"]{
  background:#154e44;
  color:#b7ffdf;
  border-color:#79e9c0;
  box-shadow:none;
}
.book-radio-toggle svg{display:block;width:21px;height:21px;flex-shrink:0;overflow:visible}
.book-radio-toggle .book-radio-on{display:none}
.book-radio-toggle[aria-pressed="true"] .book-radio-on{display:block}
.book-radio-toggle[aria-pressed="true"] .book-radio-off{display:none}
@media (max-width:600px){
  .book-ready .book-radio-toggle,.book-radio-toggle{width:48px;min-width:48px;padding:0 8px}
  .book-radio-toggle svg{width:18px;height:18px}
}

/* v64: YouTube remains fully visible, in a separate inline row below the header.
   The original header height never changes and there is no overlapping popover. */
.book-radio-live-anchor{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-width:0}
.book-radio-youtube-dock{box-sizing:border-box;display:flex;align-items:center;justify-content:center;
 width:100%;padding:9px 12px;background:#102b35;border-bottom:1px solid #80d6c060;min-height:220px}
.book-radio-youtube-dock[hidden]{display:none!important}
.book-radio-youtube-panel{position:relative;box-sizing:border-box;width:200px;height:200px;min-width:200px;min-height:200px;
 overflow:hidden;background:#081e28;border:1px solid #78d3bc;border-radius:10px;color:#e9f7f1}
.book-radio-youtube-panel[hidden]{display:none!important}
.book-radio-youtube-panel iframe,.book-radio-youtube-panel #bookRadioYtMount{display:block;width:200px;height:200px;border:0}
.book-radio-youtube-panel .book-radio-youtube-start{position:absolute;bottom:5px;left:5px;right:5px;
 z-index:2;padding:6px;border:1px solid #80e9c9;border-radius:7px;
 background:rgba(12,48,53,.96);color:#e3fff3;font:600 11px/1.3 system-ui,sans-serif;cursor:pointer}
.book-radio-youtube-panel .book-radio-youtube-start[hidden]{display:none!important}
.book-radio-youtube-panel .book-radio-youtube-close{position:absolute;z-index:3;top:5px;right:5px;
 width:27px;height:27px;border:1px solid #b1e5db;border-radius:50%;color:#fff;background:rgba(0,20,28,.9);
 font:20px/20px sans-serif;cursor:pointer}
.book-radio-youtube-panel .book-radio-youtube-message{position:absolute;z-index:2;left:5px;right:5px;bottom:5px;padding:5px;
 background:rgba(6,24,34,.93);border-radius:5px;font:11px/1.3 system-ui,sans-serif}
.book-radio-youtube-panel .book-radio-youtube-message[hidden]{display:none!important}
@media(max-width:600px){.book-radio-live-anchor{gap:3px}}

/* v67: Keep the embedded YouTube player minimized during live listening. */
.book-radio-youtube-dock.book-radio-youtube-minimized{
 position:absolute!important;width:1px!important;height:1px!important;
 min-height:0!important;padding:0!important;margin:0!important;
 overflow:hidden!important;clip-path:inset(50%)!important;
 border:0!important;pointer-events:none!important;
}
.book-radio-youtube-minimized .book-radio-youtube-panel{
 position:absolute!important;left:0;top:0;pointer-events:none;
}
