* {
  box-sizing: border-box;
}

:root {
  --accent: #b57cff;
}

body {
  margin: 0;
  font-family: "Courier Prime", monospace;

  background:
    radial-gradient(circle at top,
    #181818 0%,
    #050505 100%);

  color: white;
  min-height: 100vh;
  overflow-x: hidden;
}

/* GRAIN */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: 0.04;

  background-image:
    url("https://grainy-gradients.vercel.app/noise.svg");

  mix-blend-mode: soft-light;
}

/* ENTER SCREEN */

#enterScreen {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.95);

  backdrop-filter: blur(12px);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;

  cursor: pointer;
}

.enterBox {
  text-align: center;

  padding: 40px;

  border-radius: 22px;

  background: rgba(255,255,255,0.03);

  border:
    1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 0 40px rgba(181,124,255,0.08);
}

/* MAIN */

.container {
  padding: 40px;
}

.main {
  padding: 30px;

  border-radius: 24px;

  background: rgba(255,255,255,0.04);

  border:
    1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(14px);
}

/* PLAYER ROW */

.playerRow {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 25px;
}

/* LEFT */

.playerLeft {
  width: 320px;
}

/* NOW PLAYING */

.nowPlayingBox {
  margin-bottom: 14px;
}

#songInfo {
  font-size: 15px;
  opacity: 0.9;
}

/* COVER */

#cover {
  width: 260px;
  height: 260px;

  object-fit: cover;

  border-radius: 18px;

  margin-top: 15px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  box-shadow:
    0 0 30px rgba(181,124,255,0.15);
}

#cover.playing {
  animation:
    spin 18s linear infinite,
    pulseGlow 4s ease-in-out infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {

  0% {
    box-shadow:
      0 0 25px rgba(181,124,255,0.12);
  }

  50% {
    box-shadow:
      0 0 55px rgba(181,124,255,0.3);
  }

  100% {
    box-shadow:
      0 0 25px rgba(181,124,255,0.12);
  }
}

/* TIME */

#timeDisplay,
#timeLeft {
  margin-top: 10px;

  font-size: 13px;

  opacity: 0.75;
}

/* CONTROLS */

.controls {
  display: flex;
  gap: 10px;

  margin: 18px 0;
}

.controls button {
  width: 50px;
  height: 50px;

  border-radius: 14px;

  border:
    1px solid rgba(255,255,255,0.08);

  background:
    rgba(255,255,255,0.05);

  color: white;

  cursor: pointer;

  transition: 0.2s ease;

  backdrop-filter: blur(12px);

  font-size: 15px;
}

.controls button:hover {
  transform: translateY(-2px);

  background:
    rgba(255,255,255,0.09);

  border-color: var(--accent);
}

/* PROGRESS */

#progress {
  width: 100%;

  appearance: none;

  height: 6px;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.08);

  outline: none;

  cursor: pointer;
}

#progress::-webkit-slider-thumb {
  appearance: none;

  width: 14px;
  height: 14px;

  border-radius: 50%;

  background: var(--accent);

  cursor: pointer;

  box-shadow:
    0 0 10px rgba(181,124,255,0.5);
}

/* VOLUME */

.volumeBox {
  margin-top: 18px;
}

.volumeLabel {
  margin-bottom: 8px;

  font-size: 12px;

  opacity: 0.6;

  text-transform: uppercase;

  letter-spacing: 1px;
}

#volume {
  width: 100%;

  appearance: none;

  height: 6px;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.08);

  outline: none;

  cursor: pointer;
}

#volume::-webkit-slider-thumb {
  appearance: none;

  width: 14px;
  height: 14px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 10px rgba(181,124,255,0.5);
}

/* QUEUE */

.queueBox {
  width: 240px;

  padding: 16px;

  border-radius: 18px;

  background:
    rgba(255,255,255,0.03);

  border:
    1px solid rgba(255,255,255,0.08);
}

