/**
 * TechBBQ Hero Reel — video reel section with Plyr.
 * Content width uses shared .section-inner (see layout.css).
 *
 * Breakpoints (mobile-first): 0–767 (base), 768–1023, 1024–1440, 1440+.
 */

.techbbq-hero-reel {
	width: 100%;
	color: var(--techbbq-content-primary);
	background-color: var(--techbbq-bg-main);
}

.techbbq-hero-reel__screen {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.techbbq-hero-reel__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.techbbq-hero-reel__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1392 / 781;
	border-radius: var(--techbbq-radius-md);
	overflow: hidden;
}

.techbbq-hero-reel:not(.techbbq-hero-reel--playing) .techbbq-hero-reel__media {
	cursor: pointer;
}

.techbbq-hero-reel__media .plyr {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	--plyr-color-main: var(--techbbq-content-primary);
	--plyr-video-background: var(--techbbq-bg-main);
	--plyr-menu-background: rgba(13, 13, 13, 0.92);
	--plyr-menu-color: var(--techbbq-content-primary);
}

.techbbq-hero-reel__media .plyr__video-wrapper {
	height: 100%;
}

.techbbq-hero-reel__media .plyr__control--overlaid {
	display: none;
}

.techbbq-hero-reel__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.techbbq-hero-reel__poster-picture,
.techbbq-hero-reel__poster-image {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.techbbq-hero-reel--playing .techbbq-hero-reel__poster-picture {
	opacity: 0;
	visibility: hidden;
}

.techbbq-hero-reel__trigger {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	width: 100%;
	height: 100%;
	background: transparent;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.techbbq-hero-reel__trigger::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(13, 13, 13, 0);
	transition: background-color 0.2s ease;
	pointer-events: none;
}

.techbbq-hero-reel:not(.techbbq-hero-reel--playing) .techbbq-hero-reel__media:hover .techbbq-hero-reel__trigger::after,
.techbbq-hero-reel:not(.techbbq-hero-reel--playing) .techbbq-hero-reel__media:focus-visible .techbbq-hero-reel__trigger::after {
	background-color: rgba(13, 13, 13, 0.12);
}

.techbbq-hero-reel--playing .techbbq-hero-reel__trigger {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.techbbq-hero-reel:not(.techbbq-hero-reel--playing) .techbbq-hero-reel__media .plyr__controls {
	opacity: 0;
	pointer-events: none;
}

.techbbq-hero-reel:not(.techbbq-hero-reel--playing) .techbbq-hero-reel__media .plyr {
	pointer-events: none;
}

.techbbq-hero-reel--playing .techbbq-hero-reel__media .plyr__video-wrapper {
	cursor: pointer;
}

.techbbq-hero-reel__media:focus-visible {
	outline: 2px solid var(--techbbq-content-primary);
	outline-offset: 2px;
}

.techbbq-hero-reel__overlay {
	position: absolute;
	left: 0;
	z-index: 1;
	display: flex;
	gap: var(--techbbq-space-2);
	align-items: center;
	color: var(--techbbq-content-primary);
	font-family: var(--techbbq-font-family-body);
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0.01em;
	pointer-events: none;
	transform: translateY(-50%);
}

.techbbq-hero-reel__play-icon {
	flex-shrink: 0;
}

.techbbq-hero-reel__label {
	white-space: nowrap;
}

.techbbq-hero-reel:not(.techbbq-hero-reel--playing) .techbbq-hero-reel__media:hover .techbbq-hero-reel__label,
.techbbq-hero-reel:not(.techbbq-hero-reel--playing) .techbbq-hero-reel__media:focus-visible .techbbq-hero-reel__label {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Relocated from @media (max-width: 768px) + @media (max-width: 767px) — mobile (0–767) */
.techbbq-hero-reel__screen {
	padding-top: var(--techbbq-space-2);
	padding-bottom: var(--techbbq-space-2);
}

.techbbq-hero-reel__overlay {
	top: 39%;
	padding: 8px;
	font-size: var(--techbbq-text-paragraph-s-size);
}

.techbbq-hero-reel__play-icon {
	width: 18px;
	height: 18px;
}

/* ── Tablet (768–1023) ──────────────────────────────────────── */
@media (min-width: 768px) {
	/* Relocated from @media (max-width: 768px) */
	.techbbq-hero-reel__overlay {
		top: 46%;
		padding: 12px;
		font-size: 25px;
	}

	/* Undo @media (max-width: 767px) — restored from original base */
	.techbbq-hero-reel__screen {
		padding-top: var(--techbbq-section-space-small);
		padding-bottom: var(--techbbq-section-space-small);
	}

	.techbbq-hero-reel__play-icon {
		width: 26px;
		height: 26px;
	}
}

/* ── Desktop (1024–1440) ──────────────────────────────────────── */
@media (min-width: 1024px) {
	/* Relocated from original base (desktop defaults) */
	.techbbq-hero-reel__overlay {
		top: 48%;
	}
}
