/* Styles du Composant Album & Lecteur Interactif */

.album-container {
    max-width: 860px;
    margin: 20px auto 40px auto;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Isolation et réinitialisation de toutes les images du composant Album contre les styles globaux (ex: viewTexte.css) */
.album-container img {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    float: none !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* 1. Header de l'album */
.album-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(85, 0, 0, 0.08);
}

.album-cover-wrap {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(85, 0, 0, 0.15);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.album-cover-wrap:hover .album-cover-img {
    transform: scale(1.03);
}

.album-info {
    flex: 1;
    min-width: 260px;
}

.album-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(85, 0, 0, 0.08);
    color: #550000;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.album-title {
    font-family: "Cooper Black", "Caprasimo", serif;
    color: #550000;
    font-size: 2.1rem;
    line-height: 1.25;
    margin: 0 0 10px 0;
}

.album-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.album-desc {
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* 2. Lecteur Audio Unique Sticky / Central */
.album-player-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(85, 0, 0, 0.09);
    border: 2px solid rgba(85, 0, 0, 0.15);
    position: sticky;
    top: 60px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 24px;
}

.player-track-cover-wrap {
    width: 195px;
    height: 195px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(85, 0, 0, 0.22);
    border: 1px solid rgba(85, 0, 0, 0.18);
    background: #111;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.player-track-cover-wrap:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(85, 0, 0, 0.32);
}

.player-track-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.player-track-cover-overlay i {
    font-size: 1.6rem;
}

.player-track-cover-wrap:hover .player-track-cover-overlay {
    opacity: 1;
}

.player-track-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Colonne droite principale ("le reste se serre juste un peu") */
.player-main-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.player-track-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.player-track-text {
    flex: 1;
    min-width: 0;
}

.player-track-now {
    display: block;
    font-family: "Cooper Black", "Caprasimo", serif;
    color: #550000;
    font-size: 1.4rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-sub {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-speed-badge {
    background: rgba(85, 0, 0, 0.06);
    color: #550000;
    border: 1px solid rgba(85, 0, 0, 0.2);
    border-radius: 20px;
    padding: 3px 11px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-speed-badge:hover {
    background: #550000;
    color: #ffffff;
}
    border: 1px solid rgba(85, 0, 0, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-speed-badge:hover {
    background: #550000;
    color: #ffffff;
}

/* Barre de progression */
.player-progress-section {
    margin-bottom: 16px;
}

.player-progress-wrap {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.player-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #550000 0%, #8b0000 100%);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.player-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 6px;
}

/* Contrôles du lecteur */
.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.btn-player-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(85, 0, 0, 0.06);
    color: #550000;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-player-icon:hover {
    background: rgba(85, 0, 0, 0.15);
    color: #8b0000;
    transform: scale(1.05);
}

.btn-player-icon.active {
    background: #550000;
    color: #ffffff;
}

.btn-player-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #550000;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(85, 0, 0, 0.35);
    transition: all 0.2s ease;
}

.btn-player-main:hover {
    background: #730000;
    transform: scale(1.08);
}

/* 3. Tracklist */
.album-tracklist-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(85, 0, 0, 0.08);
}

.album-tracklist-title {
    font-family: "Cooper Black", "Caprasimo", serif;
    color: #550000;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(85, 0, 0, 0.1);
}

.album-tracklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.album-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.album-track-item:hover {
    background: rgba(85, 0, 0, 0.04);
    border-color: rgba(85, 0, 0, 0.1);
}

.album-track-item.playing {
    background: rgba(85, 0, 0, 0.08);
    border-color: rgba(85, 0, 0, 0.25);
}

.album-track-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.album-track-num {
    font-weight: 800;
    color: #94a3b8;
    font-size: 0.95rem;
    min-width: 24px;
    text-align: center;
}

.album-track-item.playing .album-track-num {
    color: #550000;
}

.album-track-btn-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(85, 0, 0, 0.08);
    color: #550000;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.album-track-item:hover .album-track-btn-play,
.album-track-item.playing .album-track-btn-play {
    background: #550000;
    color: #ffffff;
}

.album-track-thumb-wrap {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(85, 0, 0, 0.08);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-track-thumb {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    float: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: transform 0.2s ease;
}

.album-track-item:hover .album-track-thumb {
    transform: scale(1.08);
}

.album-track-item.playing .album-track-thumb-wrap {
    border-color: #550000;
    box-shadow: 0 3px 10px rgba(85, 0, 0, 0.25);
}

.album-track-details {
    flex: 1;
    min-width: 0;
}

.album-track-name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.album-track-item.playing .album-track-name {
    color: #550000;
}

.album-track-meta {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-track-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.album-track-info-link {
    color: #94a3b8;
    font-size: 1rem;
    padding: 6px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.album-track-info-link:hover {
    color: #550000;
}

/* Commandes admin de réordonnancement */
.album-track-admin {
    display: flex;
    align-items: center;
    gap: 4px;
    border-left: 1px solid #e2e8f0;
    padding-left: 10px;
}

.btn-reorder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.btn-reorder:hover:not(.disabled) {
    background: #550000;
    color: #ffffff;
}

.btn-reorder.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

/* Grille pour la page listAlbums */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px auto;
}

.album-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(85, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(85, 0, 0, 0.14);
}

.album-card-cover-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.album-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.album-card:hover .album-card-cover {
    transform: scale(1.05);
}

.album-card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.album-card-title {
    font-family: "Cooper Black", "Caprasimo", serif;
    color: #550000;
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.album-card-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 0 14px 0;
    flex: 1;
}

.album-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #550000;
    font-weight: 700;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

/* Responsivité */
@media (max-width: 640px) {
    .album-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .album-cover-wrap {
        width: 160px;
        height: 160px;
    }
    .album-meta-row {
        justify-content: center;
    }
    .player-track-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .player-track-cover-wrap {
        width: 60px;
        height: 60px;
    }
    .album-track-thumb-wrap {
        width: 42px;
        height: 42px;
    }
    .album-track-left {
        gap: 10px;
    }
    .album-track-item {
        padding: 10px 12px;
    }
    .album-track-meta {
        font-size: 0.78rem;
    }
}

/* Statut / Indicateur de chargement */
.player-track-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #550000;
    background: rgba(85, 0, 0, 0.08);
    padding: 3px 12px;
    border-radius: 12px;
    margin-top: 6px;
    width: fit-content;
    animation: fadeInStatus 0.2s ease-in;
}

.player-track-status i {
    font-size: 0.85rem;
    color: #550000;
}

.player-track-status.player-status-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid rgba(185, 28, 28, 0.2);
}

.player-track-status.player-status-error i {
    color: #b91c1c;
}

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

.btn-player-main.loading {
    background: #800000;
    animation: pulseLoading 1.2s infinite ease-in-out;
}

@keyframes pulseLoading {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(85, 0, 0, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(85, 0, 0, 0.12); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(85, 0, 0, 0); }
}


/* ==========================================================================
   Widget de Partage d'Album
   ========================================================================== */

.album-share-widget {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(85, 0, 0, 0.16);
}

.album-share-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #550000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.album-share-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.album-share-field {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 240px;
    max-width: 100%;
}

.album-share-url-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    cursor: text;
    transition: border-color 0.2s, background-color 0.2s;
}

