/* Audio Player 8a470cfd — v6.0.0 */

/* Add padding to body so content is not hidden behind the fixed player */
body {
    padding-bottom: 72px !important;
}

.ap-player-bar-8a470cfd {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    background: #ffffff;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 64px;
    width: 100%;
}

.ap-player-inner-8a470cfd {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 100%;
    padding: 0 16px;
    gap: 12px;
}

/* Transport Controls */
.ap-controls-8a470cfd {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ap-btn-8a470cfd {
    background: none;
    border: none;
    cursor: pointer;
    color: #222;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s;
}

.ap-btn-8a470cfd:hover {
    background: #f0f0f0;
}

.ap-play-8a470cfd {
    width: 40px;
    height: 40px;
    background: #000000;
    border-radius: 50%;
    color: #fff;
}

.ap-play-8a470cfd:hover {
    background: #333333;
}

/* Volume */
.ap-volume-8a470cfd {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ap-vol-slider-8a470cfd {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.ap-vol-slider-8a470cfd::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
}

.ap-vol-slider-8a470cfd::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* BPM */
.ap-bpm-8a470cfd {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    line-height: 1.1;
}

.ap-bpm-value-8a470cfd {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.ap-bpm-label-8a470cfd {
    font-size: 9px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Time */
.ap-time-8a470cfd {
    font-size: 13px;
    color: #555;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ap-time-sep-8a470cfd {
    margin: 0 2px;
    color: #999;
}

/* Waveform */
.ap-waveform-wrap-8a470cfd {
    flex: 1;
    position: relative;
    height: 48px;
    min-width: 120px;
    overflow: hidden;
    border-radius: 4px;
}

.ap-waveform-canvas-8a470cfd {
    width: 100%;
    height: 100%;
    display: block;
}

.ap-progress-8a470cfd {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}

.ap-progress-8a470cfd::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 3px;
    height: 48px;
    background: #fff;
    border: 1px solid #999;
    border-radius: 1px;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.ap-progress-8a470cfd::-moz-range-thumb {
    width: 3px;
    height: 48px;
    background: #fff;
    border: 1px solid #999;
    border-radius: 1px;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.ap-progress-8a470cfd::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
}

.ap-progress-8a470cfd::-moz-range-track {
    height: 100%;
    background: transparent;
}

/* Track Info */
.ap-track-info-8a470cfd {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 160px;
    max-width: 240px;
}

.ap-track-thumb-8a470cfd {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: #e0e0e0;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.ap-track-text-8a470cfd {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    overflow: hidden;
}

.ap-track-artist-8a470cfd {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ap-track-title-8a470cfd {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buy Section */
.ap-buy-section-8a470cfd {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ap-variant-label-8a470cfd {
    background: #f5a623;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ap-variant-label-8a470cfd:empty {
    display: none;
}

.ap-price-8a470cfd {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

.ap-price-8a470cfd:empty {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-bottom: 110px !important;
    }

    .ap-player-bar-8a470cfd {
        height: auto;
        padding: 8px 0;
    }

    .ap-player-inner-8a470cfd {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .ap-waveform-wrap-8a470cfd {
        order: 10;
        width: 100%;
        flex: none;
        height: 36px;
    }

    .ap-volume-8a470cfd {
        display: none;
    }

    .ap-bpm-8a470cfd {
        display: none;
    }

    .ap-buy-section-8a470cfd {
        display: none;
    }
}
