/* One layout owner for both inline Home and fixed platform player. */
body.uh-shell .os-player{box-sizing:border-box!important;position:fixed!important;inset:auto 8px max(8px,env(safe-area-inset-bottom,0px))!important;width:calc(100% - 16px)!important;max-width:none!important;height:108px!important;min-height:108px!important;margin:0!important;padding:10px!important;border:1px solid #00d9ed!important;border-radius:16px!important;z-index:100!important;background:linear-gradient(120deg,#052536,#020d19)!important;overflow:hidden!important;}
body.uh-shell .os-player .os-player-inner{box-sizing:border-box!important;display:grid!important;grid-template-columns:60px minmax(0,1fr) auto minmax(140px,.8fr) 120px 36px 36px!important;grid-template-areas:'art track controls visual volume list full'!important;grid-template-rows:minmax(0,1fr)!important;align-items:center!important;width:100%!important;max-width:100%!important;height:100%!important;gap:10px!important;min-width:0!important;}
body.uh-shell .os-player .os-art{grid-area:art;display:grid!important;place-items:center;flex:none!important;width:60px!important;min-width:60px!important;max-width:60px!important;height:60px!important;border-radius:10px!important;overflow:hidden;}
body.uh-shell .os-player #os-cover{width:100%!important;max-width:100%!important;height:100%!important;object-fit:contain!important;}
body.uh-shell .os-player .os-track{grid-area:track;min-width:0!important;max-width:100%!important;width:auto!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:4px!important;}
body.uh-shell .os-player .os-track #os-station{font-size:18px!important;line-height:23px!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;}
body.uh-shell .os-player #os-song{display:block!important;font-size:13px!important;line-height:18px!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;}
body.uh-shell .os-player .os-player-controls{grid-area:controls;display:flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:auto!important;min-width:0!important;max-width:none!important;gap:8px!important;}
body.uh-shell .os-player .os-player-controls button{box-sizing:border-box!important;flex:none!important;width:30px!important;min-width:30px!important;height:38px!important;min-height:38px!important;padding:0!important;margin:0!important;border-radius:9px!important;font-size:16px!important;}
body.uh-shell .os-player #os-toggle{display:grid!important;place-items:center!important;width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;font-size:0!important;border:1px solid #00def0!important;border-radius:50%!important;background:#06324a!important;color:#02e1f4!important;box-shadow:0 0 10px #00c7ed55!important;}
body.uh-shell .os-player #os-toggle::before{content:'▶'!important;display:block;font-size:24px!important;line-height:1!important;}
body.uh-shell .os-player[data-uh-state=playing] #os-toggle::before{content:'Ⅱ'!important;}
body.uh-shell .os-player .os-volume{grid-area:volume;display:flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;min-width:0!important;width:120px!important;max-width:120px!important;padding:0!important;margin:0!important;font-size:0!important;}
body.uh-shell .os-player .os-volume::before{content:'🔊';font-size:16px;}
body.uh-shell .os-player .os-volume input{min-width:0!important;width:94px!important;max-width:94px!important;padding:0!important;margin:0!important;}
body.uh-shell .os-player .uh-player-list,body.uh-shell .os-player .uh-player-full{display:grid!important;place-items:center!important;width:36px!important;min-width:36px!important;height:38px!important;min-height:38px!important;font-size:23px!important;padding:0!important;margin:0!important;}
body.uh-shell .os-player .uh-player-list{grid-area:list;}
body.uh-shell .os-player .uh-player-full{grid-area:full;}
body.uh-shell .os-player .os-signal,body.uh-shell .os-player #os-device{display:none!important;}
body.uh-shell .os-player #os-audio-status{display:block!important;position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
body.uh-shell .os-player .uhp-visual{grid-area:visual;min-width:0;overflow:hidden;--rhv-color:#00ddec;}
body.uh-shell .os-player .rhv-equalizer{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1px;height:40px;overflow:hidden;isolation:isolate;}
body.uh-shell .os-player .rhv-equalizer::before{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:linear-gradient(to right,var(--rhv-color) 0 var(--rhv-played,0%),rgba(0,0,0,.4) var(--rhv-played,0%) 100%);pointer-events:none;}
body.uh-shell .os-player .rhv-equalizer i{position:relative;display:block;flex:1 1 0;min-width:0;max-width:5px;height:var(--bar-height);border-radius:50%;transform-origin:center;background:linear-gradient(to bottom,transparent,color-mix(in srgb,var(--rhv-color) 72%,transparent) 15%,var(--rhv-color) 42%,#fff 50%,var(--rhv-color) 58%,color-mix(in srgb,var(--rhv-color) 72%,transparent) 85%,transparent);box-shadow:0 0 5px var(--rhv-color);animation:uhp-radio-wave var(--bar-speed) ease-in-out var(--bar-delay) infinite alternate;animation-play-state:paused;}
body.uh-shell .os-player[data-uh-state=playing] .rhv-equalizer i{animation-play-state:running;}
body.uh-shell .os-player .rhv-equalizer i::after{content:'';position:absolute;inset:0 0 0 var(--rhv-bar-fill,0%);background:rgba(0,0,0,.4);border-radius:inherit;pointer-events:none;}
body.uh-shell .os-player .rhv-equalizer i.rhv-bar-pending{opacity:.7;box-shadow:none;}
body.uh-shell .os-player .rhv-time{display:flex;justify-content:center;gap:4px;margin-top:3px;color:#c8edf7;font:600 12px/16px system-ui;font-variant-numeric:tabular-nums;white-space:nowrap;}
@keyframes uhp-radio-wave{0%{transform:scaleY(.14);opacity:.6}35%{transform:scaleY(.58);opacity:.82}70%{transform:scaleY(.3);opacity:.75}100%{transform:scaleY(1);opacity:1}}
body.uh-shell .os-platform{padding-bottom:138px!important;}
body.uh-shell.uh-player-home .os-platform{padding-bottom:24px!important;}
body.uh-shell .uh-home-player-slot{height:122px!important;min-height:122px!important;}
body.uh-shell .uh-home-left>.uh-two-columns{height:122px!important;min-height:122px!important;}
body.uh-shell.uh-player-home .os-player{position:absolute!important;inset:auto!important;left:var(--uh-home-player-left)!important;top:var(--uh-home-player-top)!important;right:auto!important;bottom:auto!important;width:var(--uh-home-player-width)!important;height:122px!important;min-height:122px!important;padding:8px!important;z-index:4!important;}
body.uh-shell.uh-player-home .os-player .os-player-inner{grid-template-columns:52px minmax(0,1fr) 78px!important;grid-template-areas:'art track controls' 'visual visual volume'!important;grid-template-rows:52px minmax(0,1fr)!important;gap:6px 8px!important;}
body.uh-shell.uh-player-home .os-player .os-art{width:52px!important;min-width:52px!important;max-width:52px!important;height:52px!important;}
body.uh-shell.uh-player-home .os-player .os-player-controls>:not(#os-toggle),body.uh-shell.uh-player-home .os-player .uh-player-list,body.uh-shell.uh-player-home .os-player .uh-player-full{display:none!important;}
body.uh-shell.uh-player-home .os-player .os-volume{width:78px!important;max-width:78px!important;}
body.uh-shell.uh-player-home .os-player .os-volume input{width:54px!important;max-width:54px!important;}
body.uh-shell.uh-player-home .os-player .rhv-equalizer{height:24px;}
@media(max-width:1000px){
 body.uh-shell .os-player{height:124px!important;min-height:124px!important;padding:8px!important;}
 body.uh-shell .os-player .os-player-inner{grid-template-columns:44px minmax(0,1fr) auto 36px!important;grid-template-areas:'art track controls list' 'visual visual volume volume'!important;grid-template-rows:48px minmax(0,1fr)!important;gap:6px 8px!important;}
 body.uh-shell .os-player .os-art{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;}
 body.uh-shell .os-player .uh-player-full{display:none!important;}
 body.uh-shell .os-player .rhv-equalizer{height:26px;}
 body.uh-shell .os-player .os-volume{justify-self:end;}
 body.uh-shell .os-platform{padding-bottom:154px!important;}
}
@media(max-width:600px){
 body.uh-shell .os-player{inset:auto 4px max(4px,env(safe-area-inset-bottom,0px))!important;width:calc(100% - 8px)!important;}
 body.uh-shell .os-player .os-player-inner{grid-template-areas:'art track controls list' 'visual visual visual visual'!important;}
 body.uh-shell .os-player .os-volume,body.uh-shell .os-player #os-stop,body.uh-shell .os-player #os-mute,body.uh-shell .os-player .uh-player-previous,body.uh-shell .os-player .uh-player-next{display:none!important;}
 body.uh-shell .os-player .os-track #os-station{font-size:15px!important;line-height:20px!important;}
 body.uh-shell .os-player #os-song{font-size:12px!important;line-height:16px!important;}
 body.uh-shell .os-player #os-toggle{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;}
 body.uh-shell .uh-home-player-slot{height:124px!important;min-height:124px!important;}
 body.uh-shell .uh-home-left>.uh-two-columns{height:216px!important;min-height:216px!important;}
 body.uh-shell.uh-player-home .os-player{height:124px!important;min-height:124px!important;}
 body.uh-shell.uh-player-home .os-player .os-player-inner{grid-template-columns:44px minmax(0,1fr) 44px!important;grid-template-areas:'art track controls' 'visual visual visual'!important;grid-template-rows:48px minmax(0,1fr)!important;}
 body.uh-shell.uh-player-home .os-player .os-art{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;}
}
@media(prefers-reduced-motion:reduce){body.uh-shell .os-player .rhv-equalizer i{animation:none!important;transform:scaleY(.6)!important;}}

/* Keep every navigation link above the one fixed player, including open mobile drawers. */
@media(min-width:1001px){
 body.uh-shell:not(.uh-player-home) .uh-sidebar{height:calc(100dvh - 204px)!important;max-height:calc(100dvh - 204px)!important;}
 body.uh-shell.uh-player-home .uh-sidebar{height:calc(100dvh - 90px)!important;max-height:calc(100dvh - 90px)!important;}
}
@media(max-width:1000px){
 body.uh-shell.uh-menu-open:not(.uh-player-home) .os-platform>.os-sidebar.uh-sidebar{bottom:calc(140px + env(safe-area-inset-bottom,0px))!important;height:auto!important;max-height:calc(100dvh - 210px - env(safe-area-inset-bottom,0px))!important;}
 body.uh-shell.uh-menu-open.uh-player-home .os-platform>.os-sidebar.uh-sidebar{bottom:max(8px,env(safe-area-inset-bottom,0px))!important;height:auto!important;max-height:calc(100dvh - 78px - env(safe-area-inset-bottom,0px))!important;}
}
