/* portal-design · macrostructure: broadcast-stage (screen + side room) · nav: top tabs + phone tab bar · footer: compact centred · anchor: the church's own theme tokens
   ChurchOS TV — every page, built once on tokens. A theme (themes/*.css) sets the tokens and a few touches. */
:root {
	--ease: cubic-bezier(.22, .61, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
	--c-live: #e5383b; --c-wa: #1faa59; --c-on-screen: #fff;
	--tabbar-h: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; color-scheme: var(--scheme, light); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body.tv-body { margin: 0; background: var(--c-bg); color: var(--c-text); font: 400 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; padding-bottom: var(--tabbar-h); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: var(--head-weight, 800); letter-spacing: var(--head-tracking, -.02em); text-transform: var(--head-case, none); color: var(--c-ink); overflow-wrap: anywhere; }
p { margin: 0; }
[hidden] { display: none !important; }
.tv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tv-muted { color: var(--c-muted); }
.tv-small { font-size: 13px; }
.tv-skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--c-primary); color: var(--c-on-primary); padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; }
.tv-skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--c-focus, var(--c-accent)); outline-offset: 2px; }
.ic { flex: none; }
.tv-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; color: var(--c-accent-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.tv-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tv-empty { padding: 28px 16px; text-align: center; color: var(--c-muted); }

/* Wordmark: the channel name + an optional script tag */
.tv-word { display: inline-flex; align-items: baseline; gap: 3px; line-height: 1; white-space: nowrap; }
.tv-word b { font-family: var(--f-mark, var(--f-body)); font-weight: var(--mark-weight, 800); letter-spacing: var(--mark-tracking, .02em); text-transform: var(--mark-case, uppercase); }
.tv-word i { font-family: var(--f-script); font-style: normal; font-weight: 700; color: var(--c-accent); font-size: var(--script-scale, 1.75em); letter-spacing: 0; line-height: .6; transform: translateY(.06em); margin-left: 1px; }

/* ── Buttons ── */
.tv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); border: 0; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.tv-btn:active { transform: scale(.97); }
.tv-btn:disabled, .tv-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.tv-btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.tv-btn-block { width: 100%; }
.tv-btn-accent { background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 6px 18px -6px var(--c-accent-glow); }
.tv-btn-accent:hover { background: var(--c-accent-2); }
.tv-btn-wa { background: var(--c-wa); color: #fff; }
.tv-btn-wa:hover { background: #17924b; }
.tv-btn-ghost { background: var(--c-surface-2); color: var(--c-ink); }
.tv-btn-ghost:hover { background: var(--c-surface-3); }
.tv-btn-light { background: #fff; color: #111; }
.tv-btn.is-loading { opacity: .7; pointer-events: none; }

/* ── Nav ── */
.tv-nav { position: sticky; top: 0; z-index: 60; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.tv-nav.is-scrolled { border-bottom-color: var(--c-line); }
.tv-nav-in { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 22px; }
.tv-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); font-size: 15px; flex: none; min-width: 0; }
.tv-logo img { height: 34px; width: auto; }
.tv-tabs-top { display: flex; gap: 4px; margin-left: auto; font-size: 14px; }
.tv-tabs-top a { text-decoration: none; color: var(--c-muted); font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill); transition: color .2s, background .2s; }
.tv-tabs-top a:hover { color: var(--c-ink); background: var(--c-surface-2); }
.tv-tabs-top a[aria-current="page"] { color: var(--c-ink); background: var(--c-surface-2); box-shadow: inset 0 -2px 0 var(--c-accent); }
.tv-onair-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--c-ink); background: var(--c-surface-2); border-radius: var(--r-pill); padding: 6px 12px; text-decoration: none; max-width: 260px; min-width: 0; }
.tv-onair-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-onair-chip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); animation: tv-pulse 2s infinite; }
.tv-onair-chip[data-state="live"] { background: rgba(229, 56, 59, .12); color: var(--c-live); }
.tv-onair-chip[data-state="live"] i { background: var(--c-live); }
.page-live .tv-onair-chip { display: none; }
@keyframes tv-pulse { 0% { box-shadow: 0 0 0 0 var(--c-accent-glow); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Phone tab bar */
.tv-tabbar { display: none; }

/* ── Page ── */
.tv { max-width: 1320px; margin: 0 auto; padding: 18px 24px 40px; }
.tv-season { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 12px 18px; border-radius: var(--r); background: var(--season-bg); color: var(--c-ink); box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.tv-season::after { content: ''; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, var(--c-accent-soft), transparent); }
.tv-season-badge { display: inline-flex; align-items: center; gap: 6px; flex: none; background: var(--c-primary); color: var(--c-on-primary); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); }
.tv-season p { font-size: 15px; position: relative; z-index: 1; }
.tv-season p b { font-family: var(--f-script); font-size: var(--season-size, 24px); font-weight: 700; color: var(--c-accent-ink); margin-right: 6px; line-height: 1; }

.tv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.tv-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 10px 0 22px; }
.tv-pagehead h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.tv-pagehead .tv-muted { margin-top: 6px; }
.tv-eyebrow { font-family: var(--f-script); font-size: var(--eyebrow-size, 22px); color: var(--c-accent-ink); line-height: 1; margin-bottom: 4px; letter-spacing: var(--eyebrow-tracking, 0); text-transform: var(--eyebrow-case, none); font-weight: var(--eyebrow-weight, 700); }
.tv-section { margin-top: 40px; }
.tv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.tv-head h2 { font-size: clamp(24px, 3vw, 34px); }

