/* Listener page: phone-first, dark by default so it doesn't light up a sanctuary. Church brand overrides --accent. */
:root { --accent: var(--gold); --accent-ink: var(--navy-deep); --cap-size: 1.25rem; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
.l-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.l-church { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--ink); min-width: 0; }
.l-church span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-mark { display: inline-flex; width: 32px; height: 32px; flex: none; }
.l-mark img, .l-mark svg { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.icon-btn { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 1rem/1 var(--font-body); cursor: pointer; }
.icon-btn:hover { background: var(--navy-tint); }
.l-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 16px 32px; }
.l-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
.l-h2 { font: 650 1rem/1.3 var(--font-body); color: var(--ink); margin: 28px 0 12px; }
.code-form { display: flex; gap: 10px; margin: 20px 0 12px; }
.code-form input { font: 650 1.6rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .25em; text-transform: uppercase; text-align: center; min-height: 56px; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lang { min-height: 64px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; padding: 10px 14px; font: inherit; }
.lang b { display: block; font-size: 1.1rem; }
.lang small { color: var(--muted); }
.lang[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-gold { background: var(--accent); color: var(--accent-ink) !important; }
.start { width: 100%; margin-top: 24px; }
.tip { margin-top: 14px; }
.now { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.captions { min-height: 50vh; max-height: calc(100dvh - 260px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 2px 24px; scroll-behavior: smooth; }
.cap { font-size: var(--cap-size); line-height: 1.5; color: var(--muted); transition: color .3s; }
.cap.playing { color: var(--ink); }
.cap.played { color: var(--text); }
.cap.waiting-msg { color: var(--muted); font-style: italic; }
.controls { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.controls .btn { flex: 1 1 auto; }
.l-foot { padding: 16px; text-align: center; max-width: 640px; margin: 0 auto; }
[dir="rtl"] .cap { text-align: right; }
