body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    background-color: black;
    color: white;
    overflow: hidden;
}

.main{
    display: flex;
    height: 100vh;
    padding: 0.5rem;
}

.sidebar{
    background-color: #121212;
    width: 340px;
    border-radius: 1rem;    /*16px*/
    margin-right: 0.5rem;
    
}

.main-content{
    background-color: #121212;
    flex: 1;
    border-radius: 1rem;
    overflow: auto;
    padding: 0 1.5rem 0 1.5rem;

}

.music-player{
    background-color: black;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 72px;

}

a{
    text-decoration: none;
    color: #fff;
}

.nav {
    background-color: #121212;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100px;
    padding: 0.5rem 0.75rem;
}

.nav-option{
    line-height: 2.5rem;
    opacity: 0.7;
    padding: 0.5rem 0.75rem;
}

.nav-option:hover{
    opacity: 1;
}

.nav-option i{
    font-size: 1.25rem;
}

.nav-option a{
    font-size: 1rem;
    margin-left: 1rem;
}

.library{
    background-color: #121212;
    border-radius: 1rem;
    height: 100%;
    margin: 0.5rem;
    padding: 0.5rem 0.75rem;
    
}

.options{
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.lib-option img{
    height: 1.25rem;
    width: 1.25rem;

}

.icons{
    font-size: 1.25rem;
    opacity: 0.7;
    margin-right: 1rem;
    display: flex;
}

.icons i{
    opacity: 0.7;
    margin-right: 1rem;

}

.icons i:hover{
    opacity: 1;
}

.box{
    background-color: #232323;
    height: 9rem;
    border-radius: 0.75rem;
    margin: 0.75rem 0 1.75rem 0;
    padding: 0.75rem 1rem;
}

.box-p1{
    font-size: 1rem;
    font-weight:500 ;
}

.box-p2{
    font-size: 0.85rem;
    opacity: 0.9;

}

.badge{
    background-color: white;
    border: none;
    border-radius: 100px;
    padding: 0.25rem 1rem;
    font-weight: 700;
    margin-top: 0.75rem;
    height: 2rem;
    width: fit-content;
    margin-bottom: 20px;
}

.dark-badge{
    background-color: #000;
    color: #fff;
}

.sticky-nav{
    position: sticky;
    top: 0;
    background-color: #121212;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 1rem 0;
    z-index: 10;

}

.sticky-nav-icons img{
    margin-left: 0.75rem;

}

.sticky-nav-options{
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.nav-item{
    margin-right: 1rem;
}

@media (max-width: 1000px){
    .hide{
        display: none;
    }
}

.card {
    background-color: #232323;
    width: 150px;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
}

.card-img{
    width: 100%;
    border-radius: 0.5rem;

}

.card-title{
    font-weight: 600;
}

.card-info{
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer{
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line{
    width: 90%;
    height: 50%;
    border-top: 1px solid white;
    opacity: 0.4;
}

.music-player{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album {
    width: 25%;

}

.player{
    width: 50%;
}

.controls{
    width: 25%;
}

.player-control{
    display: flex;
    justify-content: center;
    align-items: center;
}


.player-control-icon{
    height: 1rem;
    margin-right: 1.75rem ;
    opacity: 0.7;
}

.player-control-icon:hover{
    opacity: 1;
}

.playback-bar {
    display: flex;
    justify-content: center;
    align-items: center;

}

.progress-bar{
    width: 70%;
    appearance: none;
    background-color: transparent;
    cursor: pointer;
}

.progress-bar::-webkit-slider-runnable-track{
    background-color: #ddd ;
    border-radius: 100px;
    height: 0.25rem;
}

.progress-bar::-webkit-slider-thumb {
    appearance: none;
    height: 1rem;
    width: 1rem;
    background-color: #1bd760 ;
    border-radius: 50%;
    margin-top: -6px ;
}

.album {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  gap: 1rem;
}

.album-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-left: 1rem;
}

.song-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 1rem;

}

.song-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

.artist-name {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.25rem ;
}

.action-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  padding-right: 1rem;
}


.icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.3s ease;
}


.icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.bottom-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
}

.control-icon {
  width: 22px;
  height: 22px;
  opacity: 0.6;
  cursor: pointer;
  filter: grayscale(30%);
  transition: 0.3s ease;
}

.control-icon:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.volume-slider {
  width: 100px;
  height: 4px;
  accent-color: white;
  background-color: #333;
  border-radius: 5px;
  background-color: transparent;
  cursor: pointer;
}

@media (max-width: 768px) {
  /* Stack main layout vertically */
  .main {
    flex-direction: column;
    padding: 0;
    height: auto;
  }

  /* Sidebar should take full width */
  .sidebar {
    width: 100%;
    margin: 0;
    border-radius: 0;
    order: 2;
  }

  /* Main content takes full width */
  .main-content {
    width: 100%;
    padding: 1rem;
    order: 1;
    overflow-y: auto;
    max-height: 100vh;
  }

  /* Cards wrap in a column, centered */
  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  /* Each card stretches to 90% width */
  .card {
    width: 90%;
    margin: 1rem auto;
  }

  /* Hide forward button on small screens */
  .hide {
    display: none;
  }

  /* Music player stacks vertically */
  .music-player {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    position: relative;
  }

  .album,
  .player,
  .controls {
    width: 100%;
    margin-bottom: 1rem;
  }

  /* Optional: Reduce base font size for smaller screens */
  html {
    font-size: 14px;
  }
}



