/* ── SermoLibrary · single-sermones ─────────────────────────────
   Scope: .sl-* — no colisión con el theme
   ─────────────────────────────────────────────────────────────── */

.sl-wrap *,
.sl-wrap *::before,
.sl-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sl-wrap {
    --sl-surface:    #FFFFFF;
    --sl-radius:     3px;
    --sl-radius-lg:  8px;
    --ease-out:      cubic-bezier(0.16,1,0.3,1);
    --ff-display:    'Cormorant Garamond', Georgia, serif;
    --ff-body:       'DM Sans', system-ui, sans-serif;

    background:  var(--sl-cream);
    font-family: var(--ff-body);
    color:       var(--sl-ink);
    font-size:   15px;
    line-height: 1.6;
}

/* ── HERO ───────────────────────────────────────────────────── */
.sl-hero {
    position: relative;
    padding: 56px 0 48px;
    overflow: hidden;
    background: var(--sl-surface);
    border-bottom: 1px solid var(--sl-rule);
}

.sl-hero__bg-text {
    position:     absolute;
    top:          -20px;
    right:        -10px;
    font-family:  var(--ff-display);
    font-size:    180px;
    font-weight:  300;
    color:        rgba(176,141,87,0.06);
    line-height:  1;
    pointer-events: none;
    user-select:  none;
    letter-spacing: -4px;
    animation:    sl-fade-up 1s var(--ease-out) 0.1s both;
}

.sl-hero__inner {
    max-width: 780px;
    margin:    0 auto;
    padding:   0 32px;
    position:  relative;
}

/* breadcrumb */
.sl-breadcrumb {
    display:        flex;
    align-items:    center;
    gap:            8px;
    font-size:      12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color:          var(--sl-ink-faint);
    margin-bottom:  32px;
    font-weight:    500;
    animation:      sl-fade-up 0.7s var(--ease-out) both;
}
.sl-breadcrumb a          { color: var(--sl-gold); text-decoration: none; transition: opacity .2s; }
.sl-breadcrumb a:hover    { opacity: .7; }
.sl-breadcrumb__sep       { opacity: .4; }

/* serie badge */
.sl-series-badge {
    display:        inline-flex;
    align-items:    center;
    gap:            6px;
    background:     var(--sl-gold-light);
    color:          var(--sl-gold);
    font-size:      11px;
    font-weight:    500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding:        5px 12px;
    border-radius:  2px;
    margin-bottom:  20px;
    text-decoration: none;
    animation:      sl-fade-up 0.7s var(--ease-out) 0.05s both;
}
.sl-series-badge__icon {
    width:  14px; height: 14px;
    flex-shrink: 0;
}

/* title */
.sl-hero__title {
    font-family:    var(--ff-display);
    font-size:      clamp(36px, 5vw, 54px);
    font-weight:    400;
    line-height:    1.12;
    letter-spacing: -0.02em;
    color:          var(--sl-ink);
    margin-bottom:  16px;
    animation:      sl-fade-up 0.8s var(--ease-out) 0.1s both;
}
.sl-hero__title em { font-style: italic; color: var(--sl-gold); }

/* resumen */
.sl-hero__summary {
    font-family:   var(--ff-display);
    font-size:     19px;
    font-weight:   300;
    font-style:    normal;
    line-height:   1.55;
    color:         var(--sl-ink-muted);
    margin-bottom: 22px;
    max-width:     560px;
    border-left:   2px solid rgba(176,141,87,0.35);
    padding-left:  16px;
    animation:     sl-fade-up 0.8s var(--ease-out) 0.14s both;
}

/* pasaje */
.sl-passage-pill {
    display:        inline-flex;
    align-items:    center;
    gap:            8px;
    font-family:    var(--ff-display);
    font-size:      17px;
    font-style:     italic;
    font-weight:    300;
    color:          var(--sl-ink-muted);
    margin-bottom:  32px;
    animation:      sl-fade-up 0.8s var(--ease-out) 0.18s both;
}
.sl-passage-pill::before {
    content:    '';
    display:    block;
    width:      1px;
    height:     20px;
    background: var(--sl-gold);
    opacity:    .6;
}

