/* ========================================
   SYSTÈME DE PARTAGE
   ======================================== */

.lac-share-container {
    position: relative;
    display: inline-block;
}

.lac-share-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.lac-share-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.lac-share-btn svg {
    opacity: 0.8;
}

.lac-share-modal {
    position: fixed; /* Détache la modale du lecteur */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centre parfaitement */
    z-index: 9999999 !important;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: none; /* Toujours piloté par le JS */
}

/* On ajoute un arrière-plan sombre derrière la modale pour bien la voir */
.lac-share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999998;
    display: none;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lac-share-modal h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.lac-share-modal p {
    margin: 0 0 10px 0;
    font-size: 13px;
    opacity: 0.8;
    color: #ffffff;
}

.lac-embed-code {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.lac-embed-code:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.lac-copy-btn,
.lac-close-modal {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
}

.lac-copy-btn:hover,
.lac-close-modal:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lac-copy-btn {
    background: rgba(100, 200, 255, 0.3);
    border-color: rgba(100, 200, 255, 0.5);
}

.lac-copy-btn:hover {
    background: rgba(100, 200, 255, 0.4);
}

/* Responsive */
@media (max-width: 600px) {
    .lac-share-modal {
        min-width: 300px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .lac-embed-code {
        font-size: 11px;
    }
}

/* Ajout du bouton dans le header */
.lac-header,
.lac-header-playlist {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.lac-header-left {
    flex: 1;
}

.lac-header-right {
    flex-shrink: 0;
}