/* ── Track list ── */
.w-tracklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.w-tracklist__empty {
  color: #555;
  font-size: 0.9rem;
  text-align: center;
  padding: 40px 0;
}

/* ── Single track row ── */
.w-track {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #161616;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.w-track:hover {
  background: #1c1c1c;
  border-color: #333;
}

/* Cover */
.w-track__cover {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: #222;
}

.w-track__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.w-track__cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

/* Body */
.w-track__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.w-track__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.w-track__genre {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff5500;
}

.w-track__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w-track__desc {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

/* Player */
.w-track__player {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

audio {
  width: 100%;
  height: 28px;
  accent-color: #ff5500;
  filter: invert(1) hue-rotate(180deg);
}

audio::-webkit-media-controls-panel {
  background: #1e1e1e;
}

/* Spectrum */
.w-track__spectrum {
  width: 100%;
  height: 32px;
  display: block;
  border-radius: 2px;
  background: #111;
}

@media (max-width: 480px) {
  .w-track {
    flex-direction: column;
  }

  .w-track__cover {
    width: 100%;
    height: 140px;
  }
}
