/* Huelva TV OTT - Tarjeta incrustada de un video (inc/ott-embed.php).
 * Base: la variante «discreta» del muestrario del 2026-11-28, horizontal y
 * compacta, con el lenguaje de A la Carta (fondo #141414, Lato, acento
 * #f9c73d). Desde la tarde de ese dia la de por defecto es la «inmersiva»
 * (.htv-embed--inmersiva, al final); la discreta sale con ?tarjeta=discreta. */

html,
body.htv-embed-body {
	margin: 0;
	padding: 0;
	background: transparent;
	overflow: hidden;
}

.htv-embed {
	display: grid;
	grid-template-columns: 45% minmax(0, 1fr);
	overflow: hidden;
	border-radius: 4px;
	background: #141414;
	color: #fff;
	font-family: "Lato", "Segoe UI", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.htv-embed a {
	color: inherit;
	text-decoration: none;
}

.htv-embed__poster {
	position: relative;
	display: block;
	min-height: 100%;
	background: #000;
}

.htv-embed__poster img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.htv-embed__play {
	position: absolute;
	inset: 0;
	width: 46px;
	height: 46px;
	margin: auto;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(20, 20, 20, 0.62);
	transition: background-color 150ms ease;
}

.htv-embed__play::after {
	content: "";
	position: absolute;
	top: 12px;
	left: 17px;
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #fff;
}

.htv-embed__poster:hover .htv-embed__play,
.htv-embed__poster:focus-visible .htv-embed__play {
	background: rgba(20, 20, 20, 0.85);
}

.htv-embed__info {
	display: flex;
	flex-direction: column;
	padding: 13px 15px 11px;
}

.htv-embed p {
	margin: 0;
}

.htv-embed__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.htv-embed__program {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 2px;
	background: var(--htv-prog, rgba(255, 255, 255, 0.14));
	box-shadow: inset 0 0 0 1px var(--htv-prog-line, transparent);
	color: var(--htv-prog-text, #fff);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.htv-embed__season {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	font-weight: 700;
}

.htv-embed__title {
	margin-top: 8px !important;
	font-size: 19px;
	font-weight: 900;
	line-height: 1.15;
}

.htv-embed__title a:hover,
.htv-embed__title a:focus-visible {
	text-decoration: underline;
}

.htv-embed__meta {
	margin-top: 4px !important;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}

.htv-embed__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 12px !important;
}

.htv-embed__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 4px;
	background: #f9c73d;
	color: #141414 !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 150ms ease;
}

.htv-embed__button::before {
	content: "";
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
}

.htv-embed__button:hover,
.htv-embed__button:focus-visible {
	background: #ffd65f;
}

.htv-embed__alt {
	color: rgba(255, 255, 255, 0.8) !important;
	font-size: 13px;
}

.htv-embed__alt:hover,
.htv-embed__alt:focus-visible {
	color: #fff !important;
	text-decoration: underline !important;
}

.htv-embed__site {
	margin-top: auto !important;
	padding-top: 10px;
}

.htv-embed__site a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	font-weight: 700;
}

.htv-embed__site img {
	display: block;
	width: 18px;
	height: 18px;
}

.htv-embed a:focus-visible {
	outline: 2px solid #f9c73d;
	outline-offset: 2px;
}

/* Estrecho (movil): el poster arriba, a todo el ancho. */
@media (max-width: 420px) {
	.htv-embed {
		grid-template-columns: 1fr;
	}

	.htv-embed__poster img {
		height: auto;
	}

	.htv-embed__site {
		padding-top: 12px;
	}
}

/* Variante «inmersiva» (la de por defecto desde el 2026-11-28): poster
 * arriba dentro de un marco del color del programa que funde al negro,
 * etiqueta blanca con el nombre en su color, extracto y boton blanco con
 * «Seguir desde» como secundario. */
.htv-embed--inmersiva {
	display: block;
	border-radius: 6px;
	background: linear-gradient(180deg, var(--htv-prog, #333) 0, #141414 55%);
}

.htv-embed--inmersiva .htv-embed__poster {
	margin: 12px 12px 0;
	min-height: 0;
}

.htv-embed--inmersiva .htv-embed__poster img {
	height: auto;
}

.htv-embed--inmersiva .htv-embed__play {
	width: 58px;
	height: 58px;
}

.htv-embed--inmersiva .htv-embed__play::after {
	top: 16px;
	left: 22px;
	border-width: 12px 0 12px 19px;
}

.htv-embed__dur {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 2px 7px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.htv-embed--inmersiva .htv-embed__info {
	padding: 16px 18px 14px;
}

.htv-embed--inmersiva .htv-embed__program {
	background: #fff;
	box-shadow: none;
	color: var(--htv-prog, #141414);
}

.htv-embed--inmersiva .htv-embed__title {
	margin-top: 10px !important;
	font-size: 22px;
}

.htv-embed__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 8px !important;
	color: rgba(255, 255, 255, 0.88);
	font-size: 14px;
	line-height: 1.45;
}

.htv-embed--inmersiva .htv-embed__actions {
	gap: 10px 14px;
	margin-top: 14px !important;
}

.htv-embed--inmersiva .htv-embed__button {
	padding: 10px 16px;
}

.htv-embed--inmersiva .htv-embed__button--ver {
	background: #fff;
}

.htv-embed--inmersiva .htv-embed__button--ver:hover,
.htv-embed--inmersiva .htv-embed__button--ver:focus-visible {
	background: #e8e8e8;
}

.htv-embed--inmersiva .htv-embed__button--min {
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: transparent;
	color: #fff !important;
}

.htv-embed--inmersiva .htv-embed__button--min:hover,
.htv-embed--inmersiva .htv-embed__button--min:focus-visible {
	background: rgba(255, 255, 255, 0.12);
}

.htv-embed--inmersiva .htv-embed__site {
	margin-top: 14px !important;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 420px) {
	.htv-embed--inmersiva .htv-embed__poster {
		margin: 8px 8px 0;
	}
	.htv-embed--inmersiva .htv-embed__info {
		padding: 12px 14px 12px;
	}
	.htv-embed--inmersiva .htv-embed__title {
		font-size: 19px;
	}
}
