/* ── CCRF Sermons Plugin Styles v1.3 ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --ccrf-primary:      #06677e;
    --ccrf-primary-dark: #004e5f;
    --ccrf-primary-light:#b5ebff;
    --ccrf-hero-bg:      #191c1d;
    --ccrf-bg:           #f8f9fa;
    --ccrf-surface:      #ffffff;
    --ccrf-border:       #bfc8cc;
    --ccrf-text:         #191c1d;
    --ccrf-muted:        #3f484c;
    --ccrf-scripture:    #735a36;
    --ccrf-radius-lg:    16px;
    --ccrf-radius-xl:    24px;
    --ccrf-shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
    --ccrf-shadow-hover: 0 4px 16px rgba(6,103,126,.15);
}

#ccrf-sermons-app * { box-sizing: border-box; }
#ccrf-sermons-app { font-family: 'Inter', sans-serif; color: var(--ccrf-text); }

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */
.ccrf-hero {
    position: relative;
    border-radius: var(--ccrf-radius-xl);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--ccrf-hero-bg);
    min-height: 280px;
}
.ccrf-hero-bg { position: absolute; inset: 0; }
.ccrf-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: grayscale(1); }
.ccrf-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, #191c1d 40%, rgba(25,28,29,.6) 70%, transparent);
}
.ccrf-hero-content {
    position: relative; z-index: 2;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.ccrf-hero-left { max-width: 600px; flex: 1; }
.ccrf-latest-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(6,103,126,.25);
    border: 1px solid rgba(6,103,126,.4);
    color: var(--ccrf-primary-light);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 10px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 12px;
}
.ccrf-hero-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -.02em;
}
.ccrf-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 20px; }
.ccrf-meta-item {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.75); font-size: 15px;
}
.ccrf-meta-item svg { width: 16px; height: 16px; color: var(--ccrf-primary-light); flex-shrink: 0; }
.ccrf-hero-actions { display: flex; align-items: center; gap: 20px; }
.ccrf-play-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--ccrf-primary); color: #fff;
    border: none; cursor: pointer; text-decoration: none;
    padding: 12px 24px; border-radius: 999px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: .05em;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(6,103,126,.35);
}
.ccrf-play-btn svg { width: 20px; height: 20px; }
.ccrf-play-btn:hover { transform: scale(1.04); color: #fff; background: #7EAFBD !important; }

/* Waveform */
.ccrf-waveform { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.ccrf-waveform span {
    width: 3px; background: rgba(181,235,255,.35);
    border-radius: 2px; animation: ccrf-wave 1.2s ease-in-out infinite;
}
.ccrf-waveform span:nth-child(1){height:8px;animation-delay:.0s}
.ccrf-waveform span:nth-child(2){height:18px;animation-delay:.15s}
.ccrf-waveform span:nth-child(3){height:22px;animation-delay:.3s}
.ccrf-waveform span:nth-child(4){height:12px;animation-delay:.45s}
.ccrf-waveform span:nth-child(5){height:20px;animation-delay:.2s}
.ccrf-waveform span:nth-child(6){height:16px;animation-delay:.35s}
.ccrf-waveform span:nth-child(7){height:10px;animation-delay:.5s}
@keyframes ccrf-wave {
    0%,100%{transform:scaleY(1)} 50%{transform:scaleY(1.8)}
}

/* Speaker Card in Hero */
.ccrf-hero-speaker-card {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--ccrf-radius-lg);
    padding: 20px; text-align: center;
    min-width: 180px; max-width: 220px;
    display: flex; flex-direction: column; align-items: center;
}
.ccrf-speaker-card-photo {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; border: 3px solid rgba(181,235,255,.3);
    margin-bottom: 10px;
}
.ccrf-speaker-card-name {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 2px;
}
.ccrf-speaker-card-role { color: rgba(255,255,255,.55); font-size: 11px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ccrf-speaker-card-btn {
    display: block; width: 100%; padding: 8px;
    border: 1px solid rgba(255,255,255,.2); border-radius: 8px;
    color: #fff; text-decoration: none; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    transition: background .15s; background: var(--ccrf-primary);
}
.ccrf-speaker-card-btn:hover { background: var(--ccrf-primary-dark); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   FILTERS
   ══════════════════════════════════════════════════════════════════════════ */
.ccrf-filters-wrap { position: sticky; top: 80px; z-index: 50; margin-bottom: 24px; }
.ccrf-filters {
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ccrf-border);
    border-radius: var(--ccrf-radius-lg);
    padding: 14px 20px;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    box-shadow: var(--ccrf-shadow);
}
.ccrf-filters-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccrf-filters-right { display: flex; align-items: center; gap: 14px; }
.ccrf-filter-label {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 10px; font-weight: 800;
    letter-spacing: .1em; color: var(--ccrf-muted);
}
.ccrf-filter-dropdown { position: relative; }
.ccrf-filter-btn {
    display: flex; align-items: center; gap: 4px;
    padding: 7px 14px; border-radius: 10px;
    background: #edeeef; border: 1px solid transparent;
    color: var(--ccrf-muted);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.ccrf-filter-btn svg { width: 16px; height: 16px; }
.ccrf-filter-btn:hover,.ccrf-filter-btn.active { background: #e1e3e4; color: var(--ccrf-primary); }
.ccrf-filter-btn.has-value { color: var(--ccrf-primary); border-color: var(--ccrf-primary); }
.ccrf-dropdown-panel {
    display: none; position: absolute; top: calc(100% + 8px); left: 0;
    background: #fff; border: 1px solid var(--ccrf-border);
    border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12);
    min-width: 200px; max-width: 280px; z-index: 200; overflow: hidden;
}
.ccrf-dropdown-panel.open { display: block; animation: ccrf-dropdown-in .15s ease; }
@keyframes ccrf-dropdown-in { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.ccrf-dropdown-inner { max-height: 260px; overflow-y: auto; padding: 6px; }
.ccrf-dropdown-item {
    display: block; width: 100%; padding: 8px 12px;
    text-align: left; background: none; border: none;
    border-radius: 8px; font-size: 13px; font-weight: 500;
    color: var(--ccrf-text); cursor: pointer; transition: background .1s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ccrf-dropdown-item:hover { background: #f3f4f5; }
.ccrf-dropdown-item.active { background: #edf4f7; color: var(--ccrf-primary); font-weight: 700; }
.ccrf-search-wrap { position: relative; display: flex; align-items: center; }
.ccrf-search-wrap svg { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--ccrf-muted); pointer-events: none; }
.ccrf-search-wrap input {
    padding: 7px 10px 7px 32px;
    border: 1px solid var(--ccrf-border); border-radius: 10px;
    font-size: 13px; color: var(--ccrf-text);
    background: #f3f4f5; width: 180px; transition: all .2s;
}
.ccrf-search-wrap input:focus { outline: none; border-color: var(--ccrf-primary); background: #fff; width: 220px; }
.ccrf-total-count { font-size: 13px; color: var(--ccrf-muted); white-space: nowrap; }
.ccrf-total-count strong { color: var(--ccrf-text); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   SERMON CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.ccrf-sermon-list { display: flex; flex-direction: column; gap: 12px; }
.ccrf-sermon-card {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--ccrf-surface);
    border: 1px solid var(--ccrf-border);
    border-radius: var(--ccrf-radius-lg);
    gap: 20px;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ccrf-sermon-card:hover {
    border-color: rgba(6,103,126,.4);
    box-shadow: var(--ccrf-shadow-hover);
    transform: translateY(-1px);
}
.ccrf-sermon-card-body { flex: 1; min-width: 0; }
.ccrf-sermon-date {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 10px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--ccrf-primary); margin-bottom: 6px;
}
.ccrf-sermon-title {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--ccrf-text); margin: 0 0 10px;
    line-height: 1.3; transition: color .15s;
    text-decoration: none; display: block;
}
.ccrf-sermon-card:hover .ccrf-sermon-title { color: var(--ccrf-primary); }
.ccrf-sermon-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.ccrf-tag { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ccrf-muted); }
.ccrf-tag svg { width: 14px; height: 14px; flex-shrink: 0; }
.ccrf-tag-scripture { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ccrf-scripture); }
.ccrf-tag-scripture svg { color: var(--ccrf-scripture); }
.ccrf-sermon-card-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ccrf-listen-btn {
    display: flex; align-items: center; gap: 6px;
    background: var(--ccrf-primary); color: #fff;
    border: none; cursor: pointer;
    padding: 10px 20px; border-radius: 12px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 13px; font-weight: 700;
    transition: opacity .15s, transform .15s; text-decoration: none;
}
.ccrf-listen-btn svg { width: 18px; height: 18px; }
.ccrf-listen-btn:hover { background: #7EAFBD !important; opacity: 1; transform: scale(1.02); color: #fff; }
.ccrf-listen-btn:active { transform: scale(.97); }
.ccrf-listen-btn.no-audio { background: #edeeef; color: #999; cursor: default; }
.ccrf-download-btn {
    display: flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--ccrf-border);
    color: var(--ccrf-muted); cursor: pointer;
    padding: 10px 18px; border-radius: 12px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 13px; font-weight: 600;
    transition: all .15s; text-decoration: none;
}
.ccrf-download-btn svg { width: 16px; height: 16px; }
.ccrf-download-btn:hover { background: #f3f4f5; border-color: #aaa; color: var(--ccrf-text); }

/* ══════════════════════════════════════════════════════════════════════════
   EMPTY / LOADING / PAGINATION
   ══════════════════════════════════════════════════════════════════════════ */
.ccrf-empty { text-align: center; padding: 60px 24px; color: var(--ccrf-muted); }
.ccrf-empty svg { width: 40px; height: 40px; opacity: .3; margin: 0 auto 14px; display: block; }
.ccrf-empty h3 { font-family:'Hanken Grotesk',sans-serif; font-size: 18px; margin: 0 0 6px; color: var(--ccrf-text); }
.ccrf-empty p { font-size: 13px; margin: 0; }
.ccrf-loading { display: flex; justify-content: center; padding: 40px; }
.ccrf-spinner {
    width: 32px; height: 32px; border: 3px solid #edeeef;
    border-top-color: var(--ccrf-primary); border-radius: 50%;
    animation: ccrf-spin .7s linear infinite;
}
@keyframes ccrf-spin { to{transform:rotate(360deg)} }
.ccrf-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.ccrf-page-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--ccrf-border);
    background: none; color: var(--ccrf-muted);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.ccrf-page-btn:hover { background: var(--ccrf-primary); color: #fff; border-color: transparent; }
.ccrf-page-btn.active { background: var(--ccrf-primary); color: #fff; border-color: transparent; }
.ccrf-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.ccrf-page-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE — ARCHIVE PAGE  ≤ 768px
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Hero — dark rounded card, stacked */
    .ccrf-hero { border-radius: 20px; min-height: auto; margin-bottom: 16px; }
    .ccrf-hero-content { padding: 24px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
    .ccrf-hero-overlay { background: linear-gradient(to bottom, rgba(25,28,29,.85) 0%, rgba(25,28,29,.95) 100%); }
    .ccrf-latest-badge { margin-bottom: 8px; }
    .ccrf-hero-title { font-size: 26px; margin-bottom: 10px; }
    .ccrf-hero-meta { gap: 4px 14px; margin-bottom: 14px; }
    .ccrf-meta-item { font-size: 13px; }
    .ccrf-hero-actions { flex-direction: row; align-items: center; gap: 14px; }
    .ccrf-play-btn { padding: 10px 20px; font-size: 12px; }

    /* Speaker card — horizontal inside hero on mobile */
    .ccrf-hero-speaker-card {
        flex-direction: row; text-align: left;
        min-width: unset; max-width: 100%; width: 100%;
        padding: 14px 16px; gap: 12px;
        background: rgba(255,255,255,.08);
        align-items: center;
    }
    .ccrf-speaker-card-photo { width: 52px; height: 52px; margin-bottom: 0; flex-shrink: 0; }
    .ccrf-speaker-card-info { flex: 1; }
    .ccrf-speaker-card-name { font-size: 14px; }
    .ccrf-speaker-card-role { margin-bottom: 6px; }
    .ccrf-speaker-card-btn { width: auto; padding: 6px 14px; font-size: 10px; }

    /* Filters — horizontal scroll, no wrap */
    .ccrf-filters-wrap { position: static; margin-bottom: 14px; }
    .ccrf-filters {
        padding: 12px 14px; flex-direction: column;
        align-items: stretch; gap: 10px;
        border-radius: 14px;
    }
    .ccrf-filters-left { gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
    .ccrf-filter-label { display: none; }
    .ccrf-filter-btn { font-size: 12px; padding: 6px 12px; white-space: nowrap; }
    .ccrf-filters-right { justify-content: space-between; }
    .ccrf-search-wrap input { width: 140px; }
    .ccrf-search-wrap input:focus { width: 160px; }

    /* Sermon cards — stacked full width */
    .ccrf-sermon-list { gap: 10px; }
    .ccrf-sermon-card {
        flex-direction: column; align-items: flex-start;
        padding: 16px; gap: 14px; border-radius: 14px;
    }
    .ccrf-sermon-title { font-size: 18px; }
    .ccrf-sermon-card-actions { width: 100%; gap: 8px; }
    .ccrf-listen-btn { flex: 1; justify-content: center; padding: 10px; }
    .ccrf-download-btn { flex: 1; justify-content: center; padding: 10px; }

    /* Pagination */
    .ccrf-pagination { gap: 4px; margin-top: 24px; }
    .ccrf-page-btn { width: 36px; height: 36px; font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE SERMON PLAYER
   ══════════════════════════════════════════════════════════════════════════ */
.ccrf-single-wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 32px 24px 80px;
    font-family: 'Inter', sans-serif;
}
.ccrf-back-nav { margin-bottom: 28px; }
.ccrf-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ccrf-primary);
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 11px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
    text-decoration: none; transition: transform .15s;
}
.ccrf-back-link svg { width: 18px; height: 18px; }
.ccrf-back-link:hover { transform: translateX(-4px); color: var(--ccrf-primary); }
.ccrf-single-grid {
    display: grid; grid-template-columns: 1fr 300px;
    gap: 36px; align-items: start;
}
/* Header */
.ccrf-single-header { margin-bottom: 24px; }
.ccrf-single-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ccrf-badge { padding: 4px 12px; border-radius: 8px; font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ccrf-badge-series { background: #e9e0e1; color: #696364; }
.ccrf-badge-date { border: 1px solid var(--ccrf-border); color: var(--ccrf-muted); background: transparent; }
.ccrf-single-title { font-family: 'Hanken Grotesk', sans-serif; font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--ccrf-text); line-height: 1.15; margin: 0 0 14px; }
.ccrf-single-scripture { display: inline-flex; align-items: center; gap: 6px; color: var(--ccrf-primary); font-size: 13px; font-weight: 600; }
.ccrf-single-scripture svg { width: 16px; height: 16px; }
/* Player card */
.ccrf-player-card { background: #fff; border: 1px solid var(--ccrf-border); border-radius: var(--ccrf-radius-lg); padding: 24px 28px; box-shadow: var(--ccrf-shadow); margin-bottom: 20px; }
.ccrf-progress-section { margin-bottom: 20px; }
.ccrf-progress-track { position: relative; height: 6px; background: #e1e3e4; border-radius: 3px; cursor: pointer; margin-bottom: 8px; }
.ccrf-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ccrf-primary); border-radius: 3px; pointer-events: none; width: 0; transition: width .1s linear; }
.ccrf-progress-thumb { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 14px; height: 14px; background: var(--ccrf-primary); border-radius: 50%; pointer-events: none; left: 0; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: left .1s linear; }
.ccrf-time-row { display: flex; justify-content: space-between; font-family: 'Hanken Grotesk', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--ccrf-muted); }
.ccrf-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ccrf-controls-left { display: flex; align-items: center; gap: 16px; }
.ccrf-controls-right { display: flex; align-items: center; gap: 12px; }
.ccrf-ctrl-btn { background: none; border: none; cursor: pointer; color: var(--ccrf-muted); padding: 4px; transition: color .15s; }
.ccrf-ctrl-btn svg { width: 26px; height: 26px; display: block; }
.ccrf-ctrl-btn:hover { color: var(--ccrf-primary); }
.ccrf-play-pause { width: 58px; height: 58px; background: var(--ccrf-primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s, box-shadow .15s; box-shadow: 0 4px 14px rgba(6,103,126,.3); flex-shrink: 0; }
.ccrf-play-pause svg { width: 32px; height: 32px; }
.ccrf-play-pause:hover { transform: scale(1.07); background: #7EAFBD !important; }
.ccrf-play-pause:active { transform: scale(.95); }
.ccrf-volume-wrap { display: flex; align-items: center; gap: 6px; }
.ccrf-volume-wrap svg { width: 18px; height: 18px; color: var(--ccrf-muted); }
.ccrf-volume-slider { width: 70px; height: 4px; -webkit-appearance: none; appearance: none; background: #e1e3e4; border-radius: 2px; cursor: pointer; }
.ccrf-volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ccrf-primary); cursor: pointer; }
.ccrf-speed-btn { padding: 5px 10px; border: 1px solid var(--ccrf-border); border-radius: 8px; background: none; font-family: 'Hanken Grotesk', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ccrf-muted); cursor: pointer; transition: all .15s; }
.ccrf-speed-btn:hover { background: #f3f4f5; color: var(--ccrf-text); }
/* Action buttons */
.ccrf-action-btns { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.ccrf-action-btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; border-radius: 10px; font-family: 'Hanken Grotesk', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .15s; }
.ccrf-action-btn svg { width: 16px; height: 16px; }
.ccrf-action-primary { background: var(--ccrf-primary); color: #fff !important; border: none; }
.ccrf-action-primary:hover { background: #7EAFBD !important; opacity: 1; color: #fff !important; }
.ccrf-action-secondary { background: none; border: 1px solid var(--ccrf-primary); color: var(--ccrf-primary); }
.ccrf-action-secondary:hover { background: rgba(6,103,126,.06); }
/* No audio */
.ccrf-no-audio { text-align: center; padding: 36px 24px; color: var(--ccrf-muted); }
.ccrf-no-audio svg { width: 36px; height: 36px; margin: 0 auto 10px; display: block; opacity: .3; }
.ccrf-no-audio p { margin: 0; font-size: 13px; }
/* Related */
.ccrf-related { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--ccrf-border); }
.ccrf-related-title { font-family: 'Hanken Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--ccrf-text); margin: 0 0 16px; }
.ccrf-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ccrf-related-card { display: block; padding: 16px 20px; background: #f3f4f5; border: 1px solid var(--ccrf-border); border-radius: 14px; text-decoration: none; transition: all .2s; }
.ccrf-related-card:hover { background: #e7e8e9; transform: translateY(-2px); border-color: rgba(6,103,126,.3); }
.ccrf-related-series { font-family: 'Hanken Grotesk', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--ccrf-primary); margin: 0 0 6px; }
.ccrf-related-card-title { font-family: 'Hanken Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--ccrf-text); margin: 0 0 6px; line-height: 1.3; transition: color .15s; }
.ccrf-related-card:hover .ccrf-related-card-title { color: var(--ccrf-primary); }
.ccrf-related-date { font-size: 12px; color: var(--ccrf-muted); margin: 0; }
/* Speaker card — single */
.ccrf-speaker-card-single { background: #fff; border: 1px solid var(--ccrf-border); border-radius: var(--ccrf-radius-lg); overflow: hidden; box-shadow: var(--ccrf-shadow); }
.ccrf-speaker-photo-wrap { aspect-ratio: 1; overflow: hidden; }
.ccrf-speaker-photo-full { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccrf-speaker-info { padding: 20px; }
.ccrf-speaker-label { font-family: 'Hanken Grotesk', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--ccrf-primary); margin: 0 0 4px; }
.ccrf-speaker-name { font-family: 'Hanken Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--ccrf-text); margin: 0 0 2px; }
.ccrf-speaker-role { font-size: 13px; color: var(--ccrf-primary); font-weight: 600; margin: 0 0 10px; }
.ccrf-speaker-desc { font-size: 13px; color: var(--ccrf-muted); line-height: 1.6; margin: 0 0 16px; }
.ccrf-speaker-bio-btn { display: block; width: 100%; padding: 9px; background: #f3f4f5; border: none; border-radius: 8px; text-align: center; cursor: pointer; font-family: 'Hanken Grotesk', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ccrf-text); text-decoration: none; transition: background .15s; }
.ccrf-speaker-bio-btn:hover { background: #e1e3e4; color: var(--ccrf-text); }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE — SINGLE SERMON PAGE  ≤ 768px
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Single page: stack sidebar ABOVE main content on mobile */
    .ccrf-single-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ccrf-single-sidebar { order: -1; }

    /* Speaker card on mobile — horizontal not square */
    .ccrf-speaker-card-single { display: flex; flex-direction: row; overflow: hidden; }
    .ccrf-speaker-photo-wrap { width: 110px; height: 110px; flex-shrink: 0; aspect-ratio: unset; }
    .ccrf-speaker-info { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
    .ccrf-speaker-name { font-size: 17px; }
    .ccrf-speaker-desc { display: none; } /* hide long bio on mobile, save space */

    .ccrf-single-wrap { padding: 20px 16px 60px; }
    .ccrf-back-nav { margin-bottom: 16px; }
    .ccrf-single-title { font-size: 24px; }
    .ccrf-player-card { padding: 16px 18px; }
    .ccrf-play-pause { width: 52px; height: 52px; }
    .ccrf-play-pause svg { width: 28px; height: 28px; }
    .ccrf-volume-wrap { display: none; } /* hide volume on small screens */
    .ccrf-action-btns { gap: 8px; }
    .ccrf-action-btn { flex: 1; justify-content: center; padding: 10px 16px; font-size: 12px; }
    .ccrf-related-grid { grid-template-columns: 1fr; }

    /* Related messages — horizontal card style on mobile */
    .ccrf-related-card {
        display: flex; align-items: center; gap: 14px;
        padding: 12px 14px;
    }
    .ccrf-related-card-icon {
        width: 44px; height: 44px; flex-shrink: 0;
        background: rgba(6,103,126,.1); border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
    }
    .ccrf-related-card-icon svg { width: 22px; height: 22px; color: var(--ccrf-primary); }
    .ccrf-related-card-body { flex: 1; min-width: 0; }
    .ccrf-related-series { margin-bottom: 3px; }
    .ccrf-related-card-title { font-size: 14px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 480px) {
    .ccrf-single-wrap { padding: 16px 14px 60px; }
    .ccrf-single-title { font-size: 22px; }
    .ccrf-hero-title { font-size: 22px; }
    .ccrf-hero-content { padding: 20px 16px; }
}

/* ── Related card icon: hidden on desktop, visible on mobile only ──────── */
.ccrf-related-card-icon { display: none; }
.ccrf-related-card-body { flex: 1; }

@media (max-width: 900px) {
    /* Show icon on mobile */
    .ccrf-related-card-icon {
        display: flex;
        width: 44px; height: 44px; flex-shrink: 0;
        background: rgba(6,103,126,.1); border-radius: 10px;
        align-items: center; justify-content: center;
    }
    .ccrf-related-card-icon svg { width: 22px; height: 22px; color: var(--ccrf-primary); }
    /* Related grid — single column on mobile */
    .ccrf-related-grid { grid-template-columns: 1fr; }
    .ccrf-related-card {
        display: flex; align-items: center; gap: 14px; padding: 12px 14px;
    }
    .ccrf-related-series { margin-bottom: 3px; }
    .ccrf-related-card-title { font-size: 14px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ── Custom overrides ────────────────────────────────────────────────────── */
.ccrf-sermon-list .ccrf-sermon-card { margin-bottom: 20px; }

#ccrf-sermons-app a,
#ccrf-sermons-app a:hover,
#ccrf-sermons-app a:focus,
#ccrf-sermons-app a:visited,
#ccrf-sermons-app a:active,
.ccrf-single-wrap a,
.ccrf-single-wrap a:hover,
.ccrf-single-wrap a:focus,
.ccrf-single-wrap a:visited,
.ccrf-single-wrap a:active { text-decoration: none !important; }

.ccrf-play-btn { color: #ffffff !important; }

.ccrf-speaker-card-btn {
    background-color: #7EAFBD !important;
    color: #ffffff !important;
}
.ccrf-speaker-card-photo {
    width: 90px !important; height: 90px !important;
    border-radius: 50% !important; overflow: hidden !important;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .ccrf-speaker-card-btn {
        display: inline-flex !important;
        width: auto !important;
        max-width: max-content !important;
        align-self: flex-start !important;
        padding: 8px 16px !important;
    }
    .ccrf-speaker-card-photo img {
        width: 100% !important; height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important; display: block;
    }
    .ccrf-action-btn.ccrf-action-primary { color: #ffffff !important; }
    .ccrf-play-pause,
    .ccrf-ctrl-btn.ccrf-play-pause {
        background-color: #7EAFBD !important;
        color: #ffffff !important;
        border-color: #7EAFBD !important;
    }
    .ccrf-speaker-photo-wrap {
        width: 110px !important; height: 110px !important;
        min-width: 110px !important;
        border-radius: 50% !important; overflow: hidden !important;
    }
    .ccrf-speaker-photo-wrap img {
        width: 100% !important; height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important; display: block;
    }
}
