/* ===========================================================
   Reviews Story Slider — front-end styles
   =========================================================== */

.wrs-section {
	width: 100%;
	padding: 20px 0;
}

.wrs-header {
	max-width: 640px;
	margin: 0 auto 40px;
	text-align: center;
	padding: 0 20px;
}

.wrs-heading {
	font-size: 2.75rem;
	line-height: 1.15;
	margin: 0 0 16px;
}

.wrs-subheading {
	font-size: 1rem;
	line-height: 1.5;
	margin: 0;
}

/* ---------- Swiper container ---------- */

.wrs-swiper.swiper {
	width: 100%;
	padding: 10px 0 30px;
	overflow: visible;
}

.wrs-swiper .swiper-wrapper {
	align-items: center;
}

.wrs-slide {
	width: 280px;
	flex-shrink: 0;
	transition: transform 0.4s ease, opacity 0.4s ease;
	opacity: 0.55;
	transform: scale(0.92);
	cursor: pointer;
}

.wrs-slide.swiper-slide-active,
.wrs-slide.swiper-slide-duplicate-active {
	opacity: 1;
	transform: scale(1);
}

/* ---------- Card ---------- */

.wrs-card {
	position: relative;
	width: 100%;
	height: 420px;
	border-radius: 18px;
	overflow: hidden;
	background-color: #111;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.wrs-video,
.wrs-poster-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ---------- Profile pill (top-left) ---------- */

.wrs-profile-link {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	max-width: calc(100% - 32px);
}

.wrs-profile-img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	flex-shrink: 0;
}

.wrs-username {
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Progress bar (top, Instagram-story style) ---------- */

.wrs-progress-wrap {
	position: absolute;
	top: 8px;
	left: 16px;
	right: 16px;
	height: 3px;
	border-radius: 3px;
	background-color: rgba(255, 255, 255, 0.35);
	overflow: hidden;
	z-index: 5;
}

.wrs-progress-fill {
	width: 0%;
	height: 100%;
	background-color: #fff;
	border-radius: 3px;
}

/* ---------- Play icon (shown until slide becomes active) ---------- */

.wrs-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	transform: translate(-50%, -50%);
	z-index: 3;
	opacity: 1;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.wrs-play-icon svg {
	width: 100%;
	height: 100%;
}

.wrs-slide.swiper-slide-active .wrs-play-icon,
.wrs-slide.swiper-slide-duplicate-active .wrs-play-icon {
	opacity: 0;
}

/* ---------- Mute / unmute button (top-right) ---------- */

.wrs-mute-btn {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease;
}

.wrs-mute-btn:hover {
	background: rgba(0, 0, 0, 0.6);
}

.wrs-mute-btn svg {
	width: 18px;
	height: 18px;
}

.wrs-mute-btn .wrs-icon-unmuted {
	display: none;
}

.wrs-card.wrs-is-unmuted .wrs-icon-muted {
	display: none;
}

.wrs-card.wrs-is-unmuted .wrs-icon-unmuted {
	display: block;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
	.wrs-heading {
		font-size: 2.25rem;
	}

	.wrs-card {
		height: 380px;
	}
}

@media (max-width: 767px) {
	.wrs-heading {
		font-size: 1.875rem;
	}

	.wrs-card {
		height: 340px;
	}

	.wrs-slide {
		width: 220px;
	}
}
