h3 {
  max-width: var(--content-narrow);
}

.sermons {
  display: flex;
  flex-direction: column;
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 1rem 0 0;
}

.podcasts {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.podcast-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: var(--surface);
  color: var(--brand);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.podcast-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.search {
  position: sticky;
  top: 5.2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--content-narrow);
  margin: 2rem auto 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 245, 241, 0.96);
  backdrop-filter: blur(10px);
}

#searchInput {
  width: min(23rem, 100%);
}

.date-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-search label {
  color: var(--ink-soft);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

#dateSearchInput {
  width: 10rem;
}

#clearDate {
  min-height: 0;
  border: 0;
  padding: 0 0.25rem;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
}

#clearDate:hover {
  background: transparent;
  color: var(--ink);
  transform: none;
}

.load-btn {
  margin-top: 1rem;
  text-align: center;
}

#noSermons {
  display: none;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  text-align: center;
}

@media (max-width: 690px) {
  .search {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  #searchInput,
  #dateSearchInput {
    width: 100%;
  }

  .date-search {
    align-items: stretch;
    flex-wrap: wrap;
  }
}
