/* ============================================================
   AR FLOATING PLAYER — barre minimaliste fixe en bas
   À ajouter à la fin de _ar.css  OU  lier en tant que feuille séparée
   ============================================================ */

/* ── Conteneur flottant ── */
#ar-floating-player {
    display: none;              /* caché par défaut */
    position: fixed;
    bottom: 110px;              /* au-dessus du bouton "Conversation" */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 420px;
    z-index: 20;
    pointer-events: auto;
}

#ar-floating-player.visible {
    display: block;
}

/* ── Carte intérieure ── */
.ar-player-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FCE9E1;
    border-radius: 50px;          /* pill */
    padding: 10px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* ── Boutons play / pause / stop ── */
.ar-ctrl-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--Or-color, #c9a96e);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: transform 0.1s;
}

.ar-ctrl-btn:active {
    transform: scale(0.88);
}

.ar-ctrl-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Stop — discret */
.ar-ctrl-stop {
    background: rgba(0,0,0,0.12);
    width: 28px;
    height: 28px;
    padding: 6px;
}

/* ── Slider + timecodes ── */
.ar-player-slider-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

#ar-player-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(0,0,0,0.15);
    outline: none;
    cursor: pointer;
    accent-color: var(--Or-color, #c9a96e);
}

#ar-player-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--Or-color, #c9a96e);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

#ar-player-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--Or-color, #c9a96e);
    cursor: pointer;
    border: none;
}

.ar-player-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.68em;
    color: #888;
    letter-spacing: 0.02em;
}

/* ── Utilitaire ── */
.ar-hidden {
    display: none !important;
}