/* === Footer Layout === */
.footer {
  display: flex;
  flex-direction: column; /* stack top to bottom */
  align-items: center;    /* center horizontally */
  justify-content: flex-start;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0 100px;
  gap: 1.5rem;
  box-sizing: border-box;
}

/* === Footer Left / Right Wrapper === */
.footer-left,
.footer-right {
  width: 100%;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Footer left contains information + mp3player */
.footer-left {
  flex-direction: row;
  align-items: stretch !important;   /* stretch both elements */
  gap: 1.5rem;
}

/* Footer right contains payment + copyright */
.footer-right {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* === Information Section === */
.information {
  width: 100%;
  max-width: 1000px;
  color: black;
  display: flex;
  flex-direction: row; /* stack boxes vertically */
  gap: 1rem;
  box-sizing: border-box;
  border-radius: 0.75rem;
  border: 1px solid #eeeeee;
  padding: 1rem;
}

.information-box,
.legal-box,
.network-box {
  width: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.information-box h6,
.legal-box h6,
.network-box h6 {
  font-size: 0.9rem;
}

.information-box a,
.legal-box a,
.network-box a {
  font-size: 0.8rem;
  cursor: pointer;
  padding: 10px 0;
  text-decoration: none;
  color: black;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.information-box a:hover,
.legal-box a:hover,
.network-box a:hover {
  color: orange;
}

/* === MP3 Player === */
.mp3player {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #eeeeee;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.controls button {
  width: 30px;
  height: 30px;
  font-size: 1rem;
  color: rgb(0, 0, 0);
  border: 1px solid rgb(255, 255, 255);
  background-color: white;
  border-radius: 10%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.controls button:hover {
  color: orange;
}

#togglePlaylist {
  width: 100%;
  height: 34px;
  font-size: 0.7rem;
  font-weight: 600;
  background: white;
  border: 1px solid #eeeeee;
  border-radius: 0.3rem;
  cursor: pointer;
  margin: 8px 0;
  transition: background 0.3s ease;
}

#togglePlaylist:hover {
  color: white;
  background-color: orange;
  border: 1px solid white;
}

/* === TIMELINE (played = orange, unplayed = grey) === */
#timeline {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  padding: 0;
  background: linear-gradient(to right, orange 0%, #eeeeee 0%);
  border-radius: 2px;
  cursor: pointer;
  margin-top: 3px;
  margin-bottom: 10px;
}

/* TRACK */
#timeline::-webkit-slider-runnable-track {
  height: 4px;
  background: orange; /* JS controls gradient */
  border-radius: 2px;
}

/* THUMB */
#timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  background: orange;
  border-radius: 50%;
  margin-top: -4px;
  cursor: pointer;
}

/* Firefox */
#timeline::-moz-range-track {
  height: 2px;
  background: transparent;
}

#timeline::-moz-range-progress {
  background: orange;
  height: 2px;
}





/* === Time Display above Timeline === */
.time-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: monospace;
  color: #666;
  margin: 2px 0;
  padding: 0 2px;
}

.time-display span {
  min-width: 35px;
  text-align: center;
}

/* === Playlist Dropdown === */
.playlist-dropdown {
  max-height: 190px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
  scrollbar-width: thin;
  border-radius: 4px;
  background-color: white;
}

.playlist-dropdown.hidden {
  max-height: 0;
  overflow: hidden;
  border: none;
  padding: 0;
}

#playlist {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

#playlist li {
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid lightgrey;
  transition: background 0.3s ease;
}

#playlist li.active {
  color: orange;
}

#playlist li:hover {
  color: white;
  background-color: orange;
}

/* ===== Volume Container (icon + slider in one row) ===== */
.volume-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;              /* small spacing between icon + bar */
  position: relative;
}


/* ===== Compact volume slider (same style as timeline) ===== */
.volume-timeline,
#volume {
  -webkit-appearance: none;
  appearance: none;
  width: 100px !important;
  height: 2px !important;        
  padding: 0 !important;         
  margin: 0 !important;
  background: linear-gradient(to right, orange 100%, #e4e4e4 0%) !important;
  border-radius: 2px;
  cursor: pointer;
  display: none;                 /* hidden until hover */
  box-sizing: border-box;
  vertical-align: middle;
}

/* ===== Show slider on hover (inline with the icon) ===== */
.volume-container:hover .volume-timeline,
.volume-container:hover #volume {
  display: inline-block;
  opacity: 1;
}


/* ===== WebKit (Chrome/Safari) Track & Thumb ===== */
.volume-timeline::-webkit-slider-runnable-track,
#volume::-webkit-slider-runnable-track {
  height: 2px !important;
  background: transparent;
  border-radius: 2px;
}

.volume-timeline::-webkit-slider-thumb,
#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 10px !important;
  width: 10px !important;
  background: orange !important;
  border-radius: 50%;
  margin-top: -4px !important;  /* center on 2px track */
  cursor: pointer;
  border: none;
  box-shadow: none;
}

/* Thumb hover effect (optional) */
.volume-timeline:hover::-webkit-slider-thumb,
#volume:hover::-webkit-slider-thumb {
  background: white !important;
  border: 2px solid orange;
  box-shadow: 0 0 0 2px rgba(255,165,0,0.15) inset;
}


/* ===== Firefox Support ===== */
.volume-timeline::-moz-range-track,
#volume::-moz-range-track {
  height: 2px !important;
  background: transparent;
  border-radius: 2px;
}

.volume-timeline::-moz-range-progress,
#volume::-moz-range-progress {
  height: 2px !important;
  background: orange;
  border-radius: 2px;
}

.volume-timeline::-moz-range-thumb,
#volume::-moz-range-thumb {
  height: 10px !important;
  width: 10px !important;
  background: orange !important;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}


/* ===== Remove outline flicker ===== */
.volume-timeline:focus,
#volume:focus {
  outline: none;
}



.payment-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.payment-icons img {
  width: 50px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.payment-icons img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

.copyright {
  width: 100%;
  text-align: center;
  padding-bottom: 30px;
}

.copyright p {
  font-size: 0.7rem;
}

/* === Responsive Adjustments === */
@media (max-width: 480px) {
  .footer {
    padding: 15px;
    gap: 1rem;
  }

  .footer-left {
    flex-direction: column;
    align-items: center !important;
    gap: 1rem;
  }

  .information {
    width: 100%;
    max-width: 480px;
    flex-direction: column;
    gap: 0.75rem;
  }

  .information-box,
  .legal-box,
  .network-box {
    padding: 12px;
  }

  .mp3player {
    width: 100%;
    max-width: 350px;   /* mobile safe */
  }

  .payment-icons img {
    width: 40px;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  .footer {
    padding: 20px;
    gap: 1.2rem;
  }

  .footer-left {
    flex-direction: column;
    align-items: center !important;
    gap: 1.25rem;
  }

  .information {
    width: 100%;
    max-width: 768px;
    flex-direction: column;
    gap: 1rem;
  }

  .mp3player {
    width: 100%;
    max-width: 400px;
  }
}
@media (min-width: 769px) and (max-width: 1080px) {
  .footer {
    padding: 25px;
    gap: 1.5rem;
  }

  .footer-left {
    flex-direction: column;
    align-items: center !important;
    gap: 1.5rem;
  }

  .information {
    width: 100%;
    max-width: 1000px;  /* keep original desktop max */
    flex-direction: column;
  }

  .mp3player {
    width: 100%;
    max-width: 400px;   /* stays same */
  }
}
