/* ============================================================
 * mini-player.css — Barre mini-player fixe en bas (au-dessus de nav-bottom)
 * Visible uniquement <= 1024px. Sur desktop, le .rpv-player-bar sticky top reste.
 * ============================================================ */

/* Cache le player bar sticky du header sur mobile (remplace par rpv-mini-bar) */
@media (max-width: 1024px) {
    .rpv-player-bar { display: none !important; }
}

/* Barre mini-player fixe en bas */
.rpv-mini-bar {
    position: fixed;
    bottom: calc(var(--nav-bottom-h, 56px) + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    z-index: calc(var(--z-nav, 95) - 1);
    height: var(--mini-player-h, 60px);
    background: rgba(10, 8, 6, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 107, 0, 0.22);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
}

/* Desktop : cachee */
@media (min-width: 1025px) {
    .rpv-mini-bar { display: none; }
}

/* Pochette */
.rpv-mini-cover {
    width: 38px; height: 38px;
    border-radius: 6px;
    background: var(--bg-3, #2a2520) center/cover no-repeat;
    flex-shrink: 0;
    cursor: pointer;
}
/* Placeholder icone quand aucune pochette */
.rpv-mini-cover:not([style*="url("])::after {
    content: '\f001';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    height: 100%;
}

/* Info titre + artiste */
.rpv-mini-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}
.rpv-mini-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.rpv-mini-artist {
    font-size: 11px;
    color: var(--orange, #ff6b00);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Bouton play/pause */
.rpv-mini-play {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--orange, #ff6b00);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
}
.rpv-mini-play:active { transform: scale(0.9); }
.rpv-mini-play:focus-visible {
    outline: 2px solid var(--orange, #ff6b00);
    outline-offset: 2px;
}
.rpv-mini-expand:focus-visible {
    outline: 2px solid rgba(255,255,255,0.4);
    outline-offset: 2px;
}
.rpv-mini-play .ic-pause { display: none; }
.rpv-mini-play.is-playing .ic-play  { display: none; }
.rpv-mini-play.is-playing .ic-pause { display: inline; }
.rpv-mini-play.is-loading { background: var(--bg-4, #3a3530); }

/* Bouton ouvrir fullscreen */
.rpv-mini-expand {
    background: none;
    border: none;
    color: var(--text-3, rgba(255,255,255,0.4));
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.rpv-mini-expand:hover { color: var(--text-1, #fff); }

/* Sur tres petits ecrans : cacher la pochette */
@media (max-width: 360px) {
    .rpv-mini-cover { display: none; }
}