/* meta row */
.sl-hero__meta {
    display:     flex;
    align-items: center;
    gap:         20px;
    flex-wrap:   wrap;
    animation:   sl-fade-up 0.8s var(--ease-out) 0.22s both;
}
.sl-preacher          { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sl-preacher__avatar  {
    width:          38px; height: 38px;
    border-radius:  50%;
    background:     var(--sl-gold-light);
    display:        flex; align-items: center; justify-content: center;
    font-family:    var(--ff-display);
    font-size:      14px; font-weight: 600;
    color:          var(--sl-gold);
    flex-shrink:    0;
    border:         1.5px solid var(--sl-rule);
    overflow:       hidden;
}
.sl-preacher__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sl-preacher__name  { font-size: 14px; font-weight: 500; color: var(--sl-ink); }
.sl-preacher__role  { font-size: 12px; color: var(--sl-ink-faint); }
.sl-meta-sep        { width: 1px; height: 28px; background: var(--sl-rule); }
.sl-meta-item       { font-size: 13px; color: var(--sl-ink-muted); display: flex; flex-direction: column; gap: 1px; }
.sl-meta-item strong { font-size: 11px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--sl-ink-faint); }

/* ── TAGS ───────────────────────────────────────────────────── */
.sl-tags {
    display:     flex;
    align-items: center;
    gap:         6px;
    flex-wrap:   wrap;
    padding:     20px 32px;
    max-width:   780px;
    margin:      0 auto;
    animation:   sl-fade-up 0.8s var(--ease-out) 0.25s both;
}
.sl-tag {
    font-size:      11px; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding:        4px 10px;
    border-radius:  2px;
    transition:     background .2s, color .2s;
    cursor:         pointer;
    text-decoration: none;
}
.sl-tag--tema {
    background: var(--sl-rule);
    color:      var(--sl-gold);
    border:     0.5px solid var(--sl-rule-hover);
}
.sl-tag--tema:hover { background: var(--sl-gold-light); }

/* ── SECTION UTIL ───────────────────────────────────────────── */
.sl-section {
    max-width: 780px;
    margin:    0 auto;
    padding:   0 32px;
}
.sl-section-label {
    font-size:      11px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color:          var(--sl-gold);
    margin-bottom:  16px;
    display:        flex; align-items: center; gap: 10px;
}
.sl-section-label::after { content: ''; flex: 1; height: .5px; background: var(--sl-rule); }

.sl-divider { max-width: 780px; margin: 0 auto; padding: 0 32px; }
.sl-divider hr { border: none; border-top: .5px solid var(--sl-rule); margin: 4px 0 28px; }

/* ── VIDEO ──────────────────────────────────────────────────── */
.sl-video {
    max-width: 780px;
    margin:    0 auto 4px;
    padding:   0 32px;
    animation: sl-fade-up 0.8s var(--ease-out) 0.3s both;
}
.sl-video__frame {
    position:      relative;
    background:    var(--sl-dark-surface);
    border-radius: var(--sl-radius-lg);
    overflow:      hidden;
    aspect-ratio:  16/9;
}
.sl-video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* native video fallback */
.sl-video__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* YouTube thumbnail overlay */
.sl-video__thumb-wrap {
    position: absolute; inset: 0;
    cursor:   pointer;
    display:  flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(to bottom, transparent 20%, var(--sl-dark-overlay));
    transition: opacity .3s;
    z-index: 1;
}
.sl-video__thumb-wrap.is-hidden { opacity: 0; pointer-events: none; }
.sl-video__thumb-bg {
    position:   absolute; inset: 0;
    background: var(--sl-dark-surface);
    z-index:    0;
}
.sl-video__thumb-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .6; display: block; }

