/* Into the Void -- MUSIC (2026-10-21). Uses mind.css tokens. The mini TV is never smaller than 200x200 (YouTube minimum). */

/* music page: sits under the HUD and keeps the top tabs visible */
#pane-music { padding-top: 112px; z-index: 15; }
body.music-on #pane-music { padding-top: 168px; }
body.music-pane .soundtoggle { display: none; }
.msearch { display: flex; gap: 8px; }
.msearch input, .mnew input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text); font: 14px var(--mono); }
.msearch input:focus, .mnew input:focus { outline: none; border-color: var(--green); box-shadow: var(--glow); }
.msubs { display: flex; gap: 4px; margin: 14px 0 10px; overflow-x: auto; scrollbar-width: none; }
.msub { flex: none; padding: 6px 12px; border-radius: 6px; font: 600 12.5px var(--mono); color: var(--muted); border: 1px solid var(--line); }
.msub.on { color: #000; background: var(--green); border-color: var(--green); }
.mrow { display: grid; grid-template-columns: 84px 1fr auto auto auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mrow.now .minfo b { color: var(--green); text-shadow: var(--glow); }
.mthumb { width: 84px; height: 48px; border-radius: 6px; background: var(--panel2) center/cover no-repeat; display: grid; place-items: center;
  border: 1px solid var(--line); }
.mthumb span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.65); color: var(--green); font-size: 11px; }
.minfo { min-width: 0; text-align: left; display: grid; gap: 2px; }
.minfo b { font: 600 13.5px var(--body); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minfo small { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--dim); font-size: 16px; border: 1px solid transparent; }
.mic:hover, .mic:focus-visible { border-color: var(--line2); color: var(--green); outline: none; }
.mic.on { color: var(--gold); }
.mpl { display: flex; width: 100%; padding: 12px 14px; margin-bottom: 8px; border-radius: 8px; border: 1px solid var(--line2);
  background: var(--panel); font: 600 13.5px var(--mono); color: var(--text); text-align: left; }
.mpl:hover { border-color: var(--green); }
.mnew { display: flex; gap: 8px; margin-bottom: 12px; }
.mplhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.mplhead b { flex: 1; min-width: 120px; font: 800 15px var(--mono); color: var(--green); }

/* now-playing banner: slim bar right under the HUD */
.mbanner { position: fixed; left: 0; right: 0; top: 104px; z-index: 22; padding: 0 12px; pointer-events: none; }
body.pane-open .mbanner { top: 56px; }
.mbanner-in { pointer-events: auto; max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  border-radius: 10px; background: rgba(5,8,5,.94); border: 1px solid var(--green); box-shadow: var(--glow); backdrop-filter: blur(6px); }
.mbanner .eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; width: 14px; flex: none; }
.mbanner .eq i { width: 3px; background: var(--green); animation: eq 0.9s ease-in-out infinite; }
.mbanner .eq i:nth-child(2) { animation-delay: .2s; } .mbanner .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
#mb-info { flex: 1; min-width: 0; display: grid; text-align: left; }
#mb-title { font: 600 13px var(--body); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mb-chan { font: 11px var(--mono); color: var(--green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbtn { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--green); font: 700 14px var(--mono); }
.mbtn:hover, .mbtn:focus-visible { background: var(--panel2); outline: none; }
#mb-play { background: var(--green); color: #000; }
#mb-repeat[data-mode="off"] { color: var(--muted); }
#mb-star.on { color: var(--gold); }

/* mini TV: >= 200x200 always, docked to a corner or full width */
.mtv { position: fixed; z-index: 21; width: 200px; height: 200px; border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid var(--green); box-shadow: var(--glow); transition: top .2s ease, bottom .2s ease, left .2s ease, right .2s ease, width .2s ease, height .2s ease; }
.mtv #mtv-slot, .mtv iframe { width: 100%; height: 100%; border: 0; display: block; }
.mtv.dock-tr { top: 160px; right: 12px; } .mtv.dock-tl { top: 160px; left: 12px; }
.mtv.dock-br { bottom: 84px; right: 12px; } .mtv.dock-bl { bottom: 84px; left: 12px; }
body.pane-open .mtv.dock-tr, body.pane-open .mtv.dock-tl { top: 112px; }
.mtv.big { top: 160px; left: 50%; transform: translateX(-50%); width: min(600px, calc(100vw - 24px)); height: auto; aspect-ratio: 16 / 9; min-height: 200px; }
body.pane-open .mtv.big { top: 112px; }
#mtv-big { position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 6px; background: rgba(0,0,0,.7);
  color: var(--green); font: 700 13px var(--mono); border: 1px solid var(--line2); }
@media (prefers-reduced-motion: reduce) { .mbanner .eq i { animation: none; height: 10px; } .mtv { transition: none; } }

/* add-to-playlist sheet reuses .modal/.sheet from mind.css */
#madd-title { color: var(--dim); font: 12.5px var(--mono); margin: -4px 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
