/**** Player ****/
  #player {
    max-width: 600px;
    text-align: center;
  }

#track-display {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  text-align: left;
}

#track-cover {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #333;
}

#track-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #000;
}

#album-title {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 3px;
}

#track-title {
  font-size: 1.2em;
}

#track-title::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 6px;
  background: url("../img/logo_player.svg") no-repeat center / contain;
  vertical-align: middle;
  transform: rotate(-10deg);
}

/* Pulsing just scales, no opacity change */
@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(-10deg); }
  50% { transform: scale(1.2) rotate(-10deg); }
}

/* Idle state (static, semi-transparent) */
#track-title.idle::before {
  opacity: 0.6;
  animation: none;
}

/* Paused state (fully transparent) */
#track-title.paused::before {
  opacity: 0.6;
  animation: none;
}

/* Playing state (fully visible, pulsing) */
#track-title.playing::before {
  opacity: 1;
  animation: pulse 2s ease-in-out infinite;
}

  #playlist {
    list-style: none;
    padding: 0;
    margin-top: 0px;
    max-height: calc(40px * 5); /* Number of visible tracks */
    overflow-y: auto;
    border: 5px solid #333;
    background-color: #333;
    color: #fff;
    border-radius: 0px 0px 10px 10px;

      /* Firefox scrollbar colors */
    scrollbar-color: #117d35 #111; /* thumb + track */
    scrollbar-width: thin;         /* "auto" or "thin" */

    /*Do not jump large steps when scrolling*/
    scroll-behavior: smooth;
  }
  #playlist li {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #333;
  }
  #playlist li:last-child { border-bottom: none; }
  #playlist li:hover {
    background: #222;
    color: #fff;
  }
  #playlist li.active {
    color: #117d35;
    font-weight: bold;
  }
  .trackno {
    text-align: left;
    padding-right: 10px;
  }
  .title {
    text-align: left;
    width: 100%;
  }
  .duration {
    text-align: right;
  }

  /** player itself with buttons **/
  #audio-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    width: 100%;
    border: 1px solid #333;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background-color: #333;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 0;
  }
  #audio {
    flex: 1;
    height: 32px; /* optional: keeps height uniform */
    border-radius: 6px;
    accent-color: #117d35;
  }
  /* Buttons beside the audio element */
  #audio-container button {
    height: 32px;
    width: 32px;
    background: #222;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: "Segoe UI Symbol", "Arial", sans-serif;
  }

  #audio-container button:hover:not(:disabled) {
    background: #000;
  }

  #audio-container button:disabled {
    color: #888;
    background: #111;
    border-color: #555;
    cursor: default;
  }

  #audio-container prev {

  }
  #audio-container next {

  }

  /*Scrollbar for playlist*/
  /* Chrome, Edge, Safari (WebKit) */
  #playlist::-webkit-scrollbar {
    width: 8px; /* scrollbar width */
  }

  #playlist::-webkit-scrollbar-track {
    background: #111; /* track (behind thumb) */
    border-radius: 0 0 10px 0;
  }

  #playlist::-webkit-scrollbar-thumb {
    background-color: #117d35; /* the draggable thumb */
    border-radius: 10px;
    border: 2px solid #111; /* gives space effect */
  }

  #playlist::-webkit-scrollbar-thumb:hover {
    background-color: #1fc653; /* slightly lighter green on hover */
  }