/* ===== Player bar, sliders, queue panel specifics ===== */
.playerbar {
  display: grid;
  grid-template-columns: minmax(180px, 30%) 1fr minmax(180px, 30%);
  align-items: center;
  gap: 16px;
  height: var(--np-bar-h);
  padding: 0 12px;
  background: var(--bg-base-solid);
}

.npb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.npb-art { width: 56px; height: 56px; border-radius: 5px; object-fit: cover; }
.npb-meta { position: relative; min-width: 0; padding-right: 26px; font-size: .84rem; }
.npb-title { display: block; font-weight: 500; }
.npb-artists { color: var(--text-subdued); font-size: .74rem; margin-top: 2px; }
.npb-like { position: absolute; right: -6px; top: 50%; translate: 0 -50%; opacity: .9; }

.npb-center { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.npb-buttons { display: flex; align-items: center; gap: 14px; }
.ctl {
  color: hsla(0,0%,100%,.72);
  width: 32px; height: 32px; display: grid; place-items: center;
  position: relative;
}
.ctl:hover:not(:disabled) { color: #fff; scale: 1.06; }
.ctl:disabled, .ctl.off { color: #4d4d4d !important; cursor: default; scale: 1; }
.ctl.on { color: var(--green); }
.mode-dot {
  position: absolute; bottom: 1px; left: 50%; translate: -50% 0;
  width: 3.5px; height: 3.5px; border-radius: 50%;
  background: transparent;
}
.ctl.on .mode-dot { background: var(--green); }
.one-badge {
  position: absolute; top: 50%; left: 50%;
  translate: -38% -58%;
  font-size: .48rem; font-weight: 900; color: currentColor;
}
.play-btn {
  background: #fff; color: #000;
  border-radius: 50%; display: grid; place-items: center;
}
.play-btn.big { width: 32px; height: 32px; }
.play-btn:hover { transform: scale(1.07); }
body.is-playing .play-btn { box-shadow: none; }

.npb-seekrow { display: flex; align-items: center; gap: 10px; width: min(560px, 46vw); max-width: 100%; }
.time { font-size: .68rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Slider rail */
.slider {
  --rail-h: 4px;
  position: relative; flex: 1; height: 12px;
  cursor: pointer; touch-action: none; border-radius: 2px;
  outline-offset: 4px;
}
.slider-rail {
  position: absolute; inset: calc(50% - var(--rail-h)/2) 0;
  background: hsla(0,0%,100%,.22);
  border-radius: 2px; overflow: hidden;
}
.slider-fill { height: 100%; width: 0; background: #fff; }
.slider-thumb {
  position: absolute; top: 50%; translate: -50% -50%;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff;
  opacity: 0; scale: .7;
  transition: opacity .15s ease, scale .15s ease;
  z-index: 2;
}
.slider:hover .slider-fill, .slider.dragging .slider-fill { background: var(--green); }
.slider:hover .slider-thumb, .slider.dragging .slider-thumb, .slider:focus-visible .slider-thumb {
  opacity: 1; scale: 1;
}

/* volume slider narrower */
.npb-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.npb-right .slider { flex-basis: 96px; flex-grow: 0; }
.mute-x { position: absolute; }
.mute-x::before, .mute-x::after {
  content: ""; position: absolute; width: 2px; height: 13px; border-radius: 2px;
  background: currentColor; left: 8.5px;
}
.mute-x::before { transform: rotate(38deg) translate(-0.5px,-1px); top: 2px;}
.mute-x::after { transform: rotate(-38deg); top: 6px;}

/* queue panel content */
.queue-panel-inner > * { padding: 18px 18px 30px; }
.queue-panel-content { background: transparent; }
.queue-panel h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.queue-panel .track-row { grid-template-columns: 16px minmax(0,1fr) 76px; }
.queue-panel .tr-album.cell { display: none; }

@media (max-width: 1080px) {
  .playerbar { grid-template-columns: minmax(140px,34%) 1fr minmax(120px,26%); }
}
@media (max-width: 820px) {
  .playerbar { display: none; } /* replaced by mini player */
}
