/* ---------------------------------------------------------------------------
 * Huelva TV OTT: pagina de una temporada (inc/ott-season-page.php).
 * Cabecera con el fondo de la temporada y los datos a la izquierda; debajo,
 * los episodios en rejilla. En movil el fondo va arriba y los datos debajo.
 * Mismo lenguaje que la pagina del video (ott-single-video.css).
 * ------------------------------------------------------------------------ */
.htv-season {
	--htv-season-bg: #141414;
	position: relative;
	background: var(--htv-season-bg);
	color: #fff;
}

.htv-season__stage {
	position: relative;
	height: clamp(360px, 40vw, calc(100vh - 140px));
	overflow: hidden;
	background: var(--htv-season-bg);
}

.htv-season__image {
	position: absolute;
	top: 0;
	right: 0;
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center center;
	/* La imagen va entera a la derecha y se funde por su borde izquierdo,
	 * para que el texto no pise a quien salga en la foto. */
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 18%, #000 40%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.5) 18%, #000 40%);
}

/* Y se funde por abajo con la pagina. */
.htv-season__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, var(--htv-season-bg) 0%, rgba(20, 20, 20, 0) 22%);
	pointer-events: none;
}

.htv-season__info {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 38%;
	min-width: 320px;
	max-width: 600px;
	padding: 0 24px 0 56px;
}

.htv-season__label {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.82);
	font-family: "Lato", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.htv-season .htv-season__title {
	margin: 0 0 14px;
	color: #fff;
	font-family: "Lato", sans-serif;
	font-size: clamp(28px, 3.2vw, 48px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	overflow-wrap: anywhere;
}

.htv-season__description {
	display: -webkit-box;
	margin: 0 0 22px;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.86);
	font-size: 16px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.htv-season__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.htv-season__button,
.htv-season__button:hover,
.htv-season__button:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #fff;
	border-radius: 4px;
	background: #fff;
	color: #141414 !important;
	font-family: "Lato", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 160ms ease;
}

.htv-season__button:hover,
.htv-season__button:focus-visible {
	background: rgba(255, 255, 255, 0.86);
}

.htv-season__button:focus-visible,
.htv-season__chip:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.htv-season__seasons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.htv-season__chip,
.htv-season__chip:hover,
.htv-season__chip:focus {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.35);
	color: #fff !important;
	font-family: "Lato", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.htv-season__chip:hover,
.htv-season__chip:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.16);
}

.htv-season__chip.is-current,
.htv-season__chip.is-current:hover,
.htv-season__chip.is-current:focus {
	border-color: #fff;
	background: #fff;
	color: #141414 !important;
}

/* Episodios en rejilla. */
.htv-season__body {
	padding: 30px 15px 10px;
}

.htv-season__body .smart-box-head {
	margin-bottom: 16px;
	padding-bottom: 0;
	border-bottom: 0;
}

.htv-season__body .smart-box-head .light-title,
.htv-season__body .smart-box-head .light-title.title {
	margin: 0;
	font-family: "Lato", sans-serif;
	font-size: 22px;
	font-weight: 700 !important;
	line-height: 1.3;
}

.htv-season__body .smart-box-style-poster-grid .smart-box-content .row,
.htv-season__body .smart-box-style-poster-grid .smart-item > .row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px 20px;
	margin: 0;
}

/* El tema mete 10px de margen a la rejilla; sin el, alinea con su titulo. */
.htv-season__body .smart-box-style-poster-grid .smart-box-content {
	margin-right: 0;
	margin-left: 0;
}

.htv-season__body .smart-box-style-poster-grid .row::before,
.htv-season__body .smart-box-style-poster-grid .row::after {
	content: none;
}

.htv-season__body .smart-box-style-poster-grid .row > [class*="col-"] {
	float: none;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
}

.htv-season__body .smart-box-style-poster-grid .video-item {
	margin-bottom: 0;
}

.htv-season__body .smart-box-style-poster-grid .item-thumbnail,
.htv-season__body .smart-box-style-poster-grid .item-thumbnail img {
	border-radius: 4px;
}

.htv-season__body .smart-box-style-poster-grid .item-head {
	margin-right: 0;
	margin-left: 0;
}

/* Con menu propio arriba, sobra la franja superior del tema. */
.htv-ott-season #headline {
	display: none;
}

@media (min-width: 1500px) {
	.htv-season__body .smart-box-style-poster-grid .smart-box-content .row,
	.htv-season__body .smart-box-style-poster-grid .smart-item > .row {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.htv-season__info {
		width: 46%;
		min-width: 280px;
		padding-left: 24px;
	}

	.htv-season__body .smart-box-style-poster-grid .smart-box-content .row,
	.htv-season__body .smart-box-style-poster-grid .smart-item > .row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.htv-season__stage {
		height: auto;
		aspect-ratio: 16 / 9;
	}

	/* En movil el fondo se ve entero arriba y solo se funde por abajo. */
	.htv-season__image {
		position: static;
		width: 100%;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.htv-season__stage::after {
		background: linear-gradient(0deg, var(--htv-season-bg) 0%, rgba(20, 20, 20, 0) 30%);
	}

	.htv-season__info {
		position: static;
		display: block;
		width: auto;
		min-width: 0;
		max-width: none;
		padding: 14px 20px 4px;
	}

	.htv-season .htv-season__title {
		margin-bottom: 10px;
		font-size: 28px;
	}

	.htv-season__description {
		margin-bottom: 18px;
		font-size: 15px;
		-webkit-line-clamp: 5;
	}

	.htv-season__button {
		flex: 1 0 100%;
	}

	.htv-season__seasons {
		flex-wrap: nowrap;
		margin: 0 -20px;
		padding: 0 20px 4px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.htv-season__seasons::-webkit-scrollbar {
		display: none;
	}

	.htv-season__body {
		padding: 26px 20px 6px;
	}

	.htv-season__body .smart-box-style-poster-grid .smart-box-content .row,
	.htv-season__body .smart-box-style-poster-grid .smart-item > .row {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
}

@media (min-width: 480px) and (max-width: 767px) {
	.htv-season__body .smart-box-style-poster-grid .smart-box-content .row,
	.htv-season__body .smart-box-style-poster-grid .smart-item > .row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.htv-season__button,
	.htv-season__chip {
		transition: none;
	}
}
