/* Floating transport: compact controls, real spectrum, one explicit stop. */
body { --dock: 114px; }
body.player-is-closed { --dock: 12px; }
#player[hidden] { display: none; }
#player {
  --play-progress: 0%;
  grid-template-columns: minmax(190px,.9fr) auto minmax(220px,1.55fr) auto 30px;
  gap: 24px; left: max(18px,calc((100vw - 1536px)/2)); right: max(18px,calc((100vw - 1536px)/2));
  bottom: max(14px,env(safe-area-inset-bottom)); min-height: 94px; padding: 15px 18px;
  border: 1px solid #ffffff25; border-radius: 22px;
  background: radial-gradient(ellipse at 0 100%,#ff529810,transparent 50%),linear-gradient(120deg,#211b27f7,#121016fa 60%,#1c1722f7);
  box-shadow: inset 0 1px 0 #ffffff09,0 18px 50px #000a,0 3px 12px #0005;
  backdrop-filter: blur(24px); isolation: isolate;
}
#player::before { content:"";position:absolute;top:-1px;left:22px;right:22px;height:1px;background:linear-gradient(90deg,transparent,#f4dbe64a 22%,#ff8dbb40 65%,transparent);pointer-events:none; }
#player .player-info { display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;grid-row:auto;grid-column:auto;min-width:0; }
.player-artwork { position:relative;display:block;width:56px;height:56px;border-radius:13px;text-decoration:none;box-shadow:0 5px 16px #0006; }
#player .player-artwork .cover { width:100%;height:100%;overflow:hidden;border-radius:12px;border:1px solid #ffffff26;background:#34313a; }
#player .player-artwork img { width:100%;height:100%;object-fit:cover; }
.artwork-ring { position:absolute;inset:-4px;border:1px solid #d899bd15;border-radius:16px;transition:border-color .25s,box-shadow .25s;pointer-events:none; }
.is-playing .artwork-ring { border-color:#ff8fbb60;box-shadow:0 0 18px #ff418b20; }
.player-copy { min-width:0; }
.player-eyebrow { display:flex;align-items:center;gap:6px;color:#b8aabb;letter-spacing:1.5px;font-size:8px;line-height:12px;font-weight:500; }
.player-eyebrow i { width:4px;height:4px;border-radius:50%;background:#817783;flex-shrink:0; }
.is-playing .player-eyebrow i { background:#ff86c8;box-shadow:0 0 8px #ff48a2bb; }
#player .player-title { margin:4px 0 0;font-size:13px;line-height:18px;font-weight:600;color:#f5edf3;letter-spacing:.04px; }
#player .player-caption { margin:2px 0 0;font-size:10px;line-height:14px;color:#aa9cb6; }
#player .transport { gap:10px;grid-column:auto;grid-row:auto; }
#player .bare { width:28px;height:30px;min-height:0;color:#c4b7cc;border:0;border-radius:9px;background:transparent;padding:0;display:grid;place-items:center;transition:color .16s,background .16s; }
#player .bare:hover { color:#fff0f8;background:#ffffff0a; }
#player .main-play { display:grid;place-items:center;width:42px;height:42px;padding:0;min-height:0;border:1px solid #ffb7d95c;border-radius:50%;background:var(--action-fill);color:#2d0b20;box-shadow:inset 0 1px 1px #ffffff55,0 3px 14px #ff499e20;transition:transform .18s,box-shadow .18s; }
#player .main-play:hover { transform:scale(1.06);box-shadow:inset 0 1px 1px #ffffff66,0 0 18px #ff67b33b; }
#player .main-play:active { transform:scale(.96); }
#player .seek-block { display:block;grid-column:auto;grid-row:auto;min-width:0; }
.wave-stage { position:relative;height:39px; }
#player #meter { display:block;width:100%;height:34px; }
.seek-rail { position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:9px;background:#ffffff12;pointer-events:none; }
.seek-rail span { display:block;width:var(--play-progress);height:100%;border-radius:9px;background:linear-gradient(90deg,#ffacd8,#ff64b6);box-shadow:0 0 9px #ff71bb66; }
#player #seek { position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer;appearance:none;-webkit-appearance:none; }
#player #seek::-webkit-slider-runnable-track { height:100%;background:transparent; }
#player #seek::-webkit-slider-thumb { -webkit-appearance:none;width:3px;height:39px;border:0;border-radius:3px;background:#f0c8dc80;box-shadow:0 0 7px #f5b8d350;opacity:0;transition:opacity .16s; }
#player #seek::-moz-range-track { height:100%;background:transparent; }
#player #seek::-moz-range-thumb { width:3px;height:39px;border:0;border-radius:3px;background:#f0c8dc80;opacity:0; }
#player .wave-stage:hover #seek::-webkit-slider-thumb,#player #seek:focus-visible::-webkit-slider-thumb { opacity:1; }
#player .wave-stage:hover #seek::-moz-range-thumb,#player #seek:focus-visible::-moz-range-thumb { opacity:1; }
.player-timeline { display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:5px;height:11px; }
#player .player-timeline output { color:#c4b6cd;font-size:9px;line-height:11px;font-variant-numeric:tabular-nums; }
.player-quality { font-size:7px;line-height:11px;font-weight:500;letter-spacing:2.2px;color:#a093ac; }
#player .player-volume { display:flex;grid-column:auto;grid-row:auto;align-items:center;gap:7px; }
#player .player-volume input { width:62px;height:22px;margin:0;appearance:none;-webkit-appearance:none;border:0;background:transparent;cursor:pointer; }
#player .player-volume input::-webkit-slider-runnable-track { height:3px;border-radius:4px;background:linear-gradient(to right,#ff8fce var(--volume-level),#ffffff26 var(--volume-level)); }
#player .player-volume input::-moz-range-track { height:3px;border-radius:4px;background:linear-gradient(to right,#ff8fce var(--volume-level),#ffffff26 var(--volume-level)); }
#player .player-volume input::-webkit-slider-thumb { -webkit-appearance:none;width:9px;height:9px;margin-top:-3px;border:0;border-radius:50%;background:#ffb0de; }
#player .player-volume input::-moz-range-thumb { width:9px;height:9px;border:0;border-radius:50%;background:#ffb0de; }
#player .player-close { align-self:center;margin-left:2px; }
#player .player-close:hover { color:#ffcce2;background:#de74aa13; }
#player .is-muted { opacity:.5; }
#player button:focus-visible,#player a:focus-visible { outline:2px solid #ff9ed7;outline-offset:4px; }
#player #seek:focus-visible { outline:2px solid #ff9ed7;outline-offset:4px;border-radius:3px; }
@media (max-width:1100px) {
  #player { gap:16px;grid-template-columns:minmax(170px,1fr) auto minmax(160px,1.2fr) auto 26px;padding:14px 16px; }
  #player .player-volume input { width:45px; }
  #player .transport { gap:5px; }
}
@media (max-width:800px) {
  body { --dock:127px; }
  #player { grid-template-columns:minmax(140px,1fr) auto auto 28px;gap:10px 16px;min-height:106px;padding:12px 15px; }
  #player .player-info { grid-template-columns:42px minmax(0,1fr);gap:11px;grid-column:1;grid-row:1; }
  .player-artwork { width:42px;height:42px; }
  #player .transport { grid-column:2;grid-row:1; }
  #player .player-volume { grid-column:3;grid-row:1; }
  #player .player-close { grid-column:4;grid-row:1; }
  #player .seek-block { grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:12px;align-items:center; }
  .wave-stage { height:25px; }
  #player #meter { height:21px; }
  .player-timeline { margin:0;gap:7px; }
  .player-quality { display:none; }
  #player #seek::-webkit-slider-thumb { height:25px; }
  #player #seek::-moz-range-thumb { height:25px; }
}
@media (max-width:520px) {
  body { --dock:132px; }
  #player { left:9px;right:9px;bottom:max(9px,env(safe-area-inset-bottom));padding:12px 12px 10px;border-radius:17px;grid-template-columns:minmax(0,1fr) auto 24px;gap:9px 8px; }
  #player .player-info { grid-column:1;grid-template-columns:38px minmax(0,1fr);gap:10px; }
  .player-artwork { width:38px;height:38px; }
  #player .player-artwork .cover { border-radius:9px; }
  .artwork-ring { inset:-3px;border-radius:12px; }
  #player .player-title { font-size:11px;line-height:15px;margin:3px 0 0; }
  #player .player-caption { font-size:9px;line-height:11px;margin-top:2px; }
  .player-eyebrow { font-size:6.5px;letter-spacing:1px;line-height:8px;gap:5px; }
  #player .transport { grid-column:2;gap:1px; }
  #player .transport .bare { width:23px; }
  #player .main-play { width:34px;height:34px; }
  #player .player-close { grid-column:3;width:24px;margin:0; }
  #player .seek-block { grid-column:1/3;grid-template-columns:minmax(0,1fr) 65px;gap:8px; }
  #player .player-timeline output { font-size:8px; }
  #player .player-volume { grid-column:3;grid-row:2;gap:0; }
  #player .player-volume input { display:none; }
  #player .player-volume .bare { width:24px;height:25px; }
}
@media (prefers-reduced-motion:reduce) {
  #player *,#player *::before { animation:none!important;transition:none!important; }
}
@media (forced-colors:active) {
  #player { background:Canvas;border-color:CanvasText;box-shadow:none;backdrop-filter:none; }
  #player::before { display:none; }
  #player .main-play { color:ButtonText;background:ButtonFace;border-color:ButtonText;box-shadow:none; }
  #player .bare { color:ButtonText; }
  #player #seek:focus-visible { outline-color:Highlight; }
}
