/* Music Embed Styles */
.music-embed,
.spotify-embed,
.youtube-embed {
  background: rgba(38, 38, 38, 0.6);
  border: 1px solid var(--border, #444);
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.music-embed:hover,
.spotify-embed:hover,
.youtube-embed:hover {
  border-color: var(--secondary, #afb979);
  background: rgba(38, 38, 38, 0.8);
}

.music-embed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.music-icon {
  font-size: 1.8em;
  line-height: 1;
}

.music-info h4 {
  margin: 0;
  color: var(--primary, #d4d4d4);
  font-size: 1.1em;
  font-weight: 600;
}

.music-info p {
  margin: 4px 0 0 0;
  color: var(--subtle, #888);
  font-size: 0.9em;
}

.music-embed audio {
  width: 100%;
  margin-top: 10px;
  border-radius: 4px;
}

/* Spotify specific */
.spotify-embed iframe {
  border-radius: 12px;
}

/* YouTube specific */
.youtube-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}

/* Playlist Styles */
.music-playlist {
  background: rgba(38, 38, 38, 0.6);
  border: 1px solid var(--border, #444);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.playlist-header {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--primary, #d4d4d4);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, #444);
}

.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--secondary, #afb979);
}

.playlist-item.playing {
  background: rgba(175, 185, 121, 0.15);
  border-color: var(--secondary, #afb979);
}

.playlist-number {
  color: var(--subtle, #888);
  font-weight: 600;
  min-width: 30px;
  text-align: right;
}

.playlist-info {
  flex: 1;
  min-width: 0;
}

.playlist-title {
  color: var(--primary, #d4d4d4);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-artist {
  color: var(--subtle, #888);
  font-size: 0.9em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-duration {
  color: var(--subtle, #888);
  font-size: 0.9em;
  font-family: monospace;
}

.playlist-audio {
  width: 100%;
  margin-top: 15px;
  border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .music-embed,
  .spotify-embed,
  .youtube-embed,
  .music-playlist {
    padding: 12px;
    margin: 15px 0;
  }

  .music-icon {
    font-size: 1.5em;
  }

  .music-info h4 {
    font-size: 1em;
  }

  .playlist-item {
    padding: 8px;
  }

  .playlist-number {
    min-width: 25px;
    font-size: 0.9em;
  }

  .playlist-title {
    font-size: 0.95em;
  }

  .playlist-artist,
  .playlist-duration {
    font-size: 0.85em;
  }
}
