.card {
  position: relative;
  width: 170px;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(
    140deg,
    #1c1f1c 10%,
    #4a4d4d 25%,
    #2d2d30 50%,
    #232121 75%,
    #575757 100%
  );
  overflow: hidden;
}
.CardContainer {
  margin: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* space between cards */
  overflow-y: scroll;
  scroll-behavior: smooth;
  padding: 10px;
}
.card img {
  width: 100%;
  object-fit: contain;
}
.card > * {
  padding-top: 10px;
}

/* Play button */
.play {
  position: absolute;
  height: 50px;
  width: 50px;
  top: 140px; /* hidden below */
  right: 25px;
  opacity: 0; /* invisible initially */
  cursor: pointer;
  filter: drop-shadow(0 0 0px #ffffff); /* no glow initially */
  transition: all 0.5s ease; /* smooth movement + fade */
}

/* Slide up with glow when hovering the card */
.card:hover .play {
  top: 120px; /* slides into position */
  opacity: 1; /* fade in */
  filter: drop-shadow(0 0 8px #fbfffb) drop-shadow(0 0 16px #ffffff); /* soft glow */
  animation: glowRise 0.5s forwards; /* glow + slide animation */
}

/* Bright glow when clicked */
.play:active {
  filter: drop-shadow(0 0 15px #ffffff) drop-shadow(0 0 30px #ffffff)
    drop-shadow(0 0 45px #ffffff);
  transform: scale(1.1); /* pop effect */
}

/* Keyframes for sliding and glow effect */
@keyframes glowRise {
  0% {
    top: 200px;
    filter: drop-shadow(0 0 0px #ebe2e2);
    opacity: 0;
  }
  100% {
    top: 150px;
    filter: drop-shadow(0 0 8px #f8f8f8) drop-shadow(0 0 16px #ffffff);
    opacity: 1;
  }
}

/* CSS */
/* Container to align them nicely */
.buttons {
  display: flex;
  gap: 15px; /* space between buttons */
}

/* Sign Up Button */
.sign-up-btn {
  padding: 0.6em 2em;
  border: 2px solid #1db954; /* Spotify Green */
  outline: none;
  color: #1db954;
  background: transparent;
  cursor: pointer;
  border-radius: 25px;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease-in-out;
}

/* Hover Effect */
.sign-up-btn:hover {
  background: #1db954;
  color: #fff;
  box-shadow: 0 0 15px rgba(29, 185, 84, 0.8), 0 0 25px rgba(29, 185, 84, 0.6);
}

/* Pressed Effect */
.sign-up-btn:active {
  background: #1aa34a; /* slightly darker green */
  color: #fff;
  box-shadow: 0 0 8px rgba(29, 185, 84, 0.8), 0 0 12px rgba(29, 185, 84, 0.6);
  transform: scale(0.97);
}

/* Log In Button */
.log-in-btn {
  padding: 0.6em 2em;
  border: 2px solid #fff; /* White border */
  outline: none;
  color: #fff;
  background: transparent;
  cursor: pointer;
  border-radius: 25px;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease-in-out;
}

/* Hover Effect */
.log-in-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7),
    0 0 25px rgba(255, 255, 255, 0.5);
}

/* Pressed Effect */
.log-in-btn:active {
  background: #ffffff; /* slightly greyish white */
  color: #000000;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 255, 255, 0.5);
  transform: scale(0.97);
}
.playbar {
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 98%;
  background: linear-gradient(
    140deg,
    #1c1f1c 10%,
    #4a4d4d 25%,
    #2d2d30 50%,
    #232121 75%,
    #575757 100%
  );
  border-radius: 99px 99px 10px 10px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid #ada3a3;
  display: flex;
  justify-content: space-around; /* Song info left, controls center, timer right */
  align-items: center;
  padding: 16px;
  color: white;
  right: 30px;
}

/* buttons container */
.song-btn {
  display: flex;
  gap: 30px; /* spacing between icons */
  justify-content: center;
  align-items: center;
  margin: 5px;
}

/* icons (prev, play, next) */
.song-btn img {
  width: 33px;
  height: 33px;
  cursor: pointer;
  border-radius: 50%;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

/* glow on hover */
.song-btn img:hover {
  box-shadow: 0 0 15px rgb(255, 255, 255);
  transform: scale(1.05);
}

/* glow + shrink on click */
.song-btn img:active {
  transform: scale(0.9);
  box-shadow: 0 0 18px rgb(255, 255, 255);
}

/*seekbar styling*/
/* seekbar line */
.seekbar {
  position: absolute;
  bottom: 2px;
  left: 7px;
  right: 3px;
  height: 5px; /* thicker bar */
  background: #a29999; /* greyish bar */
  border-radius: 4px;
  cursor: pointer;
  z-index: 1;
  width: 99%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2); /* subtle glow around bar */
}

/* glowing knob */
.seekbar .circle {
  position: absolute;
  top: 50%;
  left: 33%;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px #fff, 0 0 20px rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* pulse effect on hover */
.seekbar:hover .circle {
  box-shadow: 0 0 20px #fff, 0 0 30px rgba(255, 255, 255, 0.5),
    0 0 40px rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(1.2); /* slightly bigger */
}

.SongList ul {
  padding: 0 5px;
}

.SongList ul li {
  list-style: decimal inside; /* bullet/number will move inside */
  padding: 8px 12px;
  border: 1px solid;
  width: 220px;
  margin: 10px;
  border-radius: 5px;
  transition: transform 0.2s ease, background 0.3s ease;
  cursor: pointer;
  display: flex;
}

/* hover effect for desktop */
.SongList ul li:hover {
  transform: scale(1.05) translateX(5px);
  background: linear-gradient(140deg, #161716, #5a5d5d, #27272a);
}

/* touch feedback for mobile */
.SongList ul li:active {
  transform: scale(0.98);
  background: linear-gradient(140deg, #111, #444, #222);
}
.SongList {
  width: 280px; /* adjust as per your design */
  max-height: 270px; /* set the height you want */
  overflow-y: auto; /* vertical scrollbar */
  overflow-x: hidden; /* prevent horizontal scrollbar */
  padding-right: 5px; /* little space for scrollbar */
}

/* Optional: Style the scrollbar */
.SongList::-webkit-scrollbar {
  width: 6px; /* scrollbar width */
}

.SongList::-webkit-scrollbar-track {
  background: #1f1f1f; /* track color */
  border-radius: 10px;
}

.SongList::-webkit-scrollbar-thumb {
  background: #555; /* thumb color */
  border-radius: 10px;
}

.SongList::-webkit-scrollbar-thumb:hover {
  background: #888; /* hover effect */
}

.songinfo {
  width: 210px; /* fixed width */
  overflow: hidden; /* hide overflow */
  flex-shrink: 0;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.2); /* optional separator */
  padding-right: 5px;
}

.songname-scroll {
  display: inline-block;
  padding-left: 120%; /* start outside */
  animation: scroll-name 10s linear infinite;
}

/* keyframes for smooth scroll */
@keyframes scroll-name {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 15px;
}

.volume-control .volume-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  filter: invert(1); /* since your theme is dark */
}

#volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  border-radius: 5px;
  background: #555;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
}

#volume-range:hover {
  background: #ffffff; /* Spotify green glow */
}

/* slider thumb */
#volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: background 0.2s;
}

#volume-range::-webkit-slider-thumb:hover {
  background: #ffffff;
}

#volume-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}
