#player{--tone:#563a78;background:var(--tone);color:#fff;padding:10px 19px;min-height:106px;border-radius:20px;gap:15px;overflow:visible;transition:background-color .45s}#player:before{inset:0;background:linear-gradient(100deg,#0004,#0005);clip-path:none;border-radius:inherit;z-index:-2}#player #tint{position:absolute;width:100%;height:100%;inset:0;border-radius:inherit;object-fit:cover;opacity:0;z-index:-3;pointer-events:none}#player.cover-tone #tint{opacity:1;object-fit:fill;filter:brightness(.65);mask-image:linear-gradient(#000,#000)}#player.cover-tone:before{backdrop-filter:blur(45px);background:#0005}#bars{position:absolute;inset:0;z-index:-1;display:flex;align-items:flex-end;gap:2px;overflow:hidden;border-radius:inherit;pointer-events:none}#bars i{flex:1;background:#fff1;border-radius:3px 3px 0 0;height:var(--h);transform-origin:bottom;animation:rp-wave var(--speed) ease-in-out infinite alternate;animation-delay:var(--delay);animation-play-state:paused}#player.playing #bars i{animation-play-state:running}@keyframes rp-wave{from{transform:scaleY(.38)}to{transform:scaleY(1)}}#cover{flex:none;background:white}.song{min-width:0}.headline{display:flex;align-items:center;flex-wrap:wrap;gap:8px}#artist,#track{overflow:hidden;text-overflow:ellipsis}#artist{font-size:clamp(15px,1.35vw,22px);line-height:1.15;text-transform:uppercase}#live{display:inline-block;font:800 10px/1.2 Arial,sans-serif;border-radius:4px;padding:3px 6px;background:#d10c23;border:1px solid #fff9;white-space:nowrap}#player .actions{flex-wrap:nowrap;gap:5px}#player .actions button{width:34px;height:38px;padding:6px;display:grid;place-items:center;border-radius:50%;background:none;color:#fff}#player .actions button:hover,#player .actions button:focus-visible{background:#fff2}#player .actions svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#player #toggle{border:1px solid #fffd;width:54px;height:54px}#player #closeplayer{width:25px;opacity:.8}#player #closeplayer svg{width:16px}.division{width:clamp(2px,3vw,55px)}.sound{position:relative}#volume{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);width:112px;padding:9px;background:#fff;border-radius:8px;accent-color:var(--tone)}#player:fullscreen{inset:0;border:0;border-radius:0;flex-wrap:nowrap}#player:fullscreen .headline{justify-content:center}.rp-details{display:flex;gap:15px;align-items:center;margin:18px 0}.rp-details img{width:72px;height:72px;object-fit:cover;border-radius:9px}.rp-details small{display:block;margin-top:6px}.rp-history{padding-left:20px}.rp-history li{margin:8px 0}
@media(max-width:760px){#player{width:min(96%,530px);padding:9px 12px;min-height:0;gap:6px 11px}#player .actions{width:100%;justify-content:space-evenly}#player #toggle{width:38px;height:38px}#player .division{width:1px;height:16px;background:#fff4}#artist{font-size:15px}#volume{left:0;transform:none}body.listening{padding-bottom:135px}}
@media(prefers-reduced-motion:reduce){#bars i{animation:none}#player{transition:none}}

/* Inline volume control. The range retains native mouse, touch and keyboard handling. */
#player .sound{display:flex;align-items:center;gap:7px;flex:0 1 auto;padding:1px 9px 1px 3px;border:1px solid #ffffff38;border-radius:30px;background:#15121955;color:white;min-width:0}
#player .sound #vol{width:34px;height:38px;flex:none}
#player .sound #volume{display:block;position:static;transform:none;flex:none;max-width:none;width:clamp(155px,13vw,245px);height:38px;box-sizing:border-box;margin:0;padding:0;border:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;touch-action:pan-y;outline-offset:0}
#volume::-webkit-slider-runnable-track{height:6px;border-radius:20px;background:linear-gradient(to right,#fff 0 var(--level),#ffffff48 var(--level) 100%)}
#volume::-moz-range-track{height:6px;border-radius:20px;background:#ffffff48}
#volume::-moz-range-progress{height:6px;border-radius:20px;background:white}
#volume::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:17px;height:17px;margin-top:-5.5px;border:2px solid white;border-radius:50%;background:white;box-shadow:0 1px 5px #0006}
#volume::-moz-range-thumb{box-sizing:border-box;width:17px;height:17px;border:2px solid white;border-radius:50%;background:white;box-shadow:0 1px 5px #0006}
#player .volume-readout{min-width:4ch;font:650 12px/1.1 system-ui,sans-serif;text-align:right;font-variant-numeric:tabular-nums}
#player .sound:focus-within{border-color:#fffc}
@media(max-width:870px){#player .division{width:1px}#player .sound #volume{width:145px}}
@media(max-width:760px){#player .actions{display:flex;flex-wrap:wrap;gap:2px 5px}#player .sound{flex:0 0 100%;box-sizing:border-box;border-radius:9px;padding:0 10px 0 4px}#player .sound #volume{width:auto;min-width:0;flex:1 1 0;height:40px}#player .sound #vol{width:38px;height:40px}body.listening{padding-bottom:185px}}
