/* Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }
  
  /* Header */
  header {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: static;
    top: 0;
    z-index: 100;
  }
  
  header h1 {
    font-size: 2.5em;
    margin-bottom: 8px;
  }
  
  header .tagline {
    font-size: 1.1em;
    color: #ffea00;
    margin-bottom: 12px;
  }
  
  header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
  }
  
  header nav a.active,
  header nav a:hover {
    color: #ffea00;
    transform: scale(1.05);
  }
  
  /* Genre Buttons */
  .genre-buttons {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .genre-btn {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    border: none;
    color: white;
    padding: 8px 18px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .genre-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(30,60,114,0.4);
  }
  
  /* Section Headings */
  section h2 {
    text-align: center;
    margin: 20px 0;
    font-size: 1.8em;
    color: #1e3c72;
  }
  
  /* Songs Container with animated bg */
  .songsContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    background: linear-gradient(270deg, #1e3c72, #2a5298, #1e3c72);
    background-size: 400% 400%;
    animation: gradientAnim 15s ease infinite;
    border-radius: 15px;
    margin: 20px auto;
    width: 95%;
  }
  
  /* Animation for background */
  @keyframes gradientAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Song Box */
  .song-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    width: 85%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .song-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  }
  
  /* Audio */
  .song-box audio {
    width: 100%;
    height: 45px;
    margin-bottom: 10px;
  }
  
  /* Favorite Icon */
  .song-box .favorite-icon {
    width: 16px;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .favorite-icon.active {
    filter: hue-rotate(-30deg) brightness(1.3);
    transform: scale(1.15);
  }
  
  /* Animations */
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
  }
  .pulse-anim { animation: pulse 0.4s ease; }
  
  @keyframes removeFav {
    0% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
  }
  .remove-anim { animation: removeFav 0.4s ease; }
  
 /* Videos Section */
#videos .video-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* ensures player & items centered */
    gap: 20px;
    padding: 20px 0;
}

#videos .video-item {
    background: rgba(30,60,114,0.9); /* Matches existing song box bg */
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    width: 85%;
    max-width: 600px;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

#videos .video-item:hover {
    background: #ffea00; /* hover highlight similar to header tagline */
    color: #111;
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

#videoPlayer {
    width: 85%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: block;          /* ensures center alignment */
    margin: 0 auto 20px;     /* horizontal center + bottom space */
}

/* Responsive for Mobile */
@media(max-width: 768px){
    #videoPlayer, #videos .video-item {
        width: 95%;
    }
}

  
  /* Footer */
  footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 0.9em;
  }
  
  /* Responsive */
  @media(max-width: 768px){
    .song-box, .video-box {
      width: 95%;
    }
  }
  
 /* 🌟 Global Search Container */
.global-search {
  max-width: 520px;
  margin: 20px auto;
  position: relative;
  background: linear-gradient(135deg, #111, #1e1e1e);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* 🔍 Icon */
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #ffb700;
  pointer-events: none;
}

/* ✍ Input */
#globalSearchInput {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: #000;
  color: #fff;
  transition: all 0.3s ease;
}

#globalSearchInput::placeholder {
  color: #aaa;
}

/* ✨ Glow on focus */
#globalSearchInput:focus {
  box-shadow: 0 0 0 2px #ffb700;
  background: #050505;
}

/* 📜 Results Dropdown */
#globalSearchResults {
  position: absolute;
  top: 115%;
  width: 100%;
  background: #111;
  border-radius: 14px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 340px;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  z-index: 9999;
}

/* 🎯 Result Item */
#globalSearchResults li {
  padding: 12px 18px;
  cursor: pointer;
  font-size: 15px;
  color: #eee;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s ease, transform 0.2s ease;
}

/* Hover Effect */
#globalSearchResults li:hover {
  background: linear-gradient(90deg, #ffb700, #ff9500);
  color: #000;
  transform: scale(1.02);
}

/* 🎵 / 🎬 Icons inside results */
#globalSearchResults li span {
  font-size: 18px;
}

/* 📱 Mobile Optimization */
@media (max-width: 600px) {
  .global-search {
    max-width: 92%;
  }

  #globalSearchInput {
    font-size: 15px;
  }
}

