/* miniplayer.css — compact "play + waveform line" recorded-call player.
   Sized to match the .btn-call-agent phone button (full width, same radius,
   white surface). Self-contained; every selector is .mini-* so it never
   bleeds into other components. Loaded on the homepage + vertical pages. */

.mini-player {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.mini-play {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #1d1d1f;   /* was --accent-blue: black play button (white triangle) to match the page theme */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.mini-play:hover:not(:disabled) {
    background: #000000;
    transform: scale(1.06);
}

.mini-play:disabled {
    background: var(--border-strong);
    cursor: default;
}

.mini-play:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.mini-icon {
    width: 13px;
    height: 13px;
}

.mini-icon-play {
    margin-left: 1px;
}

.mini-icon-pause {
    display: none;
}

.mini-player.is-playing .mini-icon-play {
    display: none;
}

.mini-player.is-playing .mini-icon-pause {
    display: block;
}

.mini-wave {
    flex: 1;
    min-width: 0;
    height: 22px;
    display: block;
    cursor: pointer;
}

/* "Recording coming soon" state (no audio yet). */
.mini-unavailable {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.mini-player .mini-unavailable {
    display: none;
}

.mini-player.is-unavailable .mini-unavailable {
    display: inline;
}

.mini-player.is-unavailable .mini-wave {
    display: none;
}

.mini-player.is-unavailable {
    opacity: 0.7;
}

.mini-player.is-unavailable .mini-play {
    background: var(--border-strong);
}

/* When a mini-player sits directly above the phone-call button in an agent
   card, tighten the gap between the two (the card's own 1.5rem flex gap is a
   touch wide for a stacked pair of CTAs). */
.mini-player + .btn-call-agent {
    margin-top: -0.75rem;
}

/* Hero placement (vertical landing pages) — cap the width and give it room. */
.mini-player-hero {
    max-width: 400px;
    margin-top: 1.25rem;
}
