 /* ======= Winamp container ======= */
  #winamp {
    width: 199px;
    font-family: 'Yu Gothic', 'Meiryo', sans-serif;
    font-weight: bold;
    background-color: #100000;
    color: #bb2222;
    border: 1px solid #7f0000;
    border-radius: 5px;
    box-shadow: 0 0 8px #440000;
    user-select: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
  }

  /* ======= Top header ======= */
  #winamp-header {
    background-color: #330000;
    padding: 4px 5px;
    border-bottom: 3px solid #7f0000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 1px;
  }

#song-info {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  height: 16px; /* fixed height to avoid layout jump */
  display: flex;
  align-items: center; 
  padding-left: 6px;
}
#song-info::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(51, 0, 0, 0),
    #330000
  );
}


#song-info-text {
  display: inline-block;
  position: relative;
  will-change: transform;
  line-height: 16px; /* match container height */
}


  #header-controls {
    display: flex;
    gap: 2px;
  }

  #header-controls button {
    background-color: #000000;
    border: 1px solid #bb2222;
    border-radius: 3px;
    color: #bb2222;
    font-size: 13px;
    padding: 2px 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
  }

  #header-controls button:hover {
    background-color: #bb2222;
    color: #100000;
  }

  /* ======= Equalizer section ======= */
  #equalizer-section {
  background-color: #000000;
  border-bottom: 3px solid #7f0000;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

  #equalizer-bars {
    display: flex;
    gap: 3px;
    width: 100%;
    height: 32px;
    align-items: flex-end;
  }

  .eq-bar {
    width: 6px;
    height: 6px; /* static min height */
    background: linear-gradient(to top, #bb2222, #ff4444);
    border-radius: 2px;
    transition: height 0.3s ease;
  }

  #eq-buttons {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 4px; /* keeps buttons off the edges */
}

#eq-buttons button.active {
  background-color: #bb2222;
  color: #100000;
}


  #eq-buttons button {
    background-color: #000000;
    border: 1px solid #bb2222;
    border-radius: 3px;
    color: #bb2222;
    font-size: 12px;
    padding: 2px 4px;
  min-width: 26px;
    cursor: pointer;
    user-select: none;
  }

  #eq-buttons button:hover {
    background-color: #bb2222;
    color: #100000;
  }

  /* ======= Playlist window ======= */
  #playlist-window {
    background-color: #000000;
    border-top: 3px solid #7f0000;
    max-height: 229px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
  }

  #playlist {
    margin: 0;
    padding: 6px 0;
    list-style: none;
  }

#playlist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.song-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip; /* or ellipsis if you prefer */
  position: relative;
  font-family: monospace
  letter-spacing: -0.7px;
}

.song-title::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 100%;
  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    #000000
  );
}

.song-duration {
  flex-shrink: 0;
  margin-right: 7px;
  color: #884444;

  width: 4ch;              /* fits 00:00 exactly */
  text-align: right;
  font-family: monospace;  /* ensures consistent width */
}



  #playlist li.active {
    background-color: #bb2222;
    color: #110000;
    font-weight: bold;
  }

  #playlist li:hover:not(.active) {
    background-color: #7f0000;
    color: #ff4444;
  }

  /* ======= Footer panel ======= */
  #footer-panel {
    background-color: #000000;
    border-top: 3px solid #7f0000;
    padding: 6px 10px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #bb2222;
  }

  #time-total {
    user-select: none;
    font-family: monospace;
    padding-right: 10px;
  }

  #footer-buttons {
    display: flex;
    gap: 6px;
  }

  #footer-buttons button {
    background-color: #000000;
    border: 1px solid #bb2222;
    border-radius: 3px;
    color: #bb2222;
    font-size: 13px;
    padding: 3px 6px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
  }

  #footer-buttons button:hover {
    background-color: #bb2222;
    color: #100000;
  }
  #footer-buttons a.footer-link {
  background-color: #000000;
  border: 1px solid #bb2222;
  border-radius: 3px;
  color: #bb2222;
  font-size: 13px;
  padding: 3px 6px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

#footer-buttons a.footer-link:hover {
  background-color: #bb2222;
  color: #100000;
}

#progress-container {
  position: relative;
  height: 6px;
  width: 90%;
  background-color: #440000;
  margin: 10px auto; /* ✅ This centers the bar */
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #bb2222, #ff4444);
  border-radius: 3px;
  transition: width 0.1s linear;
}

#progress-handle {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%); /* center on position */
  width: 10px;
  height: 10px;
  background-color: #ff4444;
  border: 1px solid #bb2222;
  border-radius: 5%;
  cursor: pointer;
  box-shadow: 0 0 2px #000;
  pointer-events: auto;
}

#oscilloscope {
  width: 100%;
  height: 40px;
  background-color: #000;
  border: 1px solid #7f0000;
  display: block;
}

/* ======= Narrow playlist scrollbar ======= */

/* Firefox */
#playlist-window {
  scrollbar-width: thin;                 /* narrow */
  scrollbar-color: #7f0000 #000000;      /* thumb track */
}

/* Chrome / Edge / Safari */
#playlist-window::-webkit-scrollbar {
  width: 6px;                            /* narrow width */
}

#playlist-window::-webkit-scrollbar-track {
  background: #000000;
}

#playlist-window::-webkit-scrollbar-thumb {
  background-color: #7f0000;
  border-radius: 4px;
  border: 1px solid #440000;
}

#playlist-window::-webkit-scrollbar-thumb:hover {
  background-color: #bb2222;
}