.rd-video-shorts {
	--rd-shorts-columns: 5;
	--rd-shorts-gap: 16px;
	--rd-shorts-height: 470px;
	--rd-shorts-accent: #ed1c24;
	width: 100%;
	font-family: inherit;
}

.rd-video-shorts *,
.rd-video-shorts *::before,
.rd-video-shorts *::after {
	box-sizing: border-box;
}

.rd-video-shorts__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
	margin-bottom: 14px;
}

.rd-video-shorts__heading {
	margin: 0;
	color: #171717;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

.rd-video-shorts__more {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #5d5d5d;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
}

.rd-video-shorts__more span {
	color: var(--rd-shorts-accent);
	font-size: 28px;
	font-weight: 500;
	transition: transform 180ms ease;
}

.rd-video-shorts__more:hover span,
.rd-video-shorts__more:focus-visible span {
	transform: translateX(4px);
}

.rd-video-shorts__grid {
	display: grid;
	grid-template-columns: repeat(var(--rd-shorts-columns), minmax(0, 1fr));
	gap: var(--rd-shorts-gap);
}

.rd-video-shorts__card {
	min-width: 0;
}

.rd-video-shorts__media {
	position: relative;
	display: block;
	width: 100%;
	height: var(--rd-shorts-height);
	overflow: hidden;
	padding: 0;
	border: 0;
	border-radius: 8px;
	color: #ffffff;
	background: #171717;
	cursor: pointer;
	isolation: isolate;
}

.rd-video-shorts__media::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
	pointer-events: none;
}

.rd-video-shorts__cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease, filter 420ms ease;
}

.rd-video-shorts__cover--empty {
	display: block;
	background:
		radial-gradient(circle at 30% 20%, rgba(237, 28, 36, 0.44), transparent 34%),
		linear-gradient(145deg, #292929, #090909);
}

.rd-video-shorts__media:hover .rd-video-shorts__cover,
.rd-video-shorts__media:focus-visible .rd-video-shorts__cover {
	transform: scale(1.045);
	filter: brightness(0.78);
}

.rd-video-shorts__media:focus-visible {
	outline: 3px solid var(--rd-shorts-accent);
	outline-offset: 3px;
}

.rd-video-shorts__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	width: 58px;
	height: 58px;
	color: #ffffff;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.42));
	transform: translate(-50%, -50%);
	transition: transform 180ms ease;
	place-items: center;
}

.rd-video-shorts__play svg {
	width: 100%;
	height: 100%;
}

.rd-video-shorts__media:hover .rd-video-shorts__play {
	transform: translate(-50%, -50%) scale(1.1);
}

.rd-video-shorts__meta {
	position: absolute;
	right: 14px;
	bottom: 14px;
	left: 14px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 9px;
	color: #ffffff;
	font-size: 12px;
	line-height: 1.25;
	text-align: left;
}

.rd-video-shorts__author {
	font-weight: 800;
}

.rd-video-shorts__duration {
	margin-left: auto;
	padding: 5px 7px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.66);
	font-weight: 800;
}

.rd-video-shorts__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 10px 0 0;
	color: #171717;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.015em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rd-video-shorts__title a {
	color: inherit;
	text-decoration: none;
}

.rd-video-shorts__title a:hover,
.rd-video-shorts__title a:focus-visible {
	color: var(--rd-shorts-accent);
}

.rd-video-shorts__profile {
	width: 100%;
	overflow: hidden;
}

.rd-video-shorts__profile .tiktok-embed {
	max-width: 100% !important;
	margin: 0 !important;
}

.rd-video-shorts__notice {
	padding: 26px;
	border: 1px dashed #aaaaaa;
	border-radius: 8px;
	color: #525252;
	background: #f7f7f7;
	text-align: center;
}

.rd-video-shorts__modal[hidden] {
	display: none;
}

.rd-video-shorts__modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	padding: 28px;
	background: rgba(0, 0, 0, 0.9);
	place-items: center;
}

.rd-video-shorts__modal-frame {
	width: min(430px, 92vw);
	height: min(82vh, 760px);
	overflow: hidden;
	border-radius: 12px;
	background: #000000;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.rd-video-shorts__modal-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.rd-video-shorts__modal-close {
	position: fixed;
	top: 18px;
	right: 22px;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: #ffffff;
	background: rgba(0, 0, 0, 0.7);
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

body.rd-shorts-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.rd-video-shorts__grid {
		overflow-x: auto;
		grid-auto-columns: minmax(230px, 32vw);
		grid-auto-flow: column;
		grid-template-columns: none;
		padding-bottom: 8px;
		scroll-snap-type: x mandatory;
	}

	.rd-video-shorts__card {
		scroll-snap-align: start;
	}
}

@media (max-width: 767px) {
	.rd-video-shorts__header {
		gap: 14px;
	}

	.rd-video-shorts__grid {
		grid-auto-columns: minmax(230px, 78vw);
	}

	.rd-video-shorts__media {
		height: min(var(--rd-shorts-height), 62vh);
	}

	.rd-video-shorts__modal {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rd-video-shorts__cover,
	.rd-video-shorts__play,
	.rd-video-shorts__more span {
		transition: none;
	}
}

