:root {
  --ink: #171717;
  --muted: #77736f;
  --paper: #f7f6f3;
  --white: #ffffff;
  --navy: #123865;
  --navy-2: #0f2f56;
  --beige: #e8c7a8;
  --beige-soft: #f1dfce;
  --line: #d8d4cf;
  --green: #7ebd68;
  --lime: #d7ff53;
  --blue: #32479d;
  --sky: #a9e7ef;
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f4f4f4;
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  width: min(calc(100% - 64px), 1640px);
  margin: 0 auto;
  min-height: 96px;
  display: grid;
  grid-template-columns: 280px 280px 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
}
body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand-cross { font-size: 34px; color: #b67526; text-shadow: 1px 1px 0 #233c7b; }
.brand-script { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-style: italic; font-size: 22px; }
.site-search-wrap { position: relative; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #777; font-size: 19px; }
.site-search {
  width: 100%;
  height: 46px;
  border: 1px solid #999;
  padding: 0 16px 0 42px;
  background: #fff;
  outline: none;
}
.site-search:focus { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(18,56,101,.1); }
.top-nav { display: flex; justify-content: flex-end; gap: 34px; align-items: center; white-space: nowrap; font-family: Georgia, "Times New Roman", serif; font-style: italic; color: #aaa; }
.top-nav a { border-bottom: 1px solid #aaa; padding: 8px 0; }
.top-nav a.active { color: #2a2928; border-color: #2a2928; }

.hero {
  width: min(calc(100% - 64px), 1640px);
  min-height: 590px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 70px 90px 50px 340px;
  background:
    linear-gradient(90deg, rgba(245,247,211,.95), rgba(229,219,181,.86) 55%, rgba(230,226,202,.93)),
    repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 1px, transparent 1px 42px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  background:
    radial-gradient(circle at 75% 22%, rgba(113,96,63,.18), transparent 24%),
    linear-gradient(18deg, transparent 0 32%, rgba(118,91,48,.13) 32% 42%, transparent 42% 100%);
}
.hero-lines { position: absolute; inset: 0; pointer-events: none; }
.hero-lines i, .hero-lines b { position: absolute; display: block; }
.hero-lines i:nth-child(1) { left: 50px; top: 68px; width: 820px; height: 17px; background: var(--lime); }
.hero-lines i:nth-child(2) { left: 88px; top: 94px; width: 890px; height: 18px; background: var(--green); }
.hero-lines i:nth-child(3) { left: 135px; top: 120px; width: 960px; height: 18px; background: var(--blue); }
.hero-lines b:nth-child(4) { left: 245px; top: 0; width: 17px; height: 100%; background: #b8edf2; }
.hero-lines b:nth-child(5) { left: 282px; top: 0; width: 17px; height: 100%; background: #e4c79d; }
.hero-lines b:nth-child(6) { left: 319px; top: 0; width: 17px; height: 100%; background: #a9d890; }
.hero-copy { position: relative; z-index: 2; max-width: 1060px; margin-top: 130px; }
.hero-quote {
  margin: 0;
  font-family: "Nanum Pen Script", "Malgun Gothic", cursive;
  font-size: clamp(34px, 3.2vw, 62px);
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: -2px;
  text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff;
}
.hero-author { margin: 50px 0 0; font-size: clamp(22px, 2vw, 34px); font-weight: 700; }

.sermon-section { width: 100%; background: #f4f4f4; padding: 34px 0 70px; }
.section-title-wrap {
  width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; margin-bottom: 44px;
}
.section-title-wrap span { border-top: 2px solid #242424; }
.section-title-wrap h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 3vw, 52px); font-weight: 600; letter-spacing: 4px; }
.section-intro { text-align: center; color: var(--muted); margin: -6px 0 32px; }
.category-grid {
  width: min(calc(100% - 48px), 920px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 22px;
}
.category-card {
  appearance: none;
  border: 1px solid #0f3159;
  outline: 2px solid #e9e9e9;
  background: var(--navy);
  color: #fff;
  min-height: 40px;
  padding: 8px 14px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.category-card:hover, .category-card:focus-visible { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(10,35,67,.15); }
.category-card[hidden] { display: none; }

.track-view { width: min(calc(100% - 48px), 1280px); margin: 0 auto; }
.track-head { display: grid; grid-template-columns: 160px 1fr; align-items: start; gap: 26px; margin-bottom: 34px; }
.back-button { border: 1px solid #bbb; background: #fff; padding: 11px 16px; cursor: pointer; }
.back-button:hover { border-color: var(--navy); color: var(--navy); }
.eyebrow { margin: 0 0 6px; color: #9b6d46; font-family: Georgia, serif; font-style: italic; }
.track-head h2 { margin: 0; font-size: clamp(30px, 3vw, 46px); font-weight: 700; }
.track-count { margin: 8px 0 0; color: var(--muted); }
.track-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 54px; row-gap: 28px; }
.track-card { min-width: 0; }
.track-label {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 18px;
  border: 1px solid #2e2d2c;
  border-radius: 18px / 8px;
  background: var(--beige);
  color: #161616;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-row { display: grid; grid-template-columns: 38px 1fr 48px; align-items: center; gap: 10px; padding: 10px 8px 0 35%; }
.play-button {
  width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; padding: 0; color: #171717; font-size: 23px; line-height: 1;
}
.play-button:hover { transform: scale(1.08); }
.progress { width: 100%; height: 4px; accent-color: #222; cursor: pointer; }
.time { font-size: 11px; color: #6f6c68; text-align: right; font-variant-numeric: tabular-nums; }
.track-card.is-playing .track-label { background: var(--beige-soft); box-shadow: inset 0 0 0 1px rgba(114,70,33,.15); }
.empty-state { border: 1px dashed #bbb; background: #fff; padding: 42px 24px; text-align: center; color: #68635f; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: #2a2928; margin-bottom: 8px; }
.loading { grid-column: 1 / -1; padding: 36px; text-align: center; color: #777; }

.bottom-feature {
  width: 100%;
  padding: 0 24px 34px;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
}
.bottom-feature img {
  display: block;
  width: min(100%, 980px);
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid #ddd;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.site-footer { border-top: 1px solid #ddd; background: #fff; padding: 32px; display: flex; justify-content: center; gap: 14px; color: #777; }
.site-footer strong { color: #222; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr 260px; }
  .top-nav { grid-column: 1 / -1; justify-content: center; padding-bottom: 18px; gap: 24px; overflow-x: auto; }
  .hero { padding-left: 220px; }
  .hero-lines b:nth-child(4) { left: 120px; }
  .hero-lines b:nth-child(5) { left: 150px; }
  .hero-lines b:nth-child(6) { left: 180px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player-row { padding-left: 24%; }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 28px); min-height: auto; grid-template-columns: 1fr; gap: 14px; padding: 18px 0; }
  .site-search-wrap { order: 3; }
  .top-nav { order: 2; justify-content: flex-start; gap: 20px; padding: 0; font-size: 13px; }
  .hero { width: 100%; min-height: 440px; padding: 120px 28px 46px 84px; }
  .hero-lines i:nth-child(1), .hero-lines i:nth-child(2), .hero-lines i:nth-child(3) { left: 22px; width: 78%; }
  .hero-lines b:nth-child(4) { left: 30px; }
  .hero-lines b:nth-child(5) { left: 50px; }
  .hero-lines b:nth-child(6) { left: 70px; }
  .hero-copy { margin-top: 60px; }
  .hero-quote { font-size: 32px; letter-spacing: -1px; }
  .hero-author { margin-top: 28px; font-size: 20px; }
  .section-title-wrap { gap: 16px; }
  .section-title-wrap h1 { font-size: 34px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; width: calc(100% - 34px); }
  .category-card { letter-spacing: 1px; font-size: 13px; }
  .track-view { width: calc(100% - 28px); }
  .track-head { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .player-row { padding-left: 12%; }
  .bottom-feature { padding: 0 14px 22px; }
  .bottom-feature img { width: 100%; max-height: none; }
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 430px) {
  .category-grid { grid-template-columns: 1fr; }
  .hero { padding-left: 72px; }
  .player-row { padding-left: 5%; }
  .track-label { font-size: 13px; }
}
/* ===== Smyrna bottom sermon image ===== */

.bottom-feature {
  width: 100%;
  padding: 46px 20px 58px;
  background: #f4f4f4;
}

.bottom-feature-inner {
  width: min(100%, 900px);
  margin: 0 auto;
}

.bottom-feature img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 868px;
  margin: 0 auto;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

/* 모바일 */
@media (max-width: 760px) {
  .bottom-feature {
    padding: 30px 14px 38px;
  }

  .bottom-feature-inner {
    width: 100%;
  }

  .bottom-feature img {
    width: 100%;
    max-width: 100%;
    border-radius: 2px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  }
}
