* {
  margin: 0;
  padding: 0;
  font-family: "popins", sans-serif;
}
:root{
  --a:0;
}

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

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

.right {
  width: 75vw;
}

.home {
}

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

.heading {
  display: flex;
  width: 100%;
  gap: 15px;
  padding-top: 23px 14px;
  font-weight: bold;
  align-items: center;
  font-size: 13px;
}

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

.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 85%;
  padding: 10px 0;
}

.right {
  margin: 16px 0;
  position: relative;
}

.sidebar-footer a {
  color: #a7a7a7;
  text-decoration: none;
  font-size: 11px;
  font-family: Arial, sans-serif;
}

.sidebar-footer a:hover {
  text-decoration: underline;
  color: white;
}

.header {
  display: flex;
  justify-content: space-between;
  background-color: rgb(34, 34, 34);
  height: 61px;
}

.header > * {
  padding: 20px;
}

.buttons > * {
  margin: 0 15px;
}

.signup-btn {
  border: 0;
  outline: 0;
  background-color: rgb(34, 34, 34);
  color: rgb(155, 153, 153);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.signup-btn:hover {
  transform: scale(1.08);
  color: white;
}

.login-btn {
  background-color: white;
  color: black;
  border-radius: 21px;
  width: 85px;
  padding: 10px;
  cursor: pointer;
  border: 0;
  transition: transform 0.3s ease;
}

.login-btn:hover {
  font-weight: bold;
  transform: scale(1.08);
}

.spotify-playlist {
  padding: 16px;
}

.container-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px;
  overflow-y: scroll;
  max-height: 70vh;
}

.spotify-playlist .card {
  width: 170px;
  padding: 10px;
  border-radius: 5px;
  background-color: #252525;
  position: relative;
  transition: all .9s;
}

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

.card:hover{
  background-color: #444343;
  cursor: pointer;
  --a:1;
}

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

.play {
  position: absolute;
  top: 132px;
  right: 14px;
  opacity: var(--a);
  transition: all 1s ease-out;
}


/* PLAYBAR */
.playbar {
     position: fixed;
    min-height: 63px;
    bottom: 3px;
    width: calc(100vw - 399px);
    background-color: rgb(12, 58, 12);
    border-radius: 12px;
}


.song-info {
    width: 18%;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-time,
.songtime {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: white;
    
}

.song-buttons {
  cursor: pointer;
}

.song-buttons img {
  cursor: pointer;
}

.pn-btn {
  transition: transform 0.3s ease;
  cursor: pointer;
  width: 42px;
  height: 46px;
}

.pn-btn:hover {
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}

.p-btn {
  transition: transform 0.2s ease;
}

.p-btn:hover {
  transform: scale(1.1);
}

/* SONGLIST */
.songlist {
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
  margin-top: 32px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
}

.songlist::-webkit-scrollbar {
  width: 5px;
}

.songlist::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 10px;
}

.songlist::-webkit-scrollbar-track {
  background: transparent;
}

.songlist ul {
  margin: 0;
  padding: 6px 0 15px;
  font-size: 11px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.songlist ul li {
  list-style: none;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid #ffffff;
  border-radius: 5px;
  color: #ffffff;
  background: #121212;
  box-sizing: border-box;
}

.songlist ul li > img {
  width: 18px;
  min-width: 18px;
}

.info {
  flex: 1;
  min-width: 0;
}

.info div:first-child {
  font-weight: 700;
  line-height: 1.08;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info div:last-child {
  font-size: 10px;
  line-height: 1;
  opacity: 0.9;
  margin-top: 2px;
}

.playNow {
  min-width: 72px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.ply-now {
  width: 19px;
  height: 19px;
  min-width: 19px;
  transition: transform 0.2s ease;
}

.ply-now:hover {
  transform: scale(1.08);
}

/* SEEKBAR */
.seekbar {
  height: 5px;
  width: calc(100% - 36px);
  background-color: white;
  position: absolute;
  left: 18px;
  bottom: 8px;
  border-radius: 10px;
  margin-bottom: 0;
  cursor: pointer;
}

.circle {
  width: 14px;
  height: 14px;
  border-radius: 13px;
  background-color: white;
  position: relative;
  bottom: 5px;
  right: 3px;
  transition: left 0.5s;
  cursor: pointer;
}

.song-time{
  top: 32px;
}

.above-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin: 20px 0;
}

.hamburger{
  display: none;
}

.close{
  display: none;
}
.vol-st{
  display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
}

.volume{
  display: flex;
  gap: 8px;
}
input[type="range"] {
  width: 90px;
  height: 5px;
  color: orange;
  accent-color: darkgrey;
}


.range {
  opacity: 0;
  visibility: hidden;
  width: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.volume:hover .range {
  opacity: 1;
  visibility: visible;
  width: 90px;
}
@media (max-width: 1000px) { 
  .left{
    background-color: black;
    position: absolute;
    left: -120%;
    transition: all .3s;
    z-index: 1;
    width: 370px;
  }

  .playbar{
    width: 92vw;
    margin: 8px;
  }

  .seekbar{
    width: 87%;
  }

  .left .close{
    position: absolute;
    right: 22px;
    top: 23px;
  }

  .right{
    width: 100vw;
  }

  .hamburger{
    display: block;
  }
  .hamburgericon{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
  }
  .close{
  display: block;
}

.container-cards{
  justify-content: center;
}

.spotify-playlist .card {
  width: 90vw;
}

}
