.spp-player {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 16px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-family: inherit;
}

/* ── Bar row ── */
.spp-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spp-headphones {
    flex-shrink: 0;
}

/* ── Play / Pause button ── */
.spp-play-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--spp-accent, #333333);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #ffffff;
    transition: background-color 0.15s;
}

.spp-play-btn:hover {
    background-color: var(--spp-accent-hover, var(--spp-accent, #333333)) !important;
}

.spp-icon-pause {
    display: none;
}

.spp-player.is-playing .spp-icon-play {
    display: none;
}

.spp-player.is-playing .spp-icon-pause {
    display: block;
}

/* ── Title ── */
.spp-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Duration / timestamp ── */
.spp-duration {
    font-size: 12px;
    color: #999999;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Progress row (hidden until play) ── */
.spp-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    margin-left: 61px; /* aligns under the title: headphones(17) + gap(12) + button(32) */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, margin-top 0.2s ease;
}

.spp-player.is-playing .spp-progress-row,
.spp-player.is-paused .spp-progress-row {
    max-height: 32px;
    margin-top: 8px;
}

/* ── Track and fill ── */
.spp-track {
    flex: 1;
    height: 3px;
    background-color: #eeeeee;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.spp-fill {
    height: 100%;
    width: 0%;
    background-color: var(--spp-accent, #333333);
    border-radius: 2px;
    pointer-events: none;
}

/* ── Speed button ── */
.spp-speed {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #999999;
    padding: 0;
    white-space: nowrap;
    font-family: inherit;
}

.spp-speed:hover {
    color: var(--spp-accent, #333333);
}

/* ── Editor notice (Elementor edit mode only) ── */
.spp-editor-notice {
    padding: 12px;
    background: #f0f0f0;
    color: #555555;
    font-size: 13px;
    border-radius: 4px;
}

/* ── Focus styles for keyboard navigation ── */
.spp-play-btn:focus-visible {
    outline: 2px solid var(--spp-accent, #333333);
    outline-offset: 2px;
}

.spp-track:focus-visible {
    outline: 2px solid var(--spp-accent, #333333);
    outline-offset: 4px;
}

.spp-speed:focus-visible {
    outline: 2px solid var(--spp-accent, #333333);
    outline-offset: 2px;
}
