/* YaSeks — card uniformity + player mobile fixes (ported from seksvideos) */

.videos-list > a {
	position: relative;
	display: block;
}

.videos-list img {
	display: block;
	width: 100%;
	max-width: none;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center;
	height: auto;
}

.videos-list h2 {
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.25em * 2 + 2px);
	line-height: 1.25;
}

.videos-list .time {
	bottom: auto;
	top: calc(100% - 2.5em - 28px);
}

.videos-list .eye {
	top: 18px;
	left: 18px;
}

.videos-list .hd {
	top: 18px;
	right: 18px;
}

/* Player inside Bootstrap ratio box */
.ratio.ratio-16x9 > .sv-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

@media (max-width: 768px) {
	.ratio.ratio-16x9 {
		position: relative;
		width: 100%;
		padding-bottom: 56.25%;
		height: 0;
		overflow: hidden;
	}

	.ratio.ratio-16x9 > .sv-player,
	.ratio.ratio-16x9 > video {
		position: absolute !important;
		top: 0;
		left: 0;
		width: 100% !important;
		height: 100% !important;
	}

	.sv-player__controls {
		opacity: 1;
	}
}
