.story-clinic-bar {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 10px 4px 16px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.story-clinic-bar::-webkit-scrollbar { display: none; }

.story-clinic-avatar {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 74px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.story-clinic-ring {
	display: block;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	padding: 3px;
	background: linear-gradient(45deg, var(--story-ring-color, #e1306c), #f77737, var(--story-ring-color, #e1306c));
	transition: filter .2s ease;
}
.story-clinic-shape-square .story-clinic-ring {
	border-radius: 16px;
}
.story-clinic-avatar.story-clinic-seen .story-clinic-ring {
	background: var(--story-seen-color, #c7c7c7);
}

.story-clinic-ring.story-clinic-video-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #2b2b2b;
	background-image: linear-gradient(45deg, var(--story-ring-color, #e1306c), #f77737, var(--story-ring-color, #e1306c));
}
.story-clinic-ring.story-clinic-video-placeholder::after {
	content: '';
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 13px solid #fff;
	margin-left: 3px;
}

.story-clinic-ring img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	border: 2px solid #fff;
	display: block;
}

.story-clinic-label {
	font-size: 12px;
	max-width: 74px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #333;
}

/* Fullscreen viewer */
.story-clinic-viewer {
	position: fixed;
	inset: 0;
	background: #000;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
}
.story-clinic-viewer.is-open {
	display: flex;
}

.story-clinic-viewer-inner {
	position: relative;
	width: 100%;
	max-width: 420px;
	height: 100%;
	max-height: 100vh;
	background: #111;
	overflow: hidden;
}
@media (min-width: 600px) {
	.story-clinic-viewer-inner {
		max-height: 90vh;
		border-radius: 12px;
	}
}

.story-clinic-progress-row {
	position: absolute;
	top: 8px;
	left: 8px;
	right: 8px;
	display: flex;
	gap: 4px;
	z-index: 3;
}
.story-clinic-progress-bar {
	flex: 1;
	height: 3px;
	background: rgba(255,255,255,.35);
	border-radius: 3px;
	overflow: hidden;
}
.story-clinic-progress-bar-fill {
	height: 100%;
	width: 0%;
	background: #fff;
}

.story-clinic-close {
	position: absolute;
	top: 4px;
	right: 8px;
	z-index: 4;
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 8px;
}

.story-clinic-media-wrap {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.story-clinic-media-wrap img,
.story-clinic-media-wrap video {
	max-width: 100%;
	max-height: 100%;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.story-clinic-nav {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 30%;
	z-index: 3;
	cursor: pointer;
}
/* RTL-friendly: tapping the LEFT side goes to next, RIGHT side goes to previous */
.story-clinic-nav-prev { right: 0; }
.story-clinic-nav-next { left: 0; }

.story-clinic-cta {
	position: absolute;
	bottom: 24px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	z-index: 4;
}
.story-clinic-cta a {
	display: inline-block;
	padding: 10px 22px;
	background: #fff;
	color: #111;
	border-radius: 999px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
