@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;600;800;900&family=Noto+Serif:wght@600;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(255,215,120,0.25), transparent 60%),
    linear-gradient(to bottom, #3b0a0a, #0b0505);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(255,215,120,0.35), transparent 65%);
  pointer-events: none;
  animation: lightMove 12s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes lightMove {
  from { background-position: 45% 10%; }
  to   { background-position: 55% 18%; }
}

.karaoke-room {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  padding: 40px;
}

.listen-zone {
  background: rgba(0,0,0,0.6);
  border-radius: 26px;
  padding: 22px;
  box-shadow:
    inset 0 0 40px rgba(255,215,120,0.15),
    0 20px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,215,120,0.25);
}

.listen-zone h2 {
  font-family: 'Noto Serif', serif;
  font-size: 20px;
  color: #ffd966;
  margin-bottom: 16px;
  text-align: center;
}

#songList {
  list-style: none;
}

#songList li {
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255,215,120,0.08);
  transition: all 0.25s ease;
}

#songList li:hover {
  background: rgba(255,215,120,0.25);
  transform: translateX(6px);
}

.sing-zone {
  position: relative;
  background: rgba(0,0,0,0.65);
  border-radius: 40px 40px 70px 70px;
  padding: 36px;
  border: 2px solid rgba(255,215,120,0.35);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.85),
    inset 0 0 60px rgba(255,215,120,0.2);
}

.sing-zone::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255,215,120,0.25),
    transparent 60%
  );
  pointer-events: none;
}

.sing-zone h1 {
  text-align: center;
  font-family: 'Noto Serif', serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffe7a3;
  margin-bottom: 22px;
  text-shadow:
    0 0 18px rgba(255,215,120,0.9),
    0 6px 22px rgba(0,0,0,0.8);
}

audio {
  width: 100%;
  margin-bottom: 14px;
  border-radius: 14px;
  opacity: 0.7;
}


.controls {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

button {
  flex: 1;
  padding: 16px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  color: #2b1800;
  background: radial-gradient(circle, #fff2b8, #ffb347);
  box-shadow:
    0 10px 28px rgba(255,180,80,0.6);
  transition: all 0.25s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(255,215,120,0.85);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#status {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  opacity: 0.85;
}

#result {
  margin-top: 18px;
  font-size: 34px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(90deg, #fff7c8, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(255,215,120,0.9);
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .karaoke-room {
    grid-template-columns: 1fr;
  }

  .sing-zone h1 {
    font-size: 2rem;
  }

  #lyricsBox .lyric-active {
    font-size: 24px;
  }
}
#lyricsBox {
  height: 180px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

#lyricsBox p {
  margin: 0;
  font-size: 20px;
  color: #fff7c8;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  opacity: 0.3;            
  transform: translateY(0) scale(0.95);
  transition: all 0.35s ease;
}

\#lyricsBox .prev,
#lyricsBox .next {
  opacity: 0.3;
  font-size: 20px;
  color: #fff7c8;
  transform: scale(0.95);
}

#lyricsBox .current {
  opacity: 1 !important;  
  font-size: 30px;
  color: #ffe7a3;
  text-shadow:
    0 0 22px rgba(255,215,120,0.9),
    0 0 40px rgba(255,140,0,0.6);
  transform: scale(1.15);
}
.back{
    display:inline-block;
  margin:20px;
  padding:12px 22px;
  background:#b88647;
  color:#fff;
  text-decoration:none;
  border-radius:14px;
  font-weight:bold;
  font-size:17px;
  box-shadow:0 4px 10px rgba(0,0,0,.4);
  transition:.25s;
}

.back:hover{
  background:#d3a561;
  transform:translateX(-4px);
  box-shadow:0 6px 14px rgba(0,0,0,.5);
}