/**
 * YouTube OneTrust placeholder (Subaru blog). Strong selectors so Elementor/theme resets do not flatten the play control.
 */

.subaru-blog-youtube-consent-placeholder {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	cursor: pointer;
	overflow: hidden;
}

.subaru-blog-youtube-consent-placeholder__inner {
	position: absolute;
	inset: 0;
	display: block;
	overflow: visible;
}

.subaru-blog-youtube-consent-placeholder__thumb {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

/* Red “YouTube-style” control: absolutely centered so text can sit at bottom without flex overflow clipping (guest / carousel). */
.subaru-blog-youtube-consent-placeholder button.subaru-blog-youtube-consent-placeholder__play {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	min-width: 68px;
	height: 48px;
	min-height: 48px;
	margin: 0;
	padding: 0;
	transform: translate(-50%, -50%);
	font: inherit;
	line-height: 0;
	color: transparent;
	text-shadow: none;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 0, 0, 0.9) !important;
	background-image: none !important;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.subaru-blog-youtube-consent-placeholder button.subaru-blog-youtube-consent-placeholder__play:hover {
	background: rgba(255, 0, 0, 1) !important;
	transform: translate(-50%, -50%);
}

.subaru-blog-youtube-consent-placeholder__play-icon {
	display: block;
	width: 0;
	height: 0;
	margin-left: 5px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
	box-sizing: content-box;
	pointer-events: none;
}

.subaru-blog-youtube-consent-placeholder__message {
	position: absolute;
	bottom: 0.5rem;
	left: 0;
	right: 0;
	z-index: 4;
	margin: 0;
	padding: 0 0.75rem;
	font-size: 0.875rem;
	font-style: normal;
	line-height: 1.35;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.6);
}

.subaru-blog-youtube-consent-placeholder.subaru-blog-youtube-consent-placeholder--loaded {
	cursor: default;
}

.subaru-blog-youtube-consent-placeholder.subaru-blog-youtube-consent-placeholder--loaded iframe.subaru-blog-youtube-consent-placeholder__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Common responsive embed wrappers (Elementor, wp-block-embed). */
.wp-block-embed .subaru-blog-youtube-consent-placeholder,
figure.wp-block-embed .subaru-blog-youtube-consent-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: unset;
}
