.waveform-player {
  display: flex;
  flex-direction: column;
  gap: 5px;
  user-select: none;
  -webkit-user-select: none;
}

/* Row 1: play button + waveform canvas + timestamp */
.wf-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Row 2: volume icon + volume slider — indented to align with waveform */
.wf-row-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 38px; /* play-btn width (30px) + gap (8px) */
}

.wf-large .wf-row-vol {
  padding-left: 50px; /* large play-btn width (42px) + gap (8px) */
}

.wf-play-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dc2626;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  transition: background 0.15s, transform 0.1s;
}
.wf-play-btn:hover  { background: #b91c1c; transform: scale(1.07); }
.wf-play-btn:active { transform: scale(0.95); }
.wf-play-btn svg    { width: 14px; height: 14px; display: block; }

.wf-canvas {
  flex: 1;
  height: 32px;
  cursor: pointer;
  display: block;
  min-width: 0;
}

.wf-time {
  flex-shrink: 0;
  font-size: 10px;
  color: #737373;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, monospace;
  min-width: 28px;
  text-align: right;
}

/* ── Wishlist / Save-for-later buttons ──────────────────────────────────── */

/* Card overlay heart */
.wl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.1s;
  backdrop-filter: blur(4px);
}
.wl-btn:hover  { background: rgba(0,0,0,0.8); transform: scale(1.1); }
.wl-btn:active { transform: scale(0.92); }

.wl-icon {
  display: block;
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,0.75);
  flex-shrink: 0;
  transition: color 0.15s, fill 0.15s;
}

/* Saved state — card */
.wl-btn.wl-saved .wl-icon {
  fill: #ef4444;
  color: #ef4444;
  stroke: #ef4444;
}

/* Detail page save button */
.wl-detail-btn {
  transition: border-color 0.15s, color 0.15s;
}
.wl-detail-btn .wl-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: fill 0.15s, color 0.15s;
}
.wl-detail-btn.wl-saved {
  border-color: #ef4444;
  color: #ef4444;
}
.wl-detail-btn.wl-saved .wl-icon {
  fill: #ef4444;
  color: #ef4444;
  stroke: #ef4444;
}
.wl-label { font-size: inherit; }

/* ── Volume control ─────────────────────────────────────────────────────── */
.wf-vol-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #737373;
  transition: color 0.15s;
}
.wf-vol-btn:hover { color: #e5e5e5; }
.wf-vol-btn svg   { display: block; width: 14px; height: 14px; }

.wf-vol-slider {
  flex: 1;
  min-width: 40px;
  max-width: 120px;
  height: 3px;
  border-radius: 2px;
  cursor: pointer;
  accent-color: #dc2626;
  /* Cross-browser track */
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #dc2626 calc(var(--vol, 80) * 1%), #3f3f3f calc(var(--vol, 80) * 1%));
  outline: none;
  border: none;
}
.wf-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e5e5e5;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
}
.wf-vol-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e5e5e5;
  border: none;
  cursor: pointer;
}
.wf-vol-slider::-moz-range-track {
  background: #3f3f3f;
  height: 3px;
  border-radius: 2px;
}

/* Large variant — product detail page */
.wf-large .wf-canvas    { height: 56px; }
.wf-large .wf-play-btn  { width: 42px; height: 42px; }
.wf-large .wf-play-btn svg { width: 19px; height: 19px; }
.wf-large .wf-time      { font-size: 11px; min-width: 34px; }
.wf-large .wf-vol-slider { width: 72px; }
.wf-large .wf-vol-btn svg { width: 16px; height: 16px; }
