/* Evisions Video Hub — override any --evh-* var from the child theme stylesheet */

.evh {
	--evh-accent: #1e82e6;       /* Bright Blue */
	--evh-accent-dark: #144696;  /* Royal Blue */
	--evh-text: #1a2333;
	--evh-muted: #5a6577;
	--evh-card-bg: #fff;
	--evh-radius: 10px;
	--evh-gap: 28px;
}

/* Controls ---------------------------------------------------------- */

.evh__controls {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 34px;
}

.evh__search {
	max-width: 420px;
	padding: 10px 16px;
	border: 1px solid #d4dae3;
	border-radius: 999px;
	font-size: 15px;
}
.evh__search:focus {
	outline: 2px solid var(--evh-accent);
	outline-offset: 1px;
	border-color: transparent;
}

.evh__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.evh__group-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--evh-muted);
	margin-right: 4px;
	min-width: 64px;
}

.evh__pill {
	padding: 6px 16px;
	border: 1px solid #d4dae3;
	border-radius: 999px;
	background: transparent;
	color: var(--evh-text);
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.evh__pill:hover { border-color: var(--evh-accent); color: var(--evh-accent); }
.evh__pill.is-active {
	background: var(--evh-accent-dark);
	border-color: var(--evh-accent-dark);
	color: #fff;
}
.evh__pill:focus-visible { outline: 2px solid var(--evh-accent); outline-offset: 2px; }

/* Grid + cards ------------------------------------------------------ */

.evh__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--evh-gap);
}

.evh__card { display: flex; flex-direction: column; }
.evh__card.is-hidden { display: none; }

.evh__thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: var(--evh-radius);
	overflow: hidden;
	cursor: pointer;
	background: #0d1524;
}
.evh__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}
.evh__thumb:hover img,
.evh__thumb:focus-visible img { transform: scale(1.04); }
.evh__thumb:focus-visible { outline: 3px solid var(--evh-accent); outline-offset: 2px; }

.evh__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(20, 70, 150, 0.88);
	transition: background 0.15s, transform 0.15s;
}
.evh__play::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent #fff;
	transform: translateX(3px);
}
.evh__thumb:hover .evh__play { background: var(--evh-accent); transform: scale(1.08); }

.evh__duration {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 8px;
	border-radius: 5px;
	background: rgba(10, 16, 28, 0.8);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.evh__title {
	margin: 14px 0 4px;
	font-size: 17px;
	line-height: 1.35;
	color: var(--evh-text);
}
.evh__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--evh-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.evh__empty {
	padding: 40px 0;
	text-align: center;
	color: var(--evh-muted);
	font-size: 16px;
}

/* Modal ------------------------------------------------------------- */

.evh__modal { position: fixed; inset: 0; z-index: 99999; }
.evh__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 22, 0.85);
}
.evh__modal-body {
	position: absolute;
	inset: 0;
	margin: auto;
	width: min(1100px, 92vw);
	aspect-ratio: 16 / 9;
	max-height: 86vh;
}
.evh__modal-frame,
.evh__modal-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--evh-radius);
	background: #000;
}
.evh__modal-close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.evh__modal-close:hover { background: var(--evh-accent); }

@media (prefers-reduced-motion: reduce) {
	.evh * { transition: none !important; }
}

.evh__pill.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	text-decoration: line-through;
}
.evh__pill.is-disabled:hover { border-color: #d4dae3; color: var(--evh-text); }

/* Watch progress ---------------------------------------------------- */

.evh__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 5px;
	background: rgba(255, 255, 255, 0.25);
}
.evh__progress-fill {
	display: block;
	height: 100%;
	background: var(--evh-accent);
	transition: width 0.3s ease;
}

.evh__watched {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(16, 130, 70, 0.92);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