.sl-play-btn {
    width:         60px; height: 60px;
    border-radius: 50%;
    background:    rgba(248,245,238,0.95);
    display:       flex; align-items: center; justify-content: center;
    transition:    transform .25s var(--ease-out), background .2s;
    position:      relative; z-index: 1;
}
.sl-video__thumb-wrap:hover .sl-play-btn { transform: scale(1.08); background: #fff; }
.sl-play-btn svg { width: 22px; height: 22px; fill: var(--sl-ink); margin-left: 3px; }
.sl-video__caption { font-size: 12px; color: rgba(248,245,238,.75); letter-spacing: .05em; font-weight: 500; position: relative; z-index: 1; }

/* ── AUDIO PLAYER ───────────────────────────────────────────── */
.sl-audio {
    max-width: 780px; margin: 0 auto; padding: 4px 32px 24px;
    animation: sl-fade-up 0.8s var(--ease-out) 0.35s both;
}
.sl-player {
    background: #ffffff;
    border: 0.5px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}
.sl-player .sl-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sl-accent-color, #1B3A5C);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.sl-player .sl-play-btn:hover {
    opacity: 0.82;
}
.sl-player .sl-play-btn svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
    margin-left: 2px;
}
.sl-player-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.sl-waveform {
    height: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.sl-waveform-bar {
    width: 3px;
    min-width: 3px;
    min-height: 6px;
    display: block;
    border-radius: 2px;
    flex-shrink: 0;
    transition: background 0.1s;
}
.sl-waveform-bar.played {
    background: var(--sl-accent-color, #1B3A5C);
}
.sl-waveform-bar.unplayed {
    background: rgba(27, 58, 92, 0.15);
}
.sl-player-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sl-player-time,
.sl-player-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.35);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* native <audio> hidden */
.sl-audio__native { display: none; }

/* ── ACTION BUTTONS ─────────────────────────────────────────── */
.sl-actions {
    max-width: 780px; margin: 0 auto; padding: 0 32px 28px;
    animation: sl-fade-up 0.8s var(--ease-out) 0.4s both;
}
.sl-actions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sl-btn {
    display:        flex; align-items: center; justify-content: center; gap: 7px;
    padding:        11px 14px;
    border-radius:  var(--sl-radius);
    font-size:      12.5px; font-family: var(--ff-body); font-weight: 500; letter-spacing: .02em;
    cursor:         pointer;
    transition:     all .2s var(--ease-out);
    text-decoration: none;
    border:         none;
}
.sl-btn:active { transform: scale(.97); }
.sl-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.sl-btn--primary { background: var(--sl-dark-surface); color: var(--sl-cream); grid-column: span 2; }
.sl-btn--primary:hover { background: var(--sl-dark-surface-2); color: var(--sl-cream); }
.sl-btn--outline { background: transparent; color: var(--sl-ink-muted); border: .5px solid var(--sl-rule); }
.sl-btn--outline:hover { background: var(--sl-surface); color: var(--sl-ink); border-color: var(--sl-rule-hover); }

/* ── NOTES ──────────────────────────────────────────────────── */
.sl-notes { animation: sl-fade-up 0.8s var(--ease-out) 0.45s both; }
.sl-notes__content {
    font-family: var(--ff-display);
    font-size:   20px; font-weight: 300; line-height: 1.75;
    color:       var(--sl-ink);
}
.sl-notes__content h2,
.sl-notes__content h3 { font-size: 22px; font-weight: 600; margin: 28px 0 10px; }
.sl-notes__content p  { margin-bottom: 16px; }
.sl-notes__content blockquote {
    margin: 24px 0; padding: 16px 24px;
    border-left: 2px solid var(--sl-gold);
    background:  var(--sl-gold-light);
    border-radius: 0 var(--sl-radius) var(--sl-radius) 0;
    font-style:  italic; font-size: 19px; color: var(--sl-ink-muted);
}

/* ── SERIE CARD ─────────────────────────────────────────────── */
.sl-serie-card { animation: sl-fade-up 0.8s var(--ease-out) 0.5s both; }
.sl-serie-card__inner {
    border:        .5px solid var(--sl-rule);
    border-radius: var(--sl-radius-lg);
    overflow:      hidden;
    display:       grid; grid-template-columns: 180px 1fr;
    background:    var(--sl-surface);
    transition:    border-color .2s;
    text-decoration: none;
}
.sl-serie-card__inner:hover { border-color: var(--sl-rule-hover); }
.sl-serie-card__img {
    background: linear-gradient(135deg, var(--sl-dark-surface-2) 0%, var(--sl-dark-surface-3) 100%);
    display:    flex; align-items: center; justify-content: center;
    overflow:   hidden;
}
.sl-serie-card__img img { width: 100%; height: 100%; object-fit: cover; }
.sl-serie-card__img--placeholder {
    padding: 20px;
    display: flex; align-items: center; justify-content: center;
}
.sl-serie-card__body { padding: 18px 20px; }
.sl-serie-card__label { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sl-gold); margin-bottom: 4px; }
.sl-serie-card__title { font-family: var(--ff-display); font-size: 20px; font-weight: 400; color: var(--sl-ink); margin-bottom: 4px; }
.sl-serie-card__count { font-size: 12px; color: var(--sl-ink-faint); }

