#lyrics-content {
  position: relative; scroll-behavior: auto;
  padding: 22px 8px 40px 0; font-size: 16px; line-height: 1.85;
  mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 30px), transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 30px), transparent);
}
#lyrics-content h3 { margin: 32px 0 14px; opacity: .75; }
.lyric-line {
  position: relative; padding: 8px 12px; margin: 0 0 8px;
  color: #949d92; border: 0; border-radius: 4px;
  transform: translateX(0);
  transition: color 850ms ease, transform 850ms cubic-bezier(.2,.7,.2,1);
}
.lyric-line::before {
  content: ''; position: absolute; inset: -3px -2px;
  border-radius: 6px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, #dcc3940d, #dcc39403 75%, transparent);
  transition: opacity 900ms ease;
}
.lyric-line[role=button] { cursor: pointer; }
.lyric-line[role=button]:hover { color: var(--text); }
.lyric-line:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.lyric-line.lyric-upcoming { color: #c0c5b8; transition-duration: 600ms; }
.lyric-line.lyric-active {
  color: #eee9dd; transform: translateX(3px);
  transition-duration: 380ms, 650ms;
}
.lyric-line.lyric-active::before { opacity: 1; transition-duration: 500ms; }
.lyric-word {
  display: inline-block; position: relative;
  color: inherit; text-shadow: 0 0 16px transparent; transform: translateY(0);
  transition: color 650ms ease, text-shadow 800ms ease, transform 600ms ease;
}
.lyric-word.word-sung { color: #dfcfad; }
.lyric-word.word-active {
  color: #ffe4ac; text-shadow: 0 0 18px #efcd8055;
  transform: translateY(-1px); transition-duration: 140ms, 240ms, 240ms;
}
/* Reserved space keeps a breath from moving the text when it fades in. */
.lyric-gap {
  height: 30px; padding-left: 13px; display: flex; align-items: center; gap: 13px;
  opacity: 0; transform: translateY(3px); pointer-events: none;
  transition: opacity 550ms ease, transform 750ms ease;
}
.lyric-gap.gap-active { opacity: 1; transform: translateY(0); }
.gap-dots { display: flex; gap: 7px; align-items: center; height: 12px; }
.gap-dot {
  display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  opacity: calc(.22 + var(--fill, 0) * .78);
  transform: scale(calc(.7 + var(--fill, 0) * .3));
  box-shadow: 0 0 10px #dcc3941a;
  transition: opacity 160ms linear, transform 160ms linear;
}
.gap-label { font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: #a79c82; }
.gap-active .gap-dots { animation: lyric-breath 2.8s ease-in-out infinite; }
#lyrics-content[data-playing=false] .gap-dots { animation-play-state: paused; }
@keyframes lyric-breath { 0%, 100% { filter: brightness(.8); } 50% { filter: brightness(1.25); } }
@media (max-width: 700px) {
  #lyrics-content { max-height: 60vh; overscroll-behavior: contain; font-size: 15px; padding-right: 4px; }
  .lyrics-panel h2 { margin-bottom: 18px; }
  .lyric-line { padding-left: 9px; padding-right: 5px; }
  .lyric-gap { padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #lyrics-content { scroll-behavior: auto; }
  .lyric-line, .lyric-word, .lyric-gap { transform: none; }
}
