/* Sermon library: filter bar, list rows, featured item, detail page. Loaded after app.css. */

/* Filter bar */
.sermon-filter{background:#fefefe;border-radius:8px;box-shadow:1px 2px 8px rgba(0,0,0,.3);padding:1.2rem 1.2rem .6rem;margin:0 0 2rem}
.sermon-filter label{font-weight:700;color:#092751;margin-bottom:.3rem}
.sermon-filter select,.sermon-filter input[type="search"]{margin-bottom:1rem;width:100%}
.sermon-filter-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.2rem}
.sermon-filter-actions .button{margin-bottom:.6rem}
.sermon-filter-clear{margin-bottom:.6rem;text-decoration:underline}

/* List and rows */
.sermon-list{margin-bottom:2rem}
.sermon-row{display:flex;flex-direction:column;background:#fefefe;border-radius:8px;box-shadow:1px 2px 8px rgba(0,0,0,.3);margin-bottom:1.8rem;overflow:hidden}
.sermon-media{position:relative;flex:0 0 auto}
.sermon-thumb{display:block;position:relative;aspect-ratio:16/9;background:#092751;overflow:hidden}
.sermon-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.sermon-play{position:absolute;top:50%;left:50%;width:3.4rem;height:3.4rem;margin:-1.7rem 0 0 -1.7rem;border-radius:50%;background:rgba(9,39,81,.8)}
.sermon-play::before{content:"";position:absolute;top:50%;left:50%;margin:-.6rem 0 0 -.4rem;border-style:solid;border-width:.6rem 0 .6rem 1.05rem;border-color:transparent transparent transparent #fefefe}
.sermon-body{flex:1 1 auto;min-width:0;padding:1rem 1.2rem 1.2rem;color:#303233}
.sermon-eyebrow{margin:0 0 .4rem;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#cc4b37}
.sermon-date{margin:0 0 .5rem}
.sermon-badge{display:inline-block;padding:.3rem .6rem;border-radius:8px;font-size:.7rem;line-height:1;font-weight:700;text-transform:uppercase;background:#e6eef9;color:#114ea2}
.sermon-title{margin:0 0 .6rem;font-size:1.4rem;line-height:1.2}
.sermon-title a{color:#092751}
.sermon-title a:hover,.sermon-title a:focus{color:#114ea2;text-decoration:underline}
.sermon-desc{margin:0 0 .8rem}
.sermon-meta{margin:0 0 .6rem}
.sermon-meta-item{display:flex;flex-wrap:wrap;gap:.2rem .6rem;margin-bottom:.2rem;font-size:.9rem}
.sermon-meta dt{flex:0 0 5rem;font-weight:700;color:#092751}
.sermon-meta dd{flex:1 1 10rem;margin:0}
.sermon-meta a{text-decoration:underline}

@media (min-width:40em){
    .sermon-row{flex-direction:row}
    .sermon-media{flex:0 0 36%;max-width:21rem}
    .sermon-thumb{height:100%;min-height:10rem;aspect-ratio:auto}
    .sermon-body{padding:1.2rem 1.5rem}
}

/* Featured (latest) sermon: full-width media on top, details below */
.sermon-row--featured{flex-direction:column;margin-bottom:2.4rem}
.sermon-row--featured .sermon-media{flex:0 0 auto;max-width:none;width:100%}
.sermon-row--featured .sermon-thumb{height:auto;min-height:0;aspect-ratio:16/9}
.sermon-row--featured .sermon-body{padding:1.4rem 1.5rem 1.6rem}
.sermon-row--featured .sermon-title{font-size:1.8rem}
@media (min-width:40em){
    .sermon-row--featured .sermon-body{padding:1.8rem 2.2rem 2rem}
    .sermon-row--featured .sermon-title{font-size:2.2rem}
    .sermon-row--featured .sermon-desc{font-size:1.1rem}
}

/* Video embed */
.sermon-embed{position:relative;aspect-ratio:16/9;background:#000}
.sermon-embed iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}

/* Detail page */
.sermon-detail{padding-top:1.5rem;padding-bottom:3rem}
.sermon-player{max-width:64rem;margin:0 auto 2.5rem}
.sermon-player .sermon-embed{border-radius:8px;overflow:hidden;box-shadow:1px 2px 12px rgba(0,0,0,.35)}
.sermon-embed--none{background:#092751;display:flex;align-items:center;justify-content:center}
.sermon-embed--none img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.sermon-embed-msg{position:relative;margin:0;padding:1rem;color:#fefefe;font-size:1.2rem;text-align:center}
.sermon-player-links{margin:.8rem 0 0;font-size:.9rem}
.sermon-player-links a{text-decoration:underline}
.sermon-player-note{color:#5a5b5c}
.sermon-audio{margin-top:1.2rem;padding:1rem 1.2rem;background:#fefefe;border-radius:8px;box-shadow:1px 2px 8px rgba(0,0,0,.3)}
.sermon-audio-label{margin:0 0 .5rem;font-weight:700;color:#092751}
.sermon-audio audio{display:block;width:100%}
.sermon-detail-info{margin-bottom:2rem}
.sermon-detail-info h2{font-size:1.6rem;margin-bottom:1rem}
.sermon-detail-desc{font-size:1.05rem;line-height:1.6}
.sermon-facts{margin:0;padding:1.2rem 1.4rem;background:#fefefe;border-radius:8px;box-shadow:1px 2px 8px rgba(0,0,0,.3);border-top:4px solid #3aaadb}
.sermon-facts>div{margin-bottom:.9rem}
.sermon-facts>div:last-child{margin-bottom:0}
.sermon-facts dt{font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5a5b5c}
.sermon-facts dd{margin:0;color:#303233}
.sermon-facts a{text-decoration:underline}
.sermon-related{max-width:64rem;margin:0 auto}
.sermon-related h2{font-size:1.5rem;margin:1rem 0 1.4rem}
.sermon-list--related{margin-bottom:0}
