/* Popup Musik */
.music-btn,
.playlist-btn,
.playlist-item {
  position: relative;
  overflow: hidden;
}

/* PULSE SAAT MUSIK DIPUTAR */
.music-btn.is-playing {
  animation: musicPulse 1s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.music-widget { margin-bottom: 12px; }

/* WIDGET MUSIK */
.music-widget {
  width: 100%;
  background-color: #221510;
  border: 2.5px solid #000000;
  border-radius: 14px;
  box-shadow: 3px 3px 0px #000000;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.music-btn, .playlist-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #000;
  background-color: #e57238;
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #000;
  flex-shrink: 0;
}

.playlist-btn {
  background-color: #3b719f;
}

.music-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-grow: 1;
  cursor: pointer;
}

.music-label {
  font-size: 0.58rem;
  font-weight: 800;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

.music-title-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.music-title {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  color: #ffffff;
}

/* POPUP PLAYLIST MUSIK */
.playlist-card {
  background-color: #ebdcd0;
  color: #000;
  border: 3.5px solid #2b201a;
  border-radius: 18px;
  box-shadow: 8px 8px 0px #1a120e;
  padding: 18px;
  width: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .playlist-card { transform: scale(1); }

.playlist-header { display: flex; align-items: center; gap: 8px; }

.playlist-icon { font-size: 1.3rem; }

.playlist-title { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; }

.playlist-subtitle { font-size: 0.72rem; color: #6a5345; margin-top: 2px; margin-bottom: 12px; font-weight: 600; }

.playlist-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
}

.playlist-item {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #3b2820;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 2px 2px 0px #3b2820;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.playlist-item:hover { transform: translate(-1px, -1px); background-color: #f7ede2; }

.playlist-item.active { background-color: #e57238; color: #fff; }

.song-icon { font-size: 1rem; margin-right: 8px; }

.song-info { display: flex; flex-direction: column; flex-grow: 1; }

.song-title { font-family: 'Fredoka', sans-serif; font-size: 0.85rem; font-weight: 700; }

.song-artist { font-size: 0.68rem; opacity: 0.8; }

.play-indicator { font-size: 0.75rem; font-weight: 800; }

.modal-overlay.drawer .playlist-card {
  width: 380px;
  max-width: 94vw;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 22px 18px;
}
