#b2h-player{box-sizing:border-box;position:fixed;z-index:99990;bottom:0;left:0;right:0;display:flex;align-items:center;gap:12px;padding:10px 18px;background:#171210;color:#f6e7c7;border-top:2px solid #d38b2e;box-shadow:0 -3px 16px #0005;font-family:Arial,sans-serif;min-height:78px}
#b2h-player *{box-sizing:border-box}#b2h-player .b2h-cover{width:52px;height:52px;object-fit:cover;border-radius:5px;background:#3c2b1c}#b2h-player .b2h-track{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}#b2h-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}#b2h-artist{font-size:12px;color:#dfc9a3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#b2h-station{max-width:220px;min-width:125px;background:#2c2019;color:#fff;border:1px solid #a77934;border-radius:5px;padding:9px;font-size:13px}#b2h-play{cursor:pointer;background:#df942e;color:#1a120b;border:0;border-radius:50%;width:42px;height:42px;font-size:19px;font-weight:bold;flex-shrink:0}#b2h-play:disabled{opacity:.5;cursor:not-allowed}#b2h-volume{width:95px;accent-color:#df942e}#b2h-live{color:#ff6159;font-size:12px;font-weight:bold}#b2h-status{font-size:11px;color:#e0bb82;max-width:130px}#b2h-player .b2h-station-label,#b2h-player .b2h-volume-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}body{padding-bottom:82px!important}@media(max-width:700px){#b2h-player{gap:8px;padding:9px;flex-wrap:wrap}#b2h-player .b2h-track{flex-basis:calc(100% - 65px)}#b2h-station{flex:1;max-width:none}#b2h-volume{width:65px}#b2h-status{display:none}body{padding-bottom:125px!important}}@media(max-width:380px){#b2h-player .b2h-cover{width:42px;height:42px}#b2h-volume{width:50px}}

