/* Global style */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  color: #fff;
  margin: 0;
  padding: 0;
}

/* Player container sejajar kiri-tengah-kanan */
.player-container {
  display: flex;
  flex-direction: row;        /* sejajar horizontal */
  align-items: center;
  justify-content: space-between; /* kiri = player, tengah = visualizer, kanan = teks */
  gap: 20px;
  padding: 15px;
}

/* Audio & Video player di kiri */
#videoPlayer {
  flex: 1;
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

#audioPlayer {
  flex: 1;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
/* Visualizer di tengah */
#visualizer {
  flex: 1;
  max-width: 300px;
  height: 110px;
  background: transparent;
  border-radius: 10px;
}

/* Teks sedang memutar di kanan */
#nowPlaying {
  flex: 1;
  text-align: left;
  font-weight: 600;
  color: #32CD32;   /* hijau neon */
}

/* Playlist */
.playlist {
  margin: 40px auto;
  width: 90%;
  max-width: 1200px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.playlist-header {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  display: flex;
  justify-content: space-between; /* kiri-kanan */
  align-items: center;
}

.playlist-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

#searchInput {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

#searchInput::placeholder {
  color: #ccc;
}


.song-item {
  background: rgba(255,255,255,0.08);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.song-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.song-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.song-item.active {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

/* Footer */
.site-footer {
  background: rgba(0,0,0,0.3);
  padding: 10px;
  color: #ddd;
  text-align: center;
}

/* Responsif untuk HP */
@media (max-width: 768px) {
  .player-container {
    flex-direction: column;   /* di HP jadi atas-bawah */
    align-items: center;
  }

  #audioPlayer, #videoPlayer, #visualizer {
    max-width: 100%;
  }

  #nowPlaying {
    text-align: center;
    margin-left: 0;
    margin-top: 10px;
  }
}

.search-container {
  width: 90%;
  max-width: 300px;
  margin: 20px auto;
  display: flex;              /* sejajar horizontal */
  align-items: center;        /* vertikal rata tengah */
  gap: 10px;                  /* jarak antara logo dan input */
}

#searchInput {
  width: 30%;
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 16px;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

#searchInput::placeholder {
  color: #ccc;
}

/*MUSIK PLAYER */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #111;
  color: #fff;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;       /* sembunyikan teks keluar */
  background: #000;
  padding: 10px 0;
}

.marquee span {
  display: inline-block;
  white-space: nowrap;
  /* mulai dari luar kanan */
  transform: translateX(100%);
  animation: scroll-left 12s linear infinite;
  font-size: 22px;
  color: white;
}

/* Animasi jalan dari kanan ke kiri */
@keyframes scroll-left {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* Hover: berhenti + warna gold */
.marquee span:hover {
  animation-play-state: paused;
  color: gold;
}
