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

* {
  margin: 0px;
  padding: 0px;
  font-family: "Roboto", sans-serif;
  color: rgb(255, 255, 255);
}

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

.left {
  width: 28vw;
  padding: 10px;
  background-color: black;
  color: white;
}

.right {
  width: 70vw;
  background-color: #0f0f0f;
  position: relative;
  margin: 14px 0px;
}

.home {
  height: 18vh;
  padding: 10px 20px;
  border-radius: 7px;
  margin: 5px;
}

.home ul li {
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  width: 18px;
  font-weight: 700;
  font-size: 15px;
}

.library {
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

.heading {
  margin: auto;
  display: flex;
  justify-content: space-between;
  padding: 5px;
  width: 100%;
  font-size: 12px;
}

.heading .lib {
  padding: 5px 45px 0px 0px;
  display: flex;
  gap: 10px;
}

.heading h2 {
  color: rgb(255, 255, 255);
}

.songList {
  height: 54vh;
}

.songList ul {
  padding: 12px 6px;
  height: 100%;
  overflow-y: auto;
}

.songList ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px;
  margin: 10px 0px;
  border-radius: 6px;
  border: 1px solid #1a1a1a;
}

.songList ul li:hover {
  background-color: #1f1f1f;
}

.songcover {
  height: 50px;
  width: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.songcover img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 15px;
  line-height: 1.2;
}

.info div:nth-child(2) {
  font-size: 12px;
}

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

.playnow span {
  width: 80px;
  font-size: 15px;
}

.footer {
  display: flex;
  font-size: 10px;
  position: absolute;
  bottom: 5px;
  gap: 13px;
  padding: 10px;
}

.footer a {
  text-decoration: none;
}

.footer a span {
  color: rgb(179, 179, 179);
}

.header {
  height: 11vh;
  display: flex;
  justify-content: space-between;
  background-color: #0000007a;
}

.header > * {
  padding: 16px;
}

.buttons button {
  background-color: #ffffff;
  color: #080808;
  padding: 12px 28px;
  border-radius: 23px;
  font-size: 16px;
  font-weight: 700;
  border: none;
}

.buttons .signup {
  color: #aaaaaa;
  background-color: #090909;
}

.signup:hover {
  color: #fbf7fe;
  cursor: pointer;
}

.login:hover {
  background-color: #e6e3e3;
  cursor: pointer;
}

.spotifyPlaylists {
  padding: 16px 0px 16px 16px;
}

.spotifyPlaylists h1 {
  font-size: 24px;
}

.cardContainer {
  margin: 10px 0px 10px 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-y: scroll;
  max-height: 72vh;
}

.card {
  /* border: 2px solid lightblue; */
  width: 145px;
  height: 250px;
  padding: 10px;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.card > * {
  padding-top: 8px;
}

.card img {
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.card h2 {
  font-size: 16px;
  color: rgb(255, 255, 255);
}

.card p {
  font-size: 14px;
  color: rgb(179, 179, 179);
}

.play {
  position: absolute;
  right: 18px;
  top: 102px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover {
  background-color: #1e1e1e;
}

.card:hover .play {
  opacity: 1;
  transform: translateY(0);
}

.playbar {
  position: absolute;
  height: 6vh;
  bottom: 0;
  background-color: #000000;
  width: 100%;
  padding: 12px 0px;
}

.songbuttons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.seekbar {
  height: 4px;
  width: 60%;
  background-color: #4d4d4d;
  margin: auto;
  /* border: 2px solid #4d4d4d; */
  position: absolute;
  left: 20%;
  bottom: 0;
  border-radius: 4px;
  cursor: pointer;
}

.circle {
  width: 13px;
  height: 13px;
  background-color: #ffffff;
  border-radius: 16px;
  position: absolute;
  bottom: -5px;
  left: 0%;
  transition: left 0.5s;
}

.songbuttons img {
  cursor: pointer;
  z-index: 1;
}

.songdetails {
  top: 32%;
  position: absolute;
  /* left: 20%; */
  font-size: 12px;
  color: rgb(179, 179, 179);
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.hiddenspace {
  visibility: hidden;
}

.menu {
  display: none;
}
.close {
  display: none;
}

.volume {
  position: absolute;
  top: 75%;
  right: 10%;
  display: flex;
  gap: 5px;
  cursor: pointer;
}

.range input[type="range"] {
  width: 50px;
  height: 3px;
  background: #4d4d4d;
  border-radius: 2px;
  cursor: pointer;
  outline: none;
}

/* Responsiveness */
@media (max-width: 615px) {
  .card {
    margin: auto;
  }
}

@media (max-width: 768px) {
  .left {
    width: 100vw;
    background-color: red;
    position: absolute;
    left: -100%;
    transition: all 0.3s ease-in-out;
    z-index: 5;
  }

  .right,
  .left {
    padding: 0px;
    margin: 0px;
  }

  .left {
    background: rgba(0, 0, 0, 0.6); /* darker background */
    backdrop-filter: blur(25px); /* stronger blur */
    -webkit-backdrop-filter: blur(25px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.3); /* more visible border */
  }

  .home {
    margin: 0px 5px 5px 5px;
    border-radius: 0 0 7px 7px;
  }

  .lib h2 {
    width: 130px;
  }

  .logo {
    width: 30%;
  }

  .right {
    width: 100vw;
  }

  .header {
    height: 8vh;
  }

  .menu {
    display: block;
    width: 30px;
    height: 40px;
    cursor: pointer;
  }

  .close {
    display: block;
    position: absolute;
    left: 91%;
    top: 10px;
    cursor: pointer;
  }

  .nav svg {
    display: none;
  }

  .card {
    width: 130px;
    height: 250px;
    /* margin: auto; */
  }

  .play {
    top: 85px;
  }

  .playbar {
    padding: 20px 0px;
  }

  .songinfo {
    width: 26%;
  }

  .spotifyPlaylists {
    margin-bottom: 30px;
  }

  .cardContainer {
    margin: 10px 0px 10px -5px;
    gap: 0px;
  }

  .seekbar {
    left: 20%;
    bottom: 13%;
  }

  .volume {
    top: 71%;
    right: 5%;
    gap: 3px;
  }

  .range input[type="range"] {
    width: 25px;
  }

  .volume img {
    width: 22px;
  }

  .range input[type="range"]::-webkit-slider-thumb {
    width: 11px;
    height: 11px;
  }
}
