/* ============================================================
   Sermon Library styles (sermons.css)
   Parchment / dark navy / gold, Nunito. Mobile-first.
   ============================================================ */

.sermons-overlay {
  position: fixed;
  inset: 0;
  z-index: 620;
  display: none;
  background: #0f1c30;
}
.sermons-overlay.visible { display: block; }
body.sermons-open { overflow: hidden; }

.sermons-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.sermons-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #16263f 0%, #0f1c30 100%);
  border-bottom: 1.5px solid rgba(201, 150, 59, 0.45);
}
.sermons-topbar-title {
  flex: 1;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #e8d9b5;
  letter-spacing: 0.4px;
}
.sermons-back, .sermons-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid rgba(201, 150, 59, 0.5);
  background: rgba(201, 150, 59, 0.10);
  color: #e8d9b5;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
}
.sermons-back:active, .sermons-close:active { transform: scale(0.94); }

.sermons-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 14px 40px;
}

.sermons-hero h2 {
  font-family: 'Nunito', sans-serif;
  color: #e8d9b5;
  font-size: 1.35rem;
  margin: 4px 0 6px;
}
.sermons-hero p {
  color: #b9c4d6;
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.sermons-searchrow { margin-bottom: 12px; }
.sermons-search {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(201, 150, 59, 0.5);
  background: #16263f;
  color: #f2ead8;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
}
.sermons-search::placeholder { color: #8fa0b8; }

.sermons-serieschips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}
.sermons-chip {
  flex-shrink: 0;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(201, 150, 59, 0.45);
  background: rgba(201, 150, 59, 0.08);
  color: #d8cba8;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sermons-chip.active {
  background: #c9963b;
  color: #16263f;
  border-color: #c9963b;
}

.sermons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 700px) {
  .sermons-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .sermons-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.sermon-card {
  text-align: left;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1.5px solid rgba(201, 150, 59, 0.4);
  background: linear-gradient(180deg, #1a2d48 0%, #14233a 100%);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
}
.sermon-card:active { transform: scale(0.985); }
.sermon-card-title {
  color: #f2ead8;
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.sermon-card-series {
  color: #c9963b;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.sermon-card-badges { display: flex; gap: 6px; }
.sermon-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.sermon-badge.video { background: rgba(201, 150, 59, 0.2); color: #e8d9b5; border: 1px solid rgba(201, 150, 59, 0.5); }
.sermon-badge.notes { background: rgba(120, 160, 220, 0.12); color: #b9c4d6; border: 1px solid rgba(120, 160, 220, 0.35); }

.sermons-loadmore-wrap { text-align: center; padding: 18px 0 8px; }
.sermons-loadmore {
  padding: 12px 22px;
  border-radius: 12px;
  border: 1.5px solid rgba(201, 150, 59, 0.55);
  background: rgba(201, 150, 59, 0.12);
  color: #e8d9b5;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

.sermons-loading {
  text-align: center;
  color: #b9c4d6;
  padding: 40px 16px;
  font-family: 'Nunito', sans-serif;
}

.sermons-serieslist { display: flex; flex-direction: column; gap: 8px; }
.sermons-serieslist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid rgba(201, 150, 59, 0.35);
  background: #16263f;
  color: #f2ead8;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
}
.sermons-serieslist-count {
  color: #c9963b;
  font-weight: 800;
  padding-left: 12px;
}

/* ---------- detail ---------- */
.sermon-detail-head h2 {
  font-family: 'Nunito', sans-serif;
  color: #f2ead8;
  font-size: 1.3rem;
  margin: 2px 0 8px;
}
.sermon-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.sermon-detail-meta span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c9963b;
  background: rgba(201, 150, 59, 0.1);
  border: 1px solid rgba(201, 150, 59, 0.4);
  border-radius: 999px;
  padding: 4px 11px;
  font-family: 'Nunito', sans-serif;
}

.sermon-detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sermon-tab {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(201, 150, 59, 0.5);
  background: rgba(201, 150, 59, 0.08);
  color: #d8cba8;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}
.sermon-tab.active { background: #c9963b; color: #16263f; }
.sermon-tab.coming-soon { opacity: 0.75; position: relative; }
.sermon-tab.coming-soon::after {
  content: 'Soon';
  font-size: 0.6rem;
  font-weight: 800;
  background: #0f1c30;
  color: #c9963b;
  border: 1px solid rgba(201, 150, 59, 0.6);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 7px;
  vertical-align: middle;
}

.sermon-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(201, 150, 59, 0.5);
  background: #000;
}
.sermon-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.sermon-video-hint {
  color: #8fa0b8;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 10px;
  font-family: 'Nunito', sans-serif;
}

.sermon-transcript {
  background: #f7f0df;
  border: 1.5px solid rgba(201, 150, 59, 0.6);
  border-radius: 14px;
  padding: 18px 17px;
  color: #2b2418;
  font-family: 'Nunito', sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
}
.sermon-transcript p { margin: 0 0 14px; }
.sermon-transcript p:last-child { margin-bottom: 0; }

.sermon-detail-askrow { text-align: center; padding: 18px 0 8px; }
.sermon-ask-doc {
  padding: 13px 22px;
  border-radius: 12px;
  border: none;
  background: #c9963b;
  color: #16263f;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.sermon-ask-doc:active { transform: scale(0.97); }
