/* Only position the existing music application beside Wave's shared sidebar. */
html.wave-hover-rail {--wr-bg:#0b1016;--wr-fg:#93a6b7;--wr-strong:#edf4fa;--wr-accent:#91daf0;--wr-line:#273440;--wr-hover:#15212a;--wr-active:#1e303b}
body.wave-music-integrated {padding-left:var(--wave-rail-width,248px);transition:padding-left .22s ease-in-out}
#wave-side-navigation {position:fixed;inset:0 auto 0 0;width:var(--wave-rail-width,248px);height:100dvh;z-index:1200;background:var(--wr-bg);color:var(--wr-fg);padding:18px 12px;display:flex;flex-direction:column}
#wave-side-navigation>.wordmark {display:flex;align-items:center;gap:8px;font-weight:650;color:var(--wr-strong)}
#wave-side-navigation .wave-hover-symbol {width:28px;height:24px;object-fit:contain}
#wave-side-navigation>nav {display:flex;flex-direction:column;gap:8px;margin-top:auto}
#wave-side-navigation>nav>a {padding:10px;border-radius:8px}
#wave-side-navigation>nav>a[aria-current=page] {background:var(--wr-active);color:var(--wr-accent)}
body.wave-music-integrated .player {left:var(--wave-rail-width,248px);transition:left .22s ease-in-out}
body.wave-music-integrated .topbar {padding-right:170px}
body.wave-music-integrated .topbar-end {display:none}
body.wave-music-integrated .topbar-center {width:min(650px,100%)}
body.wave-music-integrated .wave-top-actions {top:14px}
/* Wave sidebar rules intentionally leave the original music controls scoped. */
body.wave-music-integrated #wave-react-sidebar .wr-pin-toggle {display:flex;align-items:center;gap:12px;width:100%;padding:10px 8px;color:var(--wr-fg);font-size:12px}
body.wave-music-integrated #wave-react-sidebar .wr-pin-toggle:hover {background:var(--wr-hover);border-radius:8px}
@media(max-width:767px){
  body.wave-music-integrated {padding-left:0;padding-top:48px}
  body.wave-music-integrated .app-shell {height:calc(100dvh - 48px - var(--topbar-height) - var(--player-height))}
  body.wave-music-integrated .player {left:0}
  body.wave-music-integrated .topbar {padding:8px 12px}
  body.wave-music-integrated .wave-top-actions {top:6px}
  body.wave-music-integrated .wr-mobile-overlay {overflow-y:auto;padding:36px 24px}
}
@media(prefers-reduced-motion:reduce){body.wave-music-integrated,body.wave-music-integrated .player{transition:none}}
