.kafa-reels-wrap {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 16px;
	--kafa-gold: #cfa53a;
}

.kafa-reels-track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 6px;
}
.kafa-reels-track::-webkit-scrollbar { display: none; }

.kafa-reel-card {
	position: relative;
	flex: 0 0 auto;
	width: var(--kafa-card-w, 190px);
	aspect-ratio: 9 / 16;
	border-radius: 12px;
	overflow: hidden;
	scroll-snap-align: start;
	background: #0d0d0d;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.kafa-reel-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #1a1a1a; /* visible placeholder if the video file is missing/broken, instead of a blank flash */
}

/* Reset default/theme button chrome on every icon button in this widget,
   with !important on each property so no theme stylesheet (however
   specific) can turn a button into a solid colour block again. */
.kafa-reels-wrap button {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	outline: none !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	font: inherit !important;
	line-height: normal !important;
	text-transform: none !important;
	box-sizing: border-box;
	cursor: pointer;
}

/* top-left clapperboard badge */
.kafa-reel-icon--clap {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 26px !important;
	height: 26px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.45) !important;
	pointer-events: none;
	z-index: 2;
}
.kafa-reel-icon--clap svg { display: block; }

/* top-right mute toggle badge */
.kafa-reel-icon--mute {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px !important;
	height: 26px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.45) !important;
	z-index: 2;
}
.kafa-reel-icon--mute svg { display: block; }
.kafa-reel-icon--mute:hover,
.kafa-reel-icon--clap:hover { background: rgba(0, 0, 0, 0.65) !important; }

/* center play/pause toggle — sits over the whole card, only its own circle is visible */
.kafa-reel-center-toggle {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	z-index: 1;
}
.kafa-reel-center-toggle svg {
	display: block;
	padding: 14px;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.45) !important;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
	box-sizing: content-box;
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Paused card: play icon stays visible so it's obvious it's tappable. */
.kafa-reel-card.is-paused .icon-play { opacity: 1; transform: scale(1); }

/* Momentary feedback icon (play or pause) that flashes then fades on every tap. */
.kafa-reel-card.show-tap-feedback .icon-play,
.kafa-reel-card.show-tap-feedback .icon-pause { opacity: 1; transform: scale(1); }

/* bottom-left view count */
.kafa-reel-views {
	position: absolute;
	left: 10px;
	bottom: 16px;
	display: flex;
	align-items: center;
	gap: 4px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
	z-index: 2;
	pointer-events: none;
}
.kafa-reel-views svg {
	width: 13px;
	height: 13px;
	color: var(--kafa-gold);
}

/* bottom progress bar, fills as the video plays */
.kafa-reel-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: rgba(255, 255, 255, 0.25);
	z-index: 2;
}
.kafa-reel-progress-bar {
	height: 100%;
	width: 0%;
	background: var(--kafa-gold);
	transition: width 0.1s linear;
}

/* subtle bottom gradient so icons/text stay readable on bright footage */
.kafa-reel-card::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 45%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
	pointer-events: none;
}

/* Fallback only — used for a split-second before JS runs, or if JS is blocked. */
@media (max-width: 480px) {
	.kafa-reel-card { width: var(--kafa-card-w, 130px); }
}
