.home-videos {
	background-color: #343434;
	color: #dddddd;
	padding: clamp(56px, 10vh, 120px) 0;
}

.home-videos__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 clamp(32px, 5vh, 56px);
}

.home-videos__title {
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: clamp(30px, 3.4vw, 48px);
	line-height: 1.1;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #dddddd;
	margin: 0;
}

.home-videos__grid {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.home-videos__card {
	min-width: 0;
}

.home-videos__frame {
	position: relative;
	margin: 0;
	padding: 6px;
	border: 1px solid rgba(221, 221, 221, 0.22);
	border-radius: clamp(14px, 1.6vw, 20px);
	background-color: #2c2c2c;
	box-shadow: inset 0 0 0 1px rgba(221, 221, 221, 0.06);
}

.home-videos__media {
	position: relative;
	aspect-ratio: 9 / 16;
	border-radius: clamp(10px, 1.2vw, 16px);
	overflow: hidden;
	background-color: #1f1f1f;
}

.home-videos__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-videos__video:fullscreen {
	background-color: #000000;
	object-fit: contain;
	width: 100vw;
	height: 100vh;
}

.home-videos__video:-webkit-full-screen {
	background-color: #000000;
	object-fit: contain;
	width: 100vw;
	height: 100vh;
}

.home-videos__len {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	padding: 3px 8px;
	border-radius: 4px;
	background-color: rgba(0, 0, 0, 0.62);
	color: #ffffff;
	font-family: var(--font-sans);
	font-weight: 300;
	font-size: 12px;
	letter-spacing: 0.5px;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

.home-videos__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: clamp(48px, 6vw, 62px);
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.4);
	color: #ffffff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transform: translate(-50%, -50%);
	transition: background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.home-videos__play::before {
	content: "";
	display: block;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #ffffff;
	margin-left: 3px;
}

.home-videos__play:hover {
	background-color: #ff1b25;
	border-color: #ff1b25;
}

.home-videos__card.is-started .home-videos__play {
	display: none;
}

.home-videos__nav {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.home-videos__nav-btn {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(221, 221, 221, 0.22);
	border-radius: 50%;
	background-color: transparent;
	color: #dddddd;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.home-videos__nav-btn::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	margin-left: -2px;
}

.home-videos__nav-btn--prev::before {
	transform: rotate(-135deg);
	margin-left: 2px;
}

.home-videos__nav-btn:hover {
	color: #ff1b25;
	border-color: #ff1b25;
}

.home-videos__nav-btn.swiper-button-disabled,
.home-videos__nav-btn.swiper-button-lock {
	opacity: 0.3;
	pointer-events: none;
}

.home-videos__swiper .swiper-slide {
	min-width: 0;
	height: auto;
}

.home-videos__caption {
	display: block;
	margin-top: 12px;
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.3;
	color: rgba(221, 221, 221, 0.82);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 980px) {
	.home-videos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(16px, 3vw, 28px);
	}
}

@media (max-width: 600px) {
	.home-videos__nav {
		display: none;
	}
}

@media (max-width: 520px) {
	.home-videos__grid {
		gap: 14px;
	}
}
