/**
 * Dedicated video watch page — player-first, minimal chrome.
 */

.ep-video-watch {
	--ep-vw-ink: #0b233a;
	--ep-vw-muted: #4a5d6e;
	--ep-vw-line: #d7e0e8;
	--ep-vw-accent: #fa8b05;
	--ep-vw-bg: #f7fafc;
	background: var(--ep-vw-bg);
	color: var(--ep-vw-ink);
	padding: 2.5rem 0 3rem;
}

.ep-video-watch__wrap {
	max-width: 880px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.ep-video-watch .ep-breadcrumbs,
.ep-video-watch .posh-breadcrumbs {
	margin-top: 0.75rem;
	margin-bottom: 1.25rem;
}

.ep-video-watch__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(11, 35, 58, 0.12);
	margin: 0 0 1.25rem;
}

.ep-video-watch__player iframe,
.ep-video-watch__player video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.ep-video-watch__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	line-height: 1.25;
	font-weight: 700;
}

.ep-video-watch__desc {
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--ep-vw-muted);
}

.ep-video-watch__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.25rem;
	border-radius: 8px;
	background: var(--ep-vw-accent);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	border: none;
}

.ep-video-watch__cta:hover,
.ep-video-watch__cta:focus {
	filter: brightness(0.95);
	color: #fff !important;
}

.ep-video-watch__more {
	margin: 1.25rem 0 0;
}

.ep-video-watch__more a {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1472ba;
	text-decoration: none;
}

.ep-video-watch__more a:hover,
.ep-video-watch__more a:focus {
	text-decoration: underline;
}

/* —— Videos index (/videos/) —— */

body.page-template-page-videos .site-inner,
body.page-template-page-videos-php .site-inner,
body.page-template-page-videos .content-area,
body.page-template-page-videos-php .content-area,
body.page-template-page-videos .content-sidebar-wrap,
body.page-template-page-videos-php .content-sidebar-wrap,
body.page-template-page-videos .content,
body.page-template-page-videos-php .content {
	width: 100%;
	max-width: 100%;
	padding: 0 !important;
}

.ep-videos {
	--ep-vw-ink: #0b233a;
	--ep-vw-muted: #4a5d6e;
	--ep-vw-line: #d7e0e8;
	--ep-vw-accent: #fa8b05;
	--ep-vw-blue: #1472ba;
	background: #f7fafc;
	color: var(--ep-vw-ink);
	font-family: "Nunito Sans", Arial, sans-serif;
}

.ep-videos__shell {
	width: min(1180px, calc(100vw - 40px));
	margin: 0 auto;
}

.ep-videos__hero {
	padding: 28px 0 22px;
	background:
		radial-gradient(860px 400px at 0% 0%, rgba(47, 144, 239, 0.12), transparent 72%),
		radial-gradient(860px 420px at 100% 0%, rgba(250, 139, 5, 0.1), transparent 72%),
		#fff;
	border-bottom: 1px solid #e2e8f0;
}

.ep-videos__hero-copy {
	max-width: 44rem;
}

.ep-videos__hero h1 {
	margin: 0 0 8px;
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.55rem);
	line-height: 1.18;
	color: #002a38;
}

.ep-videos__subtitle {
	margin: 0 0 10px;
	font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--ep-vw-blue);
}

.ep-videos__intro {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--ep-vw-muted);
}

.ep-videos__list {
	padding: 28px 0 56px;
}

.ep-videos__empty {
	margin: 0;
	padding: 24px;
	text-align: center;
	color: var(--ep-vw-muted);
	background: #fff;
	border: 1px dashed #c8dbee;
	border-radius: 14px;
}

.ep-videos__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.ep-videos__card {
	background: #fff;
	border: 1px solid rgba(20, 114, 186, 0.1);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(11, 35, 58, 0.08);
	display: flex;
	flex-direction: column;
}

.ep-videos__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #0b233a;
	overflow: hidden;
}

.ep-videos__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ep-videos__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(250, 139, 5, 0.95);
	box-shadow: 0 8px 20px rgba(11, 35, 58, 0.28);
	pointer-events: none;
}

.ep-videos__play::after {
	content: "";
	position: absolute;
	left: 22px;
	top: 18px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

.ep-videos__duration {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(11, 35, 58, 0.82);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ep-videos__body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ep-videos__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	line-height: 1.35;
	font-weight: 700;
}

.ep-videos__title a {
	color: var(--ep-vw-ink);
	text-decoration: none;
}

.ep-videos__title a:hover,
.ep-videos__title a:focus {
	color: var(--ep-vw-blue);
}

.ep-videos__desc {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--ep-vw-muted);
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ep-videos__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	padding-top: 12px;
	border-top: 1px solid #dbe7f3;
}

.ep-videos__watch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	border-radius: 8px;
	background: var(--ep-vw-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.ep-videos__watch:hover,
.ep-videos__watch:focus {
	filter: brightness(0.95);
	color: #fff !important;
}


@media (min-width: 768px) {
	.ep-videos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (min-width: 1100px) {
	.ep-videos__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px;
	}
}