/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: "Alegreya", serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== INTRO ANIMASI ========== */
.scene-1 {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  animation: sceneHide 4.5s alternate forwards;
  z-index: 1;
}

@media (max-width: 600px) {
  .scene-1 {
    transform: translate(-50%, -50%) rotate(90deg);
    min-width: 100vh;
    min-height: 100vw;
  }
}

.scene-2 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  animation: sceneHide 5.5s alternate forwards;
  animation-delay: 5s;
  position: relative;
  z-index: 5;
  padding: 1rem;
}

.scene-2 span {
  font-size: 2rem;
  font-family: "Shojumaru", system-ui;
  animation: fadeIn 1s forwards;
  opacity: 0;
  text-align: center;
  white-space: nowrap;
}

.scene-2 span:nth-child(1) {
  animation-delay: 5.7s;
  text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff, 0 0 5px #fff;
}

.scene-2 span:nth-child(2) {
  animation-delay: 7s;
  text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff, 0 0 5px #fff;
}

.scene-2 span:nth-child(3) {
  color: red;
  animation-delay: 8.3s;
  text-shadow: 0 0 1px red, 0 0 2px red, 0 0 3px red, 0 0 4px red, 0 0 5px red;
}

.scene-2 .circle {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: #000;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: circle 1.3s forwards;
  animation-delay: 9.5s;
  opacity: 0;
  box-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff;
  z-index: 1;
}

@media (min-width: 601px) {
  .scene-2 {
    flex-direction: row;
    gap: 1rem;
  }
  .scene-2 span {
    font-size: 3rem;
  }
}

@keyframes circle {
  from { scale: 0; opacity: 0; filter: brightness(100%); }
  to { scale: 42; opacity: 1; filter: brightness(0%); }
}

@keyframes sceneHide {
  from { display: flex; }
  to { display: none; }
}

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

/* ========== PLAYER STYLES ========== */
.video-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.video-background-container.active {
  opacity: 1;
}

.video-background-container video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page {
  width: 100%;
  max-width: 800px;
  padding: 1rem;
  display: none;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  background-color: transparent;
}

.page.active {
  display: flex;
}

.music-player-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.music-player-box {
  background: radial-gradient(circle at top left, #2e004d3b, #1a002c3a);
  border-radius: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.player-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.album-art-player {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  margin-right: 1rem;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.track-info-player h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #fff;
}

.track-info-player p {
  font-size: 0.9rem;
  color: #b3b3b3;
  margin: 0;
}

.lyrics-container {
  height: 180px;
  overflow-y: auto;
  background: radial-gradient(circle at top left, #2e004d43, #1a002c3d);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #d0d0d0;
}

.lyrics-container::-webkit-scrollbar { width: 8px; }
.lyrics-container::-webkit-scrollbar-track { background: #282828; border-radius: 10px; }
.lyrics-container::-webkit-scrollbar-thumb { background: #380056; border-radius: 10px; }
.lyrics-container::-webkit-scrollbar-thumb:hover { background: #5a5a6e; }

.player-controls { margin-top: auto; }

.progress-section-player { margin-bottom: 1rem; }

.progress-bar-container-player {
  background-color: #404040;
  border-radius: 5px;
  cursor: pointer;
  height: 10px;
  width: 100%;
}

.progress-bar-player {
  background-color: #8b5cf6;
  width: 0%;
  height: 100%;
  border-radius: 5px;
  transition: width 0.1s linear;
}

.time-display-player {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #a0a0a0;
  margin-top: 0.5rem;
}

.main-controls-player {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 1rem;
}

.control-btn-player {
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.1s ease;
  padding: 0.5rem;
}
.control-btn-player:hover { color: #8b5cf6; transform: scale(1.1); }
.control-btn-player.play-pause-player { font-size: 2.2rem; color: #8b5cf6; }
.control-btn-player.play-pause-player:hover { color: #a78bfa; }
.control-btn-player.active-feature { color: #8b5cf6 !important; }

.secondary-controls-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
  width: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}
.control-btn-player.small-icon { font-size: 1.2rem; }

.volume-control-player, .playback-speed-control {
  display: flex;
  align-items: center;
}

.volume-icon-player, .speed-icon { color: #8b5cf6; font-size: 0.9rem; }
.volume-icon-player.ml-1 { margin-left: 0.25rem; }

.volume-slider-player, .speed-slider {
  width: 80px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #404040;
  border-radius: 3px;
  outline: none;
  opacity: 0.8;
  transition: opacity .2s;
  margin: 0 0.5rem;
}
.volume-slider-player:hover, .speed-slider:hover { opacity: 1; }
.volume-slider-player::-webkit-slider-thumb, .speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #8b5cf6;
  border-radius: 50%;
  cursor: pointer;
}
.volume-slider-player::-moz-range-thumb, .speed-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #8b5cf6;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

#currentSpeedDisplay {
  font-size: 0.85rem;
  color: #8b5cf6;
  min-width: 35px;
  text-align: right;
}

.footer-credit {
  text-align: center;
  font-size: 0.75rem;
  color: #707070;
  margin-top: 1.5rem;
}

.lyric-line {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.2em;
}

.lyric-line.highlight { color: #fff; font-weight: 600; }

/* ========== RESPONSIVE PLAYER ========== */
@media (max-width: 600px) {
  .music-player-box { max-width: 95%; padding: 1rem; }
  .player-header { flex-direction: column; align-items: center; text-align: center; }
  .album-art-player { width: 100px; height: 100px; margin-right: 0; margin-bottom: 1rem; }
  .track-info-player h2 { font-size: 1.2rem; }
  .lyrics-container { height: 150px; font-size: 0.9rem; }
  .control-btn-player { font-size: 1.4rem; }
  .control-btn-player.play-pause-player { font-size: 2rem; }
  .secondary-controls-player { flex-direction: column; gap: 0.8rem; }
  .volume-control-player, .playback-speed-control { width: 100%; justify-content: center; }
                                            }
