/* TDS Spotify Player */

.tds-spotify {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.tds-spotify__btn {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 2;
  padding: 0;
}

.tds-spotify__btn:hover {
  transform: scale(1.08);
}

.tds-spotify__btn:active {
  transform: scale(0.95);
}

.tds-spotify__icon,
.tds-spotify__custom-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.tds-spotify__custom-icon {
  border-radius: 50%;
  object-fit: cover;
}

/* Lecteur */
.tds-spotify__player {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 320px;
  height: 0;
  opacity: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s ease;
  transform-origin: bottom right;
}

.tds-spotify__player.is-open {
  height: 380px;
  opacity: 1;
}

.tds-spotify__player iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Animation d'entrée */
.tds-spotify {
  animation: tdsSpotifyFadeIn 0.6s ease 0.3s both;
}

@keyframes tdsSpotifyFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .tds-spotify {
    display: none;
  }
}
