
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background-color: black;
  color: white;
  font-size: 1rem;
  overflow: hidden;
}

.main {
  display: flex;
  height: 100vh;
  overflow: hidden;
  flex-direction: row;
}

.side-bar {
  background-color: black;
  width: 300px;
  border-radius: 1rem;
  padding: 1rem;
  overflow-y: auto;
}

.main-content {
  background-color: #121212;
  flex: 1;
  border-radius: 1rem;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.music-player {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-weight: 600;
  font-size: 1.2rem;
}

a {
  text-decoration: none;
  color: white;
}

.nav {
  background-color: #121212;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.nav-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  opacity: 0.7;
  transition: 0.3s;
}

.nav-option:hover {
  opacity: 1;
}

.nav-option i {
  font-size: 1.25rem;
}

.nav-option a {
  font-size: 1rem;
}

.library {
  background-color: #121212;
  border-radius: 1rem;
  margin-top: 1rem;
  padding: 1rem;
}

.lib-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lib-option {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lib-option img {
  height: 1.25rem;
  width: 1.25rem;
}

.icons {
  display: flex;
  gap: 0.75rem;
  font-size: 1.2rem;
}

.icons i {
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.icons i:hover {
  opacity: 1;
}

.box {
  background-color: #232323;
  border-radius: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  transition: 0.3s ease;
}

.box:hover {
  background-color: #2e2e2e;
}

.box-p1 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.box-p2 {
  font-size: 0.85rem;
  opacity: 0.8;
}

.badge {
  background-color: white;
  color: black;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-weight: 700;
  margin-top: 0.75rem;
  cursor: pointer;
  transition: 0.3s;
}

.badge:hover {
  background-color: #eaeaea;
}

.darkbadge {
  background-color: black;
  color: white;
  border: 1px solid white;
}

.sticky-nav {
  position: sticky;
  top: 0;
  background-color: #121212;
  padding: 1rem 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sticky-nav-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
}

.sticky-nav-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 1rem;
}

#user {
  font-size: 1.4rem;
  cursor: pointer;
  align-self:last baseline;
  padding-bottom: 0.2rem;
}

.section {
  margin-top: 2rem;
}

.section h2 {
  margin-bottom: 1rem;
}

/* Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
  padding-bottom: 1rem;
}

.card {
  background-color: #232323;
  width: calc(25% - 1.125rem); 
  border-radius: 0.5rem;
  padding: 1rem;
  transition: 0.3s;
}

.card:hover {
  background-color: #2e2e2e;
  transform: scale(1.05);
}

.card-img {
  width: 100%;
  border-radius: 0.5rem;
}

.card-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem 0;
}

.card-info {
  font-size: 0.85rem;
  opacity: 0.6;
}


@media (max-width: 1024px) {
  .card-container {
    justify-content: center;
  }

  .side-bar {
    width: 240px;
  }

  .card {
    width: calc(33.33% - 1rem);
  }
}


@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  .side-bar {
    display: none;
  }

  .main-content {
    border-radius: 0;
    padding: 1rem;
  }

  .sticky-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .card {
    flex: 0 0 auto;
    width: 80%;
    min-width: 200px;
    scroll-snap-align: start;
  }

  .badge {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
  }

  .music-player {
    font-size: 1rem;
  }
}


@media (max-width: 480px) {
  .nav,
  .library,
  .box,
  .sticky-nav {
    padding: 0.5rem;
  }

  .card {
    width: 85%;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .card-info {
    font-size: 0.75rem;
  }
}

.darkbadge:hover {
  background-color: black;
  color: white;
}

.main-content {
  padding: 0rem 0rem 0rem 1.5rem;
}

.fa-solid-fa-magnifying-glass {
  color: white;

  cursor: pointer;
  transition: color 0.3s;
}

.cont2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 100vh;
}

.Feat {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer {
  height: 300px;
  display: flex;
  justify-content: center;

  align-items: center;
}

.line {
  width: 90%;
  height: 50%;
  border-top: 1px solid white;
  opacity: 0.4;
}

.music-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.album {
  width: 25%;
  height: 100px;
  background-color: #232323;
}

.player {
  width: 50%;
  height: 100px;
  background-color: #232323;
}

.player-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.player-cont-icon {
  height: 1.5rem;
  width: 1.4rem;
  padding: 1rem 1.2rem 0rem 1.2rem;
  font-weight: 700;
}

.playback-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  gap: 1rem;
  padding: 0.5rem 11rem 0rem 11rem;
}

.curr-time,
.tot-time {
  font-size: 15px;
  color: white;
}

.progress-bar {
  flex-grow: 1;
}

.controls {
  width: 25%;
  height: 100px; 
  background-color: #232323;
}

.controls {
  width: 25%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  background-color: #232323;
}

.control-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-icons i {
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0.2rem;
}

.control-icons i:hover {
  opacity: 1;
}

.volume-slider {
  width: 100px;
  height: 6px;
  appearance: none;
  background-color: white;
  border-radius: 3px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: black;
  border-radius: 50%;
}

.control-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
}

.control-icons i {
  color: white;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.control-icons i:hover {
  opacity: 1;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-slider {
  width: 100px;
  height: 6px;
  appearance: none;
  background-color: grey;
  border-radius: 3px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background-color: yellow;
  border-radius: 50%;
}

.volume-slider.badge i:hover {
  background-color: yellow;
}

.album {
  display: flex;
  align-items: center;
  width: 25%;
  padding-left: 1rem;
  background-color: #232323;
  height: 100px;
  gap: 1rem;
}

.album-art {
  width: 56px;
  height: 56px;
  border-radius: 5px;
  object-fit: cover;
}

.album-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.song-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  padding-top: 0.3rem;
  margin-bottom: 0.3rem;
}

.artist-name {
  font-size: 0.75rem;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 1rem;
}
