/* YouTube Shorts Showcase — front-end styles */

.rs-showcase {
	--rs-radius: 18px;
	--rs-accent: #6d2352;
	--rs-dot: #d9c9c0;
	padding: 20px 0;
	background: transparent; /* inherit the site's own background */
}

.rs-showcase .rs-swiper {
	padding-bottom: 36px; /* room for pagination dots */
}

/* A card is just the 9:16 video frame: thumbnail, play button, rounded corners. */
.rs-showcase .rs-card {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: var(--rs-radius);
	overflow: hidden;
	background: #111;
	cursor: pointer;
	isolation: isolate; /* keeps rounded corners clipping the iframe in Safari */
}

/*
 * Selectors are deliberately specific (and use !important on sizing) so
 * page builders/themes such as Elementor (".elementor img { height:auto }")
 * can't shrink the poster or player inside the 9:16 frame.
 */
.rs-showcase .rs-card img.rs-poster,
.rs-showcase .rs-card iframe {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.rs-showcase .rs-card img.rs-poster {
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

.rs-showcase .rs-card:hover img.rs-poster {
	transform: scale(1.03);
}

.rs-showcase .rs-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(60, 60, 60, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease, transform 0.2s ease;
}

.rs-showcase .rs-play-btn svg {
	margin-left: 3px; /* optical centring of the triangle */
}

.rs-showcase .rs-card:hover .rs-play-btn,
.rs-showcase .rs-play-btn:focus-visible {
	background: rgba(40, 40, 40, 0.75);
	transform: translate(-50%, -50%) scale(1.08);
}

.rs-showcase .rs-card.is-playing {
	cursor: default;
}

.rs-empty {
	text-align: center;
	padding: 40px 20px;
	color: #777;
}

/* Swiper pagination dots */
.rs-showcase .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: var(--rs-dot);
	opacity: 1;
}

.rs-showcase .swiper-pagination-bullet-active {
	background: var(--rs-accent);
	width: 22px;
	border-radius: 5px;
	transition: width 0.25s ease;
}

@media (max-width: 480px) {
	.rs-showcase {
		--rs-radius: 14px;
	}

	.rs-showcase .rs-play-btn {
		width: 54px;
		height: 54px;
	}
}
