/* ═══════════════════════════════════════════════════════════════
   ALBUM UI STYLES
   ═══════════════════════════════════════════════════════════════ */

.album-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.album-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
  max-width: 220px;
  flex: 1 1 140px;
  position: relative;
}

.album-card:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.album-card.active {
  border-color: var(--accent);
  background: rgba(240,192,64,0.06);
}

.album-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.album-name {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-tracks {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.album-concept {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-era-tag {
  font-size: 0.65rem;
  color: var(--accent);
  margin-top: 0.25rem;
  opacity: 0.8;
}

.album-card-actions {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.4rem;
}

/* ── Detail panel ──────────────────────────────────────────────── */

.album-detail-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.75rem;
}

.album-detail-header {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Tracklist ─────────────────────────────────────────────────── */

.album-tracklist {
  margin-bottom: 0.75rem;
}

.tracklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.track-number {
  font-size: 0.75rem;
  color: var(--muted);
  width: 1.5rem;
  text-align: right;
}

.track-title {
  flex: 1;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-actions {
  display: flex;
  gap: 0.15rem;
}

.track-move {
  font-size: 0.6rem !important;
  padding: 0.05rem 0.25rem !important;
  line-height: 1;
  opacity: 0.5;
}

.track-move:hover {
  opacity: 1;
}

/* ── Add songs ─────────────────────────────────────────────────── */

.album-add-songs {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.available-songs-list {
  max-height: 150px;
  overflow-y: auto;
}

.available-song-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* ── Create/Edit form ──────────────────────────────────────────── */

.album-form {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1rem;
}

.album-form-field {
  margin-bottom: 0.5rem;
}

.album-form-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
