#audio-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 115px;
    background: #ffffff;
    backdrop-filter: blur(6px);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    padding: 14px 18px;
    width: 230px;
    font-family: inherit;
}

#ap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#ap-title {
    font-weight: 700;
    font-size: 20px;
    color: #574429;
}

#ap-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #585858;
    line-height: 1;
    padding: 0 2px;
}

#ap-toggle {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
    width: 100%;
    background: linear-gradient(90deg, #574429, #BD9459);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 18px;
    font-family: inherit;
    transition: background .2s;
        position: relative;
}

#ap-toggle:hover {
    background: #3d2f1b;
}

#ap-toggle.playing {
    background: #8A1D08;
}

#ap-status {
    margin-top: 5px;
    font-size: 14px;
    color: #888;
    text-align: center;
}

.ap-wave {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
    position: absolute;
    right: 10px;
}

.ap-wave.active {
    display: flex;
}

.ap-wave span {
    display: inline-block;
    width: 3px;
    background: #fff;
    border-radius: 2px;
    animation: apBar 0.8s ease-in-out infinite;
}

.ap-wave span:nth-child(1) {
    height: 6px;
    animation-delay: 0s;
}

.ap-wave span:nth-child(2) {
    height: 10px;
    animation-delay: 0.1s;
}

.ap-wave span:nth-child(3) {
    height: 14px;
    animation-delay: 0.2s;
}

.ap-wave span:nth-child(4) {
    height: 10px;
    animation-delay: 0.3s;
}

.ap-wave span:nth-child(5) {
    height: 6px;
    animation-delay: 0.4s;
}

@keyframes apBar {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.3);
    }
}