/* Scoped to the listening library; follows HBQ's charcoal and burgundy theme. */
#hbqAudioLibrary,#hbqAudioDock{--ha-panel:#17181f;--ha-muted:#b9bcc6;--ha-line:#3d3f49;--ha-pink:#e880ad;color:#fff!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.55;color-scheme:dark}
#mindset.screen{background:#0a0b0f!important;border-radius:16px}
#hbqAudioLibrary{max-width:1320px;margin:auto;padding:12px 16px 38px;background:#0a0b0f!important;border-radius:16px}
#hbqAudioLibrary *,#hbqAudioDock *{box-sizing:border-box}
#hbqAudioLibrary [hidden],#hbqAudioDock[hidden],#hbqAudioDock [hidden]{display:none!important}
#hbqAudioLibrary :is(h1,h2,h3,p,blockquote){margin:0 0 12px;color:inherit!important;-webkit-text-fill-color:currentColor!important}
#hbqAudioLibrary h1{font-size:clamp(28px,4vw,42px);line-height:1.15;letter-spacing:-1.2px}
#hbqAudioLibrary h2{font-size:24px;line-height:1.25;letter-spacing:-.5px}
#hbqAudioLibrary h3{font-size:18px;line-height:1.35}
#hbqAudioLibrary .ha-muted,#hbqAudioLibrary small,#hbqAudioDock small{color:var(--ha-muted)!important;-webkit-text-fill-color:currentColor!important}
#hbqAudioLibrary .ha-eyebrow{color:var(--ha-pink)!important;font-size:11px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;margin-bottom:10px}
#hbqAudioLibrary :is(button,input,select),#hbqAudioDock button{font:inherit;color:#fff!important;-webkit-text-fill-color:currentColor!important;border:1px solid var(--ha-line)!important;border-radius:12px;background:#202129!important;box-shadow:none!important;min-height:44px;cursor:pointer;padding:10px 15px;transition:border-color .15s,background .15s}
#hbqAudioLibrary button:hover,#hbqAudioDock button:hover{border-color:#e880ad!important;background:#32232e!important}
#hbqAudioLibrary button:disabled{opacity:.55;cursor:wait}
#hbqAudioLibrary :is(input,select){width:100%;background:#101116!important;cursor:initial}
#hbqAudioLibrary :is(button,input,select,a,summary):focus-visible,#hbqAudioDock button:focus-visible{outline:3px solid #f0a3c6!important;outline-offset:3px}
#hbqAudioLibrary button.ha-primary{background:linear-gradient(135deg,#b43a70,#87315e)!important;border-color:#b8497c!important;font-weight:750}
#hbqAudioLibrary .ha-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:25px}
#hbqAudioLibrary .ha-badge{border:1px solid #74405a;border-radius:30px;background:#351522;padding:7px 12px;color:#f3bed5;white-space:nowrap;font-size:12px}
#hbqAudioLibrary .ha-tabs{display:flex;gap:8px;border-bottom:1px solid var(--ha-line);padding-bottom:16px;margin-bottom:24px;overflow:auto}
#hbqAudioLibrary .ha-tabs button{flex:0 0 auto;background:transparent!important;border-color:transparent!important;color:var(--ha-muted)!important;font-weight:650}
#hbqAudioLibrary .ha-tabs button[aria-pressed=true]{background:#351522!important;border-color:#84405f!important;color:#fff!important}
#hbqAudioLibrary .ha-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:24px;align-items:start}
#hbqAudioLibrary .ha-layout>*{min-width:0}
#hbqAudioLibrary .ha-card{border:1px solid var(--ha-line);border-radius:20px;background:var(--ha-panel);padding:24px;margin-bottom:20px;overflow:hidden}
#hbqAudioLibrary .ha-hero{background:radial-gradient(ellipse at top right,#542039 0,transparent 68%),#23151e;border-color:#613348}
#hbqAudioLibrary .ha-hero h2{font-size:clamp(25px,3vw,34px);max-width:460px}
#hbqAudioLibrary .ha-hero p{max-width:490px;color:#ddc9d3!important}
#hbqAudioLibrary .ha-progress{height:7px;border-radius:20px;background:#62404f;overflow:hidden;margin:18px 0 8px}
#hbqAudioLibrary .ha-progress span{display:block;background:#ec9cbe;height:100%;width:var(--ha-progress,0%)}
#hbqAudioLibrary .ha-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:16px}
#hbqAudioLibrary .ha-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 25px}
#hbqAudioLibrary .ha-topics button{text-align:left;min-height:100px;background:#17181f!important;padding:16px}
#hbqAudioLibrary .ha-topics span{display:block;color:var(--ha-pink);font-size:22px;margin-bottom:6px}
#hbqAudioLibrary .ha-topics b{display:block;font-size:13px}
#hbqAudioLibrary blockquote{font-size:22px;font-weight:500;line-height:1.5;letter-spacing:-.3px}
#hbqAudioLibrary .ha-tools{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;margin:18px 0}
#hbqAudioLibrary label{display:block;color:var(--ha-muted)!important;font-size:13px;font-weight:500}
#hbqAudioLibrary label :is(input,select){display:block;margin-top:5px}
#hbqAudioLibrary .ha-results-count{font-size:12px;margin-bottom:10px}
#hbqAudioLibrary .ha-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #34353e}
#hbqAudioLibrary .ha-row:first-child{border-top:1px solid #34353e}
#hbqAudioLibrary .ha-row.ha-selected{background:#271a23;border-radius:12px;padding:16px 10px;border-color:#78405b}
#hbqAudioLibrary .ha-row h3{font-size:15px;margin:2px 0 4px}
#hbqAudioLibrary .ha-row small{font-size:12px;display:block}
#hbqAudioLibrary .ha-icon{width:44px;height:44px;min-height:44px;padding:0!important;font-size:19px}
#hbqAudioLibrary .ha-icon[aria-pressed=true]{color:#f19ac0!important;border-color:#9a476c!important;background:#351522!important}
#hbqAudioLibrary .ha-row-title{padding:0!important;background:transparent!important;border:0!important;text-align:left;min-height:0;font-weight:650;line-height:1.45;border-radius:3px}
#hbqAudioLibrary .ha-row-title:hover{text-decoration:underline;background:transparent!important}
#hbqAudioLibrary .ha-player{position:sticky;top:20px}
#hbqAudioLibrary .ha-player-top{height:104px;border-radius:14px;margin-bottom:22px;background:radial-gradient(ellipse at bottom,#663048,transparent 70%),#271922;display:flex;align-items:center;justify-content:center;gap:6px;overflow:hidden}
#hbqAudioLibrary .ha-player-top i{width:4px;height:var(--bar);border-radius:5px;background:#e28bb0;opacity:.8}
#hbqAudioLibrary audio{width:100%;height:46px;margin:16px 0 8px;color-scheme:dark}
#hbqAudioLibrary .ha-player-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#hbqAudioLibrary .ha-player-actions label{display:flex;gap:6px;align-items:center}
#hbqAudioLibrary .ha-player-actions select{width:auto;margin:0;padding:7px}
#hbqAudioLibrary .ha-status{font-size:13px;margin-top:14px!important;min-height:22px;color:#e8bed1!important}
#hbqAudioLibrary .ha-check{display:flex;gap:9px;align-items:center;margin:16px 0}
#hbqAudioLibrary .ha-check input{width:18px;height:18px;min-height:18px;margin:0;accent-color:#b43a70}
#hbqAudioLibrary details{border-top:1px solid var(--ha-line);padding-top:16px;margin-top:18px}
#hbqAudioLibrary summary{cursor:pointer;min-height:36px;color:#fff;font-weight:650}
#hbqAudioLibrary .ha-transcript{max-height:300px;overflow:auto;white-space:pre-line;font-size:14px;color:#d4d5dd;padding:10px 5px 8px 0}
#hbqAudioLibrary .ha-practice{font-size:13px;border-left:3px solid #d4709e;padding-left:12px;margin-top:12px}
#hbqAudioLibrary .ha-notice{font-size:12px;color:var(--ha-muted);line-height:1.6;margin:14px 0 0}
#hbqAudioLibrary .ha-playlist-create{display:flex;gap:8px;margin-top:10px}
#hbqAudioLibrary .ha-playlist-create input{min-width:0}
#hbqAudioLibrary .ha-playlist-create button{flex:0 0 auto}
#hbqAudioLibrary .ha-empty{padding:28px 10px;text-align:center;border:1px dashed #55545f;border-radius:14px;color:#c9c6cf}
#hbqAudioLibrary .ha-inline-select{display:flex;align-items:end;gap:8px;margin-top:16px}
#hbqAudioLibrary .ha-inline-select label{flex:1;min-width:0}
#hbqAudioLibrary .ha-inline-select button{flex:0 0 auto}
#hbqAudioLibrary .ha-pagination{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:18px;font-size:13px}
#hbqAudioLibrary .ha-feedback{font-size:12px;color:#ecc1d4;min-height:18px}
#hbqAudioDock{position:fixed;left:50%;transform:translateX(-50%);bottom:100px;z-index:90;display:flex;align-items:center;gap:10px;width:min(560px,calc(100% - 28px));padding:12px;background:#21171f;border:1px solid #97506f;border-radius:16px;box-shadow:0 10px 45px #0009}
#hbqAudioDock .ha-dock-title{flex:1;text-align:left;background:transparent!important;border:0!important;padding:0;min-width:0}
#hbqAudioDock strong,#hbqAudioDock small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#hbqAudioDock button:not(.ha-dock-title){flex:0 0 auto;padding:8px 12px}
@media(max-width:1050px){#hbqAudioLibrary .ha-layout{grid-template-columns:minmax(0,1.3fr) minmax(285px,1fr)}#hbqAudioLibrary .ha-card{padding:20px}#hbqAudioLibrary .ha-topics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){#hbqAudioLibrary .ha-layout{display:flex;flex-direction:column}#hbqAudioLibrary .ha-layout>*{width:100%}#hbqAudioLibrary .ha-player{position:static;order:2}#hbqAudioLibrary .ha-badge{font-size:10px;padding:6px 9px}#hbqAudioLibrary .ha-header{gap:8px}#hbqAudioLibrary .ha-tabs{gap:2px}#hbqAudioLibrary .ha-tabs button{padding:10px 12px}#hbqAudioLibrary .ha-tools{grid-template-columns:1fr}#hbqAudioLibrary .ha-topics{grid-template-columns:repeat(3,minmax(0,1fr))}#hbqAudioLibrary .ha-topics button{padding:12px;font-size:12px}#hbqAudioDock{bottom:calc(94px + env(safe-area-inset-bottom))}}
@media(max-width:400px){#hbqAudioLibrary .ha-topics{grid-template-columns:repeat(2,minmax(0,1fr))}#hbqAudioLibrary .ha-badge{display:none}#hbqAudioLibrary .ha-card{padding:17px}#hbqAudioLibrary .ha-row{gap:8px}#hbqAudioLibrary .ha-tabs{display:grid;grid-template-columns:1fr 1fr;overflow:visible}#hbqAudioLibrary .ha-tabs button{font-size:13px}}
@media(prefers-reduced-motion:reduce){#hbqAudioLibrary *,#hbqAudioDock *{transition:none!important;scroll-behavior:auto!important}}
