:root{--bg:#081524;--bg2:#0c1d31;--panel:#11243a;--blue:#0751a6;--bright:#4b9be9;--ink:#f4f7fb;--muted:#a8b9cb;--line:#253b50}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}.wrap{width:min(1180px,calc(100% - 64px));margin:auto}.skip{position:absolute;left:-999px;top:0}.skip:focus{left:15px;top:15px;z-index:10;background:white;color:black;padding:10px}.header{background:rgba(7,19,33,.96);border-bottom:1px solid #1b3145;position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}.header-inner{width:min(1280px,calc(100% - 60px));height:83px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:15px;min-width:0}.brand img{width:178px;height:66px;object-fit:contain;background:white;border-radius:4px;padding:5px}.brand-divider{height:29px;border-left:1px solid #496079}.brand-tag{font-size:11px;letter-spacing:.26em;font-weight:800;white-space:nowrap}.header nav{display:flex;align-items:center;gap:29px;font-size:13px;font-weight:650;color:#c4d2e2}.header nav a:hover,.footer a:hover{color:#76b7ff}.church-link{padding:10px 15px;border:1px solid #3d526a;border-radius:6px}.hero{position:relative;min-height:485px;overflow:hidden;background:radial-gradient(ellipse at 74% 46%,#154b7b 0%,#0d2947 34%,#091827 68%);border-bottom:1px solid #17324d}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#081524 0%,rgba(8,21,36,.88) 42%,rgba(8,21,36,.05) 100%);z-index:1}.hero-glow{position:absolute;right:3%;top:5%;width:48%;height:95%;border:1px solid #2e6390;border-radius:50%;opacity:.2;transform:rotate(-28deg)}.hero-content{position:relative;z-index:2;padding-top:79px;padding-bottom:73px}.eyebrow,.section-kicker{font-size:11px;letter-spacing:.19em;font-weight:800;color:#6cb4f4}.eyebrow{display:flex;align-items:center;gap:10px}.pulse-dot{width:8px;height:8px;border-radius:50%;background:#74a5d0}.pulse-dot.on{background:#ef5252;box-shadow:0 0 0 5px #ef525222;animation:pulse 1.7s infinite}@keyframes pulse{50%{box-shadow:0 0 0 9px #ef525200}}h1,h2,h3,p{margin-top:0}.hero h1{font-size:clamp(44px,5.5vw,76px);line-height:1.07;letter-spacing:-.045em;font-weight:800;margin:21px 0}.hero h1 em{font-style:normal;color:#75b5f4}.hero-sub{max-width:530px;color:#bac9da;line-height:1.75;font-size:16px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:29px 0 40px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:11px;border-radius:7px;padding:14px 20px;font-size:13px;font-weight:750;transition:transform .2s,background .2s;border:1px solid transparent}.btn:hover{transform:translateY(-2px)}.btn-primary{background:#1767ba;color:white}.btn-primary:hover{background:#2780d6}.btn-outline{background:#ffffff0a;border-color:#50677f;color:#f4f7fb}.btn-outline:hover{background:#ffffff16}.btn.small{padding:11px 15px}.hero-meta{display:flex;align-items:center;gap:13px;font-size:10px;letter-spacing:.18em;font-weight:700;color:#95a9bc}.meta-rule{width:26px;height:2px;background:#5ba4e9}.meta-sep{color:#4f708e}.hero-mark{position:absolute;right:10%;top:0;color:#a6d2ff;opacity:.055;font-family:Georgia,serif;font-size:550px;line-height:1;z-index:0}.featured,.library{padding-top:70px;padding-bottom:62px}.section-top{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px}.section-top h2{font-size:clamp(26px,3vw,35px);letter-spacing:-.035em;margin:9px 0 0}.section-top p{margin:10px 0 0;color:var(--muted);font-size:14px}.status-badge{border:1px solid #40576b;background:#1a2d40;color:#c3d2df;border-radius:5px;font-size:10px;letter-spacing:.12em;font-weight:800;padding:9px 12px;white-space:nowrap}.status-badge.live{background:#8d222d;border-color:#d3454b;color:white}.feature-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr);background:#0e2033;border:1px solid var(--line);border-radius:12px;overflow:hidden}.video-frame{aspect-ratio:16/9;background:#050a10;min-width:0}.video-frame iframe{display:block;width:100%;height:100%;border:0}.video-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#9db1c6;text-align:center;padding:20px;background:radial-gradient(circle at center,#143456,#050a10 75%)}.video-placeholder img{width:72px;height:72px;object-fit:contain;background:white;border-radius:14px;padding:6px;opacity:.75}.feature-info{padding:35px 28px;display:flex;flex-direction:column;align-items:start}.feature-info h3{font-size:27px;letter-spacing:-.025em;margin:15px 0}.feature-info p{font-size:14px;line-height:1.75;color:var(--muted)}.feature-meta{display:flex;gap:15px;color:#8ca4bb;font-size:12px;margin:7px 0 20px}.feature-actions{margin-top:auto}.small-note{font-size:11px!important;margin-top:20px}.library{padding-top:25px;padding-bottom:90px}.library-head{align-items:end}.search{display:flex;align-items:center;gap:8px;background:#11243a;border:1px solid #2b425b;border-radius:8px;padding:0 14px;color:#7ca7cf;min-width:255px}.search span{font-size:24px}.search input{background:transparent;border:0;outline:0;color:white;height:44px;width:100%;font-size:13px}.search input::placeholder{color:#91a5ba}.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.video-card{display:block;text-align:left;border:1px solid #1e354c;border-radius:9px;background:#0e2033;padding:0;color:inherit;overflow:hidden;width:100%;transition:transform .2s,border-color .2s}.video-card:hover,.video-card:focus-visible{transform:translateY(-4px);border-color:#367db7}.card-image{position:relative;aspect-ratio:16/9;background:linear-gradient(145deg,#16416a,#0a1727);overflow:hidden;display:flex;align-items:center;justify-content:center}.card-image img{width:100%;height:100%;object-fit:cover}.card-image .fallback-logo{width:75px;height:75px;object-fit:contain;background:#fff;border-radius:10px;padding:7px;opacity:.65}.play-circle{position:absolute;bottom:12px;left:13px;background:#0a1528dc;border:1px solid #ffffff6b;border-radius:50%;width:35px;height:35px;display:grid;place-items:center;font-size:12px}.card-body{padding:15px 16px 18px}.card-body h3{font-size:15px;line-height:1.45;margin:0 0 8px}.card-body p{font-size:12px;color:#93a8bb;margin:0}.library-notice{padding:32px 0;color:#a6b9ca;font-size:14px}.more-row{text-align:center;margin-top:27px}.about{background:linear-gradient(120deg,#102b48,#0b1b2e);border-top:1px solid #23405e;border-bottom:1px solid #23405e}.about-inner{padding:75px 0;display:flex;align-items:center;justify-content:space-between;gap:40px}.about h2{font-size:clamp(31px,4vw,48px);letter-spacing:-.035em;line-height:1.1;margin:15px 0}.about p{max-width:560px;color:#b3c4d5;line-height:1.8;font-size:15px;margin-bottom:24px}.about-emblem{width:200px;height:200px;border:1px solid #315e88;border-radius:25px;display:grid;place-items:center;transform:rotate(-7deg);background:#ffffff0d}.about-emblem img{width:145px;height:145px;object-fit:contain;background:#fff;border-radius:16px;padding:8px;transform:rotate(7deg)}.footer{background:#06111e}.footer-inner{min-height:150px;display:flex;justify-content:space-between;align-items:center;gap:20px}.footer-brand{display:flex;flex-direction:column;align-items:start;gap:8px}.footer-brand img{width:155px;height:57px;object-fit:contain;background:white;padding:4px;border-radius:4px}.footer-brand span{font-size:9px;letter-spacing:.17em;color:#8ea5bc}.footer-right{display:flex;flex-direction:column;align-items:end;gap:12px;color:#93a8bb;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(max-width:900px){.header nav{gap:14px}.brand img{width:137px;height:54px}.brand-tag{font-size:9px}.feature-layout{grid-template-columns:1fr}.feature-info{padding:24px}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-mark{right:-12%}}@media(max-width:620px){.wrap{width:calc(100% - 32px)}.header-inner{width:calc(100% - 30px);height:auto;min-height:78px;flex-wrap:wrap;padding:9px 0}.header nav{width:100%;justify-content:space-between;gap:8px;padding-bottom:8px;font-size:12px}.header nav .church-link{padding:7px 8px}.brand img{width:120px;height:44px}.brand-divider{height:20px}.brand-tag{font-size:9px}.hero{min-height:0}.hero-content{padding:62px 0 55px}.hero h1{font-size:44px}.hero-sub{font-size:14px}.hero-mark{display:none}.hero-actions{margin-bottom:29px}.featured{padding-top:48px}.section-top{align-items:start}.status-badge{font-size:9px;padding:8px}.library-head{flex-direction:column;align-items:stretch}.search{width:100%}.video-grid{grid-template-columns:1fr;gap:16px}.about-inner{padding:50px 0}.about-emblem{display:none}.footer-inner{padding:30px 0;flex-direction:column;align-items:start}.footer-right{align-items:start}.feature-info h3{font-size:23px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

/* Sunday livestream schedule */
.schedule{padding-top:36px;padding-bottom:0}.schedule-card{display:flex;gap:20px;align-items:flex-start;padding:25px 28px;background:#10253b;border:1px solid #2c4e6d;border-left:4px solid #4b9be9;border-radius:10px}.schedule-icon{color:#82c2ff;font-size:34px;line-height:1}.schedule-card h2{font-size:clamp(23px,2.6vw,30px);margin:9px 0 12px;letter-spacing:-.025em}.schedule-card h2 span{font-size:.65em;color:#b5c9dc;white-space:nowrap}.schedule-card p{max-width:850px;color:#bacbda;line-height:1.65;font-size:14px;margin:0 0 9px}.schedule-card .schedule-help{margin-bottom:0;color:#d4e0eb}@media(max-width:620px){.schedule{padding-top:22px}.schedule-card{padding:20px 17px;gap:12px}.schedule-icon{font-size:26px}.schedule-card h2 span{display:block;margin-top:5px;font-size:.7em}}

/* Site version at lower right of footer */
.site-version{font-size:10px;letter-spacing:.08em;color:#6e859b;font-variant-numeric:tabular-nums}

/* v1.4.0: dark-brand images sit directly on dark backgrounds */
.brand img,.footer-brand img{background:transparent;border-radius:0;padding:0}
.video-placeholder img,.card-image .fallback-logo,.about-emblem img{background:transparent;border-radius:0;padding:0}
.brand img{width:190px;height:66px}.footer-brand img{width:180px;height:65px}
@media(max-width:900px){.brand img{width:150px;height:54px}}
@media(max-width:620px){.brand img{width:128px;height:44px}}

/* v1.5.0: Transparent blue branding on the site background */
.brand img,.footer-brand img,.video-placeholder img,.about-emblem img,.card-image .fallback-logo{background:transparent!important;padding:0!important;border-radius:0!important}

/* Riverstone branded hero watermark (replaces generic serif R) */
.hero-mark{right:2%;top:8%;width:min(49vw,690px);height:84%;display:flex;align-items:center;justify-content:center;opacity:.095;font-size:initial;line-height:normal;pointer-events:none}
.hero-mark img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:900px){.hero-mark{right:-8%;width:60vw}}
@media(max-width:620px){.hero-mark{display:none}}

/* v1.7.1: discreet provider credit */
.provider-credit{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-right:auto;margin-left:32px}
.provider-label{font-size:11px;color:#93a8bb}
.provider-link{display:flex;align-items:center;gap:10px;color:#c9d9e8;font-size:12px;font-weight:600}
.provider-link:hover{color:#76b7ff}
.provider-link img{width:46px;height:32px;object-fit:contain;flex-shrink:0}
@media(max-width:620px){.provider-credit{margin:8px 0 0}.footer-right{margin-top:10px}}

/* v1.7.2: properly spaced provider branding */
.footer-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:30px;padding:28px 0;min-height:160px}
.provider-credit{margin:0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.provider-label{font-size:11px;line-height:1.4;color:#9db0c4;white-space:normal}
.provider-link{display:block;line-height:0;max-width:100%}
.provider-link img{display:block;width:148px;height:auto;max-width:100%;object-fit:contain}
.footer-right{justify-self:end;text-align:right}
@media(max-width:700px){.footer-inner{grid-template-columns:1fr;row-gap:24px;justify-items:center;text-align:center}.footer-brand{align-items:center}.provider-credit{align-items:center}.footer-right{justify-self:center;align-items:center;text-align:center;margin:0}.provider-link img{width:140px}}

/* v1.7.3: hard cap footer provider image, including intrinsic SVG/PNG sizing */
.footer-inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);width:min(1180px,calc(100% - 64px));}
.provider-credit{width:100%;max-width:260px;justify-self:center;min-width:0;overflow:hidden;}
.provider-link{display:block!important;width:150px!important;max-width:100%!important;height:auto!important;line-height:0;margin-inline:auto;}
.provider-link > img{display:block!important;width:150px!important;max-width:100%!important;height:auto!important;max-height:90px!important;object-fit:contain!important;}
.footer-brand{min-width:0}.footer-right{min-width:0}
@media(max-width:700px){.footer-inner{grid-template-columns:minmax(0,1fr);width:calc(100% - 32px)}.provider-link{width:140px!important}.provider-link > img{width:140px!important}}

/* Refresh status feedback — v1.7.6 */
.feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#reloadBtn.is-checking { cursor: wait; opacity: .75; }
#reloadBtn:disabled { cursor: wait; }
.refresh-feedback { font-size: .84rem; line-height: 1.4; color: #b7cbe2; }
.refresh-feedback[data-state="live"] { color: #91e4bd; }
.refresh-feedback[data-state="error"] { color: #ffb4b4; }
.refresh-feedback[hidden] { display: none; }

/* v1.7.7: clearly visible refresh progress and cooldown */
#reloadBtn.is-checking { opacity: 1; }
#reloadBtn:disabled { cursor: not-allowed; }
#reloadBtn.is-checking::before { content: ' '; display:inline-block; width:12px; height:12px; margin-right:6px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; vertical-align:-2px; animation:riverstone-spin .75s linear infinite; }
@keyframes riverstone-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { #reloadBtn.is-checking::before { animation:none; } }

/* v1.8.0: live-only section and separate recording playback */
.replay-panel { margin: 0 0 30px; background: #0e2033; border: 1px solid #355471; border-radius: 12px; padding: 20px; scroll-margin-top: 110px; }
.replay-panel[hidden] { display: none; }
.replay-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.replay-panel-head h3 { margin: 8px 0; font-size: 23px; }
.replay-panel-head p { margin: 0; color: #a8b9cb; font-size: 13px; }
.replay-panel .video-frame { max-width: 950px; margin: auto; }
@media(max-width:620px) { .replay-panel-head { align-items: flex-start; flex-direction: column; } }

/* v1.8.1: clear path to archived services after an offline check */
.previous-streams-link[hidden] { display: none !important; }
.previous-streams-link { text-align: center; white-space: normal; }

/* v1.8.2 — offline broadcast slide occupies full 16:9 player area */
.video-placeholder.offline-slide{padding:0;gap:0;background:#050a10;overflow:hidden}
.video-placeholder.offline-slide img{width:100%;height:100%;object-fit:contain;max-width:none;max-height:none;opacity:1;background:transparent!important;padding:0!important;border-radius:0!important}

/* v1.8.3: explicitly override the generic 72px placeholder logo styling. */
#videoFrame .video-placeholder.offline-slide { width:100%; height:100%; min-height:100%; display:block; padding:0; margin:0; background:#050a10; }
#videoFrame .video-placeholder.offline-slide > img { display:block; width:100%!important; height:100%!important; max-width:none!important; max-height:none!important; min-width:0; object-fit:fill; opacity:1!important; margin:0; padding:0!important; border:0; border-radius:0; background:none!important; }

/* v1.9.0 — searchable, date-based video archive */
.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.archive-cta{text-align:center;margin-top:32px}.archive-cta p{font-size:13px;color:var(--muted);margin:12px 0 0}
.archive-main{min-height:65vh}.archive-intro{padding-top:65px;padding-bottom:28px}.archive-intro h1{font-size:clamp(36px,5vw,58px);margin:15px 0}.archive-intro p{color:var(--muted);line-height:1.7;max-width:680px;margin-bottom:25px}
.archive-library{padding-top:20px}.archive-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(130px,1fr) minmax(150px,1fr);gap:16px;margin-bottom:18px}
.archive-filters label{display:flex;flex-direction:column;gap:8px;color:#c6d7e9;font-weight:650;font-size:13px}
.archive-filters input,.archive-filters select{width:100%;min-height:48px;border-radius:8px;border:1px solid #38536d;background:#11243a;color:white;padding:0 14px;font-size:15px}
.archive-filters input:focus-visible,.archive-filters select:focus-visible{outline:2px solid #6cb4f4;outline-offset:2px}
.archive-count{font-size:13px;color:#a8b9cb;margin:0 0 24px}
@media(max-width:620px){.archive-filters{grid-template-columns:1fr 1fr}.archive-search-label{grid-column:1/-1}.recent-grid{grid-template-columns:1fr}.archive-intro{padding-top:42px}}

/* v1.10.0 — accessible service sharing */
.share-card{min-width:0;display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:var(--card-bg,#fff)}
.share-card .video-card{width:100%;flex:1;border-radius:14px 14px 0 0}
.share-card-button{font:inherit;font-weight:700;color:#0248a3;background:#f0f6ff;border:1px solid #c8d9f3;border-top:0;cursor:pointer;padding:13px 15px;min-height:48px;text-align:center}
.share-card-button:hover,.share-card-button:focus-visible{background:#dfeeff;text-decoration:underline}
.replay-share-actions{padding:14px 0}
.share-dialog{border:0;border-radius:18px;padding:0;width:min(94vw,460px);max-height:90vh;box-shadow:0 18px 70px #0006;color:#172638;background:#fff}
.share-dialog::backdrop{background:#071524aa}
.share-dialog-inner{padding:24px}
.share-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.share-dialog-header h2{font-size:1.4rem;margin:0;color:#081524}
.share-dialog-inner p{color:#34465c}
.share-close{background:#edf3f9;color:#142438;border:0;border-radius:50%;width:40px;height:40px;cursor:pointer;font-size:1.1rem}
.share-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.share-options .btn{display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:10px;font-size:0.94rem}
.share-options #shareNative{grid-column:1/-1}
.share-feedback{min-height:1.3em;font-weight:600}
.share-copy-fallback{width:100%;padding:10px;margin-top:10px}
@media(max-width:420px){.share-options{grid-template-columns:1fr}}

/* v1.10.1: readable sharing controls on light dialog */
.share-dialog .share-options .btn-outline{color:#17324f;background:#fff;border:1px solid #607995;font-weight:750}
.share-dialog .share-options .btn-outline:hover,.share-dialog .share-options .btn-outline:focus-visible{background:#eaf3ff;color:#063e83;border-color:#1767ba}
.share-dialog .share-options .btn-primary{color:#fff;background:#1767ba;border-color:#1767ba}
.share-dialog .share-options .btn-primary:hover,.share-dialog .share-options .btn-primary:focus-visible{background:#09549f}
.share-dialog .share-options .btn:focus-visible,.share-dialog .share-close:focus-visible{outline:3px solid #e0a52e;outline-offset:3px}
.share-dialog .share-options .btn[hidden]{display:none}

/* v1.10.2: force legible sharing choices regardless of inherited site styles */
html body dialog.share-dialog .share-options a#shareEmail,
html body dialog.share-dialog .share-options button#shareCopy {
  color:#102b49 !important; background-color:#f5f9ff !important;
  border:2px solid #55718e !important; opacity:1 !important;
  -webkit-text-fill-color:#102b49 !important; text-shadow:none !important;
}
html body dialog.share-dialog .share-options a#shareEmail:hover,
html body dialog.share-dialog .share-options button#shareCopy:hover {background-color:#deedff !important;}
html body dialog.share-dialog .share-options button#shareNative {color:#fff !important; opacity:1 !important;}

/* v1.10.3: explicit black text on both white share buttons */
#shareDialog #shareEmail, #shareDialog #shareCopy,
#shareDialog #shareEmail *, #shareDialog #shareCopy * { color: #000 !important; -webkit-text-fill-color: #000 !important; opacity: 1 !important; }

/* v1.10.4: dedicated mobile sharing controls and touch-friendly layout */
.mobile-share-bar{display:none}
@media(max-width:767px){
 .mobile-share-bar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:45;gap:8px;padding:10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#081524;box-shadow:0 -5px 22px #0008;border-top:1px solid #38536d}
 .mobile-share-action{flex:1;min-width:0;border:1px solid #9bc6f3;background:#1767ba;color:#fff;border-radius:8px;font-size:14px;font-weight:750;min-height:48px;padding:8px 10px}
 .mobile-share-action[hidden]{display:none!important}
 .share-card-button{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;min-height:52px;font-size:15px;color:#063c80!important;background:#eef5ff!important}
 .feature-actions{display:flex;flex-wrap:wrap;gap:10px}
 .feature-actions #shareLiveBtn{display:inline-flex!important;visibility:visible!important;opacity:1!important}
 .replay-share-actions #shareReplayBtn{display:inline-flex!important;visibility:visible!important;opacity:1!important}
 body{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
 .share-dialog{width:calc(100vw - 24px);max-width:460px;max-height:calc(100dvh - 30px);overflow:auto}
 .share-dialog-inner{padding:20px}
}
.share-dialog-fallback{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:100}
