/* =========================================
   TWISTED BLACK — Discography Section
   ========================================= */

#discography {
  background: var(--bg-elevated);
}

.disco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.disco-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.disco-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.disco-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition-fast);
}

.disco-header:active {
  background: rgba(255, 255, 255, 0.03);
}

.disco-cover {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
}

.disco-meta {
  flex: 1;
  min-width: 0;
}

.disco-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disco-year {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.disco-type {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1px;
}

.disco-chevron {
  color: rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-med);
  flex-shrink: 0;
}

.disco-chevron svg {
  width: 22px;
  height: 22px;
}

.disco-card.expanded .disco-chevron {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.4);
}

/* Expandable tracklist */
.disco-tracklist {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms ease-in-out;
}

.disco-card.expanded .disco-tracklist {
  max-height: 2000px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.disco-tracks {
  list-style: none;
  padding: 6px 0;
}

.disco-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition-fast), transform 100ms ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.disco-track:hover {
  background: rgba(255, 255, 255, 0.03);
}

.disco-track:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.99);
}

.disco-track.active {
  background: rgba(220, 38, 38, 0.06);
}

.disco-track-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  min-width: 20px;
  text-align: right;
}

.disco-track.active .disco-track-num {
  color: var(--ember);
}

.disco-track-name {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disco-track.active .disco-track-name {
  color: var(--ember);
}

.disco-track-feat {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
}

.disco-track-dur {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
}

/* EQ bars for active disco track */
.disco-track-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  min-width: 14px;
}

.disco-track.active.playing .disco-track-eq {
  display: flex;
}

.disco-track-eq .eq-bar {
  width: 2.5px;
  border-radius: 1px;
  background: var(--ember);
  animation: eqBounce 1s ease-in-out infinite;
}

.disco-track-eq .eq-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.disco-track-eq .eq-bar:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.disco-track-eq .eq-bar:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.disco-track-eq .eq-bar:nth-child(4) { height: 80%; animation-delay: 0.1s; }

/* Streaming links for non-self-hosted albums */
.disco-stream-links {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  flex-wrap: wrap;
}

.disco-stream-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.disco-stream-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
}

.disco-stream-btn svg {
  width: 14px;
  height: 14px;
}