/* ── The screen ── */
.tv-stage { min-width: 0; }
.tv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-screen, var(--r)); overflow: hidden; background: var(--screen-bg); box-shadow: var(--sh-screen); isolation: isolate; color: var(--c-on-screen); }
.tv-video { position: absolute; inset: 0; overflow: hidden; }
.tv-video video, .tv-video > iframe, .tv-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-video video { object-fit: contain; background: #000; }
.tv-yt iframe, .tv-yt > div { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; }
/* Minimal YouTube branding: the YouTube frame is taller than the screen; its title bar and logo sit in the cropped bars. */
.is-yt-minimal .tv-yt iframe { top: calc(var(--yt-crop, 60px) * -1); height: calc(100% + var(--yt-crop, 60px) * 2); }
.tv-shield { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; padding: 0; cursor: pointer; }
.let-through .tv-shield { pointer-events: none; }
.tv-top { position: absolute; z-index: 4; left: 16px; top: 14px; display: flex; gap: 10px; align-items: center; pointer-events: none; }
.tv-status { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--r-pill); background: var(--c-overlay); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); }
[data-state="live"] .tv-status { background: var(--c-live); border-color: transparent; }
.tv-soundchip { pointer-events: auto; display: none; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border-radius: var(--r-pill); border: 0; background: #fff; color: #111; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); text-align: left; line-height: 1.15; animation: tv-nudge 3s var(--ease) 2s infinite; }
.tv-soundchip b { display: block; font-size: 13px; }
.tv-soundchip small { display: block; font-size: 11px; color: #555; }
.is-muted .tv-soundchip { display: inline-flex; }
@keyframes tv-nudge { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-3deg) scale(1.04); } 95% { transform: rotate(3deg) scale(1.04); } }
.tv-bug { position: absolute; z-index: 3; right: 16px; top: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: var(--r-pill); background: var(--c-overlay); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); font-size: 12px; pointer-events: none; opacity: .92; }
.tv-bug img { height: 24px; width: auto; }
.tv-bug time { font-variant-numeric: tabular-nums; font-weight: 600; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .25); }
.tv-season-tag { position: absolute; z-index: 3; right: 16px; top: 52px; font-family: var(--f-script); font-size: 20px; font-weight: 700; color: var(--c-accent-alt); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); pointer-events: none; }

/* Lower third */
.tv-l3 { position: absolute; z-index: 3; left: 18px; bottom: 18px; max-width: min(560px, 76%); display: flex; background: var(--l3-bg); color: var(--l3-ink); border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); transform: translateY(14px); opacity: 0; transition: transform .5s var(--spring), opacity .35s var(--ease); pointer-events: none; }
.tv-l3.on { transform: none; opacity: 1; }
.tv-l3-bar { flex: none; width: 6px; background: linear-gradient(180deg, var(--c-accent), var(--c-accent-alt)); }
.tv-l3 > div { padding: 10px 16px 11px 14px; min-width: 0; }
.tv-l3 small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--l3-kicker); }
.tv-l3 b { display: block; font-family: var(--f-head); font-size: 17px; line-height: 1.25; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-l3 span { display: block; font-size: 13px; color: var(--l3-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-upnext { position: absolute; z-index: 3; right: 18px; bottom: 18px; max-width: 46%; padding: 9px 14px; border-radius: var(--r-sm); background: var(--c-overlay); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); transform: translateX(20px); opacity: 0; transition: .45s var(--ease); pointer-events: none; }
.tv-upnext.on { transform: none; opacity: 1; }
.tv-upnext small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent-alt); font-weight: 700; }
.tv-upnext em { font-style: normal; color: #fff; font-variant-numeric: tabular-nums; }
.tv-upnext b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Scripture on screen */
.tv-scripture { position: absolute; z-index: 7; left: 50%; top: 50%; margin: 0; width: min(620px, 86%); transform: translate(-50%, -44%) scale(.96); opacity: 0; transition: .5s var(--spring); background: var(--l3-bg); color: var(--l3-ink); border-radius: var(--r); padding: 20px 24px 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.tv-scripture.on { transform: translate(-50%, -50%); opacity: 1; }
.tv-scripture small { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--l3-kicker); }
.tv-scripture blockquote { margin: 8px 0 12px; font-family: var(--f-quote, var(--f-body)); font-size: clamp(15px, 2vw, 21px); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; max-height: 9em; overflow: auto; }
.tv-sc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tv-sc-actions button { border: 0; border-radius: var(--r-pill); background: rgba(127, 127, 127, .14); padding: 7px 14px; font-weight: 600; font-size: 13px; color: inherit; display: inline-flex; align-items: center; }
.tv-sc-actions button:first-child { background: var(--c-accent); color: var(--c-on-accent); }
.tv-sc-actions button:last-child { margin-left: auto; padding: 7px 9px; }

/* Station card */
.tv-card { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 4px; background: var(--card-bg); }
.tv-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 40% at 80% 90%, var(--c-accent-soft), transparent 70%), radial-gradient(35% 35% at 10% 10%, rgba(255, 255, 255, .06), transparent 70%); pointer-events: none; }
.tv-card > * { position: relative; }
.tv-card-logo { width: clamp(70px, 14vw, 132px); height: auto; margin-bottom: 8px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35)); animation: tv-breathe 6s ease-in-out infinite; }
@keyframes tv-breathe { 50% { transform: scale(1.04); } }
.tv-card-brand { font-size: clamp(14px, 2vw, 20px); }
.tv-card-kicker { margin-top: 10px; font-family: var(--f-script); font-size: clamp(20px, 3vw, 30px); color: var(--c-accent-alt); text-transform: var(--eyebrow-case, none); letter-spacing: var(--eyebrow-tracking, 0); }
.tv-card-title { font-family: var(--f-head); font-size: clamp(18px, 3vw, 32px); font-weight: var(--head-weight, 800); text-transform: var(--head-case, none); letter-spacing: var(--head-tracking, -.02em); max-width: 26ch; line-height: 1.15; }
.tv-card-count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .75); font-size: 14px; min-height: 1.4em; }
.tv-card-verse { max-width: 54ch; margin-top: 10px; font-size: clamp(12px, 1.4vw, 15px); color: rgba(255, 255, 255, .78); font-style: italic; }
.tv-card-verse cite { display: block; font-style: normal; font-weight: 700; color: var(--c-accent-alt); margin-top: 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tv-card.is-flash { animation: tv-flash-in .3s var(--ease) both; }
.tv-card.is-flash .tv-card-verse, .tv-card.is-flash .tv-card-count { display: none; }
@keyframes tv-flash-in { from { opacity: 0; } }

/* Listen only */
.tv-listen { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; background: var(--c-screen-2); overflow: hidden; }
.tv-listen-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.3); opacity: .45; transform: scale(1.1); }
.tv-listen > *:not(.tv-listen-bg) { position: relative; }
.tv-listen-kicker { font-family: var(--f-script); font-size: 26px; color: var(--c-accent-alt); }
.tv-listen-title { font-family: var(--f-head); font-size: clamp(18px, 2.6vw, 28px); font-weight: var(--head-weight, 800); max-width: 28ch; line-height: 1.2; }
.tv-listen-note { font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.tv-eq { display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.tv-eq i { width: 6px; border-radius: 3px; background: var(--c-accent); animation: tv-eq 1.1s ease-in-out infinite; }
.tv-eq i:nth-child(2) { animation-delay: -.3s; } .tv-eq i:nth-child(3) { animation-delay: -.6s; } .tv-eq i:nth-child(4) { animation-delay: -.15s; } .tv-eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes tv-eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }

/* Live sting */
.tv-sting { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-live) 100%); color: #fff; animation: tv-sting 2.8s var(--ease) forwards; }
.tv-sting b { font-family: var(--f-head); font-size: clamp(30px, 6vw, 68px); font-weight: var(--head-weight, 800); text-transform: var(--head-case, none); letter-spacing: -.03em; }
.tv-sting small { font-family: var(--f-script); font-size: clamp(18px, 3vw, 30px); }
.tv-sting-dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; animation: tv-pulse 1.2s infinite; }
@keyframes tv-sting { 0% { clip-path: circle(0 at 50% 50%); } 18%, 78% { clip-path: circle(150% at 50% 50%); opacity: 1; } 100% { opacity: 0; } }