.queueTitleHeader {
  font-size: 12px;

  opacity: 0.5;

  margin-bottom: 12px;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.queueItem {
  padding: 12px;

  border-radius: 12px;

  background:
    rgba(255,255,255,0.04);

  margin-bottom: 10px;

  cursor: pointer;

  transition: 0.2s ease;
}

.queueItem:hover {
  background:
    rgba(255,255,255,0.08);

  transform: translateX(4px);
}

.queueTitle {
  display: block;

  font-size: 13px;
}

.queueArtist {
  display: block;

  margin-top: 4px;

  font-size: 11px;

  opacity: 0.6;
}

/* LINKS */

.linksUnderQueue {
  margin-top: 18px;

  display: flex;
  flex-direction: column;

  gap: 10px;
}

.linksUnderQueue a {
  color:
    rgba(255,255,255,0.8);

  text-decoration: none;

  font-size: 13px;

  transition: 0.2s ease;
}

.linksUnderQueue a:hover {
  color: white;

  transform: translateX(4px);
}

/* LAYOUT BUTTONS */

.layoutControls {
  display: flex;
  gap: 10px;

  margin-top: 20px;
}

.layoutBtn {
  padding: 10px 14px;

  border-radius: 12px;

  background:
    rgba(255,255,255,0.05);

  border:
    1px solid rgba(255,255,255,0.08);

  color:
    rgba(255,255,255,0.85);

  font-family:
    "Courier Prime", monospace;

  font-size: 12px;

  cursor: pointer;

  transition: 0.2s ease;

  backdrop-filter: blur(10px);
}

.layoutBtn:hover {
  background:
    rgba(255,255,255,0.09);

  transform: translateY(-2px);

  border-color: var(--accent);
}

/* LYRICS */

.lyricsPanel {
  flex: 1;

  padding: 24px;

  border-radius: 20px;

  background:
    rgba(255,255,255,0.04);

  border:
    1px solid rgba(255,255,255,0.08);

  max-height: 620px;

  overflow-y: auto;
}

.lyricsPanel h3 {
  margin-top: 0;
}

#lyricsText {
  margin-top: 15px;

  font-size: 14px;

  line-height: 1.9;

  opacity: 0.85;

  white-space: pre-wrap;

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* SCROLLBAR */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background:
    rgba(255,255,255,0.12);

  border-radius: 999px;
}

/* MOBILE */

@media (max-width: 900px) {

  .playerRow {
    flex-direction: column;
  }

  .playerLeft,
  .queueBox,
  .lyricsPanel {
    width: 100%;
  }

  #cover {
    width: 100%;
    height: auto;
  }
}

:root {
  --bg-image: url("");
}

body::after {
  content: "";

  position: fixed;
  inset: 0;

  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;

  filter:
    blur(100px)
    brightness(0.25)
    saturate(1.4);

  transform: scale(1.2);

  z-index: -2;

  opacity: 0.8;

  transition:
    background-image 0.8s ease,
    opacity 0.5s ease;
}

#favoriteBtn.active {
  color: #ff77c8;

  border-color:
    rgba(255,119,200,0.5);

  box-shadow:
    0 0 20px rgba(255,119,200,0.25);
}

.queueTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.queueHeart {
  font-size: 15px;

  opacity: 0.5;

  transition: 0.2s ease;

  cursor: pointer;
}

.queueHeart:hover {
  transform: scale(1.15);

  opacity: 1;
}

.queueHeart.active {
  color: #ff77c8;

  opacity: 1;

  text-shadow:
    0 0 10px rgba(255,119,200,0.5);
}

.favoriteNowPlaying {
  margin-left: 10px;
  cursor: pointer;
  color: #ff77c8;
  font-size: 16px;
  transition: 0.2s ease;
}

.favoriteNowPlaying:hover {
  transform: scale(1.15);
  color: white;
}

body::before {
  transition: opacity 0.6s ease;
}

