 body {
  margin: 0;
  padding: 0;
  background-color: #767171;
  font-family: Arial, sans-serif;
}

.navbar {
  background-color: #000;
  color: white;
  padding: 12px 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.logo {
  height: 42px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #1db954;
}

.hero-container {
  padding: 40px 50px;
}

.hero-container h1 {
  font-size: 3rem;
  font-weight: bold;
  text-transform: capitalize;
  color: #1db954;
  margin: 0px;
  padding: 0px 0px 14px 536px;
}

.songs-container {
  background-image: url("https://i.pinimg.com/736x/56/41/f2/5641f2913b0710c6e0fb821bd05ad1d6.jpg");
  background-size: cover;
  background-position: center right;
  padding: 30px 300px 30px 30px;
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.song-row {
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  gap: 20px;
  font-size: 14px;
}

.song-cover {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

.song-title {
  width: 200px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-title:hover {
  text-decoration: underline;
  cursor: pointer;
  color: #b5adad;
}

.song-artist {
  width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist:hover {
  cursor: pointer;
  color: #b5adad;
}

.song-time {
  width: 50px;
  text-align: right;
}
.song-time:hover {
  cursor: pointer;
  color: #b5adad;
}

.song-row:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.play-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.2);
}

.music-footer {
  background-color: #000;
  color: white;
  padding: 10px 20px;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.play-main {
  font-size: 30px;
}

.play-main svg {
  width: 36px;
  height: 36px;
}

.music-gif {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}

.music-gif img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.control-btn:hover {
  transform: scale(1.2);
}

.progress-time {
  min-width: 40px;
  text-align: center;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.footer-now-playing {
  visibility: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  height: 100%;
  margin: 5px 0 -3px 0px;
}
.footer-now-playing.active {
  visibility: visible;
  opacity: 1;
}

.footer-song-cover {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.footer-song-title {
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-song-artist {
  font-size: 12px;
  color: #bbb;
}

.time-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px;
  font-size: 12px;
  color: #bbb;
  margin-top: 4px;
  margin-inline: auto;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 59%;
  padding: 0px 310px;
  color: white;
  font-size: 12px;
}

.progress-bar {
  flex-grow: 1;
  appearance: none;
  height: 6px;
  background: #444;
  border-radius: 3px;
  cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #1db954;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -3px;
}

/* .shuffle-btn.active svg,
.repeat-btn.active svg {
  fill: green;
} */
 .shuffle-btn svg,
 .repeat-btn svg {
  fill: white;
  transition: fill 0.3s ease;
}

.shuffle-btn.active svg ,
.repeat-btn.active svg{
  fill: green;
}


/* ✅ Responsive styles below */

@media (max-width: 1024px) {
  .hero-container h1 {
    padding-left: 300px;
    font-size: 2.5rem;
  }

  .songs-container {
    padding: 30px 50px;
  }

  .footer-bottom-row {
    padding: 0px 50px;
    width: 100%;
  }
}
 @media (max-width: 768px) {
  .navbar-content {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding-left:85px ;
  }
  .nav-links a{
    font-size: 25px;
  }
  .hero-container {
    padding: 20px;
    text-align: center;
  }

  .hero-container h1 {
    font-size: 2rem;
    padding: 0;
  }

  .songs-container {
    padding: 20px;
    background-position: center;
  }

  .song-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .song-title,
  .song-artist,
  .song-time {
    width: 100%;
    text-align: left;
    overflow: visible;
    white-space: normal;
  }

  .footer-now-playing {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 10px 20px;
  }

  .controls {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .time-display {
    font-size: 12px;
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  .hero-container h1 {
    font-size: 1.6rem;
  }

  .song-title,
  .song-artist {
    font-size: 13px;
  }

  .footer-song-title {
    font-size: 13px;
  }

  .footer-song-artist {
    font-size: 11px;
  }

  .progress-bar {
    height: 5px;
  }

  .footer-now-playing {
    flex-direction: column;
    align-items: flex-start;
  }

  .controls {
    gap: 15px;
  }
}

