html {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Ubuntu", sans-serif;
  font-size: 12px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.backImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(15px);
  -webkit-filter: blur(40px);
  transform: scale(1.1);
}

.container {
  position: relative;
  min-height: 550px;
  width: 400px;
  border-radius: 20px;
  overflow: hidden;
  background-color: rgb(0, 0, 0);
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  color: azure;
  transition: all 0.3s ease;
}

.front-vdo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.lower {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 10;
  background: black;
  -webkit-box-shadow: 6px -4px 93px 78px rgba(0, 0, 0, 1);
  -moz-box-shadow: 6px -4px 93px 78px rgba(0, 0, 0, 1);
  box-shadow: 6px -4px 93px 78px rgba(0, 0, 0, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.music {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.songName {
  font-size: 26px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 700;
  align-self: flex-start;
  margin-bottom: 10px;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: small;
}

.track-bar {
  width: 100%;
  height: 4px;
  cursor: pointer;
}

.controls {
  width: 65%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-top: -32px; */
}

.fa-solid {
  font-size: x-large;
  cursor: pointer;
}

.fa-solid:hover {
  transform: scale(1.1);
}

.fa-circle-play,
.fa-circle-pause {
  font-size: 48px !important;
  color: #74c0fc;
}

.loop {
  color: #74c0fc;
}

.shuffled {
  color: #74c0fc;
}

.list {
  /* position: relative; */
  background-color: #1c1c1e;
  width: 80%;
  height: 15%;
  border-radius: 14px;
  margin: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: medium;
  padding-left: 12px;
  padding-right: 12px;
}

.list:hover {
  background-color: #2b2b2e;
}

.fa-volume-high {
  font-size: medium;
}

.vol-con {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
}

.vol {
  height: 3px;
  width: 60px;
  cursor: pointer;
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(20%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.fa-volume-mute {
  color: #ff6b6b !important;
}

.fa-volume-low {
  color: #ffd43b !important;
}

.fa-volume-high {
  color: inherit !important;
}

.fa-volume-high,
.fa-volume-low,
.fa-volume-mute {
  font-size: large;
  transition: color 0.3s ease;
}

.logo {
  font-size: smaller;
}

.logo:hover {
  color: rgb(22, 173, 173);
}

.songs {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 340px;
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(187, 205, 205, 0.95),
    rgba(160, 180, 180, 0.95)
  );
  backdrop-filter: blur(10px);
  z-index: 15;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.songs.show {
  transform: translateY(0);
}

/* Song List Header */
.songs-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(
    135deg,
    rgba(187, 205, 205, 0.98),
    rgba(160, 180, 180, 0.98)
  );
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 20;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.songs-title {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

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

.song-details {
  display: flex;
  flex-direction: column;
}

.song-name {
  font-weight: 600;
  color: #2c3e50;
}

.song-author {
  font-size: 0.7em;
  color: #555;
}

.song-duration {
  font-size: 0.8em;
  color: #777;
}

.songs ul {
  padding: 10px 20px 20px;
  flex: 1;
  margin: 0;
  padding: 20px 20px;
  list-style: none;
  font-size: 16px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  height: calc(100% - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 192, 252, 0.5) transparent;
}

.songs ul::-webkit-scrollbar {
  width: 6px;
}

.songs ul::-webkit-scrollbar-track {
  background: transparent;
}

.songs ul::-webkit-scrollbar-thumb {
  background: rgba(116, 192, 252, 0.5);
  border-radius: 3px;
}

.songs ul::-webkit-scrollbar-thumb:hover {
  background: rgba(116, 192, 252, 0.7);
}

.songs li {
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #2c3e50;
  font-weight: 500;
}

.songs li:hover {
  background: rgba(116, 192, 252, 0.2);
  transform: translateX(1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.songs li.active {
  background: rgba(116, 192, 252, 0.4);
  color: #1e3a8a;
  font-weight: 600;
  border-color: #74c0fc;
}

.songs li.active:hover {
  background: rgba(116, 192, 252, 0.5);
}

.fa-xmark {
  cursor: pointer;
  color: #282828;
  font-size: 16px;
  z-index: 25;
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* CSS rules for tablets */
  .container {
    position: relative;
    min-height: 750px;
    width: 600px;
    border-radius: 20px;
  }

  .songName {
    font-size: 34px;
  }

  .track-bar {
    height: 6px;
  }

  .controls {
    width: 70%;
  }

  .fa-solid {
    font-size: xx-large;
  }

  .fa-solid:hover {
    transform: scale(1.1);
  }

  .list {
    height: 18%;
  }

  .songs {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 390px;
  }

  .fa-xmark {
    cursor: pointer;
    color: #282828;
    font-size: 20px;
    z-index: 25;
  }

  .fa-circle-play,
  .fa-circle-pause {
    font-size: 58px !important;
    color: #74c0fc;
  }
}

@media (max-width: 480px) {
  .container {
    width: 360px;
  }
}
