/* Reels Feed - frontend styles */

.rf-feed {
	position: relative;
	margin: 0 auto;
	width: 100%;
	max-width: 420px;
	height: 100vh;
	overflow-y: scroll;
	overflow-x: hidden;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	background: #000;
	-webkit-overflow-scrolling: touch;
}

.rf-feed::-webkit-scrollbar {
	display: none;
}
.rf-feed {
	scrollbar-width: none;
}

.rf-item {
	position: relative;
	width: 100%;
	height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	overflow: hidden;
}

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

/* Mute / unmute button */
.rf-mute-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0;
}

.rf-mute-btn .rf-icon-unmuted {
	display: none;
}
.rf-feed .rf-item.rf-unmuted .rf-mute-btn .rf-icon-muted {
	display: none;
}
.rf-feed .rf-item.rf-unmuted .rf-mute-btn .rf-icon-unmuted {
	display: inline;
}

/* Text overlay */
.rf-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 20px 16px 28px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
	color: #fff;
	box-sizing: border-box;
}

.rf-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.rf-caption {
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.95;
	max-height: 4.5em;
	overflow: hidden;
}

.rf-cta {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(4px);
	transition: background-color 0.2s ease;
}

.rf-cta:hover {
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
}

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

/* On larger screens, give the feed a nicer "phone" look */
@media (min-width: 768px) {
	.rf-feed {
		border-radius: 16px;
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	}
}
