/* Style Aurora pour le titre "AI Musical Artist" */
.ai-aurora-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: clamp(-1px, -0.15vw, -2px);
  position: relative;
  overflow: hidden;
  background: transparent;
  margin: 0;
  color: #fff;
  text-align: center;
  padding: 1rem;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
}

/* Style spécial pour "AI" - taille augmentée */
.ai-special {
  font-size: 1.2em;
  display: inline-block;
}

/* Container Aurora */
.aurora {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Items Aurora - bulles colorées animées */
.aurora__item {
  overflow: hidden;
  position: absolute;
  width: 15vw;
  height: 15vw;
  background-color: #00c2ff;
  border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
  filter: blur(2rem);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.aurora__item:nth-of-type(1) {
  top: -50%;
  animation: aurora-border 6s ease-in-out infinite,
    aurora-1 12s ease-in-out infinite alternate;
}

.aurora__item:nth-of-type(2) {
  background-color: #ffc640;
  right: 0;
  top: 0;
  animation: aurora-border 6s ease-in-out infinite,
    aurora-2 12s ease-in-out infinite alternate;
}

.aurora__item:nth-of-type(3) {
  background-color: #33ff8c;
  left: 0;
  bottom: 0;
  animation: aurora-border 6s ease-in-out infinite,
    aurora-3 8s ease-in-out infinite alternate;
}

.aurora__item:nth-of-type(4) {
  background-color: #e54cff;
  right: 0;
  bottom: -50%;
  animation: aurora-border 6s ease-in-out infinite,
    aurora-4 24s ease-in-out infinite alternate;
}

/* Animations Aurora */
@keyframes aurora-1 {
  0% {
    top: 0;
    right: 0;
  }
  50% {
    top: 100%;
    right: 75%;
  }
  75% {
    top: 100%;
    right: 25%;
  }
  100% {
    top: 0;
    right: 0;
  }
}

@keyframes aurora-2 {
  0% {
    top: -50%;
    left: 0%;
  }
  60% {
    top: 100%;
    left: 75%;
  }
  85% {
    top: 100%;
    left: 25%;
  }
  100% {
    top: -50%;
    left: 0%;
  }
}

@keyframes aurora-3 {
  0% {
    bottom: 0;
    left: 0;
  }
  40% {
    bottom: 100%;
    left: 75%;
  }
  65% {
    bottom: 40%;
    left: 50%;
  }
  100% {
    bottom: 0;
    left: 0;
  }
}

@keyframes aurora-4 {
  0% {
    bottom: -50%;
    right: 0;
  }
  50% {
    bottom: 0%;
    right: 40%;
  }
  90% {
    bottom: 50%;
    right: 25%;
  }
  100% {
    bottom: -50%;
    right: 0;
  }
}

@keyframes aurora-border {
  0% {
    border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
  }
  25% {
    border-radius: 47% 29% 39% 49% / 61% 19% 66% 26%;
  }
  50% {
    border-radius: 57% 23% 47% 72% / 63% 17% 66% 33%;
  }
  75% {
    border-radius: 28% 49% 29% 100% / 93% 20% 64% 25%;
  }
  100% {
    border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
  }
}

/* Styles pour les cartes de lecteur musical */

.music-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.music-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.music-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.music-card:hover::before {
  left: 100%;
}

.btn-play-music {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-play-music:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-play-music:active {
  transform: scale(0.95) !important;
}

/* Animation du bouton play */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.btn-play-music.playing {
  animation: pulse 2s infinite;
}

/* Barre de progression personnalisée */
.progress-container {
  position: relative;
  padding: 5px 0;
  min-height: 20px;
}

.progress {
  cursor: pointer;
  overflow: visible !important;
  position: relative;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.progress-container:hover .progress {
  height: 10px !important;
  transform: scaleY(1.2);
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.progress-bar {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  border-radius: 10px;
  position: relative;
  transition: all 0.2s ease;
  min-width: 2px;
}

.progress-container:hover .progress-bar {
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.6);
}

/* Point de lecture sur la barre */
.progress-bar::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-container:hover .progress-bar::after {
  opacity: 1;
}

/* Indicateur de position sur hover */
.progress-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.progress-container:hover::after {
  opacity: 1;
}

/* Affichage du temps */
.progress-container + div {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.progress-container:hover + div {
  opacity: 1;
}

/* Tooltip de la barre de progression */
.progress-tooltip {
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Triangle du tooltip */
.progress-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
}

/* Image de couverture */
.music-card img {
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.music-card:hover img {
  transform: scale(1.05) rotate(2deg);
}

/* Titre de la musique */
.music-card h1 {
  transition: color 0.3s ease;
}

.music-card:hover h1 {
  color: #667eea !important;
}

/* Effet de lueur sur le gradient */
.gradient-btn-4 {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
}

.gradient-btn-4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-btn-4:hover::before {
  opacity: 1;
}

.gradient-btn-4 i {
  position: relative;
  z-index: 1;
}

/* Animation de chargement */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.music-card.loading {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .music-card {
    min-width: 250px !important;
  }
  
  .btn-play-music {
    width: 40px !important;
    height: 40px !important;
  }
  
  .btn-play-music i {
    font-size: 16px !important;
  }
}

/* Effet de vague sonore pour le bouton en lecture */
@keyframes sound-wave {
  0%, 100% {
    height: 5px;
  }
  50% {
    height: 15px;
  }
}

.btn-play-music.playing::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  left: 35%;
  top: 50%;
  transform: translateY(-50%);
  animation: sound-wave 0.5s infinite;
}

.btn-play-music.playing::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  right: 35%;
  top: 50%;
  transform: translateY(-50%);
  animation: sound-wave 0.5s infinite 0.2s;
  z-index: 0;
}

