/* =====================================================================
 * Podcasts System — shared styles across Main, Series, Episode.
 * Framework classes handle spacing, typography, buttons, grid, flex.
 * Custom CSS below covers: cover-art frame, waveform player UI,
 * episode rows, pills, chips, and the navy CTA accent.
 * Colors use theme tokens; per-show accent is set inline via *style.
 * Font weight and text dimming via opacity are intentionally absent —
 * weight + color belong to the framework font-declaration system.
 * ===================================================================== */

.pcst-sys {

/* ---------- EYEBROW ----------
 * Typography (font-family/weight/size/letter-spacing/case) is delegated to
 * a framework heading class — apply `fnt_t-4` alongside `eyebrow` on the
 * element. This rule only handles the link color and the decorative
 * leading dash. (Avoid `fnt_t-k` — its theme decoration looks wrong here.)
 */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.875em;
    color: var(--link-color);
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    background: var(--link-color);
    flex-shrink: 0;
}

/* ---------- DOT SEPARATOR ---------- */
.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: hsl(from var(--text-color) h s l / 0.3);
    flex-shrink: 0;
}

/* ---------- SHOW LINK + SWATCH ---------- */
.swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
}

.show-link {
    text-decoration: none;
    color: inherit;
}

.show-link:hover {
    opacity: 0.7;
}

.rule {
    height: 0;
}

/* ---------- COVER ART ---------- */
.cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--accent);
}

.cover-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, transparent 50%, hsl(from var(--text-color) h s l / 0.45) 100%);
    transition: background 0.2s;
}

.cover--sm {
    width: 80px;
}

.cover--md {
    width: 120px;
}

.cover--row {
    width: 72px;
}

@media (max-width: 768px) {
    .cover--md {
        width: 80px;
    }
    .cover--row {
        width: 64px;
    }
}

/* Typography from `fnt_t-4`; bg + color from `.bg-bx ulk-bg` in HTML. */
.badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.625em 1em;
    z-index: 2;
}

/* ---------- PLAY BUTTON ---------- */
.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: var(--text-alt);
    box-shadow: 0 10px 30px hsl(from var(--text-color) h s l / 0.4);
    transition: transform 0.2s, background 0.3s;
}

.play-btn--lg {
    width: 90px;
    height: 90px;
}

.play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

a:hover > .cover .play-btn,
a:hover > * > .cover .play-btn {
    transform: scale(1.05);
}

/* ---------- META STRIP ---------- */
.meta-strip {
    list-style: none;
    padding-inline: 0;
}

.meta-item {
    flex: 0 0 auto;
    min-width: 8em;
}

/* `.meta-label` typography delegated to kicker — apply
   `fnt_t-4` alongside `meta-label`. */
.meta-label {
    color: hsl(from var(--text-color) h s l / 0.6);
    margin-bottom: 0.3em;
}

.meta-value {
    font-size: 1.125rem;
    letter-spacing: -0.005em;
    margin: 0;
}

/* ---------- WAVEFORM PLAYER ---------- */
.waveform {
    display: flex;
    align-items: center;
    gap: 0.875em;
}

.wf-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    color: var(--text-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 14px hsl(from var(--link-color) h s l / 0.35);
}

.wf-play:hover {
    transform: scale(1.04);
}

.wf-play svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.waveform--lg .wf-play svg {
    width: 24px;
    height: 24px;
}

.wf-play svg,
.wf-play svg *,
.play-btn svg,
.play-btn svg * {
    fill: currentColor;
}

.waveform--lg .wf-play {
    width: 60px;
    height: 60px;
}

.wf-track {
    flex: 1 1 auto;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    min-width: 0;
}

.waveform--lg .wf-track {
    height: 48px;
}

.wf-bar {
    flex: 1 1 0;
    min-width: 1px;
    border-radius: 1px;
    background: hsl(from var(--text-color) h s l / 0.25);
    transition: background 0.15s;
}

.wf-bar.is-played {
    background: var(--text-color);
}

.wf-time {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.waveform--lg .wf-time {
    font-size: 0.875rem;
}

/* ---------- ARCHIVE: SEARCH + FILTERS ---------- */
.search {
    position: relative;
    display: block;
}

.search-input {
    width: 100%;
    padding: 0.875em 1em 0.875em 2.75em;
    border: 1.5px solid var(--bdr-clr);
    background: var(--main-bg);
    color: var(--text-color);
    font: inherit;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus-visible {
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px hsl(from var(--link-color) h s l / 0.15);
}

.search::before {
    content: "";
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-repeat: no-repeat;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 0.75em;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: var(--buttons);
    color: var(--btn-pry-txt);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    padding: 0;
}

.search-clear.is-visible {
    display: inline-flex;
}

/* `.filter-label` typography delegated to kicker — apply
   `fnt_t-4` alongside `filter-label`. */
.filter-label {
    color: hsl(from var(--text-color) h s l / 0.6);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.45em 0.85em;
    background: var(--main-bg);
    color: var(--text-color);
    border: 1.5px solid var(--bdr-clr);
    border-radius: 2px;
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.chip:hover {
    border-color: var(--text-color);
}

.chip.active {
    background: var(--text-color);
    color: var(--main-bg);
    border-color: var(--text-color);
}

.chip-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

/* ---------- EPISODE LIST ROW ---------- */
.ep-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ep-row {
    border-bottom: 1px solid var(--bdr-clr);
    transition: background 0.15s;
}

.ep-row[hidden] {
    display: none;
}

.ep-row:hover {
    background: hsl(from var(--bdr-clr) h s l / 0.3);
}

.ep-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 130px 90px 44px;
    gap: 1.25em;
    align-items: center;
    padding: 1.25em 0.5em;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .ep-link {
        grid-template-columns: 64px 1fr auto;
        gap: 0.875em;
        padding: 1em 0;
    }
    .ep-date,
    .ep-len {
        display: none;
    }
}

/* `.show-tag` typography delegated to kicker — apply
   `fnt_t-4` alongside `show-tag`. */

.ep-title {
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-mobile-meta {
    display: none;
    gap: 0.625em;
    align-items: center;
}

@media (max-width: 768px) {
    .ep-mobile-meta {
        display: flex;
    }
}

.ep-len {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.ep-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ep-link:hover .ep-play {
    background: var(--buttons);
    border-color: var(--buttons);
    color: var(--text-alt);
}

.ep-play svg {
    width: 12px;
    height: 12px;
    margin-left: 2px;
}

.empty {
    text-align: center;
    border-style: dashed;
    background: hsl(from var(--bdr-clr) h s l / 0.25);
}

/* ---------- CTA BLOCK ---------- */
.cta {
    position: relative;
    overflow: hidden;
}

.cta::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--link-color);
}

/* `.cta-eyebrow` typography delegated to kicker — apply
   `fnt_t-4` alongside `cta-eyebrow`. */
.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    color: hsl(from var(--link-color) h s l / 0.9);
}

.cta-eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    background: var(--link-color);
    flex-shrink: 0;
}

.cta-title {
    max-width: 22ch;
    letter-spacing: -0.015em;
}

.cta-desc {
    max-width: 54ch;
}

}