/* Reactions over the picture */
.tv-react-layer { position: absolute; z-index: 4; inset: 0; pointer-events: none; overflow: hidden; }
.tv-react-layer span { position: absolute; bottom: 8%; font-size: 30px; animation: tv-float 2.6s var(--ease) forwards; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
@keyframes tv-float { 0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 0; } 15% { opacity: 1; transform: translate(0, -20px) scale(1.15) rotate(var(--rot, 0deg)); } 100% { transform: translate(var(--dx, 0), -260px) scale(.9) rotate(calc(var(--rot, 0deg) * -1)); opacity: 0; } }

.tv-loading { position: absolute; z-index: 9; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--loading-bg); opacity: 0; transition: opacity .4s; pointer-events: none; }
.tv-loading img { opacity: .9; animation: tv-breathe 1.6s ease-in-out infinite; }
.tv-spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--c-accent); animation: tv-spin .9s linear infinite; }
@keyframes tv-spin { to { transform: rotate(360deg); } }
.is-loading .tv-loading { opacity: 1; }
.tv-tap { position: absolute; z-index: 10; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; }
.tv-tap span { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #111; font-weight: 700; padding: 14px 24px; border-radius: var(--r-pill); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.needs-tap .tv-tap { display: flex; }
.tv-frame:fullscreen { border-radius: 0; }
.tv-frame:-webkit-full-screen { border-radius: 0; }
.is-theatre .tv-frame, .tv-frame.is-theatre { position: fixed; inset: 0; z-index: 100; border-radius: 0; aspect-ratio: auto; }

/* ── Now playing ── */
.tv-now { background: var(--c-surface); border-radius: var(--r); padding: 18px 22px 16px; margin-top: 16px; box-shadow: var(--sh-1); border: var(--card-border, 0); }
.tv-now-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.tv-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: var(--r-pill); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: var(--c-accent-soft); color: var(--c-accent-ink); }
.tv-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: tv-pulse 2s infinite; }
[data-state="live"] .tv-badge { background: rgba(229, 56, 59, .12); color: var(--c-live); }
.tv-eye { display: inline-flex; align-items: center; gap: 5px; color: var(--c-muted); }
.tv-eye b { color: var(--c-ink); }
.tv-times { margin-left: auto; display: flex; gap: 10px; align-items: baseline; font-variant-numeric: tabular-nums; }
.tv-times b { color: var(--c-ink); }
.tv-times small { color: var(--c-muted); }
.tv-kicker { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--c-accent-ink); }
.tv-title { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; margin-top: 2px; }
.tv-sub { color: var(--c-muted); margin-top: 4px; }
.tv-progress { height: 5px; border-radius: var(--r-pill); background: var(--c-surface-2); margin: 14px 0; overflow: hidden; }
.tv-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-alt)); transition: width 1s linear; }
[data-state="live"] .tv-progress i { background: linear-gradient(90deg, var(--c-live), var(--c-accent)); }
.tv-controls { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
@media (min-width: 1081px) and (max-width: 1360px) { .tv-ctl[data-ctl="cc"] span, .tv-ctl[data-ctl="share"] span { display: none; } }
.tv-ctl { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 13px; border-radius: var(--r-pill); border: 0; background: var(--c-surface-2); color: var(--c-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s var(--spring), color .2s; }
.tv-ctl:hover { background: var(--c-surface-3); }
.tv-ctl:active { transform: scale(.95); }
.tv-ctl[aria-pressed="true"] { background: var(--c-primary); color: var(--c-on-primary); }
.tv-ctl:disabled { opacity: .4; cursor: default; }
.tv-ctl .ic-sound { display: none; }
.tv-ctl[aria-pressed="true"] .ic-sound { display: block; }
.tv-ctl[aria-pressed="true"] .ic-sound-off { display: none; }
.tv-sound { display: inline-flex; align-items: center; gap: 8px; background: var(--c-surface-2); border-radius: var(--r-pill); padding-right: 14px; }
.tv-sound .tv-ctl, .tv-sound .tv-ctl[aria-pressed="true"] { background: transparent; color: var(--c-ink); }
.tv-sound input[type="range"] { width: 64px; }
input[type="range"] { accent-color: var(--c-accent); }

/* Ticker */
.tv-ticker { display: flex; align-items: center; margin-top: 12px; background: var(--c-primary); color: var(--c-on-primary); border-radius: var(--r-pill); overflow: hidden; font-size: 14px; }
.tv-ticker-tag { flex: none; background: var(--c-accent); color: var(--c-on-accent); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; border-radius: var(--r-pill); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tv-ticker-track p { display: inline-flex; white-space: nowrap; gap: 18px; padding: 9px 0 9px 18px; animation: tv-tick var(--dur, 40s) linear infinite; }
.tv-ticker-track i { font-style: normal; color: var(--c-accent-alt); }
@keyframes tv-tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tv-ticker-track p { animation: none; } }

/* Coming up (next three; the full guide has its own page) */
.tv-coming { margin-top: 16px; background: var(--c-surface); border-radius: var(--r); padding: 16px 18px 14px; box-shadow: var(--sh-1); border: var(--card-border, 0); }
.tv-coming > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.tv-coming h2 { font-size: 20px; }
.tv-up-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tv-up-list li { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.tv-up-thumb { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: var(--c-surface-2) center / cover; }
.tv-up-thumb.is-blank { background: var(--screen-bg); }
.tv-up-thumb.is-live { background: linear-gradient(135deg, var(--c-accent), var(--c-live)); }
.tv-up-list time { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--c-accent-ink); font-variant-numeric: tabular-nums; }
.tv-up-list li.is-live time { color: var(--c-live); }
.tv-up-list b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--c-ink); font-size: 15px; line-height: 1.3; }
.tv-up-list small { display: block; color: var(--c-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-up-len { position: absolute; right: 8px; top: 8px; font-size: 11.5px; font-weight: 600; background: rgba(0, 0, 0, .65); color: #fff; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.tv-up-empty { grid-column: 1 / -1; color: var(--c-muted); padding: 10px 0; }

/* ── Side room (live room; notes + Bible on On Demand) ── */
.tv-room { background: var(--c-surface); border-radius: var(--r); box-shadow: var(--sh-1); border: var(--card-border, 0); display: flex; flex-direction: column; height: min(calc(100vh - 100px), 820px); position: sticky; top: 74px; overflow: hidden; }
.tv-tabs { display: flex; gap: 2px; margin: 10px; padding: 3px; background: var(--c-surface-2); border-radius: calc(var(--r-sm) + 2px); overflow-x: auto; scrollbar-width: none; flex: none; }
.tv-tabs::-webkit-scrollbar { display: none; }
.tv-tabs button { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: transparent; border-radius: var(--r-sm); padding: 7px 8px 6px; font-size: 11px; font-weight: 600; color: var(--c-muted); transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.tv-tabs button:hover { color: var(--c-ink); }
.tv-tabs button[aria-selected="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06); }
.tv-tabs button[aria-selected="true"] .ic { color: var(--c-accent); }
.tv-pinned { display: flex; gap: 10px; align-items: flex-start; margin: 0 12px 6px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-accent-soft); color: var(--c-ink); font-size: 13px; font-weight: 500; }
.tv-pinned .ic { color: var(--c-accent); margin-top: 1px; }
.tv-panels { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tv-panel { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 18px 18px; }
.tv-panel h2 { font-size: 20px; margin: 8px 0 4px; }
.tv-panel h3 { font-size: 14px; margin: 18px 0 8px; }
.tv-panel > .tv-muted { margin-bottom: 12px; }
.tv-x { border: 0; background: transparent; color: var(--c-muted); padding: 4px; border-radius: 8px; display: inline-flex; }
.tv-x:hover { background: var(--c-surface-2); }

/* Chat */
.tv-panel-chat { display: flex; flex-direction: column; overflow: hidden; padding: 0; position: relative; }
.tv-hello { position: relative; margin: 4px 12px 6px; padding: 12px 36px 12px 14px; border-radius: var(--r-sm); background: var(--hello-bg); font-size: 13px; color: var(--c-ink); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tv-hello .tv-x { position: absolute; right: 6px; top: 6px; }
.tv-chat { list-style: none; margin: 0; padding: 6px 14px; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.tv-chat-sys { font-size: 13px; color: var(--c-muted); text-align: center; padding: 8px 6px; }
.tv-msg { display: flex; gap: 10px; align-items: flex-start; animation: tv-in .35s var(--spring); }
@keyframes tv-in { from { transform: translateY(8px); opacity: 0; } }
.tv-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: hsl(var(--h) 55% 45%); }
.tv-msg b { font-size: 13px; color: var(--c-ink); }
.tv-msg time { font-size: 11px; color: var(--c-muted-2); margin-left: 6px; }
.tv-msg p { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.tv-msg.is-host > div { background: var(--c-accent-soft); border-radius: 12px; padding: 6px 10px; }
.tv-msg.is-host .tv-av { background: var(--c-accent); color: var(--c-on-accent); }
.tv-chat-jump { position: absolute; left: 50%; transform: translateX(-50%); bottom: 150px; border: 0; background: var(--c-primary); color: var(--c-on-primary); padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; box-shadow: var(--sh-2); }
.tv-reacts { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--c-line); flex: none; }
.tv-reacts button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: var(--c-surface-2); border-radius: var(--r-pill); padding: 7px 4px; font-size: 18px; line-height: 1; transition: transform .25s var(--spring), background .2s; }
.tv-reacts button:hover { background: var(--c-accent-soft); }
.tv-reacts button b { font-size: 12px; color: var(--c-muted); font-weight: 600; }
.tv-reacts button.pop { animation: tv-pop .45s var(--spring); }
@keyframes tv-pop { 40% { transform: scale(1.25) rotate(-6deg); } }
.tv-composer { padding: 6px 12px 12px; flex: none; }
.tv-composer input { width: 100%; border: 1px solid var(--c-line-2); background: var(--c-input); border-radius: var(--r-pill); padding: 10px 16px; font-size: 16px; }
.tv-composer input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.tv-composer input:disabled { opacity: .6; }
.tv-composer-name { margin-bottom: 8px; }
.tv-composer-row { display: flex; gap: 8px; }
.tv-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); display: grid; place-items: center; transition: transform .2s var(--spring); }
.tv-send:active { transform: scale(.9); }
.tv-send:disabled { opacity: .5; }
.tv-composer-note { font-size: 11.5px; color: var(--c-muted-2); margin-top: 6px; text-align: center; }

/* Forms */
.tv-form p { margin: 0 0 12px; }
.tv-form label { display: block; font-size: 13px; font-weight: 600; color: var(--c-ink); margin-bottom: 5px; }
.tv-form label small { font-weight: 400; color: var(--c-muted); }
.tv-form input:not([type="checkbox"]), .tv-form textarea { width: 100%; border: 1px solid var(--c-line-2); border-radius: 12px; padding: 11px 13px; font-size: 16px; background: var(--c-input); }
.tv-form input:focus, .tv-form textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.tv-form [aria-invalid="true"] { border-color: var(--c-live); }
.tv-check { display: flex !important; gap: 9px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: var(--c-muted) !important; margin: 0 0 8px; }
.tv-check input { margin-top: 3px; accent-color: var(--c-accent); }
.tv-form-msg { font-size: 13px; min-height: 1em; }
.tv-form-msg.err { color: var(--c-live); }
.tv-or { text-align: center; color: var(--c-muted-2); font-size: 13px; margin: 14px 0; }
.tv-success { padding: 18px; border-radius: var(--r-sm); background: rgba(31, 170, 89, .12); color: var(--c-ink); }
.tv-success b { display: block; font-size: 16px; margin-bottom: 4px; }

/* Give */
.tv-give { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 10px; border-radius: var(--r-sm); background: var(--c-surface-2); text-decoration: none; color: var(--c-ink); transition: transform .2s var(--ease), background .2s; }
.tv-give:hover { transform: translateY(-2px); background: var(--c-surface-3); }
.tv-give > span:nth-child(2) { flex: 1; min-width: 0; }
.tv-give b { display: block; }
.tv-give small { display: block; color: var(--c-muted); font-size: 13px; line-height: 1.35; }
.tv-give-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c-surface); color: var(--c-accent); box-shadow: var(--sh-1); }
.tv-give-main { background: var(--give-main-bg); color: var(--give-main-ink, #fff); }
.tv-give-main:hover { background: var(--give-main-bg); }
.tv-give-main small { color: rgba(255, 255, 255, .78); }
.tv-give-main .tv-give-ic { background: var(--c-wa); color: #fff; }
.tv-sched { list-style: none; padding: 0; margin: 0 0 14px; }
.tv-sched li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.tv-sched b { color: var(--c-ink); }

/* Notes */
.nt-head h2 { margin-top: 8px; }
.nt-tools, .nt-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.tv-notes { width: 100%; min-height: 240px; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); padding: 14px; font-size: 15px; line-height: 1.6; resize: vertical; background: var(--notes-bg); }
.tv-notes:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.nt-journal summary { cursor: pointer; font-weight: 600; color: var(--c-ink); margin-top: 8px; }
.nt-journal ul { list-style: none; padding: 0; margin: 8px 0 0; }
.nt-journal button { width: 100%; text-align: left; border: 0; background: var(--c-surface-2); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; display: flex; gap: 10px; font-size: 13px; }
.nt-journal button[aria-current="true"] { background: var(--c-accent-soft); }
.nt-journal button span { color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bible */
.tv-bible { display: flex; flex-direction: column; overflow: hidden; padding: 0; position: relative; }
.bb-bar { display: flex; gap: 8px; align-items: center; padding: 6px 14px 8px; flex: none; }
.bb-ref { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--c-surface-2); border-radius: var(--r-pill); padding: 8px 14px; font-size: 15px; color: var(--c-ink); }
.bb-tr { display: inline-flex; background: var(--c-surface-2); border-radius: var(--r-pill); padding: 3px; margin-left: auto; }
.bb-tr button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 5px 10px; font-size: 12px; font-weight: 700; color: var(--c-muted); }
.bb-tr button[aria-pressed="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.bb-icon { border: 0; background: var(--c-surface-2); color: var(--c-ink); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.bb-icon[aria-pressed="true"] { background: var(--c-accent); color: var(--c-on-accent); }
.bb-search { display: flex; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 0 14px; border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-muted); flex: none; }
.bb-search input { flex: 1; border: 0; background: transparent; padding: 10px 0; font-size: 16px; min-width: 0; color: var(--c-ink); }
.bb-search input:focus { outline: none; }
.bb-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 18px 18px; }
.bb-block { margin: 6px 0 12px; }
.bb-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-ink); margin-bottom: 6px; display: block; }
.bb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-chips button { border: 0; background: var(--c-surface-2); color: var(--c-ink); border-radius: var(--r-pill); padding: 6px 12px; font-size: 13px; font-weight: 600; }
.bb-votd { display: block; width: 100%; text-align: left; border: 0; border-radius: var(--r-sm); padding: 14px 16px; margin: 6px 0 12px; background: var(--give-main-bg); color: var(--give-main-ink, #fff); }
.bb-votd .bb-kicker { color: var(--c-accent-alt); }
.bb-votd q { display: block; font-family: var(--f-quote, var(--f-body)); font-size: 15px; line-height: 1.5; quotes: '“' '”'; }
.bb-votd b { display: block; margin-top: 6px; font-size: 12px; color: var(--c-accent-alt); }
.bb-chapter h3 { font-size: 22px; margin: 16px 0 8px; }
.bb-chapter h3 span { color: var(--c-accent); }
.bb-chapter.is-loading { opacity: .5; }
.bb-chapter .v { margin: 0 0 6px; padding: 3px 6px; border-radius: 8px; font-family: var(--f-quote, var(--f-body)); font-size: var(--bible-size, 16px); line-height: 1.7; cursor: pointer; transition: background .2s; color: var(--c-text); }
.bb-chapter .v sup { font-family: var(--f-body); font-size: 10px; font-weight: 700; color: var(--c-accent-ink); margin-right: 4px; }
.bb-chapter .v:hover { background: var(--c-surface-2); }
.bb-chapter .v.is-sel { background: var(--c-accent-soft); }
.bb-chapter .v.is-marked { background: linear-gradient(transparent 55%, var(--mark-bg) 55%); }
.bb-chapter .v.is-flash { background: var(--c-accent-soft); }
.bb-chapter .v.is-reading { background: var(--c-surface-3); }
.bb-chapter .wj { color: var(--red-letter); }
.bb-nav { display: flex; justify-content: space-between; gap: 8px; margin: 14px 0 6px; }
.bb-credit { font-size: 11px; color: var(--c-muted-2); text-align: center; margin-top: 8px; }
.bb-results { margin: 0 0 12px; }
.bb-rhead { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--c-muted); margin-bottom: 6px; }
.bb-hit { display: block; width: 100%; text-align: left; border: 0; background: var(--c-surface-2); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; font-size: 14px; }
.bb-hit b { display: block; color: var(--c-accent-ink); font-size: 12px; }
.bb-actions { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--c-primary); color: var(--c-on-primary); border-radius: 16px; padding: 10px 12px; box-shadow: var(--sh-2); z-index: 3; }
.bb-actions b { width: 100%; font-size: 13px; color: var(--c-accent-alt); }
.bb-actions button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: rgba(255, 255, 255, .12); color: inherit; border-radius: var(--r-pill); padding: 6px 10px; font-size: 13px; }
.bb-actions button:last-child { margin-left: auto; }
.bb-picker { position: absolute; inset: 0; background: var(--c-surface); z-index: 4; display: flex; flex-direction: column; }
.bb-picker-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--c-line); color: var(--c-ink); }
.bb-back { border: 0; background: var(--c-surface-2); border-radius: 8px; padding: 2px 9px; margin-right: 6px; }
.bb-picker-body { flex: 1; overflow-y: auto; padding: 8px 14px 16px; }
.bb-testament { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-ink); margin: 12px 0 6px; }
.bb-books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.bb-books button, .bb-chapters button { border: 0; background: var(--c-surface-2); border-radius: 10px; padding: 8px 10px; text-align: left; font-size: 13px; color: var(--c-ink); }
.bb-chapters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.bb-chapters button { text-align: center; }
.bb-books button.is-on, .bb-chapters button.is-on { background: var(--c-accent); color: var(--c-on-accent); }

