:root {
  color-scheme: light;
  --ink: #13213a;
  --muted: #52617a;
  --line: #d9e2ef;
  --soft: #eef4fb;
  --primary: #1769e0;
  --primary-strong: #0d4fb6;
  --navy: #122449;
  --accent: #0f8f72;
  --shadow: 0 22px 55px rgba(18, 36, 73, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -4%, rgba(23, 105, 224, 0.16), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(15, 143, 114, 0.14), transparent 28rem),
    linear-gradient(180deg, #f7fbff, #edf3f8);
}

button,
input {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(18, 36, 73, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

nav a,
.login-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

nav a:hover {
  background: var(--soft);
  color: var(--ink);
}

.login-button {
  background: var(--navy);
  color: #fff;
}

.login-button:hover {
  background: #1c376b;
  color: #fff;
}

.state-card {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.state-card h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1;
}

.state-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(15, 143, 114, 0.12);
}

.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.player-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.church-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

#church-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero-copy p,
.detail-card p {
  color: var(--muted);
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 105, 224, 0.18);
}

.primary:hover,
button:hover {
  background: var(--primary-strong);
}

.secondary {
  background: #e8f0fb;
  color: var(--primary-strong);
}

.quiet {
  background: transparent;
  color: var(--muted);
}

.player-card {
  overflow: hidden;
  min-height: 430px;
  background: #0b1732;
  color: #fff;
}

.player-empty {
  height: 100%;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background:
    radial-gradient(circle at 20% 0%, rgba(23, 105, 224, 0.55), transparent 28rem),
    linear-gradient(155deg, #10254f, #071126);
}

.player-empty p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
}

.live-pill {
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

#youtube-player {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
  background: #000;
}

.details-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.detail-card {
  padding: 24px;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.copy-row input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  padding: 0 12px;
}

#church-website {
  color: var(--primary);
  font-weight: 850;
  text-decoration: none;
}

#church-website:hover {
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 24px, 1180px);
    padding-top: 14px;
  }

  .topbar,
  .hero,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  nav {
    width: 100%;
  }

  nav a,
  .login-button {
    flex: 1;
  }

  .church-heading {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  #church-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .copy-row {
    grid-template-columns: 1fr;
  }
}
