.sticky-audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 5px 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    background-color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sap-custom-controls {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Slightly wider to fit metadata */
    height: 30px;
    gap: 10px;
}

.sap-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.sap-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: opacity 0.2s;
}

.sap-btn:hover svg {
    opacity: 0.8;
}

.sap-time {
    color: #ffffff;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 35px;
    text-align: center;
}

/* Progress Bar (reduced size) */
.sap-progress-container {
    flex-grow: 1; /* Takes up available space, but less now due to track info */
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.sap-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
}

.sap-progress-filled {
    height: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
}

.sap-progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    left: 0%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.sap-progress-container:hover .sap-progress-thumb {
    opacity: 1;
}

/* Track Info */
.sap-track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 10px;
    flex-shrink: 0;
    width: 120px; /* Fixed small width */
    overflow: hidden;
}

.sap-track-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sap-track-channel {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Volume */
.sap-volume-container {
    width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.sap-volume-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
}

.sap-volume-filled {
    height: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    width: 7%;
    pointer-events: none;
}

.sap-volume-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    left: 7%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.sap-volume-container:hover .sap-volume-thumb {
    opacity: 1;
}

@media (max-width: 767px) {
    .sap-track-info {
        width: 80px;
    }
    .sap-volume-container {
        display: none; /* Hide volume on small mobile */
    }
    .sap-btn.sap-mute {
        display: none;
    }
}