/* 설교 모음(/sermons)·설교 한 편(/sermons/{id}). 교회 테마 색(--primary-color)과 foundation 글자색을 따른다. */
.sm-page { padding: 84px 0 56px; min-height: 70vh; }
.sm-search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 12px; }
.sm-search input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--border-color, #dbe4f0); border-radius: 10px; font-size: 1rem; background: #fff; color: inherit; }
.sm-search input:focus { outline: none; border-color: var(--primary-color); }
.sm-search button { padding: 12px 20px; border: 0; border-radius: 10px; background: var(--primary-color); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap; }
.sm-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 10px; max-width: 900px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--border-color, #dbe4f0); background: #fff; color: var(--ink-2, #4a4a47); font-size: .9rem; text-decoration: none; line-height: 1.4; }
.chip:hover { border-color: var(--primary-color); color: var(--primary-color); }
.chip.on { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.chip.series::before { content: "시리즈 · "; opacity: .7; }
.chip.small { padding: 3px 10px; font-size: .8rem; }
.sm-hint { text-align: center; font-size: .9rem; color: var(--ink-3, #6f6f6a); margin: 0 0 8px; }
.sm-hint a { color: var(--primary-color); }

.sm-featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; margin: 28px 0 8px; }
.sm-feat-text h3 { font-size: 1.5rem; line-height: 1.35; margin: 10px 0 8px; word-break: keep-all; }
.sm-feat-text h3 a { color: inherit; text-decoration: none; }
.sm-feat-text h3 a:hover { color: var(--primary-color); }
.sm-badge { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--primary-color); border-bottom: 2px solid var(--primary-color); padding-bottom: 2px; }
.sm-desc { color: var(--ink-2, #4a4a47); margin-top: 10px; line-height: 1.7; }

.sm-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #e9e7e2; }
.sm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.sm-card:hover .sm-thumb img, .sm-thumb.big:hover img { transform: scale(1.03); }
.sm-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-weight: 700; background: color-mix(in srgb, var(--primary-color) 10%, #fff); }
/* 작은 카드: 썸네일 글자를 가리지 않게 왼쪽 아래 작은 재생 표시 */
.sm-play { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.6); }
.sm-play::after { content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.sm-thumb.big .sm-play { left: 50%; top: 50%; bottom: auto; width: 68px; height: 68px; margin: -34px 0 0 -34px; }
.sm-thumb.big .sm-play::after { left: 27px; top: 21px; border-width: 13px 0 13px 21px; }

.sm-heading { font-size: 1.2rem; font-weight: 700; margin: 40px 0 16px; padding-left: 12px; border-left: 4px solid var(--accent-color, var(--primary-color)); }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.sm-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.sm-card-body { display: flex; flex-direction: column; gap: 3px; }
.sm-card-title { font-weight: 700; line-height: 1.4; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-card:hover .sm-card-title { color: var(--primary-color); }
.sm-meta { font-size: .88rem; color: var(--ink-3, #6f6f6a); margin: 0; }
.sm-meta a { color: inherit; }
.sm-verse { font-size: .88rem; color: var(--ink-2, #4a4a47); }
.sm-verse::before { content: "본문 · "; color: var(--ink-3, #6f6f6a); }
.sm-empty { text-align: center; padding: 48px 16px; color: var(--ink-3, #6f6f6a); background: var(--bg-light, #f8fafc); border-radius: 12px; margin-top: 24px; }
.sm-pages { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 36px; }
.sm-pages a { padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--border-color, #dbe4f0); text-decoration: none; color: inherit; font-weight: 600; }
.sm-pages a:hover { border-color: var(--primary-color); color: var(--primary-color); }
.sm-pages span { color: var(--ink-3, #6f6f6a); }

/* 설교 한 편 */
.sm-detail { max-width: 880px; }
.sm-back { margin: 0 0 14px; }
.sm-back a { color: var(--ink-3, #6f6f6a); text-decoration: none; font-size: .92rem; }
.sm-back a:hover { color: var(--primary-color); }
.sm-player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.sm-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sm-title { font-size: 1.7rem; line-height: 1.35; margin: 22px 0 6px; word-break: keep-all; text-align: left; }
.sm-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 0; }
.sm-body { margin-top: 20px; line-height: 1.85; color: var(--ink-2, #4a4a47); }
.sm-body p { margin: 0 0 .8em; }
.sm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.sm-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; background: var(--primary-color); color: #fff; border: 1.5px solid var(--primary-color); font-family: inherit; }
.sm-btn.ghost { background: #fff; color: var(--primary-color); }
.sm-copied { font-size: .88rem; color: var(--ink-3, #6f6f6a); }
.sm-prevnext { display: flex; justify-content: space-between; gap: 14px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border-color, #dbe4f0); }
.sm-prevnext a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; text-decoration: none; color: inherit; }
.sm-prevnext a.next { text-align: right; margin-left: auto; }
.sm-prevnext small { color: var(--ink-3, #6f6f6a); }
.sm-prevnext span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-prevnext a:hover span { color: var(--primary-color); }

@media (max-width: 760px) {
    .sm-featured { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
    .sm-feat-text h3 { font-size: 1.25rem; }
    .sm-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .sm-card-title { font-size: .95rem; }
    .sm-meta, .sm-verse { font-size: .8rem; }
    .sm-title { font-size: 1.3rem; }
    .sm-filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .chip { white-space: nowrap; }
}
@media (max-width: 380px) { .sm-grid { grid-template-columns: 1fr; } }
