/* Connexions Sermons Player v2.0.0 */
.cxs, .cxs-bar {
  --cxs-accent: #C8102E;
  --cxs-ink: #0B0B0F;
  --cxs-muted: #5A6072;
  --cxs-body: #3E4456;
  --cxs-soft: #F2F4F8;
  --cxs-line: #DDE1EA;
  --cxs-display: 'Archivo', 'Arial Narrow', sans-serif;
  --cxs-text: 'DM Sans', system-ui, sans-serif;
  font-family: var(--cxs-text);
  color: var(--cxs-ink);
  box-sizing: border-box;
}
.cxs *, .cxs-bar * { box-sizing: border-box; }
.cxs svg, .cxs-bar svg { width: 1em; height: 1em; display: block; }
.cxs-loading, .cxs--empty p { padding: 48px 0; color: var(--cxs-muted); font-size: 17px; }
.cxs--empty a { color: var(--cxs-accent); }

/* Shared bits */
.cxs-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cxs-accent); }
.cxs-meta { font-size: 15px; color: var(--cxs-muted); }
.cxs-badge { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--cxs-accent); color: #fff; }
.cxs-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 16px/1 var(--cxs-text); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.cxs-btn:hover { transform: translateY(-2px); }
.cxs-btn svg { width: 18px; height: 18px; }
.cxs-btn--primary { background: var(--cxs-ink); color: #fff; }
.cxs-btn--ghost { background: #fff; color: var(--cxs-ink); border-color: #fff; }
.cxs-btn--outline { background: transparent; color: var(--cxs-ink); border-color: var(--cxs-ink); }
.cxs-btn:focus-visible, .cxs-chip:focus-visible, .cxs-icon:focus-visible, .cxs-speed:focus-visible, .cxs-card__play:focus-visible { outline: 3px solid var(--cxs-accent); outline-offset: 3px; }

/* Featured */
.cxs-feature { display: flex; flex-wrap: wrap; gap: 0; border-radius: 36px; overflow: hidden; background: var(--cxs-ink); color: #fff; }
.cxs-feature__art { flex: 1 1 380px; min-width: 0; aspect-ratio: 1 / 1; max-height: 520px; object-fit: cover; display: block; }
.cxs-feature__body { flex: 1.3 1 420px; min-width: 0; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.cxs-feature .cxs-eyebrow { color: #FFB3BE; }
.cxs-feature .cxs-meta { color: #C9CDD8; }
.cxs-feature__title { margin: 0; font-family: var(--cxs-display); font-stretch: 65%; font-weight: 900; font-size: clamp(48px, 7vw, 104px); line-height: .88; text-transform: uppercase; color: #fff; }
.cxs-feature__summary { margin: 0; font-size: 18px; line-height: 1.6; color: #D7DAE2; max-width: 560px; }
.cxs-feature .cxs-btn--primary { background: var(--cxs-accent); }
.cxs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Toolbar */
.cxs-toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin: 56px 0 28px; }
.cxs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cxs-chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--cxs-soft); color: var(--cxs-ink); font: 700 15px/1 var(--cxs-text); cursor: pointer; }
.cxs-chip[aria-pressed="true"] { background: var(--cxs-ink); color: #fff; }
.cxs-search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--cxs-soft); color: var(--cxs-muted); flex: 0 1 300px; }
.cxs-search svg { width: 18px; height: 18px; flex: none; }
.cxs-search input { border: 0; background: transparent; font: 500 16px var(--cxs-text); color: var(--cxs-ink); width: 100%; min-width: 0; outline: none; padding: 12px 0; }

/* Grid */
.cxs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cxs-card { background: var(--cxs-soft); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.cxs-card:hover { transform: translateY(-4px); }
.cxs-card.is-current { box-shadow: 0 0 0 3px var(--cxs-accent); }
.cxs-card__media { position: relative; aspect-ratio: 1 / 1; background: #E3E6EE; }
.cxs-card__art { width: 100%; height: 100%; object-fit: cover; display: block; }
.cxs-card__play { position: absolute; right: 16px; bottom: 16px; width: 60px; height: 60px; border-radius: 999px; border: 0; background: #fff; color: var(--cxs-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 20px rgba(11,11,15,.25); transition: transform .15s ease, background .15s ease, color .15s ease; }
.cxs-card__play svg { width: 24px; height: 24px; }
.cxs-card__play:hover, .cxs-card.is-current .cxs-card__play { background: var(--cxs-accent); color: #fff; transform: scale(1.06); }
.cxs-card__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.55); }
.cxs-card__progress span { display: block; height: 100%; background: var(--cxs-accent); }
.cxs-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.cxs-card__title { margin: 0; font-family: var(--cxs-display); font-stretch: 80%; font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.cxs-empty { color: var(--cxs-muted); font-size: 17px; text-align: center; padding: 32px 0; }
.cxs-more { display: flex; margin: 40px auto 0; }

/* Sticky player */
.cxs-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9999; max-width: 1360px; margin: 0 auto; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 24px; background: var(--cxs-ink); color: #fff; display: grid; grid-template-columns: 56px minmax(0, 1.2fr) auto minmax(0, 2fr) auto; grid-template-areas: "art info controls timeline extras"; align-items: center; gap: 16px; box-shadow: 0 16px 40px rgba(11,11,15,.35); }
.cxs-bar[hidden] { display: none; }
.cxs-bar__art { grid-area: art; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; display: block; }
.cxs-bar__info { grid-area: info; min-width: 0; }
.cxs-bar__title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cxs-bar__sub { font-size: 13px; color: #B8BECC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cxs-bar__controls { grid-area: controls; display: flex; align-items: center; gap: 6px; }
.cxs-bar__timeline { grid-area: timeline; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cxs-bar__extras { grid-area: extras; display: flex; align-items: center; gap: 4px; }
.cxs-bar__error { grid-column: 1 / -1; font-size: 14px; color: #FFB3BE; }
.cxs-bar__error a { color: #fff; }
.cxs-icon { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.cxs-icon svg { width: 24px; height: 24px; }
.cxs-icon:hover { background: rgba(255,255,255,.1); color: #fff; }
.cxs-icon--main { width: 52px; height: 52px; background: var(--cxs-accent); }
.cxs-icon--main:hover { background: var(--cxs-accent); filter: brightness(1.08); }
.cxs-icon--small svg { width: 20px; height: 20px; }
.cxs-speed { min-width: 52px; height: 36px; border-radius: 999px; border: 1.5px solid #4A5063; background: transparent; color: #fff; font: 700 14px var(--cxs-text); cursor: pointer; }
.cxs-volume { display: flex; align-items: center; gap: 2px; }
.cxs-vol-range { width: 84px; flex: none; }
.cxs-time { font-size: 13px; font-variant-numeric: tabular-nums; color: #B8BECC; min-width: 42px; text-align: center; }
.cxs-range { flex: 1; min-width: 0; height: 24px; background: transparent; -webkit-appearance: none; appearance: none; accent-color: var(--cxs-accent); cursor: pointer; }
.cxs-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: #2E3344; }
.cxs-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 999px; background: #fff; border: 0; }
.cxs-range::-moz-range-track { height: 6px; border-radius: 999px; background: #2E3344; }
.cxs-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--cxs-accent); }
.cxs-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 999px; background: #fff; border: 0; }
.cxs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Room so the sticky bar never covers the end of the page (height measured by the player into
   --cxs-bar-space). Where the dark site footer is the last thing on the page the room goes inside
   it — padding on <body> would show up as a white strip under the footer. */
html.cxs-bar-open body { padding-bottom: var(--cxs-bar-space, 120px); }
html.cxs-bar-open body:has(.site-footer) { padding-bottom: 0; }
html.cxs-bar-open .site-footer { padding-bottom: var(--cxs-bar-space, 120px); }

@media (max-width: 900px) {
  .cxs-bar { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "art info extras" "timeline timeline timeline" "controls controls controls"; row-gap: 8px; border-radius: 22px; left: 8px; right: 8px; bottom: 8px; }
  .cxs-bar__art { width: 48px; height: 48px; border-radius: 12px; }
  .cxs-bar__controls { justify-content: center; gap: 18px; }
  .cxs-vol-range { display: none; }
}
@media (max-width: 600px) {
  .cxs-feature { border-radius: 28px; }
  .cxs-feature__body { padding: 28px 24px 32px; }
  .cxs-feature__art { max-height: 360px; }
  .cxs-search { flex: 1 1 100%; }
  .cxs-hide-sm { display: none !important; }
  .cxs-toolbar { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .cxs-card, .cxs-btn, .cxs-card__play { transition: none; }
  .cxs-card:hover, .cxs-btn:hover { transform: none; }
}