/* Bible page */
.tv-bible-wrap { max-width: 820px; margin: 0 auto; background: var(--c-surface); border-radius: var(--r); box-shadow: var(--sh-1); border: var(--card-border, 0); height: min(calc(100vh - 220px), 900px); min-height: 520px; display: flex; overflow: hidden; }
.tv-bible-wrap .tv-bible { flex: 1; padding-top: 10px; }
.tv-bible-wrap .bb-books { grid-template-columns: repeat(4, 1fr); }
.tv-bible-wrap .bb-chapters { grid-template-columns: repeat(10, 1fr); }
.page-bible .tv-pagehead { justify-content: center; text-align: center; }

/* ── TV guide page ── */
.tv-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.tv-guide-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.tv-panelcard { background: var(--c-surface); border-radius: var(--r); padding: 18px; box-shadow: var(--sh-1); border: var(--card-border, 0); }
.tv-panelcard h2 { font-size: 20px; margin-bottom: 8px; }
.tv-season-card { background: var(--season-bg); }
.tv-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.tv-days::-webkit-scrollbar { display: none; }
.tv-days button { flex: none; border: 0; background: var(--c-surface); color: var(--c-ink); border-radius: var(--r-pill); padding: 9px 18px; font-weight: 600; font-size: 14px; box-shadow: var(--sh-1); transition: background .2s, color .2s, transform .2s var(--spring); }
.tv-days button:hover { background: var(--c-surface-2); }
.tv-days button[aria-selected="true"] { background: var(--c-primary); color: var(--c-on-primary); transform: scale(1.03); }
.tv-epg { list-style: none; margin: 0; padding: 8px; background: var(--c-surface); border-radius: var(--r); box-shadow: var(--sh-1); border: var(--card-border, 0); }
.tv-epg.is-loading { opacity: .5; }
.epg-part { padding: 14px 12px 6px; }
.epg-part span { font-family: var(--f-script); font-size: var(--eyebrow-size, 22px); color: var(--c-accent-ink); text-transform: var(--eyebrow-case, none); letter-spacing: var(--eyebrow-tracking, 0); font-weight: var(--eyebrow-weight, 700); }
.epg-row { display: grid; grid-template-columns: 56px 92px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; transition: background .2s; }
.epg-row:hover { background: var(--c-surface-2); }
.epg-row time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c-ink); }
.epg-thumb { width: 92px; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--c-surface-2) center / cover; }
.epg-thumb.is-blank { background: var(--screen-bg); }
.epg-thumb.is-live { background: linear-gradient(135deg, var(--c-accent), var(--c-live)); }
.epg-main { min-width: 0; }
.epg-main b { display: block; color: var(--c-ink); font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epg-main small { display: block; color: var(--c-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epg-main p { font-size: 12.5px; color: var(--c-muted-2); margin-top: 2px; }
.epg-bar { display: block; height: 4px; border-radius: var(--r-pill); background: var(--c-surface-2); margin-top: 6px; overflow: hidden; }
.epg-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-alt)); }
.epg-len { font-size: 12.5px; color: var(--c-muted-2); font-variant-numeric: tabular-nums; }
.epg-btn { border: 0; background: var(--c-surface-2); color: var(--c-ink); border-radius: var(--r-pill); padding: 7px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.epg-btn:hover { background: var(--c-surface-3); }
.epg-btn[aria-pressed="true"] { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.epg-now { font-size: 12px; font-weight: 700; color: var(--c-accent-ink); background: var(--c-accent-soft); border-radius: var(--r-pill); padding: 7px 12px; white-space: nowrap; text-decoration: none; }
.epg-row.is-now { background: linear-gradient(90deg, var(--c-accent-soft), transparent 70%); }
.epg-row.is-live .epg-now { color: var(--c-live); background: rgba(229, 56, 59, .1); }
.epg-row.is-past { opacity: .62; }
.epg-row.is-past:hover { opacity: 1; }
.epg-empty { padding: 20px; color: var(--c-muted); text-align: center; }
.tv-posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tv-tonight b { display: block; color: var(--c-ink); margin-top: 10px; line-height: 1.3; }
.tv-tonight small { display: block; color: var(--c-muted); font-size: 13px; }
.tv-poster-img { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-sm); background: var(--screen-bg) center / cover; box-shadow: var(--sh-1); overflow: hidden; }
.tv-poster-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .7)); }
.tv-poster-img time, .tv-poster-img span { position: absolute; z-index: 1; bottom: 10px; color: #fff; font-weight: 700; font-size: 14px; }
.tv-poster-img time { left: 12px; }
.tv-poster-img span { right: 12px; background: var(--c-live); padding: 2px 8px; border-radius: var(--r-pill); font-size: 12px; }

/* ── On Demand ── */
.tv-demand-head { align-items: center; }
.tv-search { display: flex; align-items: center; gap: 10px; flex: 0 1 440px; min-width: 260px; padding: 0 18px; border-radius: var(--r-pill); background: var(--c-surface); box-shadow: var(--sh-1); border: 1px solid var(--c-line); color: var(--c-muted); }
.tv-search:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.tv-search input { flex: 1; border: 0; background: transparent; padding: 13px 0; font-size: 16px; min-width: 0; color: var(--c-ink); }
.tv-search input:focus { outline: none; }
.tv-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 18px; scrollbar-width: none; }
.tv-chips::-webkit-scrollbar { display: none; }
.tv-chip { flex: none; border: 1px solid var(--c-line-2); background: var(--c-surface); color: var(--c-ink); border-radius: var(--r-pill); padding: 8px 16px; font-weight: 600; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.tv-chip:hover { border-color: var(--c-accent); }
.tv-chip[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.tv-results { margin-bottom: 30px; }
.tv-results .tv-head h2 { font-size: 24px; }
.tv-grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; }
.tv-more { display: flex; margin: 22px auto 0; }
.tv-rail { margin-bottom: 30px; }
.tv-rail > header { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.tv-rail > header > div { flex: 1; min-width: 0; }
.tv-rail h2 { font-size: 21px; }
.tv-rail header p { color: var(--c-muted); font-size: 14px; }
.tv-rail-nav { display: flex; gap: 6px; }
.tv-rail-nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--c-surface); box-shadow: var(--sh-1); font-size: 20px; line-height: 1; color: var(--c-ink); }
.tv-rail-nav button:hover { background: var(--c-surface-2); }
.tv-rail.is-feature { background: var(--feature-bg); border-radius: var(--r); padding: 22px 22px 18px; box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.tv-rail.is-feature h2, .tv-rail.is-feature .tv-tile b { color: #fff; }
.tv-rail.is-feature header p, .tv-rail.is-feature .tv-tile small { color: rgba(255, 255, 255, .72); }
.tv-rail.is-feature .tv-link { color: var(--c-accent-alt); }
.tv-rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.tv-tile { scroll-snap-align: start; border: 0; background: transparent; text-align: left; padding: 0; color: var(--c-ink); min-width: 0; text-decoration: none; display: block; }
.tv-tile-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-tile, 14px); background: var(--c-surface-2) center / cover; box-shadow: var(--sh-1); overflow: hidden; transition: transform .35s var(--spring), box-shadow .3s; }
.tv-tile-img.is-blank { background: var(--screen-bg); display: grid; place-items: center; }
.tv-tile-img.is-blank i { font-family: var(--f-head); font-style: normal; font-size: 30px; font-weight: 800; color: rgba(255, 255, 255, .85); letter-spacing: .04em; }
.tv-tile:hover .tv-tile-img, .tv-tile:focus-visible .tv-tile-img { transform: translateY(-4px) scale(1.02); box-shadow: var(--sh-2); }
.tv-tile-img em { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, .75); color: #fff; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.tv-tile-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .95); opacity: 0; transform: scale(.7); transition: .3s var(--spring); }
.tv-tile-play::after { content: ''; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--c-accent); }
.tv-tile:hover .tv-tile-play, .tv-tile:focus-visible .tv-tile-play { opacity: 1; transform: none; }
.tv-tile-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .3); }
.tv-tile-progress::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--c-accent); }
.tv-tile b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.3; margin-top: 9px; }
.tv-tile small { display: block; color: var(--c-muted); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-tile-skel { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-tile, 14px); background: linear-gradient(90deg, var(--c-surface-2), var(--c-surface-3), var(--c-surface-2)); background-size: 200% 100%; animation: tv-skel 1.4s infinite; }
@keyframes tv-skel { to { background-position: -200% 0; } }

