#player{padding-right:76px}
#player .player-sheet-toggle{position:absolute;right:16px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:8px;border:0;background:transparent;color:inherit}
#player .player-sheet-toggle svg{width:22px;height:22px}
#player .player-sheet-toggle:focus-visible{outline:2px solid var(--focus-ring,#c3edc5);outline-offset:2px}
body.player-sheet-open #player{z-index:110}
/* Keep the page in place while the expanded player takes over the content area. */
.workspace>main,.workspace>footer{transition:opacity .2s ease,visibility 0s linear}
body.player-sheet-open{overflow:hidden}
body.player-sheet-open .workspace>main,body.player-sheet-open .workspace>footer{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility 0s linear .2s}
/* Keep only muted shapes behind the glass; existing inert handling blocks focus and clicks. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 body.player-sheet-open .workspace>main,body.player-sheet-open .workspace>footer{opacity:.55;visibility:visible;transition:opacity .2s ease}
}
@media(prefers-reduced-transparency:reduce){body.player-sheet-open .workspace>main,body.player-sheet-open .workspace>footer{opacity:0;visibility:hidden}}
html[data-contrast=more] body.player-sheet-open .workspace>main,html[data-contrast=more] body.player-sheet-open .workspace>footer{opacity:0;visibility:hidden}
@media(prefers-reduced-motion:reduce){.workspace>main,.workspace>footer,body.player-sheet-open .workspace>main,body.player-sheet-open .workspace>footer{transition:none}}
#drawer[data-player-sheet]{inset:calc(var(--player-sheet-top,80px) + 8px) 0 var(--player-sheet-dock,100px) var(--player-sheet-left,0px);width:auto;max-width:none;height:auto;max-height:none;margin:0;border:0;border-radius:18px 18px 0 0;display:none;flex-direction:column;overflow:hidden;box-shadow:0 -12px 48px #0003;background:var(--surface-primary,#151b19);color:var(--text-primary,#eef2ef)}
#drawer[data-player-sheet][open]{display:flex}
#drawer[data-player-sheet]>.drawer-header{flex:none;display:flex;align-items:center;justify-content:space-between;padding:12px 24px;gap:16px;background:transparent}
#drawer[data-player-sheet]>.drawer-header h2{margin:0;font-size:16px}
#drawer[data-player-sheet]>.drawer-body{flex:1;min-height:0;padding:12px 28px 24px;display:flex;flex-direction:column;overflow:hidden;background:transparent}
#drawer[data-player-sheet] .expanded-player-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);align-items:stretch;gap:clamp(24px,4vw,64px)}
#drawer[data-player-sheet] .expanded-player.expanded-cover{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;min-width:0;min-height:0;padding:0;overflow:auto;background:transparent}
#drawer[data-player-sheet] .expanded-art{display:block;width:min(100%,52dvh,640px);height:auto;aspect-ratio:1;object-fit:contain;margin:0 auto;border-radius:12px;box-shadow:0 14px 35px #0002}
#drawer[data-player-sheet] .expanded-cover>.song-art-link{max-width:100%;flex-shrink:0;min-height:0}
#drawer[data-player-sheet] .expanded-copy{max-width:100%;text-align:center}
#drawer[data-player-sheet] .expanded-copy h2{margin:0 0 5px;font-size:clamp(22px,2.5vw,34px);overflow-wrap:anywhere}
#drawer[data-player-sheet] .expanded-copy .public-track-stats{justify-content:center;margin-top:6px;font-size:12px}
#drawer[data-player-sheet] .expanded-actions{display:flex;align-items:center;justify-content:center;gap:12px}
#drawer[data-player-sheet] .expanded-badges{margin:0;font-size:12px}
#drawer[data-player-sheet] .expanded-badges:empty,#drawer[data-player-sheet] .expanded-actions:empty{display:none}
#drawer[data-player-sheet] .expanded-queue{display:flex;flex-direction:column;min-height:0;min-width:0;padding:0;background:transparent}
#drawer[data-player-sheet] .expanded-queue h3{margin:0 0 16px;font-size:16px}
#drawer[data-player-sheet] .expanded-queue-list{list-style:none;margin:0;padding:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0}
#drawer[data-player-sheet] .expanded-queue-track{display:flex;align-items:center;gap:12px;width:100%;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:inherit;text-align:left;cursor:pointer;min-height:60px}
#drawer[data-player-sheet] .expanded-queue-track:hover,#drawer[data-player-sheet] .expanded-queue-track.is-current{background:color-mix(in srgb,currentColor 8%,transparent)}
#drawer[data-player-sheet] .expanded-queue-track:focus-visible{outline:2px solid var(--focus-ring,#c3edc5);outline-offset:-2px}
#drawer[data-player-sheet] .expanded-queue-track .row-art{width:42px;height:42px;flex:none;object-fit:cover;border-radius:5px}
#drawer[data-player-sheet] .expanded-queue-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
#drawer[data-player-sheet] .expanded-queue-copy strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#drawer[data-player-sheet] .expanded-queue-copy small,#drawer[data-player-sheet] .expanded-queue-duration{font-size:12px;opacity:.72}
#drawer[data-player-sheet] .expanded-queue-duration{flex:none}
#drawer[data-player-sheet] .player-view-switch{display:none}
@media(max-width:1000px) and (min-width:721px){#drawer[data-player-sheet] .expanded-player-layout{grid-template-columns:minmax(0,1fr) minmax(250px,1fr);gap:20px}#drawer[data-player-sheet]>.drawer-body{padding-inline:18px}#drawer[data-player-sheet] .expanded-art{width:min(100%,42dvh)}}
@media(max-width:720px){
 #player{padding-right:52px}
 #player .player-sheet-toggle{right:5px;width:40px;min-width:40px;height:44px;padding:9px}
 #player .player-spectrum,#player .player-controls>[data-action=share]{display:none}
 #drawer[data-player-sheet]{inset:0 0 var(--player-sheet-dock,144px);border-radius:0}
 #drawer[data-player-sheet]>.drawer-header{padding:calc(10px + env(safe-area-inset-top)) 18px 8px}
 #drawer[data-player-sheet]>.drawer-body{padding:4px 18px 18px}
 #drawer[data-player-sheet] .player-view-switch{display:flex;justify-content:center;gap:6px;flex:none;margin-bottom:14px}
 #drawer[data-player-sheet] .player-view-switch button{min-height:40px;padding:8px 16px;border:0;border-radius:99px;color:inherit;background:transparent;font-size:14px}
 #drawer[data-player-sheet] .player-view-switch button[aria-pressed=true]{background:color-mix(in srgb,currentColor 12%,transparent)}
 #drawer[data-player-sheet] .expanded-player-layout{display:block;overflow:hidden}
 #drawer[data-player-sheet] .expanded-cover{height:100%;justify-content:flex-start;gap:12px}
 #drawer[data-player-sheet] .expanded-art{width:min(76vw,35dvh,360px)}
 #drawer[data-player-sheet] .expanded-cover>.song-art-link{flex-shrink:0}
 #drawer[data-player-sheet] .expanded-copy h2{font-size:clamp(22px,6vw,30px)}
 #drawer[data-player-sheet] .expanded-queue{height:100%;display:none}
 #drawer[data-player-sheet][data-player-view=queue] .expanded-cover{display:none}
 #drawer[data-player-sheet][data-player-view=queue] .expanded-queue{display:flex}
}
