 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #000;
  color: #fff; /* 👈 prevents black text */
}
 .main {
   display: flex;
   height: 100vh;
   padding: 0.5rem;
 }
 .sidebar {
     background-color: black;  
   width: 340px;
  border-radius: 1rem; 
  /* 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: white;
 }
 .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: 40px;
   opacity: 0.7;
   padding: 0.5rem 0.75rem;
 }
 .nav-option:hover {
   opacity: 1;
 }
 .nav-option i {
   font-size: 1rem;
 }
 .nav-option a {
   font-size: 1rem;
   margin-left: 1rem;
 }
 .library {
   background-color: #121212;
   border-radius: 1rem;
   height: 100%;
   margin-top: 0.5rem;
   padding: 0.5rem 0.75rem;
 }
 .options {
   display: flex;
   justify-content: space-between;
   align-items: center;
 }
 .lib-option img {
   height: 1.5rem;
   width: 1.25rem;
 }
.icons {
   font-size: 1.25rem;
   display: flex;
}
.icons i {
   opacity: 0.7;
   margin-right: 1rem;
}
.icons i:hover {
   opacity: 1;
}
.box {
   background-color: #232323;
   height: 8rem;
   border-radius: 0.9rem;
    margin: 0.75rem 0 1.75rem 0;
   padding: 0.5rem 1rem;
}
.box-p1 {
   font-size: 1rem;
   font-weight: 500;
   padding: 0.9rem;
}
.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;
   color: black;
   margin-top: 0.75rem;
   height: 2rem;
   width: fit-content;
}
.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 {
   margin-left: 0.75rem;
}
.sticky-nav-options {
   display: flex;
   justify-content: center ;
   align-items: center;
}
.sticky-nav-options button {
   margin-right: 1rem;
}
.nav-item {
   margin-right: 1rem;
}
@media (max-width: 900px) {
   .hide {
      display: none;
   }
}
.card {
   background-color: #232323;
   width: 150px;
   border-radius: 0.5rem;
   padding: 1rem;
   margin-left: 1.5rem;
   margin-top: 1rem;
}
.card-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.5;
}
.fotter {
   height: 250px;
   display: flex;
   align-items: center;
   justify-content: center;
}
.line {
   width: 90%;
   height: 30%;
   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-controls {
   display: flex;
   justify-content: space-between;
   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.20rem;
}
.progress-bar::-webkit-slider-thumb {
   appearance: none;
   height: 1rem;
   width: 1rem;
   background-color: #1bd760;
   border-radius: 100%;
   margin-top: -6px;
}
.album {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 25%;
}

/* Album cover */
.album img:first-child {
  width: 56px;
  height: 56px;
  border-radius: 0.25rem;
}

/* Song + artist text */
.album-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.song-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

.artist-name {
  font-size: 0.75rem;
  color: #b3b3b3;
}

/* Heart icon */
.album-icon {
  margin-left: auto;
  font-size: 1.1rem;
  color: #b3b3b3;
  cursor: pointer;
}

.album-icon:hover {
  color: #1db954; /* Spotify green */
}

/* Extra album icon (album_icon2.png) */
.album img:last-child {
  width: 18px;
  height: 18px;
  margin-left: 0.8rem;
  opacity: 0.8;
  cursor: pointer;
}

.album img:last-child:hover {
  opacity: 1;
}
.controls {
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

/* Control icons */
.controls img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  cursor: pointer;
}

.controls img:hover {
  opacity: 1;
}

/* Volume slider */
.controls-bar {
  width: 90px;
  appearance: none;
  background-color: transparent;
  cursor: pointer;
}

/* Track */
.controls-bar::-webkit-slider-runnable-track {
  height: 4px;
  background-color: #535353;
  border-radius: 100px;
}

.controls-bar::-moz-range-track {
  height: 4px;
  background-color: #535353;
  border-radius: 100px;
}

/* Thumb */
.controls-bar::-webkit-slider-thumb {
  appearance: none;
  height: 12px;
  width: 12px;
  background-color: white;
  border-radius: 50%;
  margin-top: -4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.controls-bar::-moz-range-thumb {
  height: 12px;
  width: 12px;
  background-color: white;
  border-radius: 50%;
  border: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Show thumb on hover */
.controls:hover .controls-bar::-webkit-slider-thumb {
  opacity: 1;
}

.controls:hover .controls-bar::-moz-range-thumb {
  opacity: 1;
}

/* Green progress on hover (Spotify effect) */
.controls-bar:hover::-webkit-slider-runnable-track {
  background-color: #1db954;
}

.controls-bar:hover::-moz-range-track {
  background-color: #1db954;
}

