.hts-sermons-archive,
.hts-latest-sermon {
    --hts-sermon-purple: #8589c5;
    --hts-sermon-blue: #9fd8ed;
    --hts-sermon-ink: #24242a;
    --hts-sermon-muted: #65656d;
    --hts-sermon-line: #e5e5ea;
    --hts-sermon-cream: #faf8f3;
}

.hts-sermon-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) max-content max-content;
    gap: 12px;
    align-items: end;
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid var(--hts-sermon-line);
    border-radius: 12px;
    background: #fff;
}

.hts-sermon-filters label {
    min-width: 0;
    display: grid;
    gap: 6px;
    font-size: .8rem;
    font-weight: 700;
}

.hts-sermon-filters input,
.hts-sermon-filters select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfcfd6;
    border-radius: 7px;
    padding: 8px 10px;
    background: #fff;
    color: var(--hts-sermon-ink);
    font: inherit;
}

.hts-sermon-filters button,
.hts-sermon-clear {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    text-decoration: none;
}

.hts-sermon-filters button {
    border: 0;
    background: var(--hts-sermon-purple);
    color: #fff;
    cursor: pointer;
}

.hts-sermon-clear {
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box;
    align-self: end;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid var(--hts-sermon-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--hts-sermon-ink) !important;
    font-size: .95rem !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.hts-sermon-clear:hover,
.hts-sermon-clear:focus {
    border-color: var(--hts-sermon-purple) !important;
    color: var(--hts-sermon-purple) !important;
}

.hts-sermon-list {
    display: grid;
    gap: 16px;
}

.hts-sermon-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--hts-sermon-line);
    border-left: 5px solid var(--hts-sermon-purple);
    border-radius: 12px;
    background: #fff;
}

.hts-sermon-card.is-featured {
    background: linear-gradient(135deg, #fff, var(--hts-sermon-cream));
}

.hts-sermon-date {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--hts-sermon-muted);
    font-size: .78rem;
    line-height: 1.2;
}

.hts-sermon-day {
    display: block;
    color: var(--hts-sermon-purple);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}

.hts-sermon-year {
    display: block;
    margin-top: 2px;
    font-size: .7rem;
}

.hts-sermon-body h3 {
    margin: 0 0 6px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.2;
}

.hts-sermon-body h3 a {
    color: var(--hts-sermon-ink);
    text-decoration: none;
}

.hts-sermon-body h3 a:hover {
    color: var(--hts-sermon-purple);
}

.hts-sermon-meta,
.hts-sermon-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--hts-sermon-muted);
    font-size: .92rem;
    margin-bottom: 14px;
}

.hts-sermon-meta span + span::before,
.hts-sermon-single-meta span + span::before {
    content: '•';
    margin-right: 16px;
    color: #aaaab2;
}

.hts-sermon-meta .hts-sermon-series,
.hts-sermon-single-meta .hts-sermon-series {
    color: var(--hts-sermon-purple);
}

.hts-sermon-meta .hts-sermon-series strong,
.hts-sermon-single-meta .hts-sermon-series strong {
    font-weight: 800;
}

.hts-sermon-series a {
    color: var(--hts-sermon-purple);
    font-weight: 600;
    text-decoration: none;
}

.hts-sermon-series a:hover,
.hts-sermon-series a:focus {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hts-sermon-card audio,
.hts-sermon-player audio {
    display: block;
    width: 100%;
    max-width: 720px;
    height: 42px;
}

.hts-sermon-no-audio,
.hts-sermon-empty {
    margin: 0;
    color: var(--hts-sermon-muted);
}

.hts-sermon-single-meta {
    margin: 0 0 18px;
}

.hts-sermon-player {
    margin: 0 0 28px;
}

.hts-sermon-browse {
    margin: 14px 0 0;
    font-weight: 700;
}

.hts-sermon-browse a {
    color: var(--hts-sermon-purple);
}

.hts-sermon-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hts-sermon-pagination a {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hts-sermon-line);
    border-radius: 999px;
    text-decoration: none;
}

