@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root{
  --a: 0;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}

body {
  background-color: black;
  color: white;
}

.container {
  display: flex;
}

.left {
  width: 25vw;
  padding: 10px;
}

.right {
  width: 75vw;
  position: relative;
}

.home ul li {
  width: 15px;
  display: flex;
  gap: 10px;
  list-style: none;
  padding-top: 17px;
  font-weight: 600;
}

.library {
  min-height: 80vh;
  position: relative;
}

.library img {
  width: 20px;
}

.heading {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.heading h2 {
  font-weight: 200;
}

.footer {
  display: flex;
  gap: 30px;
  font-size: 8px;
  padding-top: 15px;
  position: absolute;
  bottom: 0;
  padding: 5px;
  justify-content: center;
}

.footer a {
  color: grey;
  font-size: 12px;
}

.header {
  display: flex;
  justify-content: space-between;
}

.header {
  padding: 15px;
  background-color: rgb(34, 34, 34);
}

.nav {
  cursor: pointer;
}

.hamburger {
  display: none;
}

.spotifyPlaylists {
  padding: 10px;
}

.spotifyPlaylists > h1 {
  font-size: 26px;
  font-weight: 800;
  padding-top: 5px;
}

.spotifyPlaylists .card {
  width: 200px;
  padding: 8px;
  border-radius: 5px;
  background-color: #252525;
}

.card * {
  padding-top: 5px;
}

.cardContainer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  margin: 15px;
  max-height: 65vh;
  overflow-y: auto;
}

.card img {
  width: 100%;
  object-fit: contain;
}

.card h1 {
  font-size: 18px;
}

.card p {
  font-size: 13px;
}

.card {
  position: relative;
}

.play {
  position: absolute;
  top: 204px;
  left: 160px;
  opacity: var(--a);
  transition: all 0.2s ease-out;
}

.card:hover {
  .play {
    opacity: 1;
    top: 158px;
  }
}

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

::-webkit-scrollbar-track {
  background: #222; /* dark background */
  /* border-radius: 10px; */
}

::-webkit-scrollbar-thumb {
  background-color: #333; /* dark gray thumb */
  border-radius: 6px;
  /* border: 2px solid #1e1e1e; gives spacing look */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}

.signupbtn {
  background-color: rgb(34, 34, 34);
  color: #777;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 18px;
}

.buttons * {
  margin: 0 20px;
}

.signupbtn:hover {
  font-size: 20px;
  color: rgb(163, 163, 163);
  color: white;
  font-weight: bold;
}

.loginbtn {
  background-color: white;
  color: black;
  cursor: pointer;
  width: 85px;
  padding: 10px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

.loginbtn:hover {
  font-weight: 900;
  transform: scale(1.1);
}

.playbar {
  background-color: rgb(34, 34, 34);
  position: fixed;
  bottom: 20px;
  width: calc(100% - 640px);
  border: 2px solid rgb(65, 69, 68);
  border-radius: 20px;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 85px;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.songButtons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  top: 10px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.control-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
  transform: scale(0.95);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(29, 185, 84, 0.3);
}

.play-btn {
  background-color: white;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
  background-color: #1DB954;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(29, 185, 84, 0.3);
}

.play-btn:active {
  transform: scale(0.95);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 25px rgba(29, 185, 84, 0.4);
}

.icon {
  width: 24px;
  height: 24px;
  fill: #b3b3b3;
}

.play-icon {
  width: 48px;
  height: 48px;
}

/* Enhanced shadow effects for next button */
#next {
  position: relative;
}

#next:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 25px rgba(29, 185, 84, 0.2);
  transform: scale(1);
}

#next:active {
  transform: scale(0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(29, 185, 84, 0.4);
  background-color: rgba(29, 185, 84, 0.1);
}

/* Add a subtle glow effect to the next button icon */
#next .icon {
  filter: drop-shadow(0 0 3px rgba(29, 185, 84, 0.3));
  transition: filter 0.2s ease;
}

#next:hover .icon {
  filter: drop-shadow(0 0 6px rgba(29, 185, 84, 0.5));
}

#next:active .icon {
  filter: drop-shadow(0 0 10px rgba(29, 185, 84, 0.7));
}

/* Enhanced shadow effects for previous button */
#previous {
  position: relative;
}

#previous:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 25px rgba(29, 185, 84, 0.2);
  transform: scale(1);
}

#previous:active {
  transform: scale(0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(29, 185, 84, 0.4);
  background-color: rgba(29, 185, 84, 0.1);
}

#previous .icon {
  filter: drop-shadow(0 0 3px rgba(29, 185, 84, 0.3));
  transition: filter 0.2s ease;
}

#previous:hover .icon {
  filter: drop-shadow(0 0 6px rgba(29, 185, 84, 0.5));
}

#previous:active .icon {
  filter: drop-shadow(0 0 10px rgba(29, 185, 84, 0.7));
}

.songsList {
  height: 70vh;
  overflow: auto;
  margin-top: 40px;
  margin-bottom: 60px;
}


.songsList ul {
  padding: 20px;
}

.songsList ul li {
  list-style-type: decimal;
  font-size: 16px;
  display: flex;
  gap: 20px;
  padding: 8px 0;
  cursor: pointer;
  border: 1px solid white;
  justify-content: space-between;
  border-radius: 5px;
  padding: 13px;
  margin: 12px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.songsList ul li:hover {
  background-color: rgb(46, 47, 46);
}

.playnow {
  display: flex;
  justify-content: center;
  align-items: center;
}

.playnow span {
  font-size: 18px;
  width: 90px;
  /* margin-left: 24px; */
}

.info {
  overflow: hidden;
  flex: 1;
}

.info div {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.info :last-child {
  font-family: cursive;
}

.seekbar {
  position: relative;
  width: 100%;
  height: 6px;
  background-color: #404040;
  border-radius: 3px;
  margin: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.seekbar:hover {
  height: 8px;
  background-color: #555;
}

.circle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  height: 16px;
  width: 16px;
  background-color: #1DB954;
  border-radius: 50%;
  transition: left 0.1s linear;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.circle:hover {
  transform: translate(-50%, -50%) scale(1.2);
  background-color: #1ed760;
}

.songinfo {
  color: #1DB954;
  font-size: 18px;
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.songtime {
  color: #b3b3b3;
  font-size: 16px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: monospace;
}

.close {
  position: absolute;
  right: 7px;
  top: 18px;
}

.volumecontrol {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.volumecontrol img {
  cursor: pointer;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.volumecontrol img:hover {
  opacity: 1;
}

.volumeslider {
  width: 80px;
  height: 4px;
  background: #404040;
  outline: none;
  border-radius: 2px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volumeslider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #1DB954;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.volumeslider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #1ed760;
}

.volumeslider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #1DB954;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.volumeslider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: #1ed760;
}

.volumecontrol:hover .volumeslider {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1500px) {
  .left {
    background-color: rgb(0, 0, 0);
    position: absolute;
    z-index: 1;
    position: absolute;
    width: 370px;
    left: -130%;
    padding: 0;
    height: 100vh;
    transition: all 0.3s linear;
  }

  .right {
    width: 100vw;
  }

  .playbar {
    width: 95vw;
    margin: 0 auto;
  }

  .hamburger {
    display: block;
  }

  .songsList {
    width: fit-content;
  }
}

.hamburgerContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.songinfo,
.songtime {
  width: auto;
}
