body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background-color: black;
  color: #fff;
  overflow: hidden;
}

.main {
  display: flex;
  height: 100vh;
}

.top-bar {
  background-color: black;
  height: 72px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  text-align: center;
  display: flex;
}

.top-bar .menu-icon {
  display: flex;
  top: 18px;
  left: 20px;
  height: 72px;
  float: left;
}

.top-bar .logo {
  position: relative;
  top: 14px;
  height: 72px;
  float: left;
}

.top-bar .logo img {
  position: absolute;
  height: 40px;
}

.top-bar .home {
  position: relative;
  top: -4px;
  left: 350px;
  background: #121212;
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

.home:hover {
  background: #1f1e1e;
  cursor: pointer;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.top-bar .home img {
  position: absolute;
  height: 24px;
  top: 11px;
  left: 11px;
  color: #fff;
}

.search-container {
  display: flex;
  position: relative;
  background-color: #121212;
  border-radius: 50px;
  top: 6px;
  height: 39px;
  width: 480px;
  left: 360px;
  justify-content: space-between;
  padding: 10px 20px 0 20px;
  margin: 6px 0 6px 0;
}

.search-container:hover .search-box {
  background-color: #1f1e1e;
  cursor: text;
  transition: all 0.3s ease;
}

.search-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: #121212;
  border-radius: 9999px; /* fully rounded */
  padding: 8px 16px 10px 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

.search-container:hover {
  background-color: #1f1e1e;
  border: 1px solid #353434;
  cursor: text;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  padding: 10px 8px;
}

.search-icon {
  height: 20px;
  width: 20px;
  margin-top: 6px;
  transform: scale(1.8);
  color: #afafaf;
  padding-right: 20px;
}

.premium {
  background-color: white;
  border-radius: 50px;
  width: 120px;
  height: 38px;
  text-align: center;
  position: relative;
  left: 390px;
  top: 19px;
}

.premium a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 10px;
  position: relative;
  top: 9px;
}

.instal {
  border-radius: 50px;
  width: 120px;
  height: 38px;
  text-align: center;
  position: relative;
  left: 410px;
  top: 28px;
}

.instal a {
  text-decoration: none;
  color: rgb(143, 142, 142);
  font-weight: bold;
  font-size: 11px;
  position: relative;
}

.instal i {
  color: rgb(143, 142, 142);
  position: relative;
  right: 5px;
  font-size: 13px;
}

.instal:hover {
  cursor: pointer;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.instal:hover a {
  color: rgb(177, 177, 177);
  transition: all 0.3s ease;
}

.instal:hover i {
  color: rgb(177, 177, 177);
  transition: all 0.3s ease;
}

.notification {
  border-radius: 50px;
  width: 38px;
  height: 38px;
  text-align: center;
  position: relative;
  left: 400px;
  top: 28px;
}

.notification i {
  color: rgb(143, 142, 142);
  position: relative;
  font-size: 18px;
}

.notification:hover i {
  color: rgb(180, 177, 177);
  cursor: pointer;
  transition: color 0.3s ease;
}

.group {
  border-radius: 50px;
  width: 38px;
  height: 38px;
  text-align: center;
  position: relative;
  left: 410px;
  top: 28px;
}

.group i {
  color: rgb(143, 142, 142);
  position: relative;
  font-size: 20px;
}

.group:hover i {
  color: rgb(180, 177, 177);
  cursor: pointer;
  transition: color 0.3s ease;
}

.profile {
  background-color: #2a7e47;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  position: relative;
  left: 430px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: #858585 0px 0px 20px;
}

.profile i {
  color: rgb(255, 255, 255);
  position: relative;
  font-size: 24px;
}

.profile:hover i {
  color: rgb(180, 177, 177);
  cursor: pointer;
  transition: color 0.3s ease;
}

@media (max-width: 1000px) {
  .top-bar .home {
    left: 100px;
  }

  .search-container {
    left: 110px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .search-icon i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
  }

  .search-box input {
    display: none;
  }

  .premium {
    display: none;
  }

  .instal {
    left: 290px;
  }

  .notification {
    left: 300px;
  }

  .group {
    left: 310px;
  }

  .profile {
    left: 330px;
  }
}

.sidebar {
  background-color: #121212;
  width: 350px;
  border-radius: 1rem;
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  position: relative;
  overflow-x: hidden;
  margin: 72px 10px 72px 12px;
  height: 435px;
}

@media (max-width: 575px) {
  .sidebar {
    width: 200px;
  }

  .lib-option img {
    display: none;
  }

  .lib-option a {
    display: none;
  }

  .option .icons .create {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0px;
  }

  .option .icons .create i {
    left: 15px;
  }

  .option .icons .create span {
    display: none;
  }

  .main-content .content-detail {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    height: 50px;
    padding: 8px;
    padding-bottom: 2px;
  }

  .main-content .content-detail img {
    width: 63px;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 4px;
  }

  .main-content .content-detail p {
    padding-left: 0;
    padding-top: 0;
    font-size: 8px;
    font-weight: normal;
  }
}

.library {
  background-color: #121212;
  border-radius: 1rem;
  height: 455px;
  overflow: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.top-fix {
  position: sticky;
  top: 0;
  background-color: #121212;
  padding-bottom: 10px;
  z-index: 10;
}

.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  padding-bottom: 0;
}

.lib-option img {
  position: fixed;
  height: 1.3rem;
  width: 1.3rem;
  cursor: pointer;
  left: -650px;
  transition: all 0.3s linear;
}

.library:hover .lib-option img {
  left: 18px;
}

.lib-option a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 11px;
  transition: all 0.3s linear;
}

.library:hover .lib-option a {
  padding: 0 0 0 15px;
}

.icons {
  display: flex;
}

.icons .create {
  background-color: #2b2525;
  display: flex;
  width: 68px;
  height: 20px;
  border-radius: 50px;
  padding: 6px;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  margin-right: 10px;
  margin-top: 6px;
}

.icons .create:hover {
  background-color: #2c2b2b;
}

.icons .create i {
  color: #b3afaf;
  font-size: 15px;
}

.icons .create:hover i {
  color: #d1cfcf;
}

.icons .create span {
  color: #fff;
  font-weight: bold;
  font-size: 10px;
}

.icons .expend {
  display: flex;
  width: 20px;
  height: 20px;
  border-radius: 50px;
  padding: 16px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.icons .expend:hover {
  background-color: #2b2525;
}

.icons .expend i {
  color: #b3afaf;
  font-size: 11px;
}

.category {
  display: flex;
  align-items: center;
  padding: 6px;
  margin: 10px 0 4px 0;
  gap: 5px;
}

.category .content {
  display: flex;
  background-color: #2c2b2b;
  height: 22px;
  width: 50px;
  padding: 8px 2px 8px 2px;
  border-radius: 50px;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
}

.category .content:hover {
  background-color: #3e3c3c;
  cursor: pointer;
  transition: all 0.3s ease;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px 10px 10px;
  top: -4px;
}

.top-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 2px;
}

.top-icon i {
  position: relative;
  top: 5px;
  font-size: 14px;
}

.top-icon:hover {
  background-color: #2c2b2b;
}

.top-corner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #747272;
  margin-left: 200px;
}

