/* ChurchBright Live page: broadcast-style hero (stream, countdown or offline), share row, replay + Church TV cards, service schedule.
   The dark frame, logo bug and LIVE badge come from tv.css (shared with Church TV). Tokens fall back to sensible values outside the app. */
.mx-lv { --mx-accent: var(--church, var(--primary, #4f46e5)); --tv-line: #ef4444; color: var(--ink, #0f172a); }
.mx-lv [hidden] { display: none !important; }
.mx-lv-tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .88); font: 800 11.5px/1.4 var(--font, system-ui, sans-serif); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.mx-lv-live { gap: 7px; }
.mx-lv-screen .mx-player { margin: 0; border-radius: 0; box-shadow: none; }

/* Stage (upcoming / offline) */
.mx-lv-stage { aspect-ratio: 21 / 9; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 28px 18px; color: #fff;
  background: radial-gradient(700px 320px at 50% 0%, color-mix(in srgb, var(--mx-accent) 42%, transparent), transparent), linear-gradient(160deg, #0b1020, #131737 60%, color-mix(in srgb, var(--mx-accent) 38%, #0b1020)); }
.mx-lv-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.mx-lv-stage-title { margin: 0; color: #fff; font-size: clamp(24px, 4.4vw, 42px); line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; }
.mx-lv-when { margin: 0 0 8px; font-size: clamp(15px, 2vw, 18px); color: rgba(255, 255, 255, .82); }
.mx-lv-stage-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.mx-lv-msg { margin: 4px 0 0; max-width: 52ch; color: rgba(255, 255, 255, .8); }
.mx-lv-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(100%, 520px); }
.mx-lv-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 10px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.mx-lv-unit b { font-size: clamp(30px, 7vw, 58px); line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.mx-lv-unit span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .68); }
.mx-lv-soon { grid-column: 1 / -1; margin: 6px 0 0; font-weight: 800; color: #fff; letter-spacing: .04em; }
.mx-lv-sub { font-size: 13.5px; color: rgba(255, 255, 255, .72); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Bar under the frame */
.mx-lv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 16px 0 4px; }
.mx-lv-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-lv-cta .mx-btn { min-height: 44px; }
.mx-lv-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mx-lv-share-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #64748b); margin-right: 2px; }
.mx-lv-chip, .mx-page a.mx-lv-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong, #cbd5e1); background: var(--surface, #fff); color: var(--ink-2, #334155); font: 600 13px var(--font, system-ui, sans-serif); text-decoration: none; cursor: pointer; }
.mx-lv-chip:hover { border-color: var(--mx-accent); color: var(--mx-accent); }
.mx-lv-chip:focus-visible, .mx-lv-mini:focus-visible { outline: 3px solid var(--mx-accent); outline-offset: 2px; }

/* Replay + Church TV */
.mx-lv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.mx-lv-grid .mx-block { margin: 0; }
.mx-lv-replay { border-radius: 18px; overflow: hidden; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.mx-lv-replay .mx-player, .mx-lv-replay .mx-audio { border-radius: 0; box-shadow: none; margin: 0; }
.mx-lv-replay-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; }
.mx-lv-replay-title { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink, #0f172a) !important; text-decoration: none; }
.mx-lv-replay-title:hover { text-decoration: underline; }
.mx-lv-replay-meta { font-size: 13.5px; color: var(--muted, #64748b); }
.mx-lv-tvblock .mx-tvcard { max-width: none; }

/* Service schedule */
.mx-lv-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.mx-lv-slot { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); }
.mx-lv-slot.is-now { border-color: #dc2626; box-shadow: 0 0 0 1px #dc2626; }
.mx-lv-slot-day { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mx-accent); }
.mx-lv-slot-title { font-size: 16px; line-height: 1.3; color: var(--ink, #0f172a); }
.mx-lv-slot-time { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2, #334155); }
.mx-lv-slot-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted, #64748b); }
.mx-lv-livechip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #dc2626; color: #fff; font: 800 11px/1 var(--font, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; }
.mx-lv-mini { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-strong, #cbd5e1); background: transparent; color: var(--ink-2, #334155); font: 600 12.5px var(--font, system-ui, sans-serif); cursor: pointer; }
.mx-lv-mini:hover { border-color: var(--mx-accent); color: var(--mx-accent); }

@media (min-width: 900px) {
  .mx-lv-grid.has-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mx-lv-stage { aspect-ratio: auto; min-height: 300px; padding: 22px 12px; }
  .mx-lv-count { gap: 6px; }
  .mx-lv-unit { padding: 10px 2px 8px; border-radius: 12px; }
  .mx-lv-bar { flex-direction: column; align-items: stretch; }
  .mx-lv-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-lv-share-label { width: 100%; }
  .mx-lv-strip { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none; -ms-overflow-style: none; }
  .mx-lv-strip::-webkit-scrollbar { display: none; }
  .mx-lv-slot { flex: 0 0 78%; scroll-snap-align: start; }
}
.mx-in-app .mx-lv-stage-title { font-size: clamp(22px, 6vw, 30px); }
@media (prefers-reduced-motion: reduce) {
  .mx-lv-chip, .mx-lv-mini { transition: none; }
}

/* Upcoming broadcast detected on YouTube: its thumbnail faintly behind the countdown */
.mx-lv-stage { position: relative; overflow: hidden; }
.mx-lv-stage > * { position: relative; z-index: 1; }
.mx-lv-stage > .mx-lv-thumb { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }

/* The Church TV card beside the latest replay: the same white card, a 16:9 picture on top and the button pinned to the bottom, so both cards are the same height. */
.mx-lv-grid { align-items: stretch; }
.mx-lv-grid > .mx-lv-replay { display: flex; flex-direction: column; }
.mx-lv-grid > .mx-lv-replay .mx-lv-replay-body { flex: 1 1 auto; }
.mx-lv-tvmedia { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b1020; color: rgba(255, 255, 255, .7); }
.mx-lv-tvmedia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-lv-tvmedia-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.mx-lv-tvpill { position: absolute; left: 12px; top: 12px; }
.mx-lv-tvgo { margin-top: auto; align-self: flex-start; gap: 8px; }
.mx-lv-tvcard .mx-lv-replay-body { gap: 4px; }
.mx-lv-tvcard .mx-lv-replay-meta { margin-bottom: 10px; }
