.exb-background-audio {
    display: none !important;
}

.exb-sound-menu-item {
    display: flex;
    align-items: center;
}

.exb-sound-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 38px;
    margin: 0;
    padding: .48rem .78rem;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.exb-sound-toggle:hover,
.exb-sound-toggle:focus-visible {
    background: rgba(255, 255, 255, .24);
    border-color: #fff;
    transform: translateY(-1px);
}

.exb-sound-toggle:focus-visible {
    outline: 3px solid #f5a623;
    outline-offset: 2px;
}

.exb-sound-toggle.is-playing {
    background: #f28c28;
    border-color: #f28c28;
    color: #10213c;
}

.exb-sound-icon {
    font-size: 1rem;
    line-height: 1;
}

.exb-sound-toggle--shortcode {
    background: #5373a9;
}

.exb-sound-page-control {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 9998;
}

.exb-sound-toggle--page {
    min-width: 118px;
    min-height: 46px;
    padding: .65rem 1rem;
    border: 2px solid rgba(255, 255, 255, .9);
    background: #5373a9;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .3);
}

.exb-sound-toggle--page:hover,
.exb-sound-toggle--page:focus-visible {
    background: #405f94;
}

.exb-sound-toggle--page.is-playing {
    background: #f28c28;
    border-color: #fff;
}

@media (max-width: 900px) {
    .exb-sound-menu-item {
        padding: .35rem 0;
    }

    .exb-sound-toggle {
        width: 100%;
    }

    .exb-sound-page-control {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
    }

    .exb-sound-toggle--page {
        width: auto;
        min-width: 112px;
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .exb-sound-toggle {
        transition: none;
    }
}
