body {
  background-color: #111;
  color: #FFD700;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  padding: 0 15px;
}

/* Header */
.header {
  background-color: #222;
  padding: 20px;
  margin-bottom: 20px;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
}

.logo {
  width: clamp(100px, 30vw, 200px);
  margin: 0 auto 20px;
}

.logo img {
  width: 100%;
  height: auto;
}

/* Header Title */
.header h1 {
  font-size: 2.5rem;
  margin: 10px 0;
}

.video-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 100%;
  margin: 20px auto;
  gap: 20px;
  flex-wrap: nowrap;
}

.iframe-zoom-container {
  flex: 1;
  max-width: 880px;
  background-color: #000;
  display: flex;
  justify-content: center;
  border: 4px solid #FFD700;
  box-shadow: 0 0 20px #FFD700aa;
  border-radius: 16px;
  padding: 10px;
}

.iframe-zoom-container iframe {
  width: 880px;
  height: 502px;
  border: none;
  border-radius: 8px;
}

.iframe-zoom-container video {
  width: 880px;
  height: 502px;
  border: none;
  border-radius: 8px;
  object-fit: contain;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.channel-button {
  background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
  background-size: 200% auto;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  animation: shineButton 3s linear infinite;
  cursor: pointer;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.channel-button:hover {
  transform: scale(1.05);
}

@keyframes shineButton {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

@media (max-width: 992px) {
  .video-row {
    flex-direction: column;
    align-items: center;
  }

  .channel-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .iframe-zoom-container iframe {
    width: 100%;
    height: auto;
  }

  .iframe-zoom-container video {
    width: 100%;
    height: auto;
  }
}

.shine-button {
  background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
  background-size: 200% auto;
  color: #000;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  animation: shineButton 3s linear infinite;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease;
  display: inline-block;
  white-space: nowrap;
}

.shine-button:hover {
  transform: scale(1.05);
}

.shine-button.small {
  font-size: 14px;
  padding: 8px 16px;
}

/* Gold Animated Text */
.gold-text {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: bold;
  background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shineText 3s linear infinite;
  margin: 30px 0;
}

@keyframes shineText {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* Force channel list to appear below video */
.video-row {
  flex-direction: column !important;
  align-items: center;
}

#channelButtons.channel-list {
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* MP3 Player Specific Styles */
.mp3-player-container {
  background-color: #222;
  color: #FFD700;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px #FFD700aa;
  margin: 20px auto;
  max-width: 95%;
  width: 600px;
  box-sizing: border-box;
  text-align: center;
}

.player-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.player-controls button {
  flex-grow: 0;
  flex-shrink: 1;
}

.progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

#progressBar {
  width: 100%;
  margin-bottom: 5px;
  background: #444;
  border-radius: 5px;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: #FFD700;
  border-radius: 50%;
  cursor: pointer;
}

#progressBar::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: #FFD700;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.time-display {
  font-size: 0.9rem;
}

.volume-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.volume-container label {
  flex-basis: auto;
}

#volumeSlider {
  flex-grow: 1;
  background: #444;
  border-radius: 5px;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: #FFD700;
  border-radius: 50%;
  cursor: pointer;
}

#volumeSlider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: #FFD700;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.playlist-section {
  margin-top: 30px;
  text-align: left;
}

.playlist-section h3 {
  margin-bottom: 10px;
}

#playlistContainer {
  list-style: none;
  padding: 0;
}

#playlistContainer li {
  padding: 8px 15px;
  border-bottom: 1px solid #444;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#playlistContainer li:last-child {
  border-bottom: none;
}

#playlistContainer li:hover {
  background-color: #333;
}

#playlistContainer li.active {
  color: #FFA500;
  font-weight: bold;
}

@media (max-width: 768px) {
  .mp3-player-container {
    padding: 15px;
  }

  .player-controls {
    gap: 8px;
  }

  .player-controls button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .volume-container {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .player-controls button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Styles moved from movies.html internal <style> block */
#categoryDropdowns.channel-list {
  display: flex;
  flex-direction: column; /* Default for mobile/smaller screens */
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  width: 100%; /* Ensure it takes full width when column */
}

.category-dropdown-button {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.category-dropdown-button > a {
  background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
  background-size: 200% auto;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  animation: shineButton 3s linear infinite;
  cursor: pointer;
  transition: transform 0.2s ease;
  white-space: nowrap;
  display: block;
  text-align: center;
}

.category-dropdown-button > a:hover {
  transform: scale(1.05);
}

.category-dropdown-content {
  display: none;
  position: absolute;
  background-color: #222;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
  padding: 5px 0;
  left: 0;
}

.category-dropdown-content a {
  color: #FFD700;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  text-align: left;
  background: none;
  animation: none;
  border-radius: 0;
  font-weight: normal;
}

.category-dropdown-content a:hover {
  background-color: #333;
}

.category-dropdown-button:hover .category-dropdown-content {
  display: block;
}

/* For direct search results */
.movie-search-result {
    display: block;
    padding: 8px 12px;
    color: #FFD700; /* Set color to gold */
    text-decoration: none;
    background-color: #333; /* A slightly different background to distinguish */
    border-radius: 4px;
    margin-bottom: 5px; /* Spacing between results */
    text-align: center;
}

.movie-search-result:hover {
    background-color: #444;
}

/* ✅ ADDED: Fix for horizontal layout on big screens */
@media (min-width: 993px) {
  #categoryDropdowns.channel-list {
    flex-direction: row !important; /* Override column for larger screens */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; /* ✅ adds spacing between buttons */
  margin-top: 10px;
}

#searchInput {
  width: 100%;
  max-width: 400px;
  padding: 8px 16px;
  font-size: 16px;
  margin: 10px auto 20px;
  display: block;
  border-radius: 30px;
  border: 2px solid #FFD700;
  background-color: #222;
  color: #FFD700;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.3s ease;
}

#searchInput::placeholder {
  color: #FFD700cc;
}

#searchInput:focus {
  box-shadow: 0 0 10px #FFD700;
  border-color: #FFA500;
}