/* ── On Demand video page ── */
.tv-crumbs { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 0 14px; flex-wrap: wrap; }
.tv-crumbs > a:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--c-muted); font-weight: 600; text-decoration: none; font-size: 14px; }
.tv-crumbs > a:first-child:hover { color: var(--c-ink); }
.tv-ontv { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0; padding: 7px 14px; border-radius: var(--r-pill); background: var(--c-surface); box-shadow: var(--sh-1); text-decoration: none; color: var(--c-ink); font-size: 13px; }
.tv-ontv > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tv-ontv i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); animation: tv-pulse 2s infinite; }
.tv-ontv small { color: var(--c-accent-ink); font-weight: 700; font-size: 12px; }
.tv-poster { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #000 center / cover; }
.tv-poster.is-blank { background: var(--screen-bg); }
.tv-poster::before { content: ''; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)); }
.tv-poster > * { position: relative; }
.tv-bigplay { display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: var(--r-pill); padding: 16px 28px 16px 22px; background: var(--c-accent); color: var(--c-on-accent); font-weight: 700; font-size: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); transition: transform .25s var(--spring), background .2s; }
.tv-bigplay:hover { transform: scale(1.04); background: var(--c-accent-2); }
.tv-resume-note { color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
/* Paused: our own screen over the picture (YouTube's pause suggestions stay hidden). */
.tv-frame-od[data-state="paused"]::after { content: ''; position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, .55) var(--paused-bg, none) center / cover; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); pointer-events: none; }
.tv-bar { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 26px 12px 10px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.show-bar .tv-bar, .tv-frame-od:not([data-state="playing"]) .tv-bar { opacity: 1; transform: none; }
.tv-frame-od[data-state="ready"] .tv-bar { opacity: 0; pointer-events: none; }
.tv-ib { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #fff; transition: background .2s; }
.tv-ib:hover { background: rgba(255, 255, 255, .16); }
.tv-ib[aria-pressed="true"] { background: rgba(255, 255, 255, .22); }
.tv-ib .ic-play { display: none; }
.tv-ib.is-paused .ic-play { display: block; }
.tv-ib.is-paused .ic-pause { display: none; }
.tv-ib[data-mute] .ic-sound-off { display: none; }
.tv-ib[data-mute][aria-pressed="true"] .ic-sound-off { display: block; }
.tv-ib[data-mute][aria-pressed="true"] .ic-sound { display: none; }
.tv-time { font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .9); min-width: 44px; text-align: center; }
.tv-seek { flex: 1; min-width: 60px; }
.tv-vol { width: 80px; }
.tv-od-info .tv-controls { margin-top: 14px; }
.tv-desc { margin-top: 14px; border-top: 1px solid var(--c-line); padding-top: 12px; }
.tv-desc summary { cursor: pointer; font-weight: 600; color: var(--c-ink); }
.tv-desc p { margin-top: 8px; color: var(--c-text); font-size: 14px; overflow-wrap: anywhere; }
.tv-room-od { height: min(calc(100vh - 120px), 760px); }

/* Toast + footer */
.tv-toast { position: fixed; z-index: 120; left: 50%; bottom: calc(24px + var(--tabbar-h)); transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); background: var(--c-primary); color: var(--c-on-primary); padding: 12px 18px; border-radius: 16px; font-size: 14px; box-shadow: var(--sh-2); animation: tv-toast .35s var(--spring); }
.tv-toast a { color: var(--c-accent-alt); }
@keyframes tv-toast { from { transform: translate(-50%, 16px); opacity: 0; } }
.tv-foot { border-top: 1px solid var(--c-line); margin-top: 30px; }
.tv-foot-in { max-width: 1320px; margin: 0 auto; padding: 26px 24px 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--c-muted); font-size: 14px; }
.tv-foot-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tv-foot-brand img { height: 40px; width: auto; }
.tv-foot b { color: var(--c-ink); }
.tv-foot-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.tv-foot-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--c-surface-2); color: var(--c-ink); transition: background .2s, color .2s; }
.tv-foot-social a:hover { background: var(--c-accent); color: var(--c-on-accent); }
.tv-foot-links a { color: var(--c-muted); }

