/* Kinetic typography — Glue lyrics */

.lyrics-layer.is-active {
  background: #000000;
}

.lyrics-layer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 90vw;
  min-height: 60dvh;
  min-height: 60vh;
}

.lyrics-stage {
  position: relative;
  width: 100%;
  min-height: 40dvh;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.lyrics-float-wrap {
  width: 100%;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.lyrics-float-wrap.is-floating {
  animation: lyricDrift 18s ease-in-out infinite;
}

@keyframes lyricDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(2px, -4px, 0);
  }
  50% {
    transform: translate3d(-3px, -2px, 0);
  }
  75% {
    transform: translate3d(-1px, 3px, 0);
  }
}

.lyrics-line--current {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.5rem, 7vw, 2.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
  color: #f5f0f2;
  text-shadow: 0 0 40px rgba(255, 102, 178, 0.35);
  will-change: opacity, transform;
  opacity: 0;
}

.lyrics-line--current.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.lyrics-word {
  display: inline;
}

.lyrics-word--serif {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.08em;
}

.lyrics-word--glow {
  color: #ff66b2;
  font-size: 1.12em;
  animation: keywordPulse 3s ease-in-out infinite;
}

@keyframes keywordPulse {
  0%, 100% {
    text-shadow: 0 0 12px rgba(255, 102, 178, 0.5);
  }
  50% {
    text-shadow:
      0 0 24px rgba(255, 102, 178, 0.85),
      0 0 48px rgba(255, 77, 141, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lyrics-float-wrap.is-floating,
  .lyrics-instrumental.is-floating {
    animation: none;
  }

  .lyrics-word--glow {
    animation: none;
    text-shadow: 0 0 16px rgba(255, 102, 178, 0.6);
  }
}
