/* ═══════════════════════════════════════════════════════════════
   HQ Podcast — Ground Truth Podcast
   Frontend grid + sticky player. "Native & refined": tuned to the
   HQ Unified Dashboard design system (flat, no card shadows, system
   green #16a34a, dashboard neutrals & radii).
   ═══════════════════════════════════════════════════════════════ */

/* ── Design tokens (scoped so we never depend on shell vars being
      in range — the player renders in wp_footer) ──────────────── */
.hqp-wrap,
.hqp-player-bar {
    --hqp-surface:   #ffffff;
    --hqp-subtle:    #f1f5f9;
    --hqp-app:       #f4f6f9;
    --hqp-border:    #e5e7eb;
    --hqp-border-2:  #e2e8f0;
    --hqp-ink:       #0f172a;
    --hqp-text:      #1f2937;
    --hqp-text-2:    #4b5563;
    --hqp-muted:     #64748b;
    --hqp-faint:     #94a3b8;
    --hqp-green:     #16a34a;
    --hqp-green-2:   #15803d;
    --hqp-green-tint:rgba(22, 163, 74, .10);
    --hqp-green-line:rgba(22, 163, 74, .22);
    --hqp-blue:      #2563eb;
    --hqp-blue-2:    #1d4ed8;
    --hqp-r-card:    14px;
    --hqp-r-btn:     10px;
    --hqp-r-input:   10px;
    --hqp-ease:      cubic-bezier(.4, 0, .2, 1);
}

/* ── Page shell ────────────────────────────────────────────────── */
.hqp-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 40px;
    padding-top: 64px;
    color: var(--hqp-text);
    font-variant-numeric: tabular-nums;
}

/* ── Header ────────────────────────────────────────────────────── */
.hqp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--hqp-border);
}
.hqp-header__left { min-width: 0; }
.hqp-header__right { flex-shrink: 0; }

.hqp-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--hqp-green);
    margin: 0 0 8px;
}

.hqp-title {
    font-size: 27px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--hqp-ink);
}
.hqp-title__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hqp-green-tint);
    color: var(--hqp-green);
    border-radius: 11px;
}
.hqp-subtitle {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 11px;
    background: var(--hqp-subtle);
    color: var(--hqp-text-2);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 999px;
}

/* ── Search ────────────────────────────────────────────────────── */
.hqp-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    max-width: 100%;
}
.hqp-search-ico {
    position: absolute;
    left: 13px;
    display: inline-flex;
    color: var(--hqp-faint);
    pointer-events: none;
    transition: color .18s var(--hqp-ease);
}
.hqp-search-input {
    width: 100%;
    padding: 11px 38px 11px 40px;
    border: 1px solid var(--hqp-border-2);
    border-radius: var(--hqp-r-input);
    background: var(--hqp-surface);
    font-size: 14px;
    color: var(--hqp-ink);
    transition: border-color .18s var(--hqp-ease), box-shadow .18s var(--hqp-ease);
}
.hqp-search-input::placeholder { color: var(--hqp-faint); }
.hqp-search-input:focus {
    outline: none;
    border-color: var(--hqp-green);
    box-shadow: 0 0 0 3px var(--hqp-green-tint);
}
.hqp-search-form:focus-within .hqp-search-ico { color: var(--hqp-green); }

/* Legacy submit button (kept for no-JS fallback, hidden when JS drives search) */
.hqp-search-btn {
    position: absolute;
    right: 0;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.hqp-search-clear {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--hqp-subtle);
    color: var(--hqp-muted);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s var(--hqp-ease), background .15s var(--hqp-ease), color .15s var(--hqp-ease);
}
.hqp-search-clear:hover { background: var(--hqp-border); color: var(--hqp-ink); }
.hqp-search-form:has(.hqp-search-input:not(:placeholder-shown)) .hqp-search-clear {
    opacity: 1;
    pointer-events: auto;
}

/* ── Grid ──────────────────────────────────────────────────────── */
.hqp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 per row on desktop */
    gap: 22px;
    margin-bottom: 8px;
}

