/* player.css */
.player {
  grid-area: player; background: var(--bar); border-radius: 10px;
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center;
  padding: 0 16px; gap: 16px; position: relative; overflow: hidden;
}
.viz { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; pointer-events: none; }
.player > *:not(.viz) { position: relative; z-index: 1; }
.now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.now-art { width: 56px; height: 56px; border-radius: 6px; flex: 0 0 auto; display: grid; place-items: center; font-size: 1.4rem; color: #fff; }
.now-title { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-artist { color: var(--muted); font-size: .78rem; }
.center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.controls { display: flex; align-items: center; gap: 20px; }
.ctrl { background: none; border: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; position: relative; transition: color .15s, transform .1s; }
.ctrl:hover { color: var(--text); }
.ctrl:active { transform: scale(.9); }
.ctrl svg { width: 18px; height: 18px; }
.ctrl.on { color: var(--gold); }
.ctrl-play { width: 38px; height: 38px; border-radius: 999px; background: var(--text); }
.ctrl-play:hover { transform: scale(1.06); }
.ctrl-play svg { color: var(--bar); width: 18px; height: 18px; }
.progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 540px; }
.time { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.range { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px; background: var(--line); cursor: pointer; flex: 1; outline: none; }
.range.fill { background: linear-gradient(90deg, var(--gold) var(--f,0%), var(--line) 0); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); opacity: 0; transition: opacity .15s; }
.range:hover::-webkit-slider-thumb { opacity: 1; }
.range::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: var(--text); }
.right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.vol { display: flex; align-items: center; gap: 8px; width: 150px; }
.vol .range { max-width: 110px; }

.sp.playing .ctrl-play { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(122,0,25,.55);} 70% { box-shadow: 0 0 0 12px rgba(122,0,25,0);} 100% { box-shadow: 0 0 0 0 rgba(122,0,25,0);} }
