/**
 * Fixed audio bar — shared by single locations and regular pages.
 */

body.cls-has-audio {
    padding-bottom: 90px;
}

.cls-audio-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #c2302c;
    color: #fff;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .3);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.cls-audio-bar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

/* Badge + title. The badge never shrinks; only the title truncates. */
.cls-audio-bar__info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 280px;
}

.cls-audio-bar__number {
    flex: 0 0 auto;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.cls-audio-bar__title {
    display: block;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cls-audio-bar__player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cls-audio-bar__btn--play {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    padding: 0;
}

.cls-audio-bar__btn--play:hover {
    background: rgba(255, 255, 255, .7);
}

.cls-audio-bar__progress-wrap {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, .2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.cls-audio-bar__progress {
    height: 100%;
    background: rgba(255, 255, 255, .8);
    border-radius: 2px;
    width: 0;
    transition: width .1s linear;
}

.cls-audio-bar__time {
    flex-shrink: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    font-family: monospace;
    min-width: 36px;
    text-align: right;
}

@media ( max-width: 600px ) {
    body.cls-has-audio {
        padding-bottom: 80px;
    }

    .cls-audio-bar__inner {
        padding: 10px 16px;
        gap: 12px;
    }

    .cls-audio-bar__info {
        max-width: 40%;
    }
}