/* ── Card ──────────────────────────────────────────────────────── */
.hqp-card {
    background: var(--hqp-surface);
    border: 1px solid var(--hqp-border);
    border-radius: var(--hqp-r-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .18s var(--hqp-ease), transform .18s var(--hqp-ease);
}
.hqp-card:hover {
    border-color: var(--hqp-green);
    transform: translateY(-2px);
}
.hqp-card--locked:hover { transform: none; border-color: var(--hqp-border-2); }

/* Artwork */
.hqp-card__preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.hqp-card__preview--has-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hqp-card__no-thumb { color: #b6c2d1; }
.hqp-card__preview--gradient .hqp-card__no-thumb { color: rgba(255, 255, 255, .9); }

.hqp-card__ep-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 6px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
}

/* Circular hover-play over artwork (presentational duplicate of the
   footer control; keyboard users use the footer button) */
.hqp-card__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--hqp-green);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: scale(.82);
    transition: opacity .2s var(--hqp-ease), transform .2s var(--hqp-ease), background .18s var(--hqp-ease);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .28);
    z-index: 2;
}
.hqp-card__play .hqp-play-icon { margin-left: 3px; } /* optically center the triangle */
.hqp-card:hover .hqp-card__play,
.hqp-card__play:focus-visible { opacity: 1; transform: scale(1); }
.hqp-card__play:hover { background: var(--hqp-green-2); }
.hqp-card__play.hqp-playing { opacity: 1; transform: scale(1); }

.hqp-card__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 2;
}

/* Body */
.hqp-card__body { padding: 15px 16px 12px; flex: 1; }
.hqp-card__title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hqp-ink);
    margin: 0 0 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hqp-card__desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--hqp-muted);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hqp-read-more {
    display: inline;
    margin: 0 0 11px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hqp-green);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}
.hqp-read-more:hover,
.hqp-read-more:focus {
    color: var(--hqp-green-2);
    text-decoration: underline;
    background: none;
    outline: none;
}
.hqp-read-more[hidden] { display: none !important; }
.hqp-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--hqp-faint);
}
.hqp-card__meta-item { display: inline-flex; align-items: center; gap: 5px; }
.hqp-card__meta-item svg { opacity: .85; }
.hqp-card__meta-sep { color: var(--hqp-border-2); }

/* Footer + play pill */
.hqp-card__footer { padding: 0 16px 16px; }

.hqp-locked-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hqp-muted);
    margin-bottom: 10px;
}

.hqp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--hqp-r-btn);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .18s var(--hqp-ease), border-color .18s var(--hqp-ease), color .18s var(--hqp-ease);
}
.hqp-btn--play {
    background: var(--hqp-green-tint);
    color: var(--hqp-green-2);
    border-color: transparent;
}
.hqp-btn--play:hover:not(:disabled) { background: var(--hqp-green); color: #fff; }
.hqp-btn--play:disabled {
    background: var(--hqp-subtle);
    color: var(--hqp-faint);
    cursor: not-allowed;
}
.hqp-btn--play.hqp-playing { background: var(--hqp-green); color: #fff; }
.hqp-btn--play .hqp-btn-text { letter-spacing: .01em; }

.hqp-btn--upgrade {
    background: transparent;
    color: var(--hqp-blue);
    border-color: var(--hqp-blue);
    font-size: 12.5px;
}
.hqp-btn--upgrade:hover { background: var(--hqp-blue); color: #fff; border-color: var(--hqp-blue); }

/* ── Pagination ────────────────────────────────────────────────── */
.hqp-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.hqp-pagination a,
.hqp-pagination span {
    min-width: 38px;
    padding: 8px 12px;
    background: var(--hqp-surface);
    border: 1px solid var(--hqp-border-2);
    border-radius: var(--hqp-r-btn);
    color: var(--hqp-text-2);
    text-align: center;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: border-color .15s var(--hqp-ease), color .15s var(--hqp-ease), background .15s var(--hqp-ease);
}
.hqp-pagination a:hover { border-color: var(--hqp-green); color: var(--hqp-green); }
.hqp-pagination .current {
    background: var(--hqp-green);
    border-color: var(--hqp-green);
    color: #fff;
}

/* ── Empty / no-results ────────────────────────────────────────── */
.hqp-empty {
    text-align: center;
    padding: 56px 24px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hqp-empty__graphic {
    position: relative;
    width: 116px;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
}
.hqp-empty__ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--hqp-green-line);
}
.hqp-empty__ring--1 { width: 68px;  height: 68px;  }
.hqp-empty__ring--2 { width: 92px;  height: 92px;  border-color: rgba(22, 163, 74, .12); }
.hqp-empty__ring--3 { width: 116px; height: 116px; border-color: rgba(22, 163, 74, .07); }
.hqp-empty__icon {
    width: 50px;
    height: 50px;
    background: var(--hqp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 1;
}
.hqp-empty__title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--hqp-ink);
    margin: 0 0 9px;
}
.hqp-empty__text {
    font-size: 13.5px;
    color: var(--hqp-muted);
    max-width: 400px;
    line-height: 1.6;
    margin: 0 0 22px;
}
.hqp-empty__pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hqp-empty__pill {
    padding: 6px 13px;
    background: var(--hqp-green-tint);
    color: var(--hqp-green-2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}
.hqp-empty__reset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid var(--hqp-border-2);
    border-radius: var(--hqp-r-btn);
    background: var(--hqp-surface);
    color: var(--hqp-text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s var(--hqp-ease), color .15s var(--hqp-ease);
}
.hqp-empty__reset:hover { border-color: var(--hqp-green); color: var(--hqp-green); }

/* ════════════════════════════════════════════════════════════════
   STICKY PLAYER BAR
   ════════════════════════════════════════════════════════════════ */
.hqp-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #0f172a;
    color: #e5e7eb;
    border-top: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, .30);
    transform: translateY(0);
    transition: transform .34s var(--hqp-ease);
    font-variant-numeric: tabular-nums;
}
.hqp-player-bar--hidden {
    transform: translateY(112%);
    pointer-events: none;
}

