/* Explain: Styles for the guided meditation player and cards. */
/* --- Bibliothèque de méditations guidées --- */
.sa-med-player {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.sa-med-player.is-active { border-color: var(--border-gold); }

.sa-med-player-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    justify-content: space-between;
}
.sa-med-progress-wrap { flex: 1 1 16rem; min-width: 14rem; }

.sa-med-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(160, 120, 255, 0.16);
    overflow: hidden;
}
.sa-med-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    transition: width .6s var(--ease-soft);
}

.sa-med-audio { width: 100%; border-radius: 999px; }

.sa-med-player-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
}
.sa-med-player-foot .sa-auth-msg { margin: 0; }
#saMedComplete.is-done {
    background: linear-gradient(135deg, #7ee2b8, #2f9d6c);
    color: #04170f;
}

.sa-med-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #0b0518;
}
.sa-med-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sa-med-card { display: flex; flex-direction: column; }
.sa-med-card.is-done {
    border-color: var(--border-gold);
    box-shadow: 0 0 0 1px rgba(232, 196, 122, 0.14), var(--glow-gold);
}

.sa-med-done-mark {
    display: none;
    align-items: center;
    gap: .35rem;
    color: var(--gold-color);
    font-size: .82rem;
}
.sa-med-done-mark i { font-size: .8rem; }

@media (max-width: 560px) {
    .sa-med-player-foot .sa-btn { width: 100%; }
}