/**
 * CFRO Layout — Sticky Audio Player (Figma v3)
 * @package CFRO
 * @since   4.0.0
 */

.cfro-sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--cfro-player-height);
    background: var(--cfro-forest-dark);
    color: var(--cfro-white);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.20);
}
.cfro-sticky-player__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--cfro-max-width);
    margin: 0 auto;
}

/* Left: play + info */
.cfro-sticky-player__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Status badge */
.cfro-sticky-player__status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--cfro-radius-pill);
    background: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}
.cfro-sticky-player__status--live,
.cfro-sticky-player__status.is-online {
    background: var(--cfro-coral);
    animation: cfro-pulse-badge 2s infinite;
}
.cfro-sticky-player__status.is-offline {
    background: rgba(255, 255, 255, 0.15);
    animation: none;
}
@keyframes cfro-pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Play button */
.cfro-sticky-player__play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cfro-coral);
    border: none;
    color: var(--cfro-white);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--cfro-transition);
    flex-shrink: 0;
}
.cfro-sticky-player__play:hover {
    background: var(--cfro-accent-dark);
    transform: scale(1.06);
}
.cfro-sticky-player__play svg {
    width: 18px;
    height: 18px;
    fill: var(--cfro-white);
}

/* Info */
.cfro-sticky-player__info { line-height: 1.3; }
.cfro-sticky-player__title {
    font-weight: 600;
    font-size: 0.9rem;
}
.cfro-sticky-player__subtitle {
    font-size: 0.75rem;
    opacity: 0.65;
}

/* Volume */
.cfro-sticky-player__volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cfro-sticky-player__mute {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem;
    border-radius: var(--cfro-radius);
    color: var(--cfro-white);
    transition: opacity 0.15s;
}
.cfro-sticky-player__mute:hover { opacity: 0.7; }
.cfro-sticky-player__mute:focus-visible {
    outline: 2px solid var(--cfro-sage);
    outline-offset: 2px;
}
.cfro-sticky-player__mute svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.cfro-sticky-player__volume input[type="range"] {
    width: 90px;
    accent-color: var(--cfro-sage);
    padding: 10px 0px;
}

@media (max-width: 640px) {
    .cfro-sticky-player__volume input[type="range"] { display: none; }
    .cfro-sticky-player__status { display: none; }
}
