/* ===== SOUNDS PAGE ===== */
.visualizer-canvas {
  width: 100%;
  height: 80px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* MY MIXES */
.my-mixes__save {
  display: flex;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
  flex-wrap: wrap;
}

.mix-name-input {
  flex: 1;
  min-width: 160px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.6rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition);
}
.mix-name-input::placeholder { color: var(--muted); }
.mix-name-input:focus { border-color: rgba(139,124,248,0.5); }

.my-mixes__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.saved-mix-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.saved-mix-pill:hover {
  border-color: var(--accent);
  background: rgba(139,124,248,0.07);
}
.mix-load {
  cursor: pointer;
  font-size: 0.82rem;
}
.mix-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  font-family: inherit;
}
.mix-del:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.my-mixes__empty {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* ===== ACTIVE MIX PANEL (drag-reorder + mini waveform) ===== */
.active-mix {
  margin-top: 2rem;
}
.active-mix__empty {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}
.active-mix__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.active-mix__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  cursor: grab;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s, transform 0.12s;
}
.active-mix__row:hover { border-color: var(--accent); }
.active-mix__row.dragging {
  opacity: 0.5;
  cursor: grabbing;
  border-color: var(--accent);
}
.active-mix__row.drag-over {
  border-color: var(--accent2);
  transform: translateY(2px);
}
.active-mix__handle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  cursor: grab;
  flex-shrink: 0;
  user-select: none;
}
.active-mix__icon { font-size: 1.15rem; flex-shrink: 0; }
.active-mix__name {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  min-width: 5.5rem;
}
.active-mix__wave {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 2px;
  height: 22px;
  flex: 1;
  min-width: 40px;
  overflow: hidden;
}
.active-mix__wave .am-bar {
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.45;
  flex-shrink: 0;
}
.active-mix__remove {
  margin-left: auto;
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.active-mix__remove:hover { color: var(--danger); border-color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .active-mix__row { transition: none; }
}

/* Favorites heart button */
.fav-btn {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}
.fav-btn:hover { color: #e06a6a; border-color: #e06a6a; }
.fav-btn.active { color: #e06a6a; border-color: rgba(224,106,106,0.5); background: rgba(224,106,106,0.1); }
