:root {
  color-scheme: light;
  --navy-950: #061c2e;
  --navy-900: #082944;
  --navy-800: #0b3a60;
  --blue-700: #0b6598;
  --blue-600: #0e7db6;
  --sky-500: #33aee4;
  --sky-300: #91d9f4;
  --sky-100: #e9f7fd;
  --gold: #d2a654;
  --gold-soft: #ead8ad;
  --paper: #fbfcfd;
  --paper-warm: #f7f4ed;
  --ink: #132b3d;
  --muted: #607281;
  --line: #dbe5eb;
  --red: #a83339;
  --green: #25744e;
  --shadow: 0 34px 90px rgba(2, 17, 29, .46);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(51, 174, 228, .14), transparent 34rem),
    radial-gradient(circle at 90% 90%, rgba(14, 125, 182, .11), transparent 38rem),
    var(--navy-950);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

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

.player-card {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(340px, .94fr) minmax(470px, 1.06fr);
  overflow: hidden;
  border: 1px solid rgba(145, 217, 244, .28);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

#church-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.02);
  transition: transform 1.4s ease, filter .5s ease;
}

.is-playing #church-image {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.03);
}

.photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 20, 33, .26), transparent 35%),
    linear-gradient(0deg, rgba(3, 20, 33, .56), transparent 50%);
}

.content-panel {
  padding: 38px 48px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 174, 228, .08), transparent 36%),
    linear-gradient(150deg, #ffffff, var(--paper));
}

.player-header {
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(96, 114, 129, .22);
  border-radius: 999px;
  background: rgba(96, 114, 129, .07);
  color: #647582;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.live-badge i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #84939e;
  box-shadow: 0 0 0 5px rgba(132, 147, 158, .1);
}

.live-badge.is-live {
  border-color: rgba(37, 116, 78, .28);
  background: rgba(37, 116, 78, .1);
  color: #1f6a45;
}

.live-badge.is-live i {
  background: #2f9a62;
  animation: broadcast-pulse 1.8s ease-out infinite;
}

.live-badge.is-offline {
  border-color: rgba(96, 114, 129, .2);
  background: rgba(96, 114, 129, .055);
  color: #6f7e89;
}

.live-badge.is-unknown {
  border-color: rgba(179, 137, 61, .24);
  background: rgba(179, 137, 61, .07);
  color: #896b32;
}

.live-badge.is-unknown i {
  background: #b18c48;
  box-shadow: 0 0 0 5px rgba(177, 140, 72, .1);
}

.live-badge.prerecorded {
  border-color: rgba(35, 116, 166, .22);
  background: rgba(35, 116, 166, .08);
  color: #246e9c;
}

.live-badge.prerecorded i {
  background: #2c86bd;
  box-shadow: 0 0 0 5px rgba(44, 134, 189, .1);
}

@keyframes broadcast-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 154, 98, .34); }
  70% { box-shadow: 0 0 0 8px rgba(47, 154, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 154, 98, 0); }
}

.title-block {
  max-width: 550px;
}

h1 {
  margin: 0;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.location {
  margin: 13px 0 0;
  color: #8b6a31;
  font-size: 14px;
  font-weight: 750;
}

.location::before {
  content: "— ";
  color: var(--gold);
}

.programme-now {
  margin: 18px 0 0;
  display: grid;
  gap: 4px;
}

.programme-now[hidden] {
  display: none;
}

.programme-now span {
  color: #8b6a31;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.programme-now strong {
  color: var(--blue-600);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.divider {
  height: 20px;
  margin: 14px 0 12px;
  display: flex;
  align-items: center;
}

.divider::before {
  content: "";
  width: 74px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky-500), var(--gold));
}

.divider span,
.divider::after {
  display: none;
}

.listen-panel {
  max-width: 550px;
  padding: 18px;
  border: 1px solid rgba(11, 101, 152, .16);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, rgba(233, 247, 253, .62));
  box-shadow: 0 16px 38px rgba(8, 41, 68, .09);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.is-playing .listen-panel {
  border-color: rgba(51, 174, 228, .42);
  box-shadow: 0 18px 44px rgba(11, 101, 152, .16);
  transform: translateY(-1px);
}

