/* Lyrics Panel */
.lyrics-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1a1d24 0%, var(--bg-panel) 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.lyrics-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 0 2rem;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.lyrics-container::before,
.lyrics-container::after {
  content: "";
  display: block;
  height: 50vh;
}

/* Hide scrollbar for lyrics container to look cleaner */
.lyrics-container::-webkit-scrollbar {
  display: none;
}
.lyrics-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.lyric-line {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 1.5rem 0;
  transition: opacity 0.3s ease, font-size 0.3s ease, transform 0.3s ease;
  opacity: 0.4;
  cursor: pointer;
  position: relative;
  display: inline-block; /* For proper ::before positioning */
  width: 100%;
}

.lyric-line span.text-wrapper {
  position: relative;
  display: inline-block;
}

.lyric-line span.text-wrapper::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.6), 0 0 30px rgba(0, 229, 255, 0.2);
  white-space: pre;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--progress, 0%)) 0 0);
  pointer-events: none; /* Let clicks pass through to parent */
  opacity: 0; /* Hidden by default */
}

.lyric-line:hover {
  opacity: 0.8;
}

.lyric-line.active {
  font-size: 2rem;
  font-weight: 800;
  opacity: 1;
  transform: scale(1.05);
}

.lyric-line.active span.text-wrapper::before {
  opacity: 1;
}

.lyric-line.passed {
  color: #5a6275;
  opacity: 0.3;
}

@media (max-width: 900px) {
  .lyric-line {
    font-size: 1.2rem;
  }
  .lyric-line.active {
    font-size: 1.5rem;
  }
}
