/* ============================================================
   Podcast Frontend Player — Shared Styles
   ============================================================ */

.pb-pd-player {
    background: #23363d;
    border-radius: 0;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1300px;
    margin: 0 0 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    color: #fff;
    position: relative;
}

.pb-pd-player *,
.pb-pd-player *::before,
.pb-pd-player *::after {
    box-sizing: border-box;
}

/* ---- Play Button ---- */

.pb-pd-play-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 0;
    border: none;
    background: #d6ff62;
    color: #000;
    font-size: 20px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.pb-pd-play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 4px rgba(214, 255, 98, 0.25);
}

.pb-pd-play-btn svg {
    width: 26px;
    height: 26px;
    fill: #000;
}

/* ---- Waveform Container ---- */

.pb-pd-waveform-wrap {
    flex: 1;
    min-width: 0;
    display: none;
    flex-direction: column;
    gap: 6px;
}

.pb-pd-waveform-canvas-wrap {
    position: relative;
    width: 100%;
    height: 40px;
    cursor: pointer;
    border-radius: 0;
}

.pb-pd-waveform {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---- Time Display ---- */

.pb-pd-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: none;
    justify-content: space-between;
    font-variant-numeric: tabular-nums;
}

.pb-pd-time.pb-pd-time--visible {
    display: flex;
}

/* ---- Title (optional) ---- */

.pb-pd-player-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Audio Element: visible as fallback when JS disabled, hidden when JS takes over ---- */

.pb-pd-player audio {
    width: 100%;
    min-height: 40px;
}

.pb-pd-player.pb-pd-player--initialized audio {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ---- Show custom UI when initialized ---- */

.pb-pd-player.pb-pd-player--initialized .pb-pd-play-btn,
.pb-pd-player.pb-pd-player--initialized .pb-pd-waveform-wrap {
    display: flex;
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
    .pb-pd-player {
        padding: 14px 16px;
        gap: 12px;
        border-radius: 0;
    }

    .pb-pd-play-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 17px;
        line-height: 44px;
    }

    .pb-pd-play-btn svg {
        width: 18px;
        height: 18px;
    }

    .pb-pd-waveform-canvas-wrap {
        height: 40px;
    }
}