/* Full-width playlist section */

.playlist-section {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 2rem 0;
}

/* Make the playlist content breathe */

.playlist-section .container, .playlist-section .list-group {
  background: transparent;
  color: #fff;
}

/* Individual track items */

.playlist-section .list-group-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 1rem;
  transition: background 0.3s ease;
}

.playlist-section .list-group-item:hover {
  /*background: rgba(255, 255, 255, 0.05);*/
}

/* Track image spacing */

.playlist-section img {
  margin-right: 10px;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* Buttons (remove, clear) */

.playlist-section .btn-outline-danger {
  color: #2cd17e;
  border-color: #2bd27f;
}

.playlist-section .btn-outline-danger:hover {
  background-color: #ff6b6b;
  color: #fff;
}

/* Active (currently playing) track */

.playlist-section .list-group-item.active {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #00c3ff;
}

/* === Fixed playlist container === */

.fixed-playlist {
  position: fixed;
  bottom: 80px;
  /*adjust: height of your global player;*/
  left: 0;
  width: 100%;
  background-color: rgb(38,38,38);
  color: #fff;
  z-index: 1050;
  max-height: 40vh;
  overflow-y: auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /*optional: gives a nice glassy look;*/
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

/* Optional: small slide-up effect if you ever hide it */

.fixed-playlist.hidden {
  transform: translateY(100%);
}

/* inner content */

.fixed-playlist .list-group-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem 1rem;
}

.fixed-playlist img {
  margin-right: 10px;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.btn-outline-danger {
}

/* Smooth show/hide */

@media (max-width: 480px) {
  .fixed-playlist {
    transition: transform 0.4s ease, opacity 0.4s ease;
    margin-bottom: -30px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (min-width: 481px) {
  .fixed-playlist {
    transition: transform 0.4s ease, opacity 0.4s ease;
    margin-bottom: -10px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.fixed-playlist.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Floating toggle button (optional style) */

.playlist-toggle {
  position: fixed;
  bottom: 0px;
  right: 20px;
  z-index: 1100;
  background: rgba(82,176,9,0.7);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: background 0.3s;
}

.playlist-toggle:hover {
  background: rgb(70,135,29);
}

.playlist {
  /*margin-top: -30px;*/
}

/* Fix vertical cursor alignment for the Save Playlist input */

#savePlaylistModal input#playlistName {
  height: 42px;
  line-height: 42px;
  padding: 0 12px;
  font-size: 16px;
  background-color: #2b2b2b;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

#savePlaylistModal input#playlistName::placeholder {
  color: #aaa;
}

/* Hide mobile mini-player on larger screens */

#mobile-player {
  display: none;
  background: #111;
  color: #fff;
  width: 100%;
  border-top: 1px solid #333;
}

/* Show mini-player and hide full player below 480px */

@media (max-width: 480px) {
  #global-player {
    display: none !important;
  }
}

@media (max-width: 480px) {
  #mobile-player {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 2000;
  }
}

.play-track, .add-to-playlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  vertical-align: middle;
}

.add-to-playlist {
  margin-left: 0.0rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
  .play-track, .add-to-playlist {
    flex: 1 1 100%;
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }
}

.play-track {
  margin-top: 0.0rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

