/* ==========================================================================
   NAHSE DFW: Site-wide video card   [nahse_video]   v1.1.0
   ========================================================================== */

.nahse-video {
	--nv-max: 1180px;
	--nv-ratio: 16 / 9;
	--nv-radius: 28px;
	--nv-gold: #f2c14e;
	--nv-navy: #07163f;
	--nv-ink: #0a1433;

	position: relative;
	display: block;
	width: 100%;
	max-width: var(--nv-max);
	margin: 0 auto;
	padding: 0 !important;
	aspect-ratio: var(--nv-ratio);
	border: 0 !important;
	border-radius: var(--nv-radius);
	overflow: hidden;
	background: var(--nv-navy) radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0, 49, 148, .55), transparent 70%);
	box-shadow: 0 40px 80px rgba(0, 10, 40, .45);
	color: #fff !important;
	text-decoration: none !important;
	font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	cursor: pointer;
	box-sizing: border-box;
	isolation: isolate;
}

.nahse-video *,
.nahse-video *::before,
.nahse-video *::after {
	box-sizing: border-box;
}

.nahse-video:hover,
.nahse-video:focus {
	color: #fff !important;
	text-decoration: none !important;
}

.nahse-video:focus-visible {
	outline: 3px solid var(--nv-gold);
	outline-offset: 4px;
}

.nahse-video img.nahse-video__poster,
.nahse-video video.nahse-video__poster {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: cover;
	display: block;
	pointer-events: none;
	transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.nahse-video:hover img.nahse-video__poster,
.nahse-video:hover video.nahse-video__poster {
	transform: scale(1.03);
}

.nahse-video .nahse-video__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 50%, rgba(7, 22, 63, .75));
	pointer-events: none;
}

.nahse-video .nahse-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 96px;
	height: 96px;
	margin: -48px 0 0 -48px;
	border-radius: 50%;
	background: var(--nv-gold);
	color: var(--nv-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 14px rgba(242, 193, 78, .2);
	pointer-events: none;
	transition: transform .4s;
	animation: nahse-video-pulse 2s infinite;
}

.nahse-video .nahse-video__play svg {
	display: block;
	width: 30px;
	height: 30px;
	margin-left: 5px;
	fill: currentColor;
}

.nahse-video:hover .nahse-video__play {
	transform: scale(1.08);
}

.nahse-video .nahse-video__meta {
	position: absolute;
	left: 32px;
	right: 32px;
	bottom: 28px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	pointer-events: none;
	text-align: left;
}

.nahse-video .nahse-video__title {
	display: block;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #fff;
}

.nahse-video .nahse-video__sub {
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	color: #c7d3ff;
}

.nahse-video video.nahse-video__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	display: block;
	object-fit: contain;
	background: #000;
}

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

.nahse-video.is-playing {
	cursor: default;
}

@keyframes nahse-video-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(242, 193, 78, .45); }
	100% { box-shadow: 0 0 0 26px rgba(242, 193, 78, 0); }
}

/* Inside article/body content, add breathing room */
.post-content .nahse-video,
.entry-content .nahse-video {
	margin-top: 32px;
	margin-bottom: 32px;
}

@media (max-width: 767px) {
	.nahse-video {
		--nv-radius: 20px;
		box-shadow: 0 24px 48px rgba(0, 10, 40, .35);
	}
	.nahse-video .nahse-video__play {
		width: 72px;
		height: 72px;
		margin: -36px 0 0 -36px;
		box-shadow: 0 0 0 10px rgba(242, 193, 78, .2);
	}
	.nahse-video .nahse-video__play svg {
		width: 24px;
		height: 24px;
		margin-left: 4px;
	}
	.nahse-video .nahse-video__meta {
		left: 20px;
		right: 20px;
		bottom: 16px;
	}
	.nahse-video .nahse-video__title { font-size: 16px; }
	.nahse-video .nahse-video__sub   { font-size: 12px; }
}

@media (max-width: 480px) {
	.nahse-video .nahse-video__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.nahse-video .nahse-video__play { animation: none; }
	.nahse-video .nahse-video__poster,
	.nahse-video .nahse-video__play { transition: none; }
}
