:root {
  /* --primary-50: #f0f3fd;
  --primary-100: #e4e9fb;
  --primary-200: #ced6f7;
  --primary-300: #b0bbf1;
  --primary-400: #9098e9;
  --primary-500: #7477e0;
  --primary-600: #605ad1;
  --primary-700: #4b43ab;
  --primary-800: #433e95;
  --primary-900: #3a3877;
  --primary-950: #232145; */

  /* --primary-50: #f0f9f4;
  --primary-100: #dbf0e2;
  --primary-200: #bae0c8;
  --primary-300: #8dc8a8;
  --primary-400: #68b18b;
  --primary-500: #3b8e66;
  --primary-600: #2a7150;
  --primary-700: #215b41;
  --primary-800: #1c4935;
  --primary-900: #183c2c;
  --primary-950: #0d2119; */

  --primary-50: #effefa;
  --primary-100: #c8fff0;
  --primary-200: #91fee2;
  --primary-300: #52f6d2;
  --primary-400: #30e5c3;
  --primary-500: #05c7a5;
  --primary-600: #01a088;
  --primary-700: #067f6e;
  --primary-800: #0a6559;
  --primary-900: #0e534b;
  --primary-950: #00332f;

  /* --primary-50: #fdf7ef;
  --primary-100: #faecda;
  --primary-200: #f4d6b4;
  --primary-300: #edb984;
  --primary-400: #e59352;
  --primary-500: #df7934;
  --primary-600: #d05f26;
  --primary-700: #ad4921;
  --primary-800: #8a3b22;
  --primary-900: #70321e;
  --primary-950: #3c180e; */
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  background-color: var(--primary-900);
  background-image: linear-gradient(
    to bottom right,
    var(--primary-800),
    var(--primary-900)
  );
  color: var(--primary-50);
}
/* Spinner */
#spinner {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lds-facebook {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-facebook div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: var(--primary-100);
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}
@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }
  50%,
  100% {
    top: 24px;
    height: 32px;
  }
}

/* -------- */

incompatible {
  display: none;
  height: 100vh;
  width: 100vw;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  text-align: center;
  font-weight: 800;
}
header {
  align-items: center;
  color: var(--primary-50);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}
header img {
  height: auto;
  filter: invert();
  flex-shrink: 1;
}
.ekonkar {
  width: 60px;
  height: 48px;
}
.om {
  width: 44px;
  height: 48px;
  aspect-ratio: 1/1;
}
main {
  display: none;
}
songs {
  padding: 30px 40px 0;
  width: 60%;
}
songs .song-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

songs .main-grid {
  max-height: 77vh;
  border-bottom: 0.5px solid var(--primary-500);
  padding-bottom: 16px;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
songs .song-grid .grid-rows {
  padding: 8px 16px;
  display: grid;
  grid-template-columns: 5% 85% 10%;
  align-items: center;
  color: var(--primary-300);
}
songs .header {
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--primary-500);
}
songs song {
  border-radius: 8px;
}
songs song:hover {
  background-color: var(--primary-700);
  transition: all 0.2s;
}

songs song .sr-no i {
  display: none;
}
songs song:hover .sr-no i {
  display: inline;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 20px;
}
songs song:hover .sr-no i:hover {
  color: var(--primary-50);
  cursor: pointer;
}
songs song:hover .sr-no span {
  display: none;
}
songs .title {
  color: var(--primary-50);
  display: flex;
  gap: 12px;
  align-items: center;
}
songs .title img {
  border-radius: 4px;
  width: 40px;
  aspect-ratio: 1/1;
  object-fit: cover;
}
songs .duration {
  justify-self: flex-end;
}
.bi-play-fill,
.bi-pause-fill {
  margin-left: -4px;
}
song.active {
  animation: activeSong 2s ease-in-out infinite;
}
song.active:hover {
  animation: none;
}
@keyframes activeSong {
  0% {
    background-color: var(--primary-700);
  }
  50% {
    background-color: transparent;
  }
  100% {
    background-color: var(--primary-700);
  }
}

noaudio {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--primary-100);
  gap: 40px;
  text-transform: capitalize;
}
noaudio .bi-music-note-list {
  font-size: 8rem;
}
noaudio h2 {
  font-size: 2rem;
  text-align: center;
}
noaudio span {
  padding: 8px 24px;
  background-color: var(--primary-800);
  font-size: 14px;
  border-radius: 12px;
  color: var(--primary-200);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
}
noaudio span:hover {
  opacity: 0.8;
  color: var(--primary-100);
}
vibes {
  border-radius: 20px;
  margin: 30px;
  width: 40%;
  background-image: linear-gradient(
    to bottom right,
    var(--primary-400),
    var(--primary-600)
  );
  height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
}
vibes > player {
  width: 75%;
  /* display: flex; */
  flex-direction: column;
  gap: 18px;
  text-overflow: ellipsis;
  display: none;
  white-space: nowrap;
  text-wrap: nowrap;
}

