/* Light embeds (inc/embeds.php): YouTube facade + Instagram/TikTok link card. */

/* YouTube facade — fixed 16:9 box, the player takes its place without any shift. */
.hv-embed {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--hv-radius-md, 12px);
	background: var(--hv-surface, #121212);
	border: 1px solid var(--hv-line, rgba(255, 255, 255, 0.08));
}

.hv-embed__thumb,
.hv-embed__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.hv-embed__thumb {
	object-fit: cover;
	transition: transform 0.4s ease, opacity 0.3s ease;
	opacity: 0.88;
}

/* Button (with JS) or link (without): the whole frame is the touch target. */
.hv-embed__play,
.hv-embed__fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: var(--hv-tap, 44px);
	min-height: var(--hv-tap, 44px);
	margin: 0;
	padding: 0;
	border: 0;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, 0.55) 100%);
	cursor: pointer;
	color: inherit;
}

.hv-embed__play {
	display: none;
}

.hv-js .hv-embed__play {
	display: flex;
}

.hv-js .hv-embed__fallback {
	display: none;
}

.hv-embed__icon {
	width: 68px;
	height: 48px;
	filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
	transition: transform 0.2s ease;
}

.hv-embed__icon-bg {
	fill: rgba(18, 18, 18, 0.85);
	transition: fill 0.2s ease;
}

.hv-embed__play:hover .hv-embed__icon-bg,
.hv-embed__play:focus-visible .hv-embed__icon-bg,
.hv-embed__fallback:hover .hv-embed__icon-bg,
.hv-embed__fallback:focus-visible .hv-embed__icon-bg {
	fill: var(--hv-gold, #BF9C5C);
}

.hv-embed:hover .hv-embed__thumb {
	opacity: 1;
	transform: scale(1.02);
}

.hv-embed__play:focus-visible,
.hv-embed__fallback:focus-visible {
	outline: 2px solid var(--hv-gold-light, #D9BC85);
	outline-offset: -4px;
	border-radius: inherit;
}

/* Gutenberg embed block: its padding-top ratio trick would double the height. */
.wp-block-embed__wrapper:has(> .hv-embed)::before {
	content: none;
}

/* Instagram / TikTok: static card, no third-party script. */
.hv-embed-card {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 520px;
	min-height: var(--hv-tap, 44px);
	padding: 16px 20px;
	border: 1px solid var(--hv-line-strong, rgba(255, 255, 255, 0.14));
	border-radius: var(--hv-radius-md, 12px);
	background: var(--hv-surface-2, #1C1C1F);
	color: var(--hv-text, #D4D4D4);
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.hv-embed-card:hover,
.hv-embed-card:focus-visible {
	border-color: var(--hv-gold, #BF9C5C);
}

.hv-embed-card:focus-visible {
	outline: 2px solid var(--hv-gold-light, #D9BC85);
	outline-offset: 2px;
}

.hv-embed-card__logo {
	flex: none;
	width: 24px;
	height: 24px;
}

.hv-embed-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.hv-embed-card__net {
	font-family: var(--hv-font-display, system-ui, sans-serif);
	font-size: 14px;
	color: var(--hv-white, #FFFFFF);
	overflow-wrap: anywhere;
}

.hv-embed-card__label {
	font-size: 14px;
	color: var(--hv-gold-light, #D9BC85);
}

.hv-embed-card__arrow {
	margin-left: auto;
	color: var(--hv-gold, #BF9C5C);
}

@media (prefers-reduced-motion: reduce) {
	.hv-embed__thumb,
	.hv-embed__icon,
	.hv-embed__icon-bg,
	.hv-embed-card {
		transition: none;
	}

	.hv-embed:hover .hv-embed__thumb {
		transform: none;
	}
}