.has-error .listen-panel,
.is-offline .listen-panel {
  border-color: rgba(168, 51, 57, .26);
}

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

.play-button {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-600), var(--navy-800));
  color: white;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(8, 59, 96, .28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.play-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(8, 59, 96, .34);
  filter: brightness(1.04);
}

.play-button:active {
  transform: translateY(0) scale(.98);
}

.play-button:focus-visible {
  outline: 4px solid rgba(51, 174, 228, .3);
  outline-offset: 4px;
}

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

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

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

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

.is-connecting .play-button svg {
  opacity: 0;
}

.is-connecting .play-button::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border: 3px solid rgba(255, 255, 255, .34);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-block {
  min-width: 0;
}

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

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

.status-block > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

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

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

.about-block {
  max-width: 550px;
  margin: 20px 0 0;
  padding: 16px 18px 17px;
  border: 1px solid rgba(210, 166, 84, .22);
  border-left: 3px solid var(--gold);
  border-radius: 0 13px 13px 0;
  background: linear-gradient(90deg, rgba(210, 166, 84, .09), rgba(210, 166, 84, .035));
}

.about-block h2 {
  margin: 0 0 8px;
  color: #85652e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

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

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

.church-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(11, 101, 152, .32);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.church-links a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(51, 174, 228, .3);
  outline-offset: 3px;
}

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

.footer-note {
  margin: 17px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, .48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
}

.footer-note strong {
  color: var(--sky-300);
  font-size: 11px;
  letter-spacing: .14em;
}

.footer-note strong::after {
  content: "";
  width: 3px;
  height: 3px;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--gold);
}

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

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

  .photo-panel {
    min-height: 320px;
    max-height: 43vh;
  }

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

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 14px);
    padding: 7px 0 14px;
    justify-content: flex-start;
  }

  .player-card {
    border-radius: 20px;
  }

  .photo-panel {
    min-height: 230px;
    max-height: 34vh;
  }

  .content-panel {
    padding: 24px 20px 25px;
  }

  .player-header {
    margin-bottom: 26px;
    align-items: flex-start;
  }

  .live-badge {
    max-width: 148px;
    padding: 7px 9px;
    font-size: 8px;
    line-height: 1.2;
    white-space: normal;
  }

  h1 {
    font-size: clamp(29px, 9vw, 36px);
  }

  .programme-now {
    margin-top: 14px;
  }

  .programme-now strong {
    font-size: 16px;
  }

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

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

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

  .volume-control {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding-left: 3px;
  }

  .about-block {
    margin-top: 18px;
    padding: 14px 15px;
  }

  .description {
    font-size: 14px;
    line-height: 1.55;
  }

  .footer-note { gap: 7px; }

  .footer-note strong::after {
    margin-left: 7px;
  }
}

@media (max-width: 390px) {
  .photo-panel {
    min-height: 205px;
  }

  .player-header {
    margin-bottom: 22px;
  }
}

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

/* CSBOX 006 ICONOGRAPHY PORTRAIT FRAMING TEST V2 */
.iconography-layout #church-image {
  object-position: center 12%;
}

@media (max-width: 900px) {
  .iconography-layout .photo-panel {
    min-height: clamp(400px, 58vh, 560px);
    max-height: none;
  }
}

@media (max-width: 560px) {
  .iconography-layout .photo-panel {
    min-height: clamp(390px, 58vh, 500px);
  }

  .iconography-layout .content-panel {
    padding: 18px 18px 22px;
  }

  .iconography-layout .player-header {
    margin-bottom: 16px;
  }

  .iconography-layout h1 {
    font-size: clamp(25px, 7.5vw, 31px);
  }

  .iconography-layout .programme-now {
    margin-top: 10px;
  }

  .iconography-layout .programme-now strong {
    font-size: 15px;
  }

  .iconography-layout .divider {
    height: 14px;
    margin: 10px 0 8px;
  }

  .iconography-layout .about-block {
    margin-top: 14px;
    padding: 12px 14px;
  }
}