.hqp-player-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 11px 22px;
}

/* Now playing (artwork + title) */
.hqp-player-now {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 226px;
    flex-shrink: 0;
    min-width: 0;
}
.hqp-player-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: #64748b;
}
.hqp-player-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hqp-player-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hqp-player-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #22c55e;
}
.hqp-player-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Transport cluster */
.hqp-player-transport {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.hqp-ctrl {
    position: relative;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s var(--hqp-ease), background .15s var(--hqp-ease);
    flex-shrink: 0;
}
.hqp-ctrl:hover { color: #f8fafc; background: rgba(255, 255, 255, .08); }
.hqp-ctrl:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px #22c55e;
}
.hqp-ctrl--play {
    width: 42px;
    height: 42px;
    margin: 0 2px;
    background: var(--hqp-green);
    color: #fff;
}
.hqp-ctrl--play:hover { background: var(--hqp-green-2); color: #fff; }
.hqp-ctrl--play .hqp-icon-play { margin-left: 2px; }

.hqp-skip-label {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    color: inherit;
    pointer-events: none;
}

/* Seek */
.hqp-player-seek {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.hqp-time {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
    min-width: 38px;
}
.hqp-time--cur { text-align: right; color: #cbd5e1; }
.hqp-time--dur { text-align: left; }
.hqp-seek-track {
    position: relative;
    flex: 1;
    height: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.hqp-seek-track::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    transition: height .12s var(--hqp-ease);
}
.hqp-seek-track:hover::before { height: 6px; }
.hqp-seek-fill {
    position: absolute;
    left: 0;
    height: 4px;
    width: 0%;
    background: #22c55e;
    border-radius: 999px;
    pointer-events: none;
    transition: width .1s linear, height .12s var(--hqp-ease);
}
.hqp-seek-track:hover .hqp-seek-fill { height: 6px; }
.hqp-seek-dot {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 13px;
    height: 13px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s var(--hqp-ease), left .1s linear;
}
.hqp-seek-track:hover .hqp-seek-dot,
.hqp-seek-track:focus-visible .hqp-seek-dot { opacity: 1; }
.hqp-seek-track:focus-visible { outline: none; }

/* Extras: speed + volume + close */
.hqp-player-extras {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.hqp-ctrl--speed {
    width: auto;
    min-width: 40px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .07);
}
.hqp-ctrl--speed:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.hqp-ctrl--speed.hqp-speed-active { color: #22c55e; }

.hqp-player-vol { display: flex; align-items: center; gap: 4px; }
.hqp-ctrl--vol { border-radius: 50%; }
.hqp-vol-range {
    -webkit-appearance: none;
    appearance: none;
    width: 82px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    outline: none;
    cursor: pointer;
}
.hqp-vol-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}
.hqp-vol-range::-moz-range-thumb {
    width: 12px; height: 12px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.hqp-vol-range:focus-visible { box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px #22c55e; }

.hqp-ctrl--close { color: #64748b; }
.hqp-ctrl--close:hover { color: #f8fafc; background: rgba(239, 68, 68, .18); }

/* Keep page content clear of the docked bar */
body.hqp-player-active { padding-bottom: 82px; }

/* ════════════════════════════════════════════════════════════════
   THEME HARDENING
   The host theme (Woodmart/BuddyBoss) scopes button & input rules to
   containers (e.g. `.entry-content button`, specificity 0-0-1-1), which
   out-specifies our single-class controls and repaints them as generic
   form buttons — the play button turns into an empty white box. Re-assert
   the essentials under ID-scoped selectors (an ID dominates any theme
   class) so the controls render correctly inside any host theme.
   ════════════════════════════════════════════════════════════════ */

/* Player controls */
#hqp-player-bar .hqp-ctrl {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 8px;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    border-radius: 50%;
    color: #94a3b8;
    font: inherit;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    text-shadow: none;
    cursor: pointer;
}
#hqp-player-bar .hqp-ctrl:hover { background: rgba(255, 255, 255, .08); color: #f8fafc; }
#hqp-player-bar .hqp-ctrl--play {
    width: 42px; height: 42px; margin: 0 2px;
    background: var(--hqp-green); color: #fff; border-radius: 50%;
}
#hqp-player-bar .hqp-ctrl--play:hover { background: var(--hqp-green-2); color: #fff; }
#hqp-player-bar .hqp-ctrl--speed {
    width: auto; min-width: 40px; height: 30px; padding: 0 10px;
    border-radius: 999px; background: rgba(255, 255, 255, .07);
    color: #cbd5e1; font-size: 12px; font-weight: 700;
}
#hqp-player-bar .hqp-ctrl--speed:hover { background: rgba(255, 255, 255, .14); color: #fff; }
#hqp-player-bar .hqp-ctrl--speed.hqp-speed-active { color: #22c55e; }
#hqp-player-bar .hqp-ctrl--close { color: #64748b; border-radius: 50%; }
#hqp-player-bar .hqp-ctrl--close:hover { color: #f8fafc; background: rgba(239, 68, 68, .18); }
#hqp-player-bar .hqp-vol-range {
    -webkit-appearance: none; appearance: none;
    width: 82px; height: 4px; padding: 0; border: 0;
    border-radius: 999px; background: rgba(255, 255, 255, .14);
    box-shadow: none;
}

/* Grid / card / search buttons + inputs */
#hqp-podcast .hqp-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--hqp-r-btn);
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    font: 600 13.5px/1 inherit;
    cursor: pointer;
}
#hqp-podcast .hqp-btn--play { background: var(--hqp-green-tint); color: var(--hqp-green-2); }
#hqp-podcast .hqp-btn--play:hover:not(:disabled) { background: var(--hqp-green); color: #fff; }
#hqp-podcast .hqp-btn--play:disabled { background: var(--hqp-subtle); color: var(--hqp-faint); cursor: not-allowed; }
#hqp-podcast .hqp-btn--play.hqp-playing { background: var(--hqp-green); color: #fff; }
#hqp-podcast .hqp-btn--upgrade { background: transparent; color: var(--hqp-blue); border-color: var(--hqp-blue); }
#hqp-podcast .hqp-btn--upgrade:hover { background: var(--hqp-blue); color: #fff; }
#hqp-podcast .hqp-card__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 54px;
    height: 54px;
    background: var(--hqp-green); color: #fff; border: 0; border-radius: 50%;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .28); cursor: pointer; padding: 0;
    /* theme sets `position:relative` on buttons — force absolute so the play
       control stays centered on the artwork instead of being pushed off-edge */
}
#hqp-podcast .hqp-card__play:hover { background: var(--hqp-green-2); }

/* Artwork must cover the 16:10 box — the host theme's `img { max-width:100%;
   height:auto }` reset otherwise leaves the image at its natural ratio. */
#hqp-podcast .hqp-card__preview { overflow: hidden; }
#hqp-podcast .hqp-card__preview img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0;
}
#hqp-podcast .hqp-search-input {
    -webkit-appearance: none; appearance: none;
    height: auto; line-height: 1.4;
    padding: 11px 38px 11px 40px;
    border: 1px solid var(--hqp-border-2); border-radius: var(--hqp-r-input);
    background: var(--hqp-surface); color: var(--hqp-ink);
    box-shadow: none; text-transform: none; font: inherit; font-size: 14px;
}
#hqp-podcast .hqp-search-input:focus { outline: none; border-color: var(--hqp-green); box-shadow: 0 0 0 3px var(--hqp-green-tint); }
#hqp-podcast .hqp-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hqp-subtle); color: var(--hqp-muted);
    border: 0; border-radius: 50%; box-shadow: none; cursor: pointer;
    margin: 0; padding: 0;
    /* theme sets position:relative on buttons — force absolute so the × sits
       inside the field's right edge instead of being pushed outside */
}
#hqp-podcast .hqp-search-clear:hover { background: var(--hqp-border); color: var(--hqp-ink); }
#hqp-podcast .hqp-empty__reset { background: var(--hqp-surface); color: var(--hqp-text-2); border: 1px solid var(--hqp-border-2); box-shadow: none; text-transform: none; font: 600 13px/1 inherit; cursor: pointer; }
#hqp-podcast .hqp-empty__reset:hover { border-color: var(--hqp-green); color: var(--hqp-green); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hqp-player-now { width: 168px; }
    #hqp-player-bar .hqp-vol-range { width: 64px; }
}
@media (max-width: 768px) {
    .hqp-wrap { padding-top: 56px; }
    .hqp-header { align-items: flex-start; flex-direction: column; gap: 18px; }
    .hqp-search-form { width: 100%; }
    .hqp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

    .hqp-player-inner { flex-wrap: wrap; gap: 10px 14px; padding: 9px 14px; }
    .hqp-player-now { order: 1; width: auto; flex: 1; }
    .hqp-player-extras { order: 2; margin-left: auto; }
    .hqp-player-transport { order: 3; }
    .hqp-player-seek { order: 4; flex-basis: 100%; }
    .hqp-player-vol { display: none; }
    body.hqp-player-active { padding-bottom: 128px; }
}
@media (max-width: 480px) {
    .hqp-grid { grid-template-columns: 1fr; }
    .hqp-card__body { padding: 12px 12px 10px; }
    /* Keep desc visible so Read more can appear when clamped. */
    #hqp-player-bar .hqp-ctrl--speed { min-width: 36px; padding: 0 8px; }
    .hqp-time--dur { display: none; }
}

