.ap-container-4f7f0a85 {
    font-family: sans-serif;
}
.ap-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    flex-wrap: wrap;
}
.ap-controls-primary {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    min-width: 200px;
}
.ap-controls-secondary {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* Base button styles applied to all icon buttons to remove browser defaults like outlines and backgrounds */
.ap-btn, .ap-icon-btn, .ap-speed-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}
.ap-btn svg, .ap-icon-btn svg, .ap-speed-btn svg {
    width: 1em;
    height: 1em;
    transition: all 0.2s ease;
}
.ap-btn:focus, .ap-icon-btn:focus, .ap-speed-btn:focus,
.ap-btn:active, .ap-icon-btn:active, .ap-speed-btn:active {
    outline: none;
    box-shadow: none;
}

.ap-progress-bar {
    flex-grow: 1;
    height: 6px;
    background: #ccc;
    cursor: pointer;
    position: relative;
    border-radius: 3px;
}
.ap-progress-filled {
    height: 100%;
    background: #0073aa;
    width: 0;
    border-radius: 3px;
    transition: width 0.1s linear;
}
.ap-time {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

/* Volume Control */
.ap-volume-container {
    position: relative;
    display: flex;
    align-items: center;
}
.ap-volume-slider-wrapper {
    position: absolute;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%);
    background: #fff;
    padding: 10px 5px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    z-index: 10;
}
.ap-volume-container:hover .ap-volume-slider-wrapper,
.ap-volume-container.is-open .ap-volume-slider-wrapper {
    opacity: 1;
    visibility: visible;
}
.ap-volume-slider {
    width: 80px;
    cursor: pointer;
}

/* Speed Control */
.ap-speed-container {
    position: relative;
}
.ap-speed-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 5px 0;
    margin-bottom: 5px;
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
}
.ap-speed-container:hover .ap-speed-menu,
.ap-speed-container.is-open .ap-speed-menu {
    opacity: 1;
    visibility: visible;
}
.ap-speed-option {
    display: block;
    width: 100%;
    padding: 5px 15px;
    background: none;
    border: none;
    text-align: right;
    font-size: 12px;
    color: #333;
    cursor: pointer;
}
.ap-speed-option:hover {
    background: #f5f5f5;
}
.ap-speed-option.is-active {
    font-weight: bold;
    color: #0073aa;
}

/* Responsive Layout */
@media (max-width: 767px) {
    .ap-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .ap-controls-primary {
        width: 100%;
    }
    .ap-controls-secondary {
        width: 100%;
        justify-content: space-between;
        padding-top: 5px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .ap-volume-slider-wrapper {
        right: 0;
        transform: translateX(0);
    }
}
