* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg1: #0b0b0f;
  --bg2: #15151d;
  --text: #ffffff;
  --muted: #cfcfe6;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
}
body {
  font-family: Arial, sans-serif;
  color: white;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(106, 13, 173, 0.25),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(0, 90, 255, 0.15),
      transparent 30%
    ),
    linear-gradient(135deg, #05050a, #0b0b14, #111122);
  overflow-x: hidden;
  transition: background 0.6s ease;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
}

.topbar h1 {
  font-size: 2rem;
  letter-spacing: 0.5px;
}

.back {
  text-decoration: none;
  color: #fff;
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  transition: 0.25 ease;
}
.back:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.album-strip {
  display: flex;
  gap: 200px;
  padding: 40px 32px 60px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.album-strip::-webkit-scrollbar {
  display: none;
}

.album-card {
  position: relative;
  width: 300px;
  height: 300px;
  flex: 0 0 auto;
  cursor: pointer;
  overflow: visible;
  z-index: 1;
}

.disc {
  position: absolute;
  top: 12px;
  left: 28px;
  width: 255px;
  height: 255px;
  border-radius: 50%;
  z-index: 1;
  background: radial-gradient(
    circle at center,
    #948d9a 0 7%,
    #7b7784 8% 16%,
    #6a686e 17% 34%,
    #403f41 35% 65%,
    #1d1d1d 66% 100%
  );
  box-shadow:
    0 0 10px rgba(139, 92, 246, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.7s ease;
}
.disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0 2px,
    transparent 2px 6px
  );
}

.cover {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease;
}

.album-card:hover .disc {
  transform: translateX(145px) rotate(180deg);
}

.album-card:hover .cover {
  transform: translateY(-6px) rotate(-8deg) translateX(-10px);
}

.popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1000;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

.book {
  perspective: 1200px;
}

.paper {
  position: relative;
  width: min(92vw, 540px);
  min-height: 420px;
  background: linear-gradient(180deg, #ffffff, #faefff);
  color: #111;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  transform-origin: left center;
  transform: rotateY(-90deg) scale(0.92);
  opacity: 0;
  transition:
    transform 0.65s ease,
    opacity 0.45s ease;
}
.popup.show .paper {
  transform: rotateY(0deg) scale(1);
  opacity: 1;
}

.paper h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: #5d2aa8;
}
.paper ul {
  list-style: none;
}
.paper li {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.paper li:hover {
  color: #1db954;
  transform: translateX(6px);
}

.paper li:last-child {
  border-bottom: none;
}

.close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .topbar {
    padding: 16px 18px;
    flex-wrap: wrap;
  }

  .topbar h1 {
    font-size: 1.5rem;
  }

  .album-strip {
    gap: 55px;
    padding: 30px 18px 50px;
  }

  .album-card {
    width: 220px;
    height: 220px;
    min-width: 220px;
  }

  .cover {
    width: 220px;
    height: 220px;
  }

  .disc {
    width: 185px;
    height: 185px;
    top: 10px;
    left: 18px;
  }

  .album-card:hover .disc {
    transform: translateX(110px) rotate(180deg);
  }

  .paper {
    min-height: 360px;
    padding: 22px;
  }

  .paper h2 {
    font-size: 1.6rem;
  }
}
.song-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  margin-bottom: 20px;
}
.song-grid li {
  list-style: none;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: 0.3s ease;
}
.song-grid li:hover {
  color: #1db954;
  transform: translateX(5px);
}
#spotifyPlayer {
  width: 100%;
  height: 152px;
  border: none;
  border-radius: 12px;
  margin-top: 10px;
}
