/* General Content Styling */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #121212;
  color: #ffffff;
}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

/* Player Container */
#player-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Black with slight transparency */
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Left Section (Song Info) */
#left-section {
  display: flex;
  align-items: center;
}

#album-cover {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  margin-right: 15px;
}

#song-info {
  display: flex;
  flex-direction: column;
}

#song-info #current-song {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
}

#song-info #artist-name {
  font-size: 12px;
  color: #b3b3b3;
}

/* Middle Section (Controls) */
#middle-section {
  display: flex;
  align-items: center;
}

#middle-section button {
  background-color: #1f1f1f;
  border: none;
  color: #ffffff;
  margin: 0 10px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#middle-section button:hover {
  background-color: #333333; /* Darker hover effect */
}

#progress-container {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

#progress-bar {
  margin: 0 10px;
  width: 200px;
  height: 5px; /* Lower height */
}

#progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease;
}

#progress-bar:hover::-webkit-slider-thumb {
  opacity: 1; /* Visible on hover */
}

#progress-bar::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#progress-bar:hover::-moz-range-thumb {
  opacity: 1;
}

#current-time, #duration-time {
  font-size: 12px;
  color: #b3b3b3;
}

/* Right Section (Volume & Socials) */
#right-section {
  display: flex;
  align-items: center;
  margin-right: 29px; /* Ensure proper visibility */
}

#volume-slider {
  width: 100px;
  margin-left: 10px;
  height: 5px; /* Reduce slider height */
}

#volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  background-color: #d3d3d3;
  border-radius: 50%;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease;
}

#volume-slider:hover::-webkit-slider-thumb {
  opacity: 1; /* Visible on hover */
}

#volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background-color: #d3d3d3;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#volume-slider:hover::-moz-range-thumb {
  opacity: 1;
}

#mute-button {
  background-color: #1f1f1f;
  border: none;
  color: #ffffff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#mute-button:hover {
  background-color: #333333;
}

/* Social Buttons */
#social-buttons {
  display: flex;
  align-items: center;
}

#social-buttons button {
  background-color: #1f1f1f;
  border: none;
  color: #ffffff;
  padding: 10px;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#social-buttons button:hover {
  background-color: #333333;
}

.divider {
  width: 1px;
  height: 25px;
  background-color: #555555;
  margin: 0 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Center it */
  height: auto;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: rgba(0, 0, 0, 0.9); /* Match player background */
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  color: #ffffff;
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #cccccc; /* Lighter gray instead of full white */
  font-size: 22px;
  letter-spacing: 1px; /* Add some spacing */
  font-weight: 600; /* Make it look more modern */
}

.modal-content img {
  cursor: pointer;
  width: 100px;
  height: 100px;
  margin: 10px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.modal-content img:hover {
  transform: scale(1.1);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px; /* Adjusted for proximity */
  font-size: 20px;
  cursor: pointer;
  color: #ffffff;
}

#listeners-button {
  background-color: #1f1f1f !important;
  border: none !important;
  color: #ffffff !important;
  padding: 10px 15px !important;
  border-radius: 50px !important;
  margin-right: 10px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  transition: background-color 0.3s ease !important;
}

#listeners-button i {
  margin-right: 8px !important;
}

#listeners-button:hover {
  background-color: #333333 !important;
}

/* Style for active repeat button */
#repeat-button.active {
  background-color: #4caf50; /* Green to indicate it's active */
  color: #fff; /* White text/icon for better visibility */
}

/* Add this at the end of your existing CSS file */
@media (max-width: 768px) {
  #player-container {
    flex-direction: column; /* Stack elements vertically */
    padding: 10px; /* Increase padding for better touch targets */
    align-items: center; /* Center all items */
  }

  #left-section {
    display: flex; /* Keep album cover and song info in a row */
    justify-content: center; /* Center content */
    margin-bottom: 10px; /* Space below */
    width: 100%; /* Full width */
  }

  #album-cover {
    width: 60px; /* Slightly larger album cover for better visibility */
    height: 60px; /* Slightly larger album cover */
    margin-right: 15px; /* Space between cover and text */
  }

  #song-info {
    text-align: center; /* Center text for better appearance */
  }

  #middle-section {
    display: flex; /* Keep controls in a row */
    justify-content: center; /* Center controls */
    margin-bottom: 10px; /* Space below */
    width: 100%; /* Full width */
  }

  #middle-section button {
    margin: 0 5px; /* Reduce margin for tighter spacing */
    padding: 10px; /* Increase padding for better touch targets */
  }

  #progress-container {
    width: 100%; /* Full width for progress container */
    display: flex; /* Keep time and progress bar in a row */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center content */
    margin-bottom: 10px; /* Space below */
  }

  #progress-bar {
    width: 70%; /* Adjust width for better fit */
    margin: 0 10px; /* Space around progress bar */
  }

  #right-section {
    display: flex; /* Keep volume and social buttons in a row */
    justify-content: center; /* Center elements */
    width: 100%; /* Full width */
    flex-wrap: wrap; /* Allow wrapping */
    margin-bottom: 10px; /* Space below */
  }

  #volume-slider {
    width: 70%; /* Adjust volume slider width */
    margin: 0 10px; /* Space around volume slider */
  }

  #social-buttons {
    display: flex; /* Keep social buttons in a row */
    justify-content: center; /* Center social buttons */
    flex-wrap: wrap; /* Allow buttons to wrap */
    margin-bottom: 10px; /* Space below */
  }

  #listeners-button, #mute-button, #change-background-button {
    width: auto; /* Auto width for buttons */
    margin: 5px; /* Space around buttons */
    padding: 10px; /* Increase padding for better touch targets */
  }
}
