@import url('https://cdn.jsdelivr.net/npm/pretendard/dist/web/static/pretendard.css');

body {
  margin: 0;
  background: #111;
  color: #fff;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

.container {
  text-align: center;
  z-index: 1;
}

.lyrics-title {
  font-size: 2rem;
  margin-bottom: 20px;
  animation: slideDown 1s ease-out;
}

.lyrics-container {
  font-size: 1.5rem;
  line-height: 2.5rem;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 1rem;
}

.lyric-line {
  opacity: 0.3;
  transition: all 0.4s ease;
  cursor: pointer;
  display: block;
  max-width: 100%;
  word-break: break-word;
  transform-origin: center;
}

.lyric-line.active {
  opacity: 1;
  transform: scale(1.05);
}

.lyric-line:hover {
  color: #1db954;
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ⬛️ 페이드아웃 오버레이 */
.fade-overlay {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 2s ease-in-out;
}

.fade-overlay.active {
  opacity: 1;
}