vibes img {
  margin: auto;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
}
vibes .song-name-parent {
  display: flex;
  align-items: center;
  gap: 24px;
}
.volume {
  position: relative;
}
.volume-slider {
  padding: 24px;
  /* padding-bottom: 16px; */
  width: fit-content;
  background-image: linear-gradient(
    135deg,
    var(--primary-300),
    var(--primary-600)
  );
  border-radius: 8px;
  rotate: -90deg;
  transform-origin: left;
  left: 40%;
  bottom: 50%;
  position: absolute;
  transform: scaleX(0);
  transition: all 0.2s;
}
.volume i {
  padding-top: 8px;
  font-size: 1.8rem;
  transition: all 0.1s;
  cursor: pointer;
}
.volume:hover i {
  color: var(--primary-200);
}
.volume:hover .volume-slider {
  transform: scaleX(1);
}
input#volume-slider {
  -webkit-appearance: none;
  height: 4px;
  border-radius: 4px;
  width: 100%;
  background-color: transparent;
  outline: none;
  position: absolute;
  z-index: 100;
  cursor: pointer;
  -webkit-transition: 0.2s;
  transition: all 0.2s;
  left: 0;
  top: 0;
}

input#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  /* width: 0px; */
  width: 12px;

  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: var(--primary-50);
  transition: all 0.2s;
  cursor: pointer;
}
.volume-slider-parent {
  width: 100px;
  height: 4px;
  border-radius: 4px;
  position: relative;
  background-color: var(--primary-200);
  cursor: pointer;
  transition: all 0.2s;
}
.curr-volume {
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-800);
  width: 100%;
  border-radius: 4px;
  height: 100%;
}
.volume-slider-parent:hover {
  background-color: var(--primary-400);
}
input#volume-slider::-webkit-slider-thumb:hover {
  background-color: var(--primary-200);
}
input#volume-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #04aa6d;
  transition: all 0.2s;
  opacity: 1;
  cursor: pointer;
}

vibes .song-name {
  width: 100%;
  text-wrap: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
vibes .song-name h2 {
  text-overflow: ellipsis;
  overflow: hidden;
}
vibes .progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
}
vibes .time {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
/* .progress-bar {
  appearance: none;
  outline: none;
  border: none;
  width: 100%;
  height: 4px;
  background-color: var(--primary-800);
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
} */
/*
.progress-bar .scroll-thumb {

  display: flex;
  scale: 0;
  width: 12px;
  border-radius: 50%;
  margin-left: -6px;
  aspect-ratio: 1/1;
  background-color: var(--primary-50);
  transition: all 0.2s;
}
.progress-bar .scroll-body {

  width: 0%;
  height: 100%;
  border-radius: 4px 0 0 4px;
  background-color: var(--primary-300);
  transition: all 24ms linear;
}
.progress:hover .progress-bar .scroll-thumb {
  scale: 1;
}
.progress:hover .progress-bar .scroll-body {
  background-color: var(--primary-50);
} */

.progress-bar {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  /* background-color: var(--primary-800); */
  background-color: transparent;

  outline: none;
  position: absolute;
  z-index: 1000;
  -webkit-transition: 0.2s;
  transition: all 0.2s;
  left: 0;
  top: 0;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0px;
  aspect-ratio: 1/1;

  border-radius: 50%;
  background-color: var(--primary-50);
  transition: all 0.2s;
  cursor: pointer;
}
.input-parent {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  position: relative;
  background-color: var(--primary-100);
  margin-top: 6px;
  transition: all 0.2s;
}
.completed-part {
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-800);
  width: 0%;
  border-radius: 4px;
  transition: all 0s;
  height: 100%;
}
.input-parent:hover {
  background-color: var(--primary-300);
}
/* .progress-bar:hover {
  background-color: var(--primary-300);
} */
.input-parent:hover .progress-bar::-webkit-slider-thumb {
  width: 12px;
}
.progress-bar::-webkit-slider-thumb:hover {
  background-color: var(--primary-200);
}
.progress-bar::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #04aa6d;
  transition: all 0.2s;
  opacity: 1;
  cursor: pointer;
}

vibes .player-controls {
  display: flex;
  font-size: 36px;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
vibes .play-pause {
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
vibes .play-pause:hover {
  color: var(--primary-100);
}
vibes .pre-next:hover {
  scale: 1.1;
  cursor: pointer;
  transition: all 0.2s;
}
