.custom-audioplayer-container {
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 3rem;
    padding: 1rem; /*8px 15px;*/
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    gap: 15px;
    margin: 1.5rem 0;
}

.ap-play-pause, .ap-mute {
    background: #e8e8e8;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 60px;
    height: 60px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.ap-play-pause:hover, .ap-mute:hover {
    background: #3B8FC2;
}

.ap-play-pause:hover img, .ap-mute:hover img {
    filter: brightness(0) invert(1);
}

.ap-play-pause.is-ready {
    background: #3B8FC2;
}

.ap-play-pause.is-ready img {
    filter: brightness(0) invert(1);
}

.ap-play-pause img, .ap-mute img {
    width: 28px;
    height: 28px;
    display: block;
}

.ap-progress-bar { flex-grow: 1; display: flex; }
.ap-seek, .ap-volume {
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: #d9d9d9;
    border-radius: 3rem;
    border: none;
    outline: none;
    cursor: pointer;
}
.ap-seek { width: 100%; }
.ap-volume { width: 90px; }
.ap-seek::-webkit-slider-thumb, .ap-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3c4043;
    border-radius: 50%;
    cursor: pointer;
}
.ap-seek::-moz-range-thumb, .ap-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #3c4043;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}
.ap-time { font-size: 12px; color: #5f6368; white-space: nowrap; }

/* Editor Styling */
.audioplayer-editor-wrapper,
.audioplayer-preview {
    background: #f8f9fa;
    border: 2px solid #3B8FC2;
    padding: 20px;
}

.audioplayer-preview p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.audioplayer-remove-btn {
    background-color: rgba(255, 0, 0, 0.2);
}

@media (max-width: 576px) {
 .ap-volume { display: none; }
}
