/* Full-screen visualizer (see visualizer.js) */
.viz-canvas,.viz-scrim{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;transition:opacity .45s}
.viz-canvas{z-index:0;display:block}
/* keeps the title and controls readable over bright frames */
.viz-scrim{z-index:0;background:linear-gradient(90deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.42) 62%,rgba(0,0,0,.55) 100%)}
.npv.viz .viz-canvas,.npv.viz .viz-scrim{opacity:1}
.npv-art,.npv-body{position:relative;z-index:1}
.npv-close{z-index:3}
/* room so the last of the queue can scroll clear of the visualizer control */
.npv{padding-bottom:84px}
.npv.viz .npv-body{text-shadow:0 1px 18px rgba(0,0,0,.35)}

.viz-panel{position:fixed;bottom:18px;left:18px;z-index:3;display:flex;flex-direction:column-reverse;width:max-content;max-width:calc(100vw - 36px);border-radius:18px;background:rgba(0,0,0,.28);-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);color:#fff;transition:background .25s,width .25s}
.viz-panel.open{width:min(340px,calc(100vw - 36px));background:rgba(8,12,24,.62);border-color:rgba(255,255,255,.14);box-shadow:0 20px 50px -20px rgba(0,0,0,.6)}
.vz-bar{display:flex;align-items:center;gap:2px;padding:0 3px 0 0}
.vz-on{display:flex;align-items:center;gap:8px;height:34px;padding:0 8px 0 11px;border-radius:999px;color:rgba(255,255,255,.78);font-size:13px;font-weight:500}
.vz-on:hover{color:#fff}
.vz-on svg{width:16px;height:16px}
.vz-switch{position:relative;width:30px;height:18px;border-radius:999px;background:rgba(255,255,255,.22);transition:background .2s}
.vz-switch::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .2s}
.viz-panel.on .vz-on{color:#fff}
.viz-panel.on .vz-switch{background:var(--snip,#8fd6cb)}
.viz-panel.on .vz-switch::after{transform:translateX(12px)}
/* the settings button only appears while the visualizer is on */
.vz-more{margin-left:auto;width:0;height:28px;border-radius:999px;display:grid;place-items:center;color:rgba(255,255,255,.75);overflow:hidden;opacity:0;pointer-events:none;transition:width .2s,opacity .2s,background .2s}
.vz-more svg{width:16px;height:16px;flex:none}
.vz-more .ic-ch{display:none}
.viz-panel.on .vz-more{width:30px;opacity:1;pointer-events:auto}
.vz-more:hover{color:#fff;background:rgba(255,255,255,.12)}
.viz-panel.open .vz-more{background:rgba(255,255,255,.92);color:#0a1430}
.vz-body{display:none;padding:6px 14px 14px;flex-direction:column;gap:12px;max-height:calc(100vh - 110px);overflow:auto;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:3px}
.viz-panel.open .vz-body{display:flex}
.vz-row{display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:10px;font-size:12.5px;color:rgba(255,255,255,.75)}
.vz-row input[type=range]{width:100%;background:rgba(255,255,255,.22);accent-color:#fff}
.vz-row input[type=range]::-webkit-slider-thumb{background:#fff}
.vz-row input[type=range]::-moz-range-thumb{background:#fff}
.vz-seg{display:flex;background:rgba(255,255,255,.1);border-radius:999px;padding:2px}
.vz-seg button{flex:1;height:26px;border-radius:999px;font-size:12px;color:rgba(255,255,255,.72);white-space:nowrap}
.vz-seg button:hover{color:#fff}
.vz-seg button.on{background:rgba(255,255,255,.92);color:#0a1430;font-weight:600}
.vz-row.vz-top{align-items:start}
.vz-row.vz-top>span{padding-top:6px}
.vz-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;background:rgba(255,255,255,.1);border-radius:12px;padding:3px}
.vz-grid button{height:26px;border-radius:9px;font-size:11.5px;color:rgba(255,255,255,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vz-grid button:hover{color:#fff;background:rgba(255,255,255,.08)}
.vz-grid button.on{background:rgba(255,255,255,.92);color:#0a1430;font-weight:600}
.vz-reset{align-self:flex-end;font-size:12px;color:rgba(255,255,255,.6);text-decoration:underline;text-underline-offset:2px}
.vz-reset:hover{color:#fff}

@media (max-width:820px){
  .npv{padding-top:76px;padding-bottom:40px}
  .viz-scrim{background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,.15) 55%,rgba(0,0,0,.35) 100%)}
}
/* Phones: an in-page section under "Up next", styled like it */
.viz-panel.inline{position:static;display:flex;flex-direction:column;width:auto;max-width:520px;margin-top:22px;padding-top:4px;border-radius:0;border-top:1px solid var(--line);background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
.viz-panel.inline.open{width:auto;background:none;box-shadow:none}
.viz-panel.inline .vz-bar{padding:0}
.viz-panel.inline .vz-on{flex:1;height:auto;padding:12px 8px 6px;gap:10px;font-family:var(--mono);font-size:10.5px;font-weight:400;text-transform:uppercase;letter-spacing:.08em;color:var(--dim)}
.viz-panel.inline .vz-on>svg{display:none}
.viz-panel.inline .vz-switch{margin-left:auto;transform:scale(.85)}
.viz-panel.inline .vz-more{margin:6px 0 0 6px;height:24px;border-radius:8px;color:var(--mute);background:none}
.viz-panel.inline.on .vz-more{width:28px}
.viz-panel.inline.open .vz-more{background:none;color:var(--text)}
.viz-panel.inline .vz-more .ic-sl{display:none}
.viz-panel.inline .vz-more .ic-ch{display:grid}
.viz-panel.inline .vz-more svg{width:14px;height:14px;transition:transform .2s}
.viz-panel.inline.open .vz-more svg{transform:rotate(180deg)}
.viz-panel.inline .vz-body{padding:8px 8px 4px;margin:0;border:0;max-height:none;overflow:visible}
@media (prefers-reduced-motion:reduce){.viz-canvas,.viz-scrim,.viz-panel,.vz-more,.vz-switch,.vz-switch::after{transition:none}}
