/* Базовые стили для контейнера плагина */
.music-by-artists {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 800px;
  margin: 20px auto;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Стили для блока исполнителя */
.artist-block {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

/* Кнопка переключения исполнителя */
.artist-toggle {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.artist-toggle:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4090 100%);
}

/* Иконка переключения (+/-) */
.toggle-icon {
  font-size: 1.4rem;
  font-weight: bold;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Контейнер со списком треков */
.track-list-container {
  padding: 0;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.track-list-container[style*="block"] {
  max-height: 1000px;
  padding: 20px;
}

/* Список треков */
.track-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Элемент трека */
.track-list li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.track-list li:last-child {
  border-bottom: none;
}

/* Название трека */
.track-list li span {
  font-weight: 500;
  color: #333;
  font-size: 1rem;
}

/* Стили для аудиоплеера */
.track-audio {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Комментарий к треку */
.track-comment {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  padding: 8px 0;
  border-top: 1px dashed #eee;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .music-by-artists {
    margin: 10px;
    padding: 10px;
  }
  
  .artist-toggle {
    padding: 14px 16px;
    font-size: 1rem;
  }
  
  .track-list-container[style*="block"] {
    padding: 15px;
  }
  
  .track-list li {
    padding: 12px 0;
  }
}

/* Дополнительные стили для улучшения UX */
/* Плавное появление при загрузке */
.music-by-artists {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Эффект при наведении на трек */
.track-list li:hover {
  background-color: #fafafa;
  transform: translateX(5px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Стили для отключённого состояния (если нужно) */
.artist-toggle[disabled] {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.no-player-notice {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
    margin-left: 10px;
}
