/* Style pour le bouton de partage */
.track-share-btn {
    margin-top: 8px;
	margin-right: -12px;
    color: white;
    background-color: #3B5998; /* Couleur bleue Facebook typique pour le partage */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s, transform 0.2s;
}

.track-share-btn:hover {
    background-color: #4267B2;
    transform: scale(1.1);
}
.track-controls {
  gap: 5px; /* Ajoute de l'espace entre les boutons */
}

/* Toast de notification */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none; /* Permet de cliquer à travers le conteneur */
}

.toast {
    min-width: 250px;
    max-width: 350px; /* Largeur maximale augmentée pour les messages plus longs */
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: auto; /* Les éléments toast peuvent recevoir des clics */
}

.toast.visible {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #0FB89F;
}

.toast.share-success {
    border-left: 4px solid #3B5998;
    min-width: 280px;
    max-width: 400px; /* Plus large pour le message détaillé */
}

.toast-content {
    display: flex;
    align-items: flex-start; /* Alignement au début pour les messages à plusieurs lignes */
}

.toast-content i {
    font-size: 20px;
    margin-right: 10px;
    margin-top: 2px; /* Léger ajustement pour aligner avec le titre */
}

.toast-message {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.toast-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* Animation améliorée pour attirer l'attention */
@keyframes pulse {
    0% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(0); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(0); }
}

.toast.visible {
    transform: translateX(0);
    opacity: 1;
    animation: pulse 1.2s ease-in-out 0.3s;
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        left: 20px;
        right: 20px;
        align-items: stretch;
    }
    
    .toast {
        min-width: unset;
        width: 100%;
		max-width: 100%;
    }
    
    .track-share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}