/* PWBI video: live page, archive grid, player, discussion. Uses the theme's
   custom properties when present, with fallbacks so it works in any theme. */
.pv-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0b1a2b; border-radius: 10px; overflow: hidden; }
.pv-player iframe, .pv-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.pv-player--missing { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #dbe5ef; }
.pv-player--missing p { margin: 0; max-width: 30em; }

.pv-badge-live, .pv-badge-off {
	display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .08em;
	font-size: .8rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.pv-badge-live { background: var(--live, #c62828); color: #fff; }
.pv-badge-off { background: #e6eaef; color: #3b4652; }
.pv-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pv-pulse 1.4s infinite; }
@keyframes pv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pv-dot { animation: none; } }

.pv-live-head { margin-bottom: 18px; }
.pv-title { margin: 0 0 .3em; }
.pv-meta { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted, #56616e); font-size: .95rem; }
.pv-live-main { width: 100%; }
.pv-description { margin-top: 18px; }
.pv-live .pv-discussion { margin-top: 24px; }


.pv-offline-card { background: var(--bg-soft, #f4f6f9); border: 1px solid var(--line, #dfe5ec); border-radius: 12px; padding: 32px; margin-bottom: 40px; }
.pv-offline-card h2 { margin-top: 4px; }
.pv-offline-card .btn-row { margin-top: 1em; }
.pv-live-teaser .pv-player { margin: 10px 0 0; }
.pv-next { background: #fff; border: 1px solid var(--line, #dfe5ec); border-left: 4px solid var(--green, #1b6e4a); border-radius: 8px; padding: 18px 20px; margin: 18px 0; }
.pv-next-label { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; color: var(--green, #1b6e4a); margin: 0 0 6px; }
.pv-next h3 { margin-bottom: .3em; }
.pv-recent-h { margin-top: 10px; }

.pv-discussion { margin-top: 32px; background: #fff; border: 1px solid var(--line, #dfe5ec); border-radius: 12px; padding: 22px; }
.pv-discussion-title { font-size: 1.3rem; margin: 18px 0 4px; }
.pv-legend { font-size: .85rem; color: var(--muted, #56616e); margin: 0 0 12px; }
.pv-reactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pv-react {
	display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line, #dfe5ec); background: #fff;
	border-radius: 999px; padding: 7px 14px; font-size: 1.15rem; cursor: pointer; min-height: 44px; font-family: inherit;
}
.pv-react:hover { border-color: var(--green, #1b6e4a); background: var(--green-soft, #e8f3ed); }
.pv-react.is-reacted { border-color: var(--green, #1b6e4a); }
.pv-react:disabled { opacity: .7; }
.pv-count { font-size: .9rem; font-weight: 700; color: var(--ink, #1c2530); min-width: 1ch; }
.pv-react-status { font-size: .85rem; color: var(--green, #1b6e4a); }

.pv-comments { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line, #dfe5ec); }
/* Live chat scrolls in its own box; archive pages list every comment down the page. */
.pv-discussion[data-live="1"] .pv-comments { max-height: 460px; overflow-y: auto; }
.pv-comment, .pv-empty { padding: 10px 2px; border-bottom: 1px solid var(--line, #dfe5ec); font-size: .96rem; overflow-wrap: anywhere; }
.pv-empty { color: var(--muted, #56616e); }
.pv-comment { padding: 12px 2px; }
.pv-c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.pv-c-seal { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line, #dfe5ec); }
.pv-ago { font-size: .8rem; color: var(--muted, #56616e); }
.pv-text { margin: 4px 0 2px; white-space: pre-line; unicode-bidi: plaintext; text-align: start; }
.pv-c-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.pv-c-actions button, .pv-toggle-replies, .pv-cancel-reply {
	background: none; border: 0; border-radius: 999px; padding: 6px 10px; min-height: 36px; font: inherit; font-size: .85rem;
	font-weight: 600; color: var(--muted, #56616e); cursor: pointer;
}
.pv-c-actions button:hover, .pv-toggle-replies:hover, .pv-cancel-reply:hover { background: var(--bg-soft, #f4f6f9); color: var(--ink, #1c2530); }
.pv-heart { font-size: 1.05rem; line-height: 1; font-family: Arial, "Segoe UI Symbol", sans-serif; }
.pv-like.is-liked, .pv-like.is-liked:hover { color: #c62828; }
.pv-remove { color: #a4262c !important; }
.pv-toggle-replies { color: var(--navy-2, #173b61); padding-left: 2px; }
.pv-toggle-replies::before { content: "▾ "; }
.pv-toggle-replies[aria-expanded="true"]::before { content: "▴ "; }
.pv-replies { list-style: none; margin: 0 0 0 18px; padding: 0 0 0 14px; border-left: 2px solid var(--line, #dfe5ec); }
.pv-replies .pv-comment { border-bottom: 0; padding: 8px 0; }
.pv-comment--staff > .pv-c-head .pv-name { color: var(--navy, #0e2a47); }
.pv-src--staff { background: var(--navy, #0e2a47); color: #fff; }
.pv-comment--pinned { background: #fffbea; border-radius: 8px; padding: 10px 12px; margin: 6px 0; border-bottom: 0; }
.pv-pinned-label { margin: 0 0 4px; font-size: .78rem; font-weight: 700; color: #7a5c00; }
.pv-replying { margin: 0 0 10px; padding: 8px 12px; background: var(--green-soft, #e8f3ed); border-radius: 8px; font-size: .9rem; }
.pv-replying[hidden] { display: none; }
.pv-comment--pending { opacity: .7; }
.pv-src { font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; vertical-align: 1px; }
.pv-src--pwbi { background: #e3edf7; color: #173b61; }
.pv-src--facebook { background: #e7efff; color: #1b4fb8; }
.pv-name { color: var(--navy, #0e2a47); }

.pv-form .pv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.pv-form .field { margin: 0 0 12px; }
.pv-form textarea { min-height: 88px; }
.pv-policy, .pv-as, .pv-closed { font-size: .85rem; color: var(--muted, #56616e); }
.pv-form-msg:empty { display: none; }

.pv-filter { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 26px; background: var(--bg-soft, #f4f6f9); padding: 18px; border-radius: 10px; }
.pv-filter .field { margin: 0; flex: 1 1 220px; }
.pv-filter-go { margin: 0; }
.pv-count-line { color: var(--muted, #56616e); font-size: .92rem; }
.pv-thumb { position: relative; display: block; background: #0b1a2b; }
.pv-thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pv-thumb-blank { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; color: #fff; font-size: 2rem; }
.pv-play { position: absolute; left: 14px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.pv-none { color: var(--muted, #56616e); }
.pv-page-feed { margin: 8px 0 36px; }
.pv-feed-frame { width: 100%; max-width: 500px; height: 640px; border: 1px solid var(--line, #dfe5ec); border-radius: 10px; background: #fff; }
.pv-staff-note { background: #fff8e1; border-left: 4px solid #b8860b; padding: 10px 14px; font-size: .9rem; border-radius: 0 8px 8px 0; }
.pv-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pv-card .card-body h3 a { color: inherit; text-decoration: none; }
.pv-card .card-body h3 a:hover { text-decoration: underline; }
.pv-thumb-blank { background: linear-gradient(135deg, #173b61, #0b1a2b); }


@media (max-width: 900px) {
	.pv-live .pv-discussion { margin-top: 18px; }
	.pv-discussion[data-live="1"] .pv-comments { max-height: 380px; }
}
@media (max-width: 560px) {
	.pv-form .pv-form-row { grid-template-columns: 1fr; }
	.pv-discussion { padding: 16px; }
	.pv-offline-card { padding: 22px; }
	.pv-react { padding: 6px 11px; }
}

/* Viewer registration: shown instead of the player when registration is required */
.pv-gate { max-width: 640px; margin: 32px auto; padding: 28px 28px 20px; border: 1px solid #dfe5ec; border-radius: 10px; background: #f4f6f9; text-align: center; }
.pv-gate h2 { margin-top: 0; }
.pv-gate a.btn, .pv-gate button { display: inline-block; padding: 10px 22px; border-radius: 6px; border: 2px solid #0e2a47; background: #0e2a47; color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; }
.pv-gate button { background: #fff; color: #0e2a47; }
.pv-gate input[type="email"] { padding: 9px 12px; border: 1px solid #b7c1cc; border-radius: 6px; min-width: 240px; max-width: 100%; margin: 6px 6px 6px 0; font: inherit; }
.pv-gate-return { margin-top: 18px; padding-top: 14px; border-top: 1px solid #dfe5ec; }
.pv-gate-msg { color: #b3261e; }
.pv-viewer-go a { font-weight: 600; }
