/* Music player (GNOME Music-flavoured) */

.music {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.music-list {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 10px;
}

.music-list h2 {
  font-size: 19px;
  margin: 4px 0 14px;
}
.music-list .sub { color: var(--text-dim); font-size: 12.5px; margin: -10px 0 14px; }

.tracks { display: flex; flex-direction: column; gap: 4px; }

.track {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 13.5px;
  text-align: left;
  width: 100%;
}
.track:hover { background: var(--hover); }
.track.playing { background: var(--accent-soft); }

.track .cover {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, var(--cv1, #e0653a), var(--cv2, #b23a2f));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.18);
}
.track .cover .icon { width: 19px; height: 19px; }

.track .t-main { flex: 1; min-width: 0; }
.track .t-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .t-main span { color: var(--text-dim); font-size: 12px; }
.track .eq { display: none; align-items: flex-end; gap: 2px; height: 14px; margin-right: 4px; flex: none; }
.track.playing .eq { display: flex; }
.track.playing.paused .eq { animation-play-state: paused; }
.eq i {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: eq 0.9s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 100%; animation-delay: 0.25s; }
.eq i:nth-child(3) { height: 45%; animation-delay: 0.5s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

/* player bar */
.player {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--border);
  background: var(--win-head);
}

.player-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.player-btn:hover { background: var(--hover); }
.player-btn.play {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #fff;
}
.player-btn.play:hover { background: var(--accent-strong); }
.player-btn .icon { width: 16px; height: 16px; }
.player-btn.play .icon { width: 18px; height: 18px; }

.p-time { font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; width: 44px; }

.p-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 13px;
}
.p-title b { font-weight: 700; }
.p-title span { color: var(--text-dim); }

.p-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) var(--val, 0%), var(--border) var(--val, 0%));
  outline: none;
  cursor: pointer;
}
.p-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.p-range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.p-vol { display: flex; align-items: center; gap: 6px; }
.p-vol .icon { width: 14px; height: 14px; color: var(--text-dim); }
.p-vol input { width: 90px; }
