/* Huelva TV OTT: rail de carteles con scroll nativo. */
.htv-ott-carousel {
	--htv-rail-gap: 14px;
	margin: 0 auto 36px;
	max-width: 1500px;
	padding: 0 26px;
	color: #fff;
}

.htv-ott-carousel__header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 0 0 14px;
}

.htv-ott-carousel__title {
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.htv-ott-carousel__controls {
	display: flex;
	gap: 6px;
}

.htv-ott-carousel__button {
	align-items: center;
	background: #242424;
	border: 1px solid #4a4a4a;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-family: Arial, sans-serif;
	font-size: 28px;
	height: 34px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	width: 34px;
}

.htv-ott-carousel__button:hover,
.htv-ott-carousel__button:focus {
	background: #2145d3;
	border-color: #2145d3;
	color: #fff;
	outline: none;
}

.htv-ott-carousel__button:focus-visible,
.htv-ott-carousel__track:focus-visible,
.htv-ott-carousel__card:focus-visible {
	outline: 3px solid #f9c73d;
	outline-offset: 3px;
}

.htv-ott-carousel__track {
	-webkit-overflow-scrolling: touch;
	display: grid;
	gap: var(--htv-rail-gap);
	grid-auto-columns: minmax(154px, 15.8%);
	grid-auto-flow: column;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 1px 14px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-color: #555 #1c1c1c;
	scrollbar-width: thin;
}

.htv-ott-carousel__track::-webkit-scrollbar { height: 6px; }
.htv-ott-carousel__track::-webkit-scrollbar-track { background: #1c1c1c; }
.htv-ott-carousel__track::-webkit-scrollbar-thumb { background: #555; }

.htv-ott-carousel__item { min-width: 0; scroll-snap-align: start; }
.htv-ott-carousel__card { color: #fff; display: block; text-decoration: none; }
.htv-ott-carousel__card:hover, .htv-ott-carousel__card:focus { color: #fff; text-decoration: none; }

.htv-ott-carousel__image {
	background: #242424;
	display: block;
	overflow: hidden;
	position: relative;
}

.htv-ott-carousel--vertical .htv-ott-carousel__image { aspect-ratio: 2 / 3; }
.htv-ott-carousel--horizontal .htv-ott-carousel__image { aspect-ratio: 16 / 9; }

.htv-ott-carousel__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease;
	width: 100%;
}

.htv-ott-carousel__card:hover .htv-ott-carousel__image img,
.htv-ott-carousel__card:focus .htv-ott-carousel__image img { transform: scale(1.035); }

.htv-ott-carousel__play {
	align-items: center;
	background: rgba(0, 0, 0, .74);
	bottom: 9px;
	color: #fff;
	display: flex;
	font-size: 11px;
	height: 28px;
	justify-content: center;
	left: 9px;
	padding-left: 2px;
	position: absolute;
	width: 28px;
}

.htv-ott-carousel__meta { display: block; padding: 9px 1px 0; }
.htv-ott-carousel__category { color: #aeb7e8; display: block; font-size: 11px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; text-transform: uppercase; }
.htv-ott-carousel__name { color: #fff; display: -webkit-box; font-size: 14px; font-weight: 700; line-height: 1.35; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

@media (max-width: 767px) {
	.htv-ott-carousel { margin-bottom: 28px; padding: 0 15px; }
	.htv-ott-carousel__title { font-size: 21px; }
	.htv-ott-carousel__track { grid-auto-columns: minmax(128px, 42%); }
	.htv-ott-carousel__button { height: 32px; width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.htv-ott-carousel__track { scroll-behavior: auto; }
	.htv-ott-carousel__image img { transition: none; }
}