/* ── Episode detail modal (Read more) ─────────────────────────── */
.hqp-detail-modal {
    --hqp-surface:   #ffffff;
    --hqp-subtle:    #f1f5f9;
    --hqp-border:    #e5e7eb;
    --hqp-ink:       #0f172a;
    --hqp-text:      #1f2937;
    --hqp-muted:     #64748b;
    --hqp-green:     #16a34a;
    --hqp-r-card:    14px;
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.hqp-detail-modal[hidden] { display: none !important; }
.hqp-detail-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .48);
}
.hqp-detail-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(520px, 100%);
    max-height: min(86vh, 720px);
    overflow: hidden;
    background: var(--hqp-surface);
    border-radius: var(--hqp-r-card);
    border: 1px solid var(--hqp-border);
    box-shadow: 0 24px 64px rgba(15, 23, 42, .22);
}
/* Beat theme `button` rules (WoodMart min-height / square radius). */
#hqp-detail-modal .hqp-detail-modal__close {
    all: unset;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 3;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    font-size: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    overflow: hidden !important;
}
#hqp-detail-modal .hqp-detail-modal__close svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
    pointer-events: none;
}
#hqp-detail-modal .hqp-detail-modal__close:hover,
#hqp-detail-modal .hqp-detail-modal__close:focus {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06) !important;
}
#hqp-detail-modal .hqp-detail-modal__close:focus-visible {
    outline: 2px solid var(--hqp-green) !important;
    outline-offset: 2px !important;
}
.hqp-detail-modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.hqp-detail-modal__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--hqp-subtle);
    overflow: hidden;
}
.hqp-detail-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hqp-detail-modal__body { padding: 18px 20px 22px; }
.hqp-detail-modal__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hqp-ink);
}
.hqp-detail-modal__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--hqp-muted);
    white-space: pre-wrap;
}
@media (max-width: 480px) {
    .hqp-detail-modal { padding: 0; align-items: flex-end; }
    .hqp-detail-modal__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }
    .hqp-detail-modal__body { padding: 16px 16px 28px; }
    .hqp-detail-modal__title { font-size: 17px; }
}

/* ── Motion / a11y ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hqp-card,
    .hqp-card__play,
    .hqp-player-bar,
    .hqp-seek-fill,
    .hqp-seek-dot { transition: none !important; }
    .hqp-card:hover { transform: none; }
}

/* BuddyBoss pagination pseudo-number fix (inherited) */
.bb-rl-page-numbers::before { display: none; }
