/* ================================================================
   Timeline — Discography timeline
   ================================================================ */

.timeline-section { margin-top: 24px; animation: fadeIn 1s ease-out 2.2s both; }

.timeline-toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: none;
  color: rgba(255,255,255,0.15); font-size: clamp(8px, 2vw, 10px);
  font-family: inherit; cursor: pointer; padding: 6px 0; margin: 0 auto;
  transition: color 0.4s ease; letter-spacing: 0.15em; text-transform: uppercase;
}

.timeline-toggle:hover { color: rgba(255,255,255,0.4); }
.timeline-toggle .toggle-icon { width: 11px; height: 11px; opacity: 0.2; transition: opacity 0.4s ease; }
.timeline-toggle:hover .toggle-icon { opacity: 0.45; }
.timeline-toggle .toggle-arrow { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); font-size: 6px; opacity: 0.35; }
.timeline-toggle.open .toggle-arrow { transform: rotate(180deg); }

.timeline-container { max-height: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease; opacity: 0; }
.timeline-container.open { max-height: 2000px; opacity: 1; }

.timeline { position: relative; padding: 32px 0 16px; max-width: 700px; margin: 0 auto; }

.timeline::before {
  content: ''; position: absolute; top: 16px; bottom: 16px; left: 50%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12) 10%, rgba(255,255,255,0.12) 90%, transparent);
  transform: translateX(-50%);
}

.timeline::after {
  content: ''; position: absolute; top: 4px; left: 50%;
  transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
}

.timeline-item {
  display: flex; align-items: flex-start; position: relative;
  padding: 0 0 28px; cursor: default; transition: all 0.3s ease;
}

.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:nth-child(odd) { flex-direction: row; padding-right: calc(50% + 24px); justify-content: flex-end; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; padding-left: calc(50% + 24px); justify-content: flex-end; }

.timeline-dot {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.25);
  z-index: 2; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-dot::before {
  content: ''; position: absolute; inset: 2px; border-radius: 50%;
  background: rgba(255,255,255,0.35); opacity: 0; transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: rgba(255,255,255,0.35); border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 12px rgba(255,255,255,0.15); transform: translateX(-50%) scale(1.3);
}

.timeline-item:hover .timeline-dot::before { opacity: 1; }

.timeline-item.latest .timeline-dot {
  background: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 10px rgba(255,255,255,0.15); width: 12px; height: 12px; top: 7px;
}

.timeline-item.latest .timeline-dot::before { background: rgba(255,255,255,0.8); opacity: 1; }

.timeline-content {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; padding: 14px 18px; position: relative;
  transition: all 0.4s ease; max-width: 100%;
}

.timeline-content::before {
  content: ''; position: absolute; top: 12px; width: 12px; height: 1px;
  background: rgba(255,255,255,0.1); transition: background 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content::before { right: -13px; }
.timeline-item:nth-child(even) .timeline-content::before { left: -13px; }

.timeline-item:hover .timeline-content { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); }
.timeline-item:hover .timeline-content::before { background: rgba(255,255,255,0.25); }

.timeline-item.latest .timeline-content { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.timeline-item.latest:hover .timeline-content { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); }

.timeline-content-inner { display: flex; gap: 12px; align-items: flex-start; }

.timeline-cover-wrap {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  transition: all 0.4s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.timeline-item:hover .timeline-cover-wrap { border-color: rgba(255,255,255,0.18); transform: scale(1.05); }
.timeline-cover { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.85; transition: opacity 0.3s ease; }
.timeline-item:hover .timeline-cover { opacity: 1; }

.timeline-cover-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(255,255,255,0.25);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.timeline-info { flex: 1; min-width: 0; }

.timeline-album {
  font-size: clamp(12px, 2.5vw, 15px); font-weight: 600; color: rgba(255,255,255,0.75);
  margin: 0 0 3px; letter-spacing: 0.04em; transition: color 0.3s ease; line-height: 1.3;
}

.timeline-item:hover .timeline-album { color: rgba(255,255,255,0.9); }
.timeline-item.latest .timeline-album { color: rgba(255,255,255,0.9); }

.timeline-type {
  display: inline-block; font-size: clamp(7px, 1.5vw, 9px); color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
  padding: 2px 6px; border: 1px solid rgba(255,255,255,0.1); border-radius: 2px;
  background: rgba(255,255,255,0.03);
}

.timeline-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.timeline-meta-item { font-size: clamp(8px, 1.8vw, 10px); color: rgba(255,255,255,0.3); letter-spacing: 0.03em; line-height: 1.6; }
.timeline-meta-label { color: rgba(255,255,255,0.18); text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(7px, 1.5vw, 8px); margin-right: 4px; }

.timeline-tracks { margin-top: 8px; display: flex; align-items: center; gap: 8px; }

.timeline-track-bar {
  height: 2px; border-radius: 1px; flex-shrink: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
  transition: all 0.4s ease;
}

.timeline-track-label { font-size: clamp(7px, 1.5vw, 9px); color: rgba(255,255,255,0.18); white-space: nowrap; letter-spacing: 0.05em; }

.timeline-label-text {
  font-size: clamp(7px, 1.4vw, 8px); color: rgba(255,255,255,0.12);
  margin-top: 6px; letter-spacing: 0.03em; line-height: 1.4; font-style: italic;
}

.timeline-gap-indicator { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 1; }
.timeline-gap-text { font-size: clamp(7px, 1.5vw, 9px); color: rgba(255,255,255,0.15); white-space: nowrap; letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 6px; background: var(--bg); position: relative; z-index: 1; }
