body,
html {
  overflow: hidden;
}

.container {
  gap: 1.2rem;
  height: 100vh;
  width: 100vw;
  position: relative;
  padding-left: 0rem !important;
}

.loader {
  height: 100vh;
  width: 100vw;
  position: absolute;
  top: 0;
  transition: all 0.3s ease;
  opacity: 1;
  z-index: 999;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader img {
  height: 20rem;
  width: 20rem;
  animation: big 0.8s ease;
}

@keyframes big {
  0% {
    scale: 0.5;
  }
  50% {
    scale: 1.2;
  }
  100% {
    scale: 1;
  }
}

.left-container {
  width: 25vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
  transition: all 0.8s ease-in-out;
}

.home-wrapper {
  width: 100%;
}

.home-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 1.5rem;
  list-style-type: none;
  padding: 1rem;
  font-weight: 500;
  font-size: 1.4rem;
  width: 100%;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.home-wrapper ul li:hover {
  background-color: #222;
}

.home-wrapper ul li img {
  height: 2.4rem;
  width: 2.4rem;
}

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heading h2 {
  font-size: 1.8rem;
}

.library-wrapper div p {
  font-size: 3.2rem;
  display: none;
}

.library-wrapper {
  height: 85vh;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  position: relative;
}

.home-wrapper ul {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

ul li {
  font-size: 1.6rem;
  list-style-type: number;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  background-color: #151515;
  position: absolute;
  bottom: 0;
  border-radius: 0 0 7rem 0;
}

.footer a {
  font-size: 1.2rem;
  color: #808080;
  text-decoration: none;
  line-height: 1.5;
}

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

.right-container {
  display: flex;
  width: 75vw;
  flex-direction: column;
  position: relative;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: #151515;
  border-radius: 0.7rem 0.7rem 0 0;
}

.header * {
  padding: 1rem;
}

.nav img {
  cursor: pointer;
  background-color: transparent;
  margin-right: 1.4rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav img:hover {
  background-color: #333;
}

.log-in-btn {
  background-color: #ddd;
  border: none;
  color: #333;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1.4rem 2.6rem;
  border-radius: 2.4rem;
  margin-left: 1rem;
}

.log-in-btn:hover {
  background-color: #ffffff;
}

.sign-up-btn {
  background-color: transparent;
  border: none;
  color: #777;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1.4rem 2.6rem;
  border-radius: 2.4rem;
}

.sign-up-btn:hover {
  background-color: #333;
  color: #fff;
}

.spotify-playlist {
  padding: 2.4rem;
}

.card-wrapper {
  display: flex;
  align-items: center;
  justify-content: left;
  flex-wrap: wrap;
  margin-top: 3.2rem;
  gap: 1.4rem;
  max-height: 70vh;
  overflow-y: scroll;
}

.card-wrapper::-webkit-scrollbar {
  width: 15px;
}

.card-wrapper::-webkit-scrollbar-thumb {
  background-color: #292929;
}

.card-container {
  width: 25rem;
  padding: 1rem;
  border-radius: 0.6rem;
  transition: all 0.1s ease;
  position: relative;
  cursor: pointer;
}

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

.cover {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  border-radius: 2rem;
  padding: 0;
}

.card-container * {
  padding-top: 1rem;
}

.card-container h2 {
  font-size: 1.8rem;
}

.card-container p {
  font-size: 1.4rem;
  color: #999;
  margin-bottom: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 20rem; /* ya jitna bhi chahiye width */
}

.play {
  width: 5.2rem;
  height: 5.2rem;
  background-color: #10db57;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  position: absolute;
  top: 53%;
  right: 8%;
  transition: all 0.2s ease;
  transform: translateY(1.5rem) scale(0);
  opacity: 0;
  cursor: pointer;
}

.play:hover {
  scale: 1.1;
  background-color: #01ff59;
}

.play img {
  height: 2.2rem;
  width: 2.2rem;
  padding: 0;
}

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

.playbar {
  background-color: rgba(21, 21, 21, 0.85);
  width: 100%;
  position: absolute;
  bottom: -50%;
  transition: 0.3s ease;
  padding: 0.6rem 1rem 0 1rem;
  border-radius: 0 0 0.7rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.upper-playbar {
  align-items: center;
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.buttons .big {
  height: 3.8rem;
  width: 3.8rem;
}

.buttons img {
  cursor: pointer;
}

.song-list ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-height: 65vh;
  overflow-y: auto;
  margin-top: 2.4rem;
}

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

::-webkit-scrollbar-thumb {
  background-color: #222;
}

.song-list ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  list-style: none;
  background-color: #222;
  border-radius: 1.2rem;
  padding: 2.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.song-list ul li:hover {
  background-color: #292929;
}

.play-now {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  padding: 0.6rem 1.8rem;
  border-radius: 2rem;
  background-color: #333;
  transition: all 0.2s ease;
}

.play-now:hover {
  background-color: #232323;
}

.play-now span {
  color: #fff;
}

.play-now img {
  height: 3.2rem;
  width: 3.2rem;
}

li .song-name {
  width: 15rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.artist {
  margin-top: 1rem;
  color: #999;
}

.range-bar {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.range {
  -webkit-appearance: none;
  width: 100%;
  height: 0.6rem;
  background-color: #292929;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 2rem;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 1.8rem;
  width: 1.8rem;
  border-radius: 50%;
  background-color: #111;
  border: 4px solid #10db57;
  transition: all 0.3s ease;
}

.range::-webkit-slider-thumb:hover {
  scale: 1.5;
}

.range:hover {
  background-color: #333;
}

.icon {
  cursor: pointer;
}

.arrow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(39, 39, 39, 0.861);
  height: 9rem;
  width: 9rem;
  border-radius: 50%;
  position: absolute;
  bottom: 100%;
  transition: all 0.3s ease;
}

.arrow-wrapper img {
  height: 100%;
  width: 100%;
  position: absolute;
  bottom: 10%;
}

.left {
  left: 2%;
  opacity: 0;
}

.right {
  right: 2%;
  opacity: 0;
}

.song-info {
  display: flex;
  align-items: center;
  width: 20rem;
}

.song-info p {
  font-size: 1.8rem;
  color: #ddd;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 80%;
}

.song-info img {
  height: 2rem;
  width: 20%;
  margin-right: 2px;
}

.song-time span {
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
}

.hambar-wrapper {
  display: none;
}

.default-hidden {
  display: none;
}

.extra {
  transition: all 0.8s ease-in-out;
  background-color: rgba(37, 37, 37, 0.736);
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  right: 0;
  opacity: 0;
  z-index: -99;
}

.sound-btn .sound-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  width: 2.4rem;
  background-color: #222;
  padding: 2.4rem;
  border-radius: 50%;
}

.sound-btn .sound-icon img {
  z-index: 999;
  cursor: pointer;
}

.down-playbar {
  margin-top: 1rem;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sound-btn {
  display: flex;
  align-items: center;
  width: 10px;
  scale: 0.8;
}

.sound-btn .input-sound {
  background-color: #222;
  border-radius: 0 6rem 6rem 0;
  display: none;
  padding: 2.2rem;
  transform: translateX(-10%);
}

.sound-btn:hover .input-sound {
  display: flex;
}

.input-sound input[type="range"] {
  -webkit-appearance: none;
  width: 20rem;
  height: 0.4rem;
  background: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  outline: none;
  cursor: pointer;
  accent-color: #111;
  margin-left: 2rem;
}

.input-sound input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.input-sound input[type="range"]::-webkit-slider-thumb {
  box-shadow: inset 0 0 0 3px #01ff59;
  border-radius: 50%;
}

.download {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  width: 2.4rem;
  background-color: #222;
  padding: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  scale: 0.8;
}

.download:active {
  background-color: #191919;
}

.card-info {
  height: 9rem;
}
