:root {
  color-scheme: light;
  --navy: #10283b;
  --navy-deep: #071521;
  --navy-soft: #1b3a50;
  --gold: #c7a15b;
  --gold-light: #e0c88f;
  --paper: #f7f3eb;
  --ink: #172430;
  --muted: #68737d;
  --red: #9d2d2d;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(199, 161, 91, .13), transparent 32rem),
    radial-gradient(circle at 92% 90%, rgba(27, 58, 80, .22), transparent 34rem),
    var(--navy-deep);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image:
    linear-gradient(45deg, transparent 48%, var(--gold) 49%, var(--gold) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, var(--gold) 49%, var(--gold) 51%, transparent 52%);
  background-size: 90px 90px;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-card {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(310px, .92fr) minmax(430px, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(224, 200, 143, .5);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .42);
}

.photo-panel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--navy);
}

#church-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s ease;
}

.is-playing #church-image {
  transform: scale(1.025);
}

.photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 33, .58), transparent 38%),
    linear-gradient(0deg, rgba(7, 21, 33, .88), transparent 48%);
}

.photo-caption {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.photo-caption .ornament {
  color: var(--gold-light);
}

.content-panel {
  padding: 44px 52px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(247, 243, 235, .94), rgba(247, 243, 235, .98)),
    radial-gradient(circle at top right, rgba(199, 161, 91, .2), transparent 50%);
}

.topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(157, 45, 45, .2);
  border-radius: 999px;
  background: rgba(157, 45, 45, .08);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
}

.live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b83737;
  box-shadow: 0 0 0 5px rgba(184, 55, 55, .1);
}

.is-playing .live-badge i {
  animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 55, 55, .35); }
  70% { box-shadow: 0 0 0 8px rgba(184, 55, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 55, 55, 0); }
}

.eyebrow {
  margin: 0 0 10px;
  color: #91713b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  max-width: 520px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 47px);
  font-weight: 500;
  line-height: 1.13;
}

.location {
  margin: 14px 0 0;
  color: #856a3c;
  font-size: 14px;
  font-weight: 600;
}

.location::before {
  content: "— ";
}

.about-block {
  max-width: 510px;
  margin: 24px 0 0;
  padding: 16px 18px 17px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(199, 161, 91, .09);
}

.about-block h2 {
  margin: 0 0 8px;
  color: #856a3c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.description {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.church-links {
  margin-top: 12px;
}

.church-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #725729;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(114, 87, 41, .38);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.church-links a:hover {
  color: var(--navy);
  text-decoration-color: currentColor;
}

.church-links a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(199, 161, 91, .45);
  outline-offset: 3px;
}

.church-links a span {
  font-size: 15px;
  text-decoration: none;
}

.divider {
  position: relative;
  height: 34px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 161, 91, .55));
}

.divider::after {
  background: linear-gradient(90deg, rgba(199, 161, 91, .55), transparent);
}

.divider span {
  padding: 0 15px;
  font-size: 20px;
}

.controls {
  display: grid;
  grid-template-columns: 68px minmax(140px, 1fr) minmax(110px, 145px);
  align-items: center;
  gap: 16px;
}

.listen-panel {
  max-width: 510px;
  padding: 17px 18px;
  border: 1px solid rgba(16, 40, 59, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 10px 25px rgba(16, 40, 59, .06);
}

.play-button {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  cursor: pointer;
  box-shadow: 0 13px 28px rgba(16, 40, 59, .24);
  transition: transform .18s ease, background .18s ease;
}

.play-button:hover {
  transform: translateY(-2px);
  background: var(--navy-soft);
}

.play-button:focus-visible {
  outline: 3px solid rgba(199, 161, 91, .55);
  outline-offset: 4px;
}

.play-button svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.play-icon {
  margin-left: 4px;
}

.pause-icon {
  display: none;
}

.is-playing .play-icon {
  display: none;
}

.is-playing .pause-icon {
  display: block;
}

.status-block strong,
.status-block span {
  display: block;
}

.status-block strong {
  color: var(--navy);
  font-size: 15px;
}

.status-block span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 9px;
}

.volume-control svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}

.blessing {
  margin: 32px 0 0;
  color: #8f7a55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

.footer-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 840px) {
  .page-shell {
    width: min(660px, calc(100% - 24px));
    padding: 20px 0 18px;
  }

  .player-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 21px;
  }

  .photo-panel {
    min-height: 310px;
    max-height: 42vh;
  }

  .content-panel {
    padding: 34px 30px 32px;
  }

  .topline {
    margin-bottom: 28px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: calc(100% - 16px);
    padding-top: 8px;
  }

  .photo-panel {
    min-height: 245px;
  }

  .photo-caption {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .content-panel {
    padding: 28px 22px 26px;
  }

  .topline {
    align-items: flex-start;
  }

  .live-badge {
    font-size: 9px;
  }

  h1 {
    font-size: 31px;
  }

  .about-block {
    display: block;
    margin-top: 20px;
    padding: 13px 14px 14px;
  }

  .description {
    display: block;
    font-size: 15px;
    line-height: 1.55;
  }

  .controls {
    grid-template-columns: 66px 1fr;
    gap: 14px;
  }

  .listen-panel {
    padding: 15px 14px;
  }

  .play-button {
    width: 66px;
    height: 66px;
  }

  .volume-control {
    grid-column: 1 / -1;
    margin-top: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