.top-corner:hover {
  font-size: 14.5px;
  color: #c2bebe;
}

.boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

[data-type="album"] {
  display: flex;
  flex-wrap: wrap;
}

[data-type="artist"] {
  display: flex;
  flex-wrap: wrap;
}

[data-type="artist"] .album-img img {
  height: 120px;
  width: 120px;
  border-radius: 50%;
}

/* Base card */
.album-card {
  height: 190px;
  width: 160px;
  background-color: #121212;
  border: none;
  border-radius: 10px;
  padding: 10px;
  transition: background-color 0.3s ease;
}

/* Hover effect on card */
.album-card:hover {
  background-color: #1e1e1e; /* grayish effect */
  cursor: pointer;
}

/* Image wrapper */
.album-img {
  background-size: cover;
  padding: 0px; /* remove padding */
  background: transparent; /* no bg */
  border-radius: 10px;
  overflow: hidden;
}

.album-img img {
  height: 170px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover .album-img img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.main-content {
  background-color: #121212;
  flex: 1;
  border-radius: 1rem;
  overflow: auto;
  padding: 0 1.5rem 0 1.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  position: relative;
  overflow-x: hidden;
  margin: 72px 12px 72px 0;
  height: 435px;
}

.sticky-nav {
  position: sticky;
  top: 2px;
  background-color: #12121296;
  display: flex;
  padding: 10px 20px;
  gap: 10px;
  border-radius: 0.5rem 0.5rem 0 0;
}

.sticky-nav button {
  border: none;
  color: white;
  background-color: rgba(69, 69, 70, 0.7);
  border-radius: 50px;
  padding: 12px;
  padding-inline: 10px;
  font-size: small;
  padding-inline: 13px;
}

.sticky-nav button.active {
  background-color: white;
  color: black;
  font-weight: bold;
}

.sticky-nav button:hover {
  background-color: #414040;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.content-section {
  width: 85rem;
  display: flex;
  flex-wrap: wrap;
  padding: 2px;
  padding-left: 23px;
}

.display-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.content-detail {
  background-color: #706c6c49;
  display: flex;
  width: 220px;
  height: 50px;
  border-radius: 6px;
}

.content-detail img {
  height: 50px;
  width: 50px;
  overflow: hidden;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.content-detail p {
  padding-left: 10px;
  font-size: 10px;
  font-weight: bolder;
  padding-top: 16px;
}

.content-detail:hover {
  background-color: #5a5757cc;
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .content-section {
    padding-left: 10px;
  }
  .content-detail {
    width: 48vw;
    min-width: 150px;
    height: 44px;
  }
  .content-detail img {
    width: 44px;
    height: 44px;
  }
  .content-detail p {
    font-size: 12px;
  }
}

@media (max-width: 575px) {
  .content-section {
    padding-left: 4px;
  }
  .display-content {
    gap: 4px;
  }
  .content-detail {
    width: 98vw;
    min-width: 0;
    height: 40px;
    border-radius: 5px;
  }
  .content-detail img {
    width: 40px;
    height: 40px;
    border-radius: 5px 0 0 5px;
  }
  .content-detail p {
    font-size: 11px;
    padding-left: 8px;
  }
}

.cards {
  background-color: #121212;
  width: 160px;
  height: auto;
  border-radius: 0.5rem;
  padding: 10px;
  display: inline-block;
  text-align: left;
  flex: 0 0 auto;
  border: none;
}

.cards:hover {
  background-color: #1e1e1e; /* grayish effect */
  cursor: pointer;
}

.cards-container {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
  margin-top: 1rem;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  margin-bottom: 3rem;
}

.card-img {
  width: 100%;
  height: 150px; /* set a fixed height */
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  background-size: cover;
  padding: 0;
}

.card-img img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.card-img img {
  height: 170px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.753);
}

.cards-tittle {
  font-weight: 500;
  margin: 0.5rem 0 0.2rem 0;
  font-size: 11px;
}

.cards-info {
  font-size: 9px;
  color: darkgray;
  margin-bottom: 0;
  white-space: normal;
  word-break: break-word;
}

.footer .line {
  border-bottom: 1px solid #2c2b2b;
  margin: 20px 0;
}

.music-player {
  background-color: black;
  position: fixed;
  bottom: 0px;
  width: 100%;
  height: 90px;
  text-align: center;
  display: flex;
  padding: 20px;
}

.albumm {
  width: 25%;
}

.player {
  width: 50%;
}

.control {
  width: 25%;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
}

.player-control-icon {
  height: 1.25rem;
  margin-right: 1.8rem;
  opacity: 0.7;
}

.player-control-icon:hover {
  opacity: 1;
}

.progress-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.curr-time,
.tot-time {
  font-size: 10px;
  color: #b3b3b3;
}

.curr-time {
  position: absolute;
  left: 0;
  padding-left:417px;
}

.tot-time {
  position: absolute;
  right: 0;
  padding-right:425px;
}


.progress {
  width: 70%;
  appearance: none;
  background-color: transparent;
  cursor: pointer;
}

.progress::-webkit-slider-runnable-track {
  background-color: #8f8c8cad;
  border-radius: 100px;
  height: 3.5px;
}

.progress::-webkit-slider-thumb {
  appearance: none;
  height: 1rem;
  width: 1rem;
  background: white;
  border-radius: 50%;
  margin-top: -4px;
  display: none;
}

.progress:hover::-webkit-slider-thumb {
  display: block;
}


.content-corner{
  display: flex;
  width: 220px;
  height: 50px;
  border-radius: 6px;
}

.content-corner img{
  height: 60px;
  width: 60px;
  border-radius: 8%;
}

.corner-detail{
  display: flex;
  flex-direction: column;
  align-items: baseline;
  padding-left: 14px;
  gap: 0;
}

.content-corner p{
  font-size: 10px;
  font-weight: bold;
  padding-top: 16px;
  padding-bottom: 0;
  margin: 0;
}

.control{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
}

.control-icon {
  height: 2.75rem;
  opacity: 0.8;
}

.control-iconx {
  height: 1.25rem;
  opacity: 0.8;
}

.control-iconx:hover {
  opacity: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-icon:hover {
  opacity: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.volume-slider {
  width: 100px;
  appearance: none;
  background-color: transparent;
  cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
  background-color: #8f8c8cad;
  border-radius: 100px;
  height: 3.5px;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  height: 1rem;
  width: 1rem;
  background: white;
  border-radius: 50%;
  margin-top: -4px;
  display: none;
}

.volume-slider:hover::-webkit-slider-thumb {
  display: block;
}

