.cont {
  width: 100%;
  height: 100vh;
  overflow: hidden;

}

:root {
  --a: 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  height: 9vh;
  width: 100%;
}

.spotify {
  margin-left: 10px;
}

.home {
  width: 27px;
  height: 29px;
  border-radius: 33px;
  background-color: #1e1e1e;
  display: flex;
  padding: 9px;
}

.home:hover {
  width: 27px;
  height: 29px;
  border-radius: 33px;
  background-color: #343434;
  display: flex;
  padding: 9px;
}

.search-container {
  background-color: #1e1e1e;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 9999px;
  width: 400px;
  color: white;
}

.search-container input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 16px;
  flex: 1;
  margin: 0 10px;
}

.search-container svg {
  width: 20px;
  height: 20px;
  fill: #b3b3b3;
}

.divider {
  width: 1px;
  height: 24px;
  background-color: #444;
  margin: 0 10px;
}

.clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.clear-btn svg:hover {
  fill: white;
}


.hs {
  width: 75%;
  gap: 10px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  width: 190px;
}

.signup {
  background-color: transparent;
  color: #b3b3b3;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 12px;
  white-space: nowrap;
  width: 64px;
}

.signup:hover {
  background-color: transparent;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  padding: 8px 12px;
  white-space: nowrap;
}


.login {
  background-color: white;
  color: #232721;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.login:hover {
  background-color: rgba(255, 255, 255, 0.759);
  color: #232721;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.body {
  display: flex;
  height: 91vh;
  gap: 10px;
}

.left {
  width: 28%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

.library {
  font-weight: bold;
  justify-content: space-between;
  padding: 25px;
}

.songslist {
  height: 55%;
  padding: 10px;
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.songslist::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.songslist ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.songslist ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid white;
}

.playnow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.playnow:hover{
  color: #1FDF64;
}

.songinfo {
  width: 50%;
}
.songinfo:hover{
  color: #1FDF64;
}

.footer-links {
  padding: 28px;
  height: 128px;
  margin-top: auto
}

.links {
  flex-wrap: wrap;
}

.footer-links a {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 11px;
  margin-right: 16px;
}
.footer-links a:hover {
  color: #1FDF64;
}

.cookies {
  margin-left: -15px;
}

.cookies a {
  color: white;
  font-size: 12px;
  padding: 0px 16px;
  text-decoration: none;
}

.right {
  width: 72%;
  border-radius: 10px;
  height: 100%;
  margin-right: 10px;
  padding: 30px;
}

.hamplay {
  position: relative;
}

.hamburger {
  display: none;
}

.playlist {
  padding: 0px 0px 10px 10px;
}

.cardcontainer {
  width: 100%;
  height: 70%;
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.cardcontainer::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.cards {
  height: 273px;
  width: 189px;
  border-radius: 7px;
  overflow: hidden;
  padding: 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.5s;

}

.cards:hover {
  height: 273px;
  width: 189px;
  background-color: #333333;
  border-radius: 7px;
  overflow: hidden;
  --a: 1;
}

.cover {
  position: relative;
}

.cover img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  border-radius: 7px;
}

.play-button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #1FDF64;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 22px;
  right: 22px;
  opacity: var(--a);
  transition: all .8s ease-out;
}

.play-button img {
  width: 59px;
  height: 48px;
}


.cards h2 {
  font-size: 18px;
  margin: 10px 0 5px 0;
}

.cards p {
  font-size: 10px;
  color: #b3b3b3;
}

.playbar {
  position: fixed;
  bottom: 30px;
  width: 68%;
  margin: auto;
  min-height: 100px;
  background-color: #838383;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 44px;
}

.info {
  color: white;
  width: 270px;
}

.abovebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  width: 96%;
}

.seekbar {
  width: 96%;
  height: 5px;
  background-color: #ffffff;
  position: absolute;
  bottom: 1px;
  border-radius: 44px;
  cursor: pointer;
}

.circle {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: #1FDF64;
  position: absolute;
  bottom: -3px;
}

.timevol {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 265px;
}

input[type="range"] {
  accent-color: #1FDF64; 
}


@media (max-width: 1299px) {

  .left {
    position: absolute;
    left: -120%;
    transition: all 0.3s;
    z-index: 1;
    width: 320px;
    height: 90%;
  }

  .right {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 3px;
    left: -22px;
  }

  .playbar {
    width: 95%;
    min-height: 80px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 690px) {

  .search-container {
    background-color: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 9999px;
    width: 21px;
    color: white;
  }

  .search-container input {
    display: none;
  }

  .search-container svg {
    width: 20px;
    height: 20px;
    fill: #b3b3b3;
  }

  .divider {
    display: none;
  }

  .clear-btn {
    display: none;
  }

  .clear-btn svg:hover {
    display: none;
  }

  .hs {
    width: 20%;
    gap: 10px;
  }

  .cardcontainer {
    width: 100%;
    height: 70%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
  }

  .cards {
    height: 100%;
    width: 100%;
    border-radius: 7px;
    overflow: hidden;
    padding: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.5s;
    text-overflow: ellipsis;
  }

  .cards:hover {
    height: 100%;
    width: 100%;
    background-color: #333333;
    border-radius: 7px;
    overflow: hidden;
    --a: 1;
  }

  .cards p {
    font-size: 9px;
    color: #b3b3b3;
    /* Text overflow handling for description */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
  }

  .playbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    width: 92%;
    margin: auto;
    min-height: 100px;
    background-color: #838383;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 44px;
  }

  .info {
    color: white;
    width: 75%;
    display: flex;
    justify-content: center;
  }

  .abovebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 96%;
    flex-direction: column;

  }

  .seekbar {
    width: 94%;
    height: 5px;
    background-color: #ffffff;
    position: absolute;
    bottom: 1px;
    border-radius: 44px;
    cursor: pointer;
  }


}

@media (max-width: 500px) {

  .seekbar {
    width: 88%;
    height: 5px;
    background-color: #ffffff;
    position: absolute;
    bottom: 1px;
    border-radius: 44px;
    cursor: pointer;
  }
}

@media (min-width:415px) and (max-width: 471px) {

  .cards h2 {
    font-size: 10px;
    margin: 10px 0 5px 0;
    display: none;
  }

  .cards p {
    font-size: 10px;
    color: #b3b3b3;
    display: none;
  }
}