/* OBN Watch — the public channel page. Dark, cinematic, TV-style. */
:root {
  --w-bg: #050508;
  --w-bg-2: rgba(22, 24, 34, 0.55);
  --w-card: rgba(255, 255, 255, 0.05);
  --w-card-hover: rgba(255, 255, 255, 0.09);
  --w-solid: #0d0f16;
  --w-line: rgba(255, 255, 255, 0.10);
  --w-line-strong: rgba(255, 255, 255, 0.18);
  --w-text: #f4f7fd;
  --w-muted: #a3b2d1;
  --w-live: #ff2e4d;
  --w-radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--w-bg); color: var(--w-text);
  font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
a { color: inherit; }
.hidden { display: none !important; }
.w-muted { color: var(--w-muted); }
::selection { background: rgba(232, 52, 74, .35); }

.w-nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
  background: linear-gradient(rgba(5, 5, 8, .82), rgba(5, 5, 8, .62)); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--w-line);
}
.w-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.w-brand .brand-logo { width: 38px; height: 38px; filter: drop-shadow(0 8px 22px rgba(67, 97, 238, .45)); }
.w-links { display: flex; align-items: center; gap: 4px; }
.w-links > a:not(.w-btn) { position: relative; padding: 8px 12px; text-decoration: none; color: var(--w-muted); border-radius: 10px; font-weight: 500; font-size: 15px; transition: color .2s, background .2s; }
.w-links > a:not(.w-btn):hover { color: var(--w-text); background: rgba(255, 255, 255, .06); }
@media (max-width: 640px) { .w-links > a:not(.w-btn), #pray-btn { display: none; } }

.w-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--w-line-strong); background: rgba(255, 255, 255, .06); color: var(--w-text);
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease-out), background .2s, box-shadow .25s, border-color .2s;
}
.w-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.w-btn:active { transform: translateY(0) scale(.98); }
.w-btn.ghost { background: transparent; }
.w-btn.gold { background: var(--brand-gradient); border-color: transparent; color: #ffffff; box-shadow: 0 8px 28px -10px rgba(232, 52, 74, .8), inset 0 1px 0 rgba(255, 255, 255, .45); }
.w-btn.gold:hover { background: var(--brand-gradient); filter: brightness(1.07); box-shadow: 0 12px 34px -10px rgba(232, 52, 74, .95), inset 0 1px 0 rgba(255, 255, 255, .5); }
.w-btn:disabled { opacity: .55; cursor: default; transform: none; }
.w-btn:focus-visible, .w-card:focus-visible, .w-links a:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 3px; }

main { max-width: 1280px; margin: 0 auto; padding: 0 20px 56px; }

.w-hero { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 28px; padding-top: 26px; align-items: start; }
@media (max-width: 900px) { .w-hero { grid-template-columns: 1fr; } }
.w-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--w-line-strong), 0 0 120px -40px rgba(67, 97, 238, .6); }
.w-player video { width: 100%; height: 100%; display: block; background: #000; }
.w-offair {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(232, 52, 74, .28) 0%, transparent 55%), radial-gradient(circle at 50% 30%, #2b3b8f 0%, #050508 45%, #030a1e 100%);
}
.w-offair::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 10deg, rgba(255, 255, 255, .05) 14deg, transparent 20deg 40deg, rgba(255, 255, 255, .04) 46deg, transparent 52deg 80deg); animation: w-rays 60s linear infinite; }
@keyframes w-rays { to { transform: rotate(360deg); } }
.w-offair > * { position: relative; }
.w-offair img { width: 96px; height: 96px; margin-bottom: 18px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(232, 52, 74, .35)); }
.w-offair h1 { margin: 0; font-size: clamp(22px, 3.2vw, 34px); font-weight: 700; text-wrap: balance; }
.w-offair p { margin: 8px 0 0; color: var(--w-muted); }
.w-countdown { margin-top: 18px; font-family: var(--font-display); font-size: clamp(26px, 4.4vw, 46px); font-weight: 800; font-variant-numeric: tabular-nums; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-live-badge {
  position: absolute; top: 16px; left: 16px; padding: 5px 12px 5px 10px; border-radius: 8px; background: var(--w-live); box-shadow: 0 6px 24px -4px rgba(255, 46, 77, .8);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; display: flex; align-items: center; gap: 7px;
}
.w-live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: w-pulse 1.4s infinite; }
@keyframes w-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .w-live-badge::before, .w-offair::before { animation: none; } }
.w-unmute {
  position: absolute; top: 16px; right: 16px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}

.w-now { padding: 4px 0; }
.w-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-gold); font-weight: 700; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.w-kicker.live { color: #ff6b6d; }
.w-now h2 { margin: 8px 0 10px; font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.w-now p { margin: 0 0 16px; color: var(--w-muted); white-space: pre-line; }
.w-now-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.w-switch { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.w-switch button { text-align: left; justify-content: flex-start; }
.w-switch button[aria-pressed="true"] { border-color: var(--brand-gold); }
.w-scripture { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.w-chip { padding: 3px 10px; border-radius: 999px; background: rgba(232, 52, 74, 0.14); color: #ff9aa6; font-size: 13px; font-weight: 600; }
.w-points { margin: 0 0 16px; padding-left: 20px; color: var(--w-muted); }
.w-points li { margin-bottom: 4px; }

.w-section { margin-top: 64px; }
.w-section h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin: 0 0 20px; }
.w-schedule { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.w-schedule li { background: var(--w-card); border: 1px solid var(--w-line); border-radius: var(--w-radius); padding: 16px 18px; display: flex; gap: 16px; align-items: center; transition: background .2s, border-color .2s, transform .25s var(--ease-out); }
.w-schedule li:hover { background: var(--w-card-hover); border-color: var(--w-line-strong); transform: translateY(-2px); }
.w-date { flex: none; width: 60px; text-align: center; border-radius: 14px; background: linear-gradient(160deg, rgba(232, 52, 74, .18), rgba(232, 52, 74, .04)); border: 1px solid rgba(232, 52, 74, .25); padding: 8px 0; }
.w-date b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.w-date small { color: var(--brand-gold); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.w-schedule .grow { min-width: 0; }
.w-schedule .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-schedule .grow small { color: var(--w-muted); font-variant-numeric: tabular-nums; }
.w-empty { color: var(--w-muted); background: transparent !important; border-style: dashed !important; }

.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.w-grid.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.w-card { display: block; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; border-radius: 12px; }
.w-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--w-solid) center / cover no-repeat; box-shadow: 0 0 0 1px var(--w-line), 0 18px 40px -20px rgba(0, 0, 0, .9); transition: box-shadow .3s, transform .35s var(--ease-out); }
.w-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); opacity: .7; transition: opacity .3s; }
.w-card:hover .w-thumb { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(232, 52, 74, .45), 0 28px 50px -22px rgba(0, 0, 0, .95), 0 0 50px -20px rgba(232, 52, 74, .5); }
.w-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.w-card:hover .w-thumb img { transform: scale(1.06); }
.w-dur { position: absolute; z-index: 1; right: 10px; bottom: 10px; backdrop-filter: blur(6px); padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.75); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-card b { display: block; margin-top: 12px; font-weight: 600; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-card small { color: var(--w-muted); }
.w-card[aria-current="true"] .w-thumb { outline: 2px solid var(--brand-gold); outline-offset: 2px; }

.w-foot { max-width: 1280px; margin: 0 auto; padding: 28px 20px 44px; display: flex; justify-content: space-between; color: var(--w-muted); font-size: 14px; border-top: 1px solid var(--w-line); }

.w-dialog { width: min(540px, calc(100vw - 32px)); border: 1px solid var(--w-line-strong); border-radius: 24px; background: linear-gradient(180deg, #14161f, #0a0b10); color: var(--w-text); padding: 28px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); }
.w-dialog[open] { animation: w-pop .35s var(--ease-out); }
@keyframes w-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.w-dialog::backdrop { background: rgba(2, 2, 5, 0.7); backdrop-filter: blur(6px); }
.w-dialog h2 { margin: 0 0 4px; }
.w-dialog label { display: block; margin-top: 12px; font-weight: 600; font-size: 14px; }
.w-dialog textarea, .w-dialog input:not([type=checkbox]) {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--w-line);
  background: rgba(0, 0, 0, .25); color: var(--w-text); font: inherit; font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.w-dialog textarea:focus, .w-dialog input:not([type=checkbox]):focus { outline: none; border-color: var(--brand-gold); box-shadow: 0 0 0 4px rgba(232, 52, 74, .15); }
.w-dialog .w-check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.w-dialog .w-check input { width: 18px; height: 18px; }
.w-error { color: #ff8d8f; min-height: 1.2em; margin: 10px 0 0; font-size: 14px; }
.w-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.w-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--brand-gradient); color: #ffffff; padding: 12px 22px; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); z-index: 50; }

/* Live chat */
.w-chat { margin-top: 18px; border: 1px solid var(--w-line); border-radius: var(--w-radius); background: var(--w-bg-2); backdrop-filter: blur(14px); display: flex; flex-direction: column; max-height: 520px; }
.w-chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--w-line); }
.w-chat-head span { color: var(--w-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.w-chat-list { list-style: none; margin: 0; padding: 8px 14px; overflow-y: auto; flex: 1; min-height: 160px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.w-chat-list li { line-height: 1.4; overflow-wrap: anywhere; }
.w-chat-list b { color: #9fc0ff; margin-right: 6px; }
.w-chat-list li.host b { color: var(--brand-gold); }
.w-chat-list li.host b::after { content: "HOST"; margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: var(--brand-gold); color: #ffffff; font-size: 10px; vertical-align: 1px; }
.w-chat-list .w-empty-chat { color: var(--w-muted); }
.w-react { display: flex; gap: 6px; padding: 6px 14px 0; }
.w-react button { flex: 1; height: 36px; border-radius: 10px; border: 1px solid var(--w-line); background: var(--w-card); font-size: 18px; cursor: pointer; }
.w-react button:hover { background: #1a1d29; }
.w-chat-form { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; }
.w-chat-form input { width: 100%; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--w-line); background: var(--w-bg); color: var(--w-text); font: inherit; }
.w-chat-send { display: flex; gap: 6px; }
.w-chat-note { margin: 0; padding: 0 14px 10px; color: var(--w-muted); font-size: 13px; min-height: 1em; }
.w-floats { position: absolute; right: 16px; bottom: 60px; width: 60px; height: 70%; pointer-events: none; overflow: visible; }
.w-float { position: absolute; bottom: 0; font-size: 28px; animation: w-rise 3.2s ease-out forwards; }
@keyframes w-rise { from { transform: translateY(0) scale(.7); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-320px) scale(1.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .w-float { animation-duration: 1.2s; } }

.w-lang { height: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--w-line-strong); background: rgba(255, 255, 255, .06); color: var(--w-text); font: inherit; font-size: 14px; }
@media (max-width: 640px) { .w-lang { max-width: 92px; } }
/* 24/7 channel guide */
.w-guide { margin-top: 18px; border: 1px solid var(--w-line); border-radius: var(--w-radius); background: var(--w-bg-2); backdrop-filter: blur(14px); padding: 14px 16px; }
.w-guide h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-gold); }
.w-guide ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.w-guide li { display: flex; gap: 12px; font-size: 14px; }
.w-guide li time { flex: none; width: 64px; color: var(--w-muted); font-variant-numeric: tabular-nums; }
.w-guide li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-guide-live { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--w-line); color: #ffb3b4; font-size: 14px; font-weight: 600; }
.w-live-badge.channel { background: var(--brand-blue, #4361ee); }
.w-live-badge.channel::before { display: none; }

.w-wordmark { display: block; height: 40px; width: auto; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .4)); }
@media (max-width: 640px) { .w-wordmark { height: 34px; } }
.w-kicker { color: #ff6b7a; }

/* Live poll and Q&A for viewers */
.w-poll { margin: 12px 14px 4px; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, rgba(232, 52, 74, .14), rgba(67, 97, 238, .12)); border: 1px solid var(--w-line-strong); display: flex; flex-direction: column; gap: 8px; }
.w-poll-k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff6b7a; }
.w-poll-q { font-size: 15px; line-height: 1.35; }
.w-poll-opts { display: flex; flex-direction: column; gap: 6px; }
.w-poll-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--w-line-strong); background: rgba(0, 0, 0, .25); color: var(--w-text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.w-poll-opt:hover:not(:disabled) { border-color: rgba(232, 52, 74, .6); }
.w-poll-opt:disabled { cursor: default; }
.w-poll-opt .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255, 255, 255, .1); transition: width .6s var(--ease-out); }
.w-poll-opt.mine { border-color: var(--brand-red); }
.w-poll-opt.mine .fill { background: linear-gradient(90deg, rgba(247, 148, 29, .35), rgba(232, 52, 74, .35)); }
.w-poll-opt .l, .w-poll-opt .v { position: relative; }
.w-poll-opt .v { font-variant-numeric: tabular-nums; }
.w-poll-m { color: var(--w-muted); font-size: 12px; }
.w-mode { display: flex; gap: 4px; margin: 8px 14px 0; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, .25); border: 1px solid var(--w-line); }
.w-mode button { flex: 1; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--w-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.w-mode button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