/* ── Responsive ── */
@media (max-width: 1080px) {
	.tv-grid, .tv-guide-grid { grid-template-columns: minmax(0, 1fr); }
	.tv-room { position: static; height: 640px; }
	.tv-guide-side { position: static; }
	.tv-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	:root { --tabbar-h: calc(62px + env(safe-area-inset-bottom)); }
	.tv-tabs-top { display: none; }
	.tv-onair-chip { margin-left: auto; }
	.tv-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom); background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--c-line); }
	.tv-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--c-muted); font-size: 11px; font-weight: 600; }
	.tv-tabbar a[aria-current="page"] { color: var(--c-ink); }
	.tv-tabbar a[aria-current="page"] .ic { color: var(--c-accent); }
}
@media (max-width: 760px) {
	.tv-nav-in { padding: 8px 16px; gap: 10px; }
	.tv-nav-give span { display: none; }
	.tv-nav-give { padding: 7px 10px; }
	.tv-onair-chip { max-width: 46vw; }
	.tv { padding: 12px 16px 32px; }
	.tv-season { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
	.tv-frame { border-radius: var(--r-screen-sm, 16px); margin: 0 -4px; }
	.tv-bug .tv-word { display: none; }
	.tv-season-tag { display: none; }
	.tv-top { left: 10px; top: 10px; }
	.tv-bug { right: 10px; top: 10px; }
	.tv-l3 { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
	.tv-l3 b { font-size: 14px; }
	.tv-l3 span { font-size: 12px; }
	.tv-upnext { display: none; }
	.tv-scripture { padding: 14px 16px 12px; width: 92%; }
	.tv-scripture blockquote { max-height: 5.8em; }
	.tv-now { padding: 14px 16px; }
	.tv-times { margin-left: 0; width: 100%; }
	.tv-controls { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
	.tv-controls::-webkit-scrollbar { display: none; }
	.tv-ctl { flex: none; }
	.tv-sound input[type="range"] { display: none; }
	.tv-sound { padding-right: 0; }
	.tv-coming { padding: 14px; }
	.tv-up-list { grid-template-columns: 1fr; gap: 10px; }
	.tv-up-list li { flex-direction: row; align-items: center; gap: 12px; }
	.tv-up-list li > div { min-width: 0; flex: 1; }
	.tv-up-thumb { width: 112px; flex: none; }
	.tv-up-len { right: auto; left: 70px; top: auto; bottom: 6px; }
	.tv-room { height: 600px; }
	.tv-tabs button { padding: 7px 10px 6px; }
	.epg-row { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; padding: 10px 6px; }
	.epg-thumb, .epg-len { display: none; }
	.tv-posters { gap: 12px; }
	.tv-rail-track { grid-auto-columns: 72%; }
	.tv-rail-nav { display: none; }
	.tv-rail.is-feature { margin-left: -4px; margin-right: -4px; padding: 18px 14px 14px; }
	.tv-grid-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.tv-search { flex: 1 1 100%; min-width: 0; }
	.tv-pagehead h1 { font-size: 30px; }
	.tv-bar { gap: 2px; padding: 22px 6px 6px; }
	.tv-vol, [data-back10], [data-fwd30] { display: none; }
	.tv-ib { width: 36px; height: 36px; }
	.tv-time { min-width: 38px; font-size: 12px; }
	.tv-bible-wrap { height: calc(100vh - 230px); min-height: 460px; }
	.tv-bible-wrap .bb-books { grid-template-columns: repeat(2, 1fr); }
	.tv-bible-wrap .bb-chapters { grid-template-columns: repeat(6, 1fr); }
	.tv-ontv { flex: 1 1 100%; }
}
@media (max-width: 380px) {
	.tv-grid-tiles { grid-template-columns: 1fr; }
	.tv-logo .tv-word { font-size: 13px; }
}
.tv-card:not([hidden]) ~ .tv-loading { opacity: 0 !important; }

/* 1.2.0 */
.epg-earlier { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tv-give { position: absolute; z-index: 40; left: 16px; bottom: 16px; max-width: min(420px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 16px; background: rgba(10, 18, 28, .82); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); transform: translateY(12px); opacity: 0; transition: .45s; font-size: 14px; line-height: 1.35; }
.tv-give.on { transform: none; opacity: 1; }
.tv-give p { margin: 0; flex: 1; }
.tv-give p b { display: block; font-size: 15px; }
.tv-give a { flex: none; background: #1faa59; color: #fff; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; font-size: 13.5px; }
.tv-give button { flex: none; border: 0; background: none; color: rgba(255,255,255,.7); font-size: 20px; cursor: pointer; padding: 0 2px; }
@media (max-width: 640px) { .tv-give { left: 8px; bottom: 8px; font-size: 12.5px; padding: 8px 8px 8px 10px; } .tv-give p b { font-size: 13.5px; } }