#b2h-expand{border:1px solid #a77934;background:#2c2019;color:#f4d8a8;border-radius:6px;font-size:21px;width:35px;height:35px;cursor:pointer;flex-shrink:0}
.b2h-full[hidden]{display:none!important}
.b2h-full{position:fixed;inset:0;z-index:2147483645;display:flex;align-items:center;justify-content:center;font-family:Arial,sans-serif;color:#f9e5bf}
.b2h-full *{box-sizing:border-box}
.b2h-full-backdrop{position:absolute;inset:0;background:#000d}
.b2h-full-panel{position:relative;width:min(94vw,520px);max-height:94dvh;overflow:auto;border:1px solid #a77934;border-radius:18px;background:linear-gradient(155deg,#2d1e15,#100d0c 70%);box-shadow:0 18px 70px #000;display:flex;flex-direction:column;padding:22px;gap:14px}
.b2h-full-panel header{display:flex;justify-content:space-between;align-items:start}
.b2h-full-panel header small{color:#dda34f;letter-spacing:2px;font-size:10px}
.b2h-full-panel h2{font-size:20px;color:#fff;margin:6px 0}
#b2h-full-close{background:transparent;color:#fff;border:1px solid #8e714d;border-radius:50%;width:38px;height:38px;font-size:20px;cursor:pointer}
.b2h-full-art{text-align:center;display:flex;align-items:center;flex-direction:column;gap:9px}
#b2h-full-cover{width:min(48vw,210px);height:min(48vw,210px);object-fit:cover;border-radius:12px;box-shadow:0 6px 25px #0009}
#b2h-full-cover[hidden],#b2h-full-live[hidden]{display:none}
#b2h-full-live{color:#ff6b60;font-size:12px;font-weight:bold}
#b2h-full-title{font-size:clamp(19px,4vw,25px);color:#fff;margin:5px 0 0}
#b2h-full-artist{color:#d4b991;margin:0;font-size:14px}
.b2h-full-panel label{font-size:12px;color:#d5b98d}
#b2h-full-station{width:100%;padding:12px;border-radius:8px;border:1px solid #a77934;background:#2c2019;color:#fff;font-size:15px}
#b2h-full-play{align-self:center;background:#e49b37;border:0;border-radius:50%;height:68px;width:68px;font-size:27px;color:#17110a;cursor:pointer}
#b2h-full-volume{width:100%;accent-color:#e49b37}
#b2h-full-status{font-size:12px;text-align:center;color:#e0bb82;min-height:1em;margin:0}
.b2h-full-panel footer{text-align:center;color:#b79b75;font-size:11px;letter-spacing:1px}
body.b2h-full-open{overflow:hidden!important}
@media(max-width:700px){#b2h-expand{width:32px;height:32px;font-size:19px}.b2h-full-panel{padding:18px;gap:12px;max-height:92dvh}#b2h-full-cover{width:min(44vw,175px);height:min(44vw,175px)}}

#b2h-detach{border:1px solid #a77934;background:#2c2019;color:#f4d8a8;border-radius:6px;font-size:21px;width:35px;height:35px;cursor:pointer;flex-shrink:0}
.b2h-requests{border-top:1px solid #65482c;padding-top:14px;display:flex;flex-direction:column;gap:10px}
#b2h-requests-open{background:#382517;color:#ffddaa;border:1px solid #d49741;border-radius:9px;padding:13px;font-weight:bold;cursor:pointer}
#b2h-requests-content{display:flex;flex-direction:column;gap:9px}#b2h-requests-content[hidden]{display:none}
#b2h-requests-search{padding:11px;background:#211914;border:1px solid #98774d;border-radius:8px;color:white}
#b2h-requests-results{max-height:220px;overflow:auto;display:flex;flex-direction:column;gap:7px}
.b2h-request-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px;border-bottom:1px solid #4c3624;font-size:12px}
.b2h-request-row button{background:#e49b37;color:#17110a;border:0;border-radius:5px;padding:7px;cursor:pointer}
@media(max-width:700px){#b2h-detach{width:32px;height:32px;font-size:19px}}

/* V0.3.10 LAB — isolated full-player geometry / no nested player in popup */
.b2h-full{width:100vw;max-width:100%;height:100dvh;overflow:hidden}
.b2h-full-panel{min-width:0;max-width:calc(100vw - 24px);width:min(94vw,520px);max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#86613a transparent;overscroll-behavior:contain}
.b2h-full-panel > *{min-width:0;max-width:100%}
.b2h-full-panel #b2h-full-play{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 68px!important;width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important;max-width:68px!important;max-height:68px!important;border-radius:50%!important;padding:0!important;line-height:1!important;box-sizing:border-box!important;font-size:25px!important;appearance:none!important;-webkit-appearance:none!important;transform:none!important}
.b2h-full-panel input,.b2h-full-panel select,.b2h-full-panel button{max-width:100%;box-sizing:border-box}
.b2h-full-panel #b2h-full-volume{width:100%;min-width:0}
.b2h-full-panel #b2h-requests-results{overflow-x:hidden;scrollbar-width:thin}
.b2h-full-panel .b2h-request-row{min-width:0}
.b2h-full-panel .b2h-request-row span{min-width:0;overflow-wrap:anywhere}
.b2h-full-panel .b2h-request-row button{flex-shrink:0}
body.b2h-detached-page{margin:0!important;padding:0!important;overflow-x:hidden!important}
body.b2h-detached-page #b2h-player{display:none!important}
body.b2h-detached-page .b2h-full{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;min-height:100dvh!important;overflow:visible!important}
body.b2h-detached-page .b2h-full-panel{width:100%!important;max-width:100%!important;max-height:none!important;min-height:100dvh!important;margin:0!important;padding:22px 24px!important;overflow:visible!important;border-radius:0!important;border-left:0!important;border-right:0!important}
body.b2h-detached-page #b2h-full-cover{width:min(46vw,220px);height:min(46vw,220px)}
@media(max-width:700px){.b2h-full-panel{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px}.b2h-full-panel #b2h-full-play{flex-basis:64px!important;width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;max-width:64px!important;max-height:64px!important}body.b2h-detached-page .b2h-full-panel{padding:18px!important}}

/* V0.3.11 LAB: request search is an independent overlay, never extends player */
.b2h-request-modal[hidden]{display:none!important}
.b2h-request-modal{position:fixed;inset:0;z-index:2147483647;display:flex;justify-content:center;align-items:center;padding:12px;color:#f9e5bf;font-family:Arial,sans-serif}
.b2h-request-modal *{box-sizing:border-box}
.b2h-request-shade{position:absolute;inset:0;background:rgba(0,0,0,.82)}
.b2h-request-box{position:relative;width:min(96vw,520px);max-width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden;background:linear-gradient(155deg,#2d1e15,#100d0c 75%);border:1px solid #a77934;border-radius:16px;padding:20px;box-shadow:0 16px 65px #000;display:flex;flex-direction:column;gap:12px;min-width:0}
.b2h-request-box header{display:flex;align-items:start;justify-content:space-between;gap:12px}
.b2h-request-box header small{font-size:11px;letter-spacing:1px;color:#dda34f}
.b2h-request-box h2{font-size:22px;color:white;margin:6px 0 0}
#b2h-request-close{border:1px solid #a77934;background:#281d16;color:white;width:36px;height:36px;flex:0 0 36px;border-radius:50%;cursor:pointer}
.b2h-request-box p{font-size:13px;color:#d5b98d;margin:0}
.b2h-request-box label{font-size:12px;color:#e2c69b}
#b2h-requests-search{width:100%;min-width:0}
.b2h-request-box #b2h-requests-results{min-height:50px;max-height:min(48dvh,340px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
.b2h-request-box .b2h-request-row{width:100%;min-width:0}
.b2h-request-box .b2h-request-row span{overflow-wrap:anywhere;min-width:0}
body.b2h-detached-page .b2h-request-modal{position:fixed!important;inset:0!important;z-index:2147483647!important;height:100dvh!important;width:100vw!important}
@media(max-width:600px){.b2h-request-box{padding:16px;max-height:calc(100dvh - 16px)}}

/* V0.3.12 LAB - Google Play link in expanded and detached full player */
.b2h-full-panel .b2h-playstore-link{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:100%;min-width:0;padding:12px 14px;border:1px solid #86623a;border-radius:10px;background:#201b17;color:#f6e1bb;text-decoration:none!important;box-sizing:border-box;transition:background .15s ease,border-color .15s ease}
.b2h-full-panel .b2h-playstore-link:hover,.b2h-full-panel .b2h-playstore-link:focus-visible{background:#32251b;border-color:#e49b37;color:#fff;outline-offset:2px}
.b2h-full-panel .b2h-playstore-link span:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0;text-align:left}
.b2h-full-panel .b2h-playstore-link strong{font-size:14px;line-height:1.3}
.b2h-full-panel .b2h-playstore-link small{font-size:11px;color:#c9ad84}
.b2h-full-panel .b2h-playstore-icon{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;border-radius:7px;background:#e49b37;color:#211711;font-size:15px}
@media(max-width:380px){.b2h-full-panel .b2h-playstore-link{padding:10px 8px;gap:8px}.b2h-full-panel .b2h-playstore-link strong{font-size:12px}}

/* V0.3.14 LAB: touch scrolling only on mobile; desktop keeps V0.3.12 layout */
@media (max-width:700px){

html:has(body.b2h-detached-page){height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
body.b2h-detached-page,body.b2h-detached-page.b2h-full-open{height:auto!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;position:static!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch}
body.b2h-detached-page .b2h-full{position:relative!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;touch-action:pan-y!important}
body.b2h-detached-page .b2h-full-panel{height:auto!important;max-height:none!important;min-height:100dvh!important;overflow:visible!important;touch-action:pan-y!important;overscroll-behavior:auto!important}
body.b2h-detached-page .b2h-request-modal[hidden]{display:none!important}

}

/* V0.3.15 LAB — Desktop: visually hide scrollbars without disabling scroll.
   Mobile remains exactly as V0.3.14. */
@media (min-width:701px){
 html:has(body.b2h-detached-page),
 body.b2h-detached-page,
 body.b2h-detached-page .b2h-full,
 body.b2h-detached-page .b2h-full-panel,
 body:not(.b2h-detached-page) .b2h-full-panel {
   scrollbar-width:none!important;
   -ms-overflow-style:none!important;
 }
 html:has(body.b2h-detached-page)::-webkit-scrollbar,
 body.b2h-detached-page::-webkit-scrollbar,
 body.b2h-detached-page .b2h-full::-webkit-scrollbar,
 body.b2h-detached-page .b2h-full-panel::-webkit-scrollbar,
 body:not(.b2h-detached-page) .b2h-full-panel::-webkit-scrollbar {
   width:0!important;height:0!important;display:none!important;
 }
}

/* V0.3.16 LAB: desktop detached document root scrollbar only. */
@media screen and (min-width:701px){
 html.b2h-detached-document,html.b2h-detached-document body{scrollbar-width:none!important;-ms-overflow-style:none!important}
 html.b2h-detached-document::-webkit-scrollbar,html.b2h-detached-document body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
}

/* V0.3.17 LAB — Desktop pop-up windows are often narrower than 701px.
   Target mouse/trackpad desktop capability, not viewport width.
   Hide scrollbars only; keep document scrolling and mobile touch rules. */
@media (hover:hover) and (pointer:fine) {
 html.b2h-detached-document,
 html.b2h-detached-document body.b2h-detached-page,
 html.b2h-detached-document body.b2h-detached-page .b2h-full,
 html.b2h-detached-document body.b2h-detached-page .b2h-full-panel,
 body:not(.b2h-detached-page) .b2h-full-panel {
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
 }
 html.b2h-detached-document::-webkit-scrollbar,
 html.b2h-detached-document body.b2h-detached-page::-webkit-scrollbar,
 html.b2h-detached-document body.b2h-detached-page .b2h-full::-webkit-scrollbar,
 html.b2h-detached-document body.b2h-detached-page .b2h-full-panel::-webkit-scrollbar,
 body:not(.b2h-detached-page) .b2h-full-panel::-webkit-scrollbar {
  width:0!important;height:0!important;display:none!important;
 }
}

/* V0.3.19 LAB: contextual request errors, without changing layout/scroll behavior */
.b2h-request-row{flex-wrap:wrap}
.b2h-request-error{display:block;flex-basis:100%;color:#ffb4a8;font-size:12px;line-height:1.35;padding:3px 0 6px}

/* V0.3.22 LAB: official AzuraCast request catalog iframe; no changes to player/audio */
.b2h-request-box.b2h-request-official{width:min(94vw,840px);max-width:840px;display:flex;flex-direction:column;max-height:min(90dvh,900px);overflow:hidden}
.b2h-request-official .b2h-request-frame-wrap{flex:1 1 auto;min-height:320px;height:min(62dvh,620px);border:1px solid rgba(225,165,66,.35);border-radius:10px;overflow:hidden;background:#111}
.b2h-request-official iframe{display:block;width:100%;height:100%;border:0;background:#111}
.b2h-request-official .b2h-request-fallback{font-size:12px;line-height:1.4;margin:8px 0 0;color:#d7c7b0}
.b2h-request-official .b2h-request-fallback a{color:#efb14f;text-decoration:underline}
@media(max-width:700px){.b2h-request-box.b2h-request-official{width:calc(100vw - 20px);max-height:94dvh;padding:12px}.b2h-request-official .b2h-request-frame-wrap{height:65dvh;min-height:260px}}