.hts-sermon-pagination a.is-current {
    background: var(--hts-sermon-purple);
    border-color: var(--hts-sermon-purple);
    color: #fff;
}

@media (max-width: 900px) {
    .hts-sermon-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .hts-sermon-filters {
        grid-template-columns: 1fr;
    }

    .hts-sermon-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .hts-sermon-day {
        font-size: 1.65rem;
    }

    .hts-sermon-meta span {
        width: 100%;
    }

    .hts-sermon-meta span + span::before,
    .hts-sermon-single-meta span + span::before {
        content: none;
        margin: 0;
    }
}

.hts-podcast-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 0 0 28px;
    padding: 20px;
    border: 1px solid var(--hts-sermon-line);
    border-left: 5px solid var(--hts-sermon-blue);
    border-radius: 12px;
    background: linear-gradient(135deg, #fbfdfe 0%, #f6f2fb 100%);
}

.hts-podcast-mark {
    position: relative;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--hts-sermon-line);
    overflow: hidden;
}

.hts-podcast-mark span {
    position: absolute;
    left: 13px;
    bottom: 13px;
    border: 3px solid var(--hts-sermon-purple);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 100% 0 0 0;
    transform: rotate(-45deg);
    transform-origin: left bottom;
}

.hts-podcast-mark span:nth-child(1) {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    background: var(--hts-sermon-purple);
    transform: none;
}

.hts-podcast-mark span:nth-child(2) {
    width: 19px;
    height: 19px;
}

.hts-podcast-mark span:nth-child(3) {
    width: 31px;
    height: 31px;
}

.hts-podcast-copy {
    min-width: 0;
}

.hts-podcast-kicker {
    display: block;
    margin: 0 0 2px;
    color: var(--hts-sermon-purple);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hts-podcast-copy strong {
    display: block;
    color: var(--hts-sermon-ink);
    font-size: 1.08rem;
    line-height: 1.25;
}

.hts-podcast-copy p {
    margin: 4px 0 0;
    color: var(--hts-sermon-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.hts-podcast-copy .hts-podcast-help {
    margin-top: 9px;
    font-size: .82rem;
}

.hts-podcast-feed-url {
    display: block;
    max-width: 100%;
    margin-top: 6px;
    padding: 5px 8px;
    overflow-wrap: anywhere;
    border: 1px solid var(--hts-sermon-line);
    border-radius: 6px;
    background: rgba(255,255,255,.72);
    color: var(--hts-sermon-ink);
    font-size: .78rem;
    line-height: 1.35;
}

.hts-podcast-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    min-width: 168px;
}

.hts-podcast-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--hts-sermon-purple);
    color: #fff !important;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
}

.hts-podcast-button:hover,
.hts-podcast-button:focus {
    filter: brightness(.94);
}

.hts-podcast-copy-status {
    min-height: 1.15em;
    color: var(--hts-sermon-purple);
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
}

.hts-podcast-raw-link {
    color: var(--hts-sermon-muted);
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hts-podcast-raw-link:hover,
.hts-podcast-raw-link:focus {
    color: var(--hts-sermon-purple);
}

.hts-sermon-attachment {
    display: grid;
    gap: 3px;
    margin: 11px 0 0;
}

.hts-sermon-attachment a {
    color: var(--hts-sermon-purple);
    font-weight: 800;
    text-decoration: none;
}

.hts-sermon-attachment a:hover,
.hts-sermon-attachment a:focus {
    text-decoration: underline;
}

.hts-sermon-attachment small {
    color: var(--hts-sermon-muted);
    font-size: .78rem;
}

@media (max-width: 760px) {
    .hts-podcast-callout {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
    }

    .hts-podcast-actions {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .hts-podcast-button {
        width: 100%;
    }
}
