.rvc-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
	        mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.rvc-wrap * {
	box-sizing: border-box;
}

.rvc-track {
	display: flex;
	width: max-content;
	gap: 14px;
	padding: 6px 0 18px;
	will-change: transform;
}

.rvc-card {
	position: relative;
	flex: 0 0 auto;
	width: 180px;
	aspect-ratio: 9 / 16;
	border-radius: 14px;
	overflow: hidden;
	background: #111;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	user-select: none;
}

.rvc-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #000;
	cursor: pointer;
}

.rvc-mutebtn {
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 4;
	padding: 0;
}
/* .rvc-muted = current audio state is muted -> show the "muted" speaker icon
   (clicking it unmutes). Not-muted -> show the plain speaker icon. Videos
   start muted by default, so .rvc-muted is added by JS on init. */
.rvc-icon-unmute {
	display: none;
}
.rvc-card.rvc-muted .rvc-icon-mute {
	display: block;
}
.rvc-card.rvc-muted .rvc-icon-unmute {
	display: none;
}
.rvc-card:not(.rvc-muted) .rvc-icon-mute {
	display: none;
}
.rvc-card:not(.rvc-muted) .rvc-icon-unmute {
	display: block;
}

.rvc-overlay-top {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 13.5px;
	line-height: 1.25;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
	z-index: 2;
	pointer-events: none;
}

.rvc-overlay-bottom {
	position: absolute;
	bottom: 10px;
	left: 10px;
	font-weight: 700;
	font-size: 12.5px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 5px;
	pointer-events: none;
}
.rvc-play-icon-small {
	font-size: 9px;
}

.rvc-link {
	position: absolute;
	bottom: 10px;
	left: 10px;
	right: 10px;
	z-index: 4;
	text-align: center;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 0;
	border-radius: 6px;
	text-decoration: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.rvc-card:hover .rvc-link {
	opacity: 1;
}

@media (max-width: 640px) {
	.rvc-card {
		width: 140px;
	}
}