.album-share-url-input:focus {
    background: #ffffff;
    border-color: #550000;
}

.btn-share-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: #550000;
    color: #ffffff;
    border: 1px solid #550000;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-share-copy:hover {
    background: #7a0b0b;
    border-color: #7a0b0b;
}

.btn-share-copy.copied {
    background: #16a34a !important;
    border-color: #16a34a !important;
}

.btn-album-share-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.btn-album-share-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.btn-share-native {
    background: rgba(85, 0, 0, 0.08);
    border-color: rgba(85, 0, 0, 0.2);
    color: #550000;
    font-weight: 700;
}

.btn-share-native:hover {
    background: #550000;
    color: #ffffff;
    border-color: #550000;
}

.btn-share-email:hover {
    border-color: #550000;
    color: #550000;
    background: #fff5f5;
}
.btn-share-email i {
    color: #550000;
}

.btn-share-whatsapp:hover {
    border-color: #25D366;
    color: #128C7E;
    background: #f0fdf4;
}
.btn-share-whatsapp i {
    color: #25D366;
}

.btn-share-sms:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
}
.btn-share-sms i {
    color: #0284c7;
}

.btn-share-facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
    background: #eff6ff;
}
.btn-share-facebook i {
    color: #1877F2;
}

.btn-share-instagram:hover {
    border-color: #E1306C;
    color: #E1306C;
    background: #fdf2f8;
}
.btn-share-instagram i {
    color: #E1306C;
}

.album-share-networks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.album-share-toast {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 6px;
    animation: fadeInToast 0.2s ease;
}

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

@media (max-width: 600px) {
    .album-share-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .album-share-field {
        width: 100%;
    }
    .btn-share-native {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   Composants Shortcodes : Titre / Morceau Intégré
   ========================================================================== */

.embedded-titre-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 22px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(85, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.embedded-titre-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(85, 0, 0, 0.12);
    border-color: rgba(85, 0, 0, 0.25);
}

.embedded-titre-cover-wrap {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(85, 0, 0, 0.15);
}

.embedded-titre-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.embedded-titre-cover-wrap:hover .embedded-titre-cover {
    transform: scale(1.05);
}

.embedded-titre-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.embedded-titre-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #64748b;
}

.embedded-titre-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(85, 0, 0, 0.08);
    color: #550000;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.embedded-titre-title {
    margin: 0;
    font-family: "Cooper Black", "Caprasimo", serif;
    font-size: 1.25rem;
    line-height: 1.3;
}