/* ── PREDICADOR BIO ─────────────────────────────────────────── */
.sl-pred-bio { animation: sl-fade-up 0.8s var(--ease-out) 0.55s both; }
.sl-pred-bio__card {
    background:    var(--sl-surface);
    border:        .5px solid var(--sl-rule);
    border-radius: var(--sl-radius-lg);
    padding:       24px;
    display:       flex; gap: 20px; align-items: flex-start;
    text-decoration: none;
    transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.sl-pred-bio__card:hover {
    border-color: var(--sl-rule-hover);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.sl-pred-bio__photo {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--sl-gold-light);
    display:    flex; align-items: center; justify-content: center;
    font-family: var(--ff-display); font-size: 22px; font-weight: 600; color: var(--sl-gold);
    flex-shrink: 0;
    border:      2px solid var(--sl-gold-light);
    overflow:    hidden;
}
.sl-pred-bio__photo img { width: 100%; height: 100%; object-fit: cover; }
.sl-pred-bio__name  { font-family: var(--ff-display); font-size: 20px; font-weight: 400; color: var(--sl-ink); margin-bottom: 2px; }
.sl-pred-bio__cargo { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--sl-gold); margin-bottom: 10px; }
.sl-pred-bio__bio   { font-size: 14px; color: var(--sl-ink-muted); line-height: 1.65; }

/* ── PREV / NEXT NAV ────────────────────────────────────────── */
.sl-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    animation: sl-fade-up 0.8s var(--ease-out) 0.6s both;
}
.sl-nav__item {
    background:    var(--sl-surface);
    border:        .5px solid var(--sl-rule);
    border-radius: var(--sl-radius-lg);
    padding:       16px 18px;
    text-decoration: none; display: block;
    transition:    border-color .2s, transform .2s var(--ease-out);
}
.sl-nav__item:hover { border-color: var(--sl-rule-hover); transform: translateY(-1px); }
.sl-nav__item--next { text-align: right; }
.sl-nav__dir {
    font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    color:     var(--sl-ink-faint); margin-bottom: 4px;
    display:   flex; align-items: center; gap: 6px;
}
.sl-nav__item--next .sl-nav__dir { justify-content: flex-end; }
.sl-nav__title { font-family: var(--ff-display); font-size: 16px; font-weight: 400; color: var(--sl-ink); line-height: 1.3; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes sl-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .sl-hero__inner,
    .sl-section,
    .sl-tags,
    .sl-video,
    .sl-audio,
    .sl-actions { padding-left: 20px; padding-right: 20px; }
    .sl-actions__grid { grid-template-columns: 1fr 1fr; }
    .sl-btn--primary { grid-column: span 2; }
    .sl-nav { grid-template-columns: 1fr; }
    .sl-nav__item--next { text-align: left; }
    .sl-nav__item--next .sl-nav__dir { justify-content: flex-start; }
    .sl-serie-card__inner { grid-template-columns: 120px 1fr; }
    .sl-pred-bio__card { flex-direction: column; }
}
