.audiopost-player-wrapper {
    background: var(--lr-player-bg, #f4f4f4);
    color: var(--lr-player-text, #333333);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

.audiopost-heading {
    width: 100%;
}

/* RTL Support */
.audiopost-player-wrapper[dir="rtl"] {
    direction: rtl;
}

.audiopost-player-wrapper[dir="rtl"] .ls-speed-dropdown {
    left: auto;
    right: 0;
}

.audiopost-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audiopost-controls .ls-btn {
    background: var(--lr-player-btn, #0073aa);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, background 0.2s ease;
}

.audiopost-controls .ls-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.audiopost-controls .ls-btn:active {
    transform: scale(0.95);
}

.ls-play-pause {
    min-width: 40px;
}

.ls-speed-control {
    position: relative;
}

.ls-speed-dropdown {
    display: none;
    position: absolute;
    bottom: 110%;
    /* Show above button */
    left: 0;
    margin: 0;
    padding: 5px 0;
    background: #fff;
    list-style: none;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    min-width: 60px;
}

.ls-speed-dropdown.ls-show {
    display: block;
}

.ls-speed-dropdown li {
    padding: 5px 10px;
    cursor: pointer;
    color: #333;
    font-size: 13px;
    text-align: center;
}

.ls-speed-dropdown li:hover {
    background: #f0f0f0;
}

.ls-speed-dropdown li.active {
    background: var(--lr-player-btn, #0073aa);
    color: #fff;
}

.ls-progress-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    min-width: 150px;
}

.ls-progress-bar {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.ls-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--lr-player-btn, #0073aa);
    cursor: pointer;
}

.ls-progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--lr-player-btn, #0073aa);
    cursor: pointer;
}

.audiopost-audio-element {
    display: none;
    /* Hide default player */
}

/* Mobile Center Layout */
@media (max-width: 600px) {
    .audiopost-controls {
        justify-content: center;
        width: 100%;
    }

    .ls-progress-container {
        width: 100%;
    }

    .audiopost-heading {
        justify-content: center !important;
        text-align: center;
    }
}