/* ============================================================
   Ephesus Video Player — master video experience
   v1.0.0
   ============================================================ */

.ephesus-video-master {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	border-radius: var(--border-radius-lg, 16px);
	overflow: hidden;
	background: #000;
	box-shadow: var(--shadow-lg, 0 14px 30px rgba(15,42,74,.18));
	color: #fff;
}
.evm { display: block; }

.evm__stage {
	display: grid;
	grid-template-columns: 1fr;
	background: #000;
	min-height: 240px;
}
.evm--has-chat { grid-template-columns: minmax(0, 1fr) 340px; }

.evm__video {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}
.evm__video > iframe,
.evm__video > video {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border: 0;
	display: block;
}
.evm__iframe { background: #000; }
.evm__video-el { background: #000; }

/* Live chat sidebar */
.evm__chat {
	display: flex; flex-direction: column;
	background: #0a0a0a;
	border-left: 1px solid rgba(255,255,255,.08);
	min-height: 100%;
}
.evm__chat.is-collapsed { display: none; }
.evm__chat-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(255,255,255,.08);
	background: #111;
}
.evm__chat-title {
	font-family: var(--font-heading, 'Jost', sans-serif);
	font-weight: 700; font-size: 13px;
	letter-spacing: .1em; text-transform: uppercase;
	color: #FFF1D3;
}
.evm__chat-toggle {
	width: 32px; height: 32px; border-radius: 999px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.16);
	color: #fff; cursor: pointer;
	font-size: 18px; line-height: 1;
}
.evm__chat-toggle:hover { background: rgba(255,255,255,.18); }
.evm__chat-frame {
	flex: 1 1 auto;
	width: 100%;
	min-height: 360px;
	border: 0;
	background: #fff;
}

/* Meta strip below video */
.evm__meta {
	padding: clamp(14px, 2vw, 22px) clamp(16px, 2.5vw, 26px);
	background: #0a0a0a;
	color: #f1ede4;
}
.evm__live {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: #ff4040;
	margin-bottom: 6px;
}
.evm__live-dot {
	width: 8px; height: 8px; border-radius: 999px; background: #ff4040;
	animation: evmPulse 1.6s ease-in-out infinite;
}
@keyframes evmPulse { 0%, 100% { transform: scale(.85); opacity: .8; } 50% { transform: scale(1.4); opacity: 1; } }

.evm__title {
	font-family: var(--font-heading, 'Jost', sans-serif);
	font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.5rem);
	margin: 0 0 8px; color: #fff; line-height: 1.2;
}
.evm__description {
	margin: 8px 0 0;
	color: rgba(255,255,255,.78);
	font-size: .95rem;
	line-height: 1.55;
	max-width: 72ch;
}

.evm__sources {
	display: flex; flex-wrap: wrap; gap: 6px;
	margin-top: 8px;
}
.evm__source-btn {
	display: inline-flex; align-items: center;
	padding: 6px 12px; border-radius: 999px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.14);
	color: #fff; cursor: pointer;
	font-family: var(--font-heading, 'Jost', sans-serif);
	font-weight: 600; font-size: 12px;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.evm__source-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.evm__source-btn.is-active {
	background: var(--color-cream, #FFF1D3);
	color: #000;
	border-color: var(--color-cream, #FFF1D3);
}

/* Responsive: stack chat below video */
@media (max-width: 980px) {
	.evm--has-chat { grid-template-columns: 1fr; }
	.evm__chat { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
	.evm__chat-frame { min-height: 320px; max-height: 50vh; }
}

/* ============================================================
   v1.0.7 — Branding band for the Ephesus Video Player.
   Same treatment as the audio player so the two surfaces feel like a
   matched set.
   ============================================================ */
.ephesus-video-master {
	position: relative;
}
.ephesus-video-master::after {
	content: "Ephesus Video Player  ·  designed and powered by EGW Diaspora";
	display: block;
	padding: 10px 18px 12px;
	text-align: center;
	font-family: var(--font-heading, 'Jost', 'Inter', sans-serif);
	font-weight: 600;
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255,241,211,.55);
	background: #050505;
	border-top: 1px solid rgba(255,255,255,.06);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 480px) {
	.ephesus-video-master::after {
		font-size: 9.5px; letter-spacing: .12em; padding: 8px 12px 10px;
	}
}
