/**
 * Video template styles.
 *
 * Uses the locked Meifeida palette and the system font stack from global.css.
 */

/* Hide the default WordPress byline on video templates. */
.single-jgy_video .entry-meta,
.post-type-archive-jgy_video .entry-meta,
.tax-jgy_video_category .entry-meta {
	display: none;
}

/* --------------------------------------------------------------------------
   Meta bar
   -------------------------------------------------------------------------- */

.jgy-video-meta {
	align-items: center;
	background-color: var(--jgy-surface);
	border: 1px solid var(--jgy-border);
	border-radius: var(--jgy-radius-lg);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin: 0 0 18px;
	padding: 14px 20px;
}

.jgy-video-badge {
	background-color: var(--jgy-accent);
	border-radius: 999px;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 5px 10px;
	text-transform: uppercase;
}

.jgy-video-meta__item {
	color: var(--jgy-muted);
	font-size: 14px;
}

.jgy-video-meta__item strong {
	color: var(--jgy-primary);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Player
   -------------------------------------------------------------------------- */

.jgy-video-player {
	aspect-ratio: 16 / 9;
	background-color: var(--jgy-primary);
	border-radius: var(--jgy-radius-lg);
	margin: 0 0 32px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

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

.jgy-video-player video {
	object-fit: contain;
}

.jgy-video-player__cover {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.jgy-video-player__overlay {
	align-items: center;
	background: rgba(31, 36, 40, 0.58);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 14px;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: absolute;
	text-align: center;
}

.jgy-video-player__overlay p {
	background-color: rgba(31, 36, 40, 0.72);
	border-radius: 999px;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	padding: 8px 16px;
}

.jgy-video-player__play {
	align-items: center;
	background-color: var(--jgy-accent);
	border-radius: 50%;
	display: inline-flex;
	height: 76px;
	justify-content: center;
	width: 76px;
}

.jgy-video-player__play::after {
	border-bottom: 14px solid transparent;
	border-left: 22px solid #ffffff;
	border-top: 14px solid transparent;
	content: "";
	display: block;
	margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Content sections
   -------------------------------------------------------------------------- */

.jgy-video-chapters {
	background-color: var(--jgy-surface);
	border: 1px solid var(--jgy-border);
	border-radius: var(--jgy-radius-lg);
	margin: 32px 0;
	padding: 26px 30px;
}

.jgy-video-chapters h2 {
	margin-top: 0;
}

.jgy-video-chapters ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jgy-video-chapters li {
	align-items: baseline;
	border-bottom: 1px solid var(--jgy-border);
	display: flex;
	gap: 18px;
	padding: 12px 0;
}

.jgy-video-chapters li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.jgy-video-chapter__time {
	color: var(--jgy-accent);
	font-size: 14px;
	font-weight: 700;
	min-width: 48px;
}

.jgy-video-chapter__label {
	color: var(--jgy-primary);
	font-weight: 500;
}

.jgy-video-show-notes {
	background-color: var(--jgy-surface);
	border-left: 4px solid var(--jgy-accent);
	border-radius: var(--jgy-radius);
	margin: 32px 0;
	padding: 22px 26px;
}

.jgy-video-show-notes h2 {
	margin-top: 0;
}

.jgy-video-show-notes ul {
	margin-bottom: 0;
}

.jgy-video-disclaimer {
	color: var(--jgy-muted);
	font-size: 13px;
	font-style: italic;
}

/* --------------------------------------------------------------------------
   Shop the episode product card
   -------------------------------------------------------------------------- */

.jgy-video-product {
	align-items: center;
	background-color: var(--jgy-surface);
	border: 1px solid var(--jgy-border);
	border-radius: var(--jgy-radius-lg);
	display: grid;
	gap: 24px;
	grid-template-columns: 220px minmax(0, 1fr);
	margin: 40px 0;
	padding: 24px;
}

.jgy-video-product__media img {
	border-radius: 8px;
	display: block;
	height: auto;
	width: 100%;
}

.jgy-video-product__eyebrow {
	color: var(--jgy-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.jgy-video-product__title {
	font-size: 24px;
	margin: 0 0 8px;
}

.jgy-video-product__price {
	color: var(--jgy-accent);
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
}

.jgy-video-product__sample {
	color: var(--jgy-muted);
	font-size: 12px;
	font-weight: 400;
}

.jgy-video-product__cta {
	background-color: var(--jgy-primary);
	border-radius: var(--jgy-radius);
	color: #ffffff;
	display: inline-block;
	font-weight: 600;
	padding: 12px 22px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.jgy-video-product__cta:hover,
.jgy-video-product__cta:focus {
	background-color: var(--jgy-accent);
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   Archive cards
   -------------------------------------------------------------------------- */

.jgy-video-card-meta {
	color: var(--jgy-muted);
	font-size: 13px;
	margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
	.jgy-video-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		padding: 14px 16px;
	}

	.jgy-video-chapters {
		padding: 20px;
	}

	.jgy-video-product {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.jgy-video-product__media {
		max-width: 220px;
	}
}
