/* ============================================================
   WATCH LIVE  —  /watch/ page only
   Loaded only on that page (functions.php: is_page('watch')).
   Every selector is .wc-watch* scoped, so nothing here can reach
   another page. a11y.css still loads after this file.
   ============================================================ */

.wc-watch {
  background: var(--cream);
  padding: clamp(32px, 6vw, 72px) var(--container-pad) clamp(40px, 7vw, 80px);
}

.wc-watch__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

/* ---------- status pill ---------- */
.wc-watch__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  margin-bottom: var(--space-4);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}

.wc-watch__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex: 0 0 9px;
}

/* live state — set server-side when "Treat as LIVE now" is ticked, or
   added by main.js when a Sunday/Thursday service window is open. */
.wc-watch.is-live .wc-watch__dot,
.wc-watch__status[data-live-forced="1"] .wc-watch__dot {
  background: var(--crimson);
  box-shadow: 0 0 0 4px rgba(184, 52, 27, 0.18);
  animation: wc-watch-pulse 1.8s var(--ease) infinite;
}

.wc-watch.is-live .wc-watch__status-text,
.wc-watch__status[data-live-forced="1"] .wc-watch__status-text {
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@keyframes wc-watch-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184, 52, 27, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(184, 52, 27, 0.05); }
}

@media (prefers-reduced-motion: reduce) {
  .wc-watch.is-live .wc-watch__dot,
  .wc-watch__status[data-live-forced="1"] .wc-watch__dot { animation: none; }
}

.wc-watch__event {
  color: var(--muted);
  font-weight: 500;
  border-left: 1px solid var(--sand-deep);
  padding-left: var(--space-3);
}

/* ---------- player ---------- */
.wc-watch__player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9, works without aspect-ratio support */
  height: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.wc-watch__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.wc-watch__hint {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  color: var(--muted);
  max-width: 62ch;
}

.wc-watch__alt {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-small);
  font-weight: 600;
}

.wc-watch__alt a { color: var(--crimson); }

/* ---------- not-configured fallback ---------- */
.wc-watch__setup {
  background: var(--sand);
  border: 1px dashed var(--sand-deep);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
}

.wc-watch__setup-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  margin: 0 0 var(--space-3);
  color: var(--ink);
}

.wc-watch__setup p {
  margin: 0;
  color: var(--muted);
  line-height: var(--lh-normal);
}

/* ---------- sidebar ---------- */
.wc-watch__side {
  display: grid;
  gap: var(--space-4);
}

.wc-watch__card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--r-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.wc-watch__card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}

.wc-watch__card-text,
.wc-watch__card-note {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  color: var(--muted);
}

.wc-watch__card-note:last-child { margin-bottom: 0; }

.wc-watch__times {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
}

.wc-watch__times li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 9px 0;
  border-bottom: 1px solid var(--sand);
  font-size: var(--fs-small);
  color: var(--ink);
}

.wc-watch__times li:last-child { border-bottom: 0; }
.wc-watch__times strong { font-weight: 700; }
.wc-watch__times span { color: var(--muted); font-variant-numeric: tabular-nums; }

.wc-watch__links {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.wc-watch__links a { color: var(--crimson); font-weight: 600; font-size: var(--fs-small); }

.wc-watch__btn {
  display: inline-block;
  margin-top: var(--space-2);
  background: var(--crimson);
  color: var(--cream);
  border-radius: var(--r-pill);
  padding: 11px 20px;
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
}

.wc-watch__btn:hover,
.wc-watch__btn:focus-visible { background: var(--crimson-deep); color: var(--cream); }

/* ---------- help band ---------- */
.wc-watch-help {
  background: var(--sand-deep);
  padding: clamp(32px, 5vw, 64px) var(--container-pad);
}

.wc-watch-help__inner {
  max-width: 860px;
  margin: 0 auto;
}

.wc-watch-help__title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

.wc-watch-help__list {
  margin: 0;
  padding-left: 1.25em;
  display: grid;
  gap: var(--space-3);
  color: var(--ink);
  line-height: var(--lh-normal);
  font-size: var(--fs-small);
}

.wc-watch-help__list a { color: var(--crimson); font-weight: 600; }

/* ---------- responsive: stack the grid, never hide anything ---------- */
@media (max-width: 900px) {
  .wc-watch__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .wc-watch__player { border-radius: var(--r-md); }
  .wc-watch__card { padding: var(--space-4); }
  .wc-watch__status { width: 100%; flex-wrap: wrap; }
}
