@import url("https://fonts.googleapis.com/css2?family=Martel+Sans:wght@200;300;400;600;700;800;900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}
body {
  background-color: black;
  color: white;
}

.logo img {
  filter: invert(1);
  width: 8vw;
}
.left {
  width: 25vw;
  border: 2px solid black;
  padding: 3px;
}

.right {
  width: 75vw;
  border: 2px solid black;
  position: relative;
}

.container {
  display: flex;
}

.home ul li {
  display: flex;
  width: 23px;
  list-style: none;
  font-weight: 600;
  gap: 15px;
  padding-top: 10px;
}
.songlist ul li {
  transition: transform 0.2s ease-in;
  cursor: pointer;
}

.songlist ul li:hover {
  transform: scale(1.07);
}

.library {
  min-height: 65vh;
  position: relative;
}
.heading {
  display: flex;
  width: 200px;
  list-style: none;
  font-size: 12px;
  gap: 15px;
  padding-top: 10px;
  align-items: center;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  bottom: 0;
  display: flex;
  font-size: 10px;

  gap: 13px;
}

.footer a {
  color: grey;
  text-decoration: none;
}

.header {
  display: flex;
  justify-content: space-between;
  margin: 8px 0px;
  align-items: center;
}

.arrow {
  transition: transform 0.2s ease;
  cursor: pointer;
}

.arrow:hover {
  transform: scale(1.2);
}

.header > * {
  padding: 20px;
}

.trending-songs h1 {
  font-size: large;
}

.card h2 {
  font-size: medium;
}
.card {
  transition: transform 0.2s ease-in;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.07);
  background-color: #1a2535;
}
.card-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0px;
  overflow-y: scroll;
  max-height: 55vh;
}
.card {
  width: 180px;
  padding: 10px;
  border-radius: 5px;
  background-color: #111827;
  position: relative;
}

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

.card .play {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 135px;
  right: 15px;
}

.buttons > * {
  margin: 0 12px;
}
.signupbtn {
  background-color: #681515;
  color: #949494;
  font-weight: bold;
  border: none;
  outline: none;
  font-size: 13px;
  transition: transform 0.2s ease;
  cursor: pointer;
}
.signupbtn:hover {
  font-size: 14px;
  color: white;
  transform: scale(1.1);
}

.loginbtn {
  height: 40px;
  background-color: white;
  font-weight: bold;
  border-radius: 30px;
  width: 80px;
  color: black;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.1s ease-in;
}

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

.playbar {
  position: fixed;
  bottom: 10px;
  width: 74%;
  height: 60px;
  box-sizing: border-box;
  background-color: rgb(103, 54, 189)    ;
  padding: 12px;
  border-radius: 30px;
}

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

.songlist ul li {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: 1px solid white;
  padding: 12px 2px;
  margin: 12px 0px;

  border-radius: 10px;
}

.songlist {
  height: 48vh;
  overflow: auto;
  margin: 20px 0px 30px 0px;
}

.songlist ul {
  padding: 0px 12px;
}

.songlist .info {
  font-size: 13px;
  width: 344px;
}

.seekbar {
  height: 5px;
  width: 96%;
  position: absolute;
  background-color: #1db954;
  margin: 4px;
  bottom: 4px;

  border-radius: 20px;
}

.circle {
  position: relative;
  bottom: 6px;
  left: 0%;
  height: 15px;
  width: 15px;
  border-radius: 13px;
  background-color: black;
}

.songbuttons img {
  cursor: pointer;
}

.songinfo {
  width: 200px;
  white-space: nowrap;
  overflow: hidden;
}

.songinfo span {
  display: inline-block;
  animation: marquee 10s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.songinfo,
.songtime {
  font-size: small;
}

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

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left {
    display: none;
  }

  .right {
    width: 100vw;
  }

  .card-container {
    max-height: 70vh;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
  }

  .playbar {
    width: 90%;
    left: 50%;
    background-color: rgb(103, 54, 189);
    transform: translateX(-50%);
    bottom: 10px;
    height: 50px; /* smaller height */
    padding: 8px 12px; /* less padding */
    border-radius: 20px;
  }

  .seekbar {
    height: 3px; /* thinner seekbar */
    width: 90%;
    bottom: 3px;
  }

  .circle {
    height: 10px; /* smaller circle */
    width: 10px;
    bottom: 4px;
  }

  .songbuttons img {
    width: 18px; /* smaller buttons */
    height: 18px;
  }

  .songinfo {
    font-size: 9px; /* smaller text */
    width: 80px;
    width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* adds ... if text too long */
  }

  .songtime {
    font-size: 9px;
  }

  .logo img {
    width: 20vw;
  }

  .header {
    padding: 10px;
  }

  .trending-songs {
    padding: 10px;
  }
}
