/* Standard <audio> element, visually hidden but NOT display:none, so phones keep it as the active media session. */
audio.sr-audio{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;overflow:hidden;clip-path:inset(50%)}
.player{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
@media(pointer:coarse){
 .volume-wrap{display:none}
 .listen-toggle{min-height:44px;min-width:64px}
 .icon-button{min-width:44px;min-height:44px}
 #audio-seek{height:28px}
 button,.song-extra{-webkit-tap-highlight-color:transparent}
}

/* v1.6.1 player: vertical gradient (medium blue top to dark green bottom), gold title, skinny maroon equalizer inside the controls box, larger box. */
.player{background:linear-gradient(to bottom,#2f6290 0%,#17402f 100%);border-top:2px solid #c99a45;padding:24px 40px calc(24px + env(safe-area-inset-bottom,0px));gap:22px;box-shadow:0 -10px 30px rgba(0,0,0,.28)}
.player .player-art{width:76px;height:76px;border-radius:8px;box-shadow:0 0 0 2px rgba(224,178,90,.55)}
.player .now{min-width:200px;max-width:360px;gap:5px}
.player .now strong{font-size:24px;line-height:1.25;background:linear-gradient(180deg,#fff4c6 0%,#f0c868 50%,#b9812e 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.player .now>span{font-size:16px;color:#d3e2d8}
.player .music-player-controls{gap:20px}
.player .listen-controls{width:600px;max-width:100%;padding:14px 20px;gap:16px;border-radius:12px;background:linear-gradient(180deg,#f6faf7,#e1ebe4);box-shadow:0 2px 10px rgba(0,0,0,.25)}
.player .listen-toggle{padding:12px 18px;font-size:15px;min-width:76px}
.player .listen-controls #wave{width:96px;height:34px;flex-shrink:0;cursor:pointer}
.player .equalizer-display{flex-direction:row}
#equalizer-mode{display:none}
/* Kept for keyboard and screen-reader users; click the bars to pause or resume them. */
.motion-toggle{position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%)}
.site{padding-bottom:230px}
@media(max-width:1100px){.player{padding:20px 24px calc(20px + env(safe-area-inset-bottom,0px))}.player .listen-controls{width:460px}}
@media(max-width:800px){.player .listen-controls{width:100%}.site{padding-bottom:260px}}
@media(max-width:640px){.player{padding:14px 14px calc(14px + env(safe-area-inset-bottom,0px));gap:10px}.player .player-art{width:56px;height:56px}.player .now strong{font-size:19px}.player .listen-controls{padding:10px;gap:8px}.player .listen-controls #wave{width:58px;height:30px}.site{padding-bottom:300px}}

/* v1.6.3 mobile layout: song info on top, then [previous] [controls] [next] on one line. */
@media(max-width:800px){
 .player{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"art now close" "prev ctrl next" "err err err";column-gap:10px;row-gap:12px;align-items:center;justify-content:stretch}
 .player #player-art{grid-area:art;align-self:start}
 .player .now{grid-area:now;max-width:none;min-width:0;align-self:start}
 .player #close-player{grid-area:close;align-self:start;justify-self:end}
 .player #previous-song{grid-area:prev;justify-self:center}
 .player .music-player-controls{grid-area:ctrl;order:0;flex-basis:auto;min-width:0;width:100%}
 .player #next-song{grid-area:next;justify-self:center}
 .player #audio-error{grid-area:err}
 .player .icon-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;line-height:1}
}

/* v1.6.4 mobile: previous/next arrows sit together ABOVE the controls box, and the controls box uses the full width. */
@media(max-width:800px){
 .player{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto;grid-template-areas:"art now now close" ". prev next ." "ctrl ctrl ctrl ctrl" "err err err err";row-gap:10px}
 .player #previous-song{grid-area:prev;justify-self:end;margin-right:18px}
 .player #next-song{grid-area:next;justify-self:start;margin-left:18px}
 .player .music-player-controls{grid-area:ctrl;width:100%;max-width:100%}
 .player .listen-controls{width:100%;max-width:100%;box-sizing:border-box;min-width:0}
 .player .seek-wrap{flex:1 1 0;min-width:0}
 .player .seek-wrap span{white-space:nowrap}
}
