/* Shared soundtrack controls. The masters live outside the public asset tree. */
.osp-music-mount{display:inline-flex;align-items:center;flex-shrink:0;pointer-events:auto}
.osp-interface .osp-music-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border:1px solid #91b8e33b;border-radius:14px;background:#14243ce6;color:#a8bbd6;font:600 12px/1 var(--osp-body,'DM Sans',sans-serif);cursor:pointer;touch-action:manipulation;transition:color .2s,border-color .2s,background .2s}
.osp-interface .osp-music-toggle[aria-pressed=true],body.osp-interface.flight-page .osp-music-toggle[aria-pressed=true]{color:var(--osp-cyan,#66f6e7);border-color:#66f6e75c;background:#12363ce6}
.osp-interface .osp-music-toggle:hover{background:#253b56;border-color:#66f6e7a0}
.osp-music-symbol{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;line-height:1}
.osp-music-symbol svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.osp-music-label{display:none}
.osp-home.osp-interface .home-header .osp-music-toggle{width:auto;min-width:46px;height:46px;padding:11px 15px;border-radius:30px}
.osp-home .osp-music-label{display:inline}
.osp-interface.osp-home dialog.osp-music-panel,.osp-interface[data-osp-mode] dialog.osp-music-panel{box-sizing:border-box;width:min(380px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 30px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;padding:25px;border:1px solid #91b8e344;border-radius:28px 14px 28px 14px;background:radial-gradient(ellipse at 0 0,#66f6e712,transparent 70%),linear-gradient(145deg,#1c2e49,#101b30);color:#edf4ff;box-shadow:0 24px 100px #0009;overflow:auto;font:400 14px/1.5 var(--osp-body,'DM Sans',sans-serif);text-align:left}
.osp-music-panel::backdrop{background:#050b19aa;backdrop-filter:blur(7px)}
.osp-music-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 6px;padding:0;border:0;background:none}
.osp-interface .osp-music-panel .osp-music-kicker{margin:0 0 3px;color:#66f6e7;font:600 10px/1.5 var(--osp-body,'DM Sans',sans-serif);letter-spacing:1.5px;text-transform:uppercase}
.osp-interface .osp-music-panel h2{margin:0;color:#f4f8ff;font:600 28px/1.15 var(--osp-display,Outfit,sans-serif);letter-spacing:-.6px;text-align:left}
.osp-interface.osp-home dialog.osp-music-panel .osp-music-close,body.osp-interface[data-osp-mode] dialog.osp-music-panel .osp-music-close{display:grid;place-items:center;flex-shrink:0;box-sizing:border-box;width:46px;height:46px;min-width:46px;min-height:46px;padding:0;border:1px solid #affff1;border-radius:12px;background:#d4f5ed;color:#102f35;box-shadow:0 2px 12px #66f6e72b;cursor:pointer;touch-action:manipulation}
.osp-music-close .osp-music-close-icon{display:block;width:22px;height:22px;pointer-events:none}
.osp-interface dialog.osp-music-panel .osp-music-close:hover{background:#f1fffb}
.osp-interface .osp-music-panel .osp-music-track{margin:16px 0 24px;color:#b6c6df;font-size:13px;line-height:1.6}
.osp-music-volume-label{display:flex;align-items:center;justify-content:space-between;gap:20px;color:#eaf1ff;font-size:13px;font-weight:600}
.osp-music-volume-label output{color:#66f6e7;font-size:21px;font-variant-numeric:tabular-nums}
.osp-interface .osp-music-panel .osp-music-range{display:block;box-sizing:border-box;width:100%;height:44px;min-height:44px;margin:5px 0 14px;padding:0;accent-color:#66f6e7;background:transparent;cursor:pointer;touch-action:pan-x;border:0;box-shadow:none}
.osp-interface .osp-music-panel .osp-music-mute{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;padding:12px 18px;border:1px solid #91b8e344;border-radius:16px;background:#233a55;color:#edf5ff;font:600 14px/1.4 var(--osp-body,'DM Sans',sans-serif);cursor:pointer}
.osp-interface .osp-music-panel .osp-music-mute[aria-pressed=true]{border-color:#bc9aff88;color:#dccaff;background:#352a50}
.osp-interface .osp-music-panel .osp-music-status{min-height:36px;margin:15px 0 0;color:#adc0db;font-size:12px;line-height:1.5;text-align:left}
.osp-music-panel :is(button,input):focus-visible,.osp-music-toggle:focus-visible{outline:2px solid #66f6e7;outline-offset:4px}
.osp-interface[data-osp-mode=tetherline] .hud-actions .osp-music-toggle{width:40px;min-width:40px}
.osp-interface[data-osp-mode=tetherline].in-run .masthead .brand-group{margin-right:190px}
@media(max-width:600px){
 .osp-home .osp-music-label{display:none}
 .osp-home.osp-interface .home-header .osp-music-toggle{width:44px;min-width:44px;padding:0}
 .osp-home .home-header .account-link{width:44px;min-width:44px;padding:10px;justify-content:center}
 .osp-home .home-header .account-link>span:not([data-osp-icon]){display:none}
 .osp-interface.flight-page .flight-header{gap:8px;padding-inline:10px}
 .osp-interface.flight-page .flight-title{min-width:0;font-size:12px;line-height:1.15;white-space:normal}
 .osp-interface.flight-page .flight-actions{gap:4px}
 .osp-interface.flight-page .flight-actions .icon-button,.osp-interface.flight-page .flight-actions .osp-music-toggle{width:32px;min-width:32px;height:38px;min-height:38px;border-radius:12px}
 .osp-interface.flight-page .back-base{gap:0;padding-inline:9px}
 .osp-interface.flight-page .back-base .osp-nav-label{display:none}
 .osp-interface[data-osp-mode=bastion] .topbar{gap:5px}
 .osp-interface[data-osp-mode=bastion] .topbar .icon,.osp-interface[data-osp-mode=bastion] .topbar .osp-music-toggle{width:36px;min-width:36px;height:40px;min-height:40px;border-radius:14px}
 .osp-interface[data-osp-mode=bastion] .topbar .brand{font-size:15px}
 .osp-interface[data-osp-mode=tetherline] .hud-actions .osp-music-toggle{width:36px;min-width:36px;height:40px}
 .osp-interface[data-osp-mode=tetherline].in-run .masthead .brand-group{margin-right:170px}
}
@media(max-width:360px){
 .osp-home .home-header #rankings-open{width:44px;min-width:44px;padding:10px;justify-content:center}
 .osp-home .home-header #rankings-open>span:not([data-osp-icon]){display:none}
 .osp-interface.flight-page .flight-title{font-size:11px;letter-spacing:0}
 .osp-interface[data-osp-mode=bastion] .topbar .icon,.osp-interface[data-osp-mode=bastion] .topbar .osp-music-toggle{width:32px;min-width:32px}
 .osp-interface[data-osp-mode=bastion] .topbar .brand{font-size:13px}
 .osp-interface[data-osp-mode=tetherline].in-run .run-hud{top:max(70px,calc(env(safe-area-inset-top) + 70px))}
 .osp-interface[data-osp-mode=tetherline].in-run .clock-label,.osp-interface[data-osp-mode=tetherline].in-run #run-world{display:none}
}
@media(max-height:500px) and (orientation:landscape){
 .osp-interface.osp-home dialog.osp-music-panel,.osp-interface[data-osp-mode] dialog.osp-music-panel{padding:17px 22px;max-height:calc(100dvh - 20px)}
 .osp-interface .osp-music-panel .osp-music-track{margin:10px 0 12px}
 .osp-interface .osp-music-panel .osp-music-status{min-height:18px;margin-top:9px}
}
@media(prefers-reduced-motion:reduce){.osp-music-toggle{transition:none}}
