.reels-container {
	position: relative;
	width: 100%;
	max-width: 420px;
	height: var(--reels-height, 700px);
	margin: 0 auto;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.reels-slide {
	position: absolute;
	inset: 0;
	display: none;
	background: #000;
}

.reels-slide.is-active {
	display: block;
}

.reels-media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #111;
}

.reels-progress-track {
	position: absolute;
	top: 8px;
	left: 8px;
	right: 8px;
	display: flex;
	gap: 4px;
	z-index: 5;
}

.reels-progress-bar {
	flex: 1;
	height: 3px;
	background: rgba(255, 255, 255, 0.35);
	border-radius: 2px;
	overflow: hidden;
}

.reels-progress-bar i {
	display: block;
	height: 100%;
	width: 0%;
	background: #fff;
	transition: width 0.1s linear;
}

.reels-progress-bar.is-done i {
	width: 100%;
	transition: none;
}

.reels-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 16px 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
	color: #fff;
	z-index: 4;
}

.reels-caption {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.4;
}

.reels-link {
	display: inline-block;
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.reels-nav {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 30%;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 28px;
	cursor: pointer;
	z-index: 6;
	opacity: 0;
}

.reels-container:hover .reels-nav {
	opacity: 1;
}

.reels-prev {
	left: 0;
	text-align: left;
	padding-left: 6px;
}

.reels-next {
	right: 0;
	text-align: right;
	padding-right: 6px;
}

.reels-mute {
	position: absolute;
	top: 14px;
	right: 12px;
	z-index: 7;
	background: rgba(0, 0, 0, 0.4);
	border: none;
	color: #fff;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 14px;
	cursor: pointer;
}

@media (max-width: 480px) {
	.reels-container {
		max-width: 100%;
		border-radius: 0;
		height: 100dvh;
	}
}