.embedded-titre-title a {
    color: #550000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.embedded-titre-title a:hover {
    color: #8b0000;
    text-decoration: underline;
}

.embedded-titre-meta {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.embedded-titre-artist {
    font-weight: 600;
    color: #334155;
}

.embedded-titre-player {
    margin-top: 4px;
}

.embedded-titre-player audio {
    width: 100%;
    height: 38px;
    border-radius: 8px;
}

.embedded-titre-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.btn-embedded-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.btn-embedded-pill:hover {
    background: #550000;
    color: #ffffff;
    border-color: #550000;
}

.btn-embedded-download {
    background: rgba(85, 0, 0, 0.05);
    color: #550000;
    border-color: rgba(85, 0, 0, 0.15);
}

.btn-embedded-download:hover {
    background: #550000;
    color: #ffffff;
}

/* Version compacte / mini */
.embedded-titre-compact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid rgba(85, 0, 0, 0.12);
    border-radius: 24px;
    padding: 6px 14px 6px 6px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.embedded-titre-compact-thumb-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.embedded-titre-compact-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.embedded-titre-compact-info {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.embedded-titre-compact-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #550000;
    text-decoration: none;
}

.embedded-titre-compact-artist {
    font-size: 0.75rem;
    color: #64748b;
}

.embedded-titre-compact-audio audio {
    height: 30px;
}

@media (max-width: 600px) {
    .embedded-titre-card {
        flex-direction: column;
        align-items: stretch;
    }
    .embedded-titre-cover-wrap {
        width: 100%;
        height: 180px;
    }
}

/* ========================================================
   Visionneuse Lightbox (Agrandisseur de visuel / livret)
   ======================================================== */
.album-cover-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
    box-sizing: border-box;
}

.album-cover-modal.active {
    opacity: 1;
    visibility: visible;
}

.album-cover-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 4, 4, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.album-cover-modal-dialog {
    position: relative;
    z-index: 2;
    max-width: min(92vw, 880px);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #180808;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.92);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.album-cover-modal.active .album-cover-modal-dialog {
    transform: scale(1);
}

.album-cover-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #550000;
    color: #ffffff;
    border: 2px solid #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: all 0.2s ease;
    z-index: 10;
}

.album-cover-modal-close:hover {
    background: #8b0000;
    transform: scale(1.1) rotate(90deg);
}

.album-cover-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(85, 0, 0, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.album-cover-modal-nav:hover {
    background: #8b0000;
    transform: translateY(-50%) scale(1.1);
}

.album-modal-prev {
    left: -22px;
}

.album-modal-next {
    right: -22px;
}

.album-cover-modal-body {
    max-height: calc(88vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #080202;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.album-cover-modal-img {
    max-width: 100%;
    max-height: calc(88vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    cursor: zoom-out;
}

.album-cover-modal-footer {
    width: 100%;
    margin-top: 12px;
    text-align: center;
    color: #ffffff;
}

.album-cover-modal-title {
    display: block;
    font-family: "Cooper Black", "Caprasimo", serif;
    font-size: 1.3rem;
    color: #fde8e8;
    margin-bottom: 4px;
}

.album-cover-modal-sub {
    display: block;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.album-cover-modal-hint {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
}

/* Adaptations Responsive */
@media (max-width: 768px) {
    .album-player-card {
        gap: 18px;
        padding: 16px 18px;
    }
    .player-track-cover-wrap {
        width: 155px;
        height: 155px;
    }
    .player-track-now {
        font-size: 1.25rem;
    }
    .btn-player-icon {
        width: 38px;
        height: 38px;
    }
    .btn-player-main {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 600px) {
    .album-player-card {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 16px;
    }
    .player-track-cover-wrap {
        width: min(100%, 220px);
        height: 220px;
        border-radius: 14px;
    }
    .player-main-col {
        width: 100%;
        text-align: center;
    }
    .player-track-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .player-track-now,
    .player-track-sub {
        text-align: center;
        white-space: normal;
    }
    .album-modal-prev {
        left: 8px;
    }
    .album-modal-next {
        right: 8px;
    }
    .album-cover-modal {
        padding: 12px;
    }
    .album-cover-modal-dialog {
        padding: 12px;
        max-width: 96vw;
    }
}

@media (max-width: 440px) {
    .player-track-cover-wrap {
        height: 190px;
        width: 190px;
    }
    .player-controls-row {
        gap: 10px;
    }
    .btn-player-icon {
        width: 36px;
        height: 36px;
    }
    .btn-player-main {
        width: 46px;
        height: 46px;
    }
    .player-track-cover-overlay span {
        display: none;
    }
}

