/* =========================================================================
   Spotiny · Synced lyrics (v2 — mirrors Spotiny-main's lyric-line styling)
   --------------------------------------------------------------------------
   Lyrics are fetched from a 7-source fallback chain (lrclib → lyricsplus
   cluster → unison → bini → Genius worker → Genius direct → plain).
   Active line is centered + scaled up; past lines dim, future lines stay
   at lower opacity. Same visual hierarchy as Spotiny-main's am-lyrics.
   ========================================================================= */

.lyrics-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  text-align: center;
  padding: var(--sp-6);
  color: var(--muted);
}
.lyrics-empty__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--muted-2);
}
.lyrics-empty__icon svg { width: 32px; height: 32px; }
.lyrics-empty__title {
  font-size: var(--fs-16); font-weight: 600;
  color: var(--text-2);
}
.lyrics-empty__text {
  font-size: var(--fs-13); color: var(--muted);
  max-width: 280px;
}

.lyrics-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--muted);
  font-size: var(--fs-13);
}

/* Source label (small footer above the scroll area) */
.lyrics-source {
  font-size: var(--fs-11);
  color: var(--muted-2);
  text-align: right;
  padding: var(--sp-1) var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 18px;
}

/* Scroll container with mask fade top + bottom */
.lyrics-scroll {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 40% 0;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%, #000 18%, #000 82%, transparent 100%);
  scrollbar-width: none;
}
.lyrics-scroll::-webkit-scrollbar { display: none; }

/* Lyric line — same hierarchy as Spotiny-main's am-lyrics */
.lyric-line {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-18);
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: color var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out),
              opacity var(--dur-2) var(--ease-out);
  opacity: 0.5;
}
.lyric-line:hover { color: var(--text-2); opacity: 0.8; }
.lyric-line--past { opacity: 0.35; color: var(--muted-2); }
.lyric-line--active {
  color: var(--text);
  opacity: 1;
  transform: scale(1.06);
  text-shadow: 0 2px 16px var(--accent-glow);
}
.lyric-line--instrumental {
  font-style: italic;
  color: var(--muted-2);
  font-weight: 400;
  font-size: var(--fs-14);
}

/* Plain (unsynced) lyrics — left-aligned, no animation */
.lyrics-scroll--plain .lyric-line {
  text-align: left;
  font-size: var(--fs-15);
  font-weight: 500;
  color: var(--text-2);
  opacity: 1;
  transform: none;
  cursor: default;
}
.lyrics-scroll--plain .lyric-line:hover { color: var(--text-2); opacity: 1; }
.lyrics-scroll--plain .lyric-line--active,
.lyrics-scroll--plain .lyric-line--past {
  color: var(--text-2);
  opacity: 1;
  transform: none;
}
