* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  color: #0d0d0d;
}

*::-webkit-scrollbar {
  width: 0px;
}

*::-webkit-scrollbar-track {
  background: rgba(5, 5, 5, 1);
}

*::-webkit-scrollbar-thumb {
  background: rgba(5, 5, 5, 1);
  border-radius: 10px;
  transition: background-color 0.3s ease-in-out;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(5, 5, 5, 1);
}

#particles-js,
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

body {
  background-color: black;
  background-image: url("../images/bg-fall.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(3px);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(3px);
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.8s ease;
  color: white;
}

.overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 90%;
  max-width: 740px;
  padding: 30px;
  background: rgba(34, 34, 34, 0.5);
  backdrop-filter: blur(3px);
  border: 2px solid white;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 2;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.container.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.container img {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 5px solid #fff;
  padding: 3px;
  transition: transform 0.2s ease-in-out;
}

.container img:hover {
  transform: scale(1.05);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.container img.spin {
  animation: spin 1s ease-out forwards;
}

.container h1 {
  font-size: 32px;
  margin: 15px 0;
  font-weight: 600;
  color: #bbb;
}

.bio {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.6;
  color: #bbb;
}

.divider {
  margin: 20px 0;
  border-bottom: 2px solid white;
}

.icons a {
  margin: 0 15px;
  font-size: 24px;
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.55);
}

.icons a:hover,
.icons a:active {
  color: #fff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 1);
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(30, 30, 30, 0);
  border-top: 2px solid white;
  backdrop-filter: blur(5px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
  z-index: 1000;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.bottom-bar .song-info {
  flex: 1 1 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-bar .controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bottom-bar .controls button,
.bottom-bar .controls a {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bottom-bar .controls button:hover,
.bottom-bar .controls a:hover {
  color: #494c4a;
}

#coverArt {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
  margin-bottom: -25px;
}

.bottom-bar .seek-container {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  margin-left: 80px;
}

#seekBar {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#seekBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

#seekBar::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  background: #ffffff;
}

#seekBar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
}

#seekBar::-moz-range-track {
  background: rgba(255, 255, 255, 0.2);
  height: 6px;
  border-radius: 3px;
}

#seekBar::-ms-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
}

#seekBar::-ms-track {
  background: transparent;
  border-color: transparent;
  color: transparent;
  height: 6px;
}

#currentTime,
#duration {
  font-size: 12px;
  min-width: 35px;
  text-align: center;
  color: #fff;
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
    width: 90%;
  }
  .icons a {
    font-size: 20px;
  }
  .bottom-bar {
    padding: 10px 15px;
  }
  .bottom-bar .controls button,
  .bottom-bar .controls .mute-button {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (min-width: 1200px) {
  .bottom-bar {
    padding: 10px 50px;
  }
  .bottom-bar .controls button,
  .bottom-bar .controls .mute-button {
    font-size: 16px;
    padding: 10px 16px;
  }
}

#lyricsContainer {
  color: white;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px;
  overflow-y: auto;
  min-height: 488px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

#lyricsHeader {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  align-items: baseline;
}

#lyricsSongTitle {
  font-weight: bold;
  color: #fff;
  font-size: 18px;
}

#lyricsArtistName {
  color: #ccc;
  font-size: 16px;
}

#lyricsContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.lyric-line {
  transition: all 0.2s ease;
  color: #999;
  opacity: 0.4;
  padding: 2px 0;
  margin: 2px 0;
  filter: blur(2px);
  line-height: 1.5;
  font-size: 13px;
}

.lyric-line.active {
  color: #fff;
  font-weight: bold;
  opacity: 1;
  font-size: 15px;
  filter: blur(0px);
}

.lyric-line.next {
  color: #ccc;
  opacity: 0.7;
  filter: blur(0.6px);
}

.lyric-line.prev {
  color: #bbb;
  opacity: 0.55;
  filter: blur(1px);
}