﻿/* ============================================================
   STORY BAR (نوار استوری)
   ============================================================ */
/* STORY BAR */
.story-bar {
	position: relative;
	overflow: hidden;
	padding: 10px 0;
}

/* STORY CONTAINER */
.story-container {
	display: flex;
	flex-wrap: nowrap; /* مهم */
	gap: 16px;
	padding: 0 10px; /* padding زیاد نگذار */
	transition: transform .3s ease;
}

/* STORY ITEM */
.story-item {
	flex-shrink: 0; /* مهم‌ترین بخش */
	width: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
}

/* TITLE */
.story-title {
	margin-top: 6px;
	font-size: 11px;
	color: #ddd;
	text-align: center;
	line-height: 1.4;
}

/* ARROWS */
.story-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.25);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	color: #fff;
	font-size: 18px;
}

.story-arrow-left {
	left: 6px;
}

.story-arrow-right {
	right: 6px;
}





/* ============================================================
   GRADIENT RING (حلقه گرادیانی دور استوری)
   ============================================================ */

.gradient-ring {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	padding: 2px;
	background: conic-gradient(#ff0050, #ff9a00, #ffd600, #ff0050);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 6px;
	animation: ringPulse 2.5s infinite ease-in-out;
}

	.gradient-ring img {
		width: 64px;
		height: 64px;
		border-radius: 50%;
		object-fit: cover;
		border: 2px solid #111;
	}

@keyframes ringPulse {
	0%, 100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

.story-title {
	font-size: 11px;
	color: #ddd;
	line-height: 1.4;
}

/* ============================================================
   STORY MODAL (پلیر)
   ============================================================ */

.story-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.92);
	justify-content: center;
	align-items: center;
	z-index: 99999;
}

.story-modal-content {
	width: 100%;
	max-width: 420px;
	background: #000;
	border-radius: 16px;
	padding: 30px 12px 16px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0,0,0,.7);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */

.story-progress {
	position: absolute;
	top: 10px;
	left: 14px;
	right: 14px;
	height: 4px;
	background: rgba(255,255,255,.25);
	border-radius: 999px;
	overflow: hidden;
}

.story-progress-bar {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg,#ff0050,#ff9a00);
	transition: width .1s linear;
}

/* ============================================================
   BUTTONS (دکمه‌های بالا)
   ============================================================ */

.story-btn {
	position: absolute;
	top: 10px;
	background: rgba(255,255,255,.12);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.15);
	color: #fff;
	padding: 6px 10px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	transition: .2s;
}

	.story-btn:hover {
		background: rgba(255,255,255,.25);
	}

.story-close-btn {
	right: 10px;
}

.story-mute-btn {
	right: 54px;
}

.story-share-btn {
	right: 98px;
}

/* ============================================================
   NAVIGATION BUTTONS (بعدی / قبلی)
   ============================================================ */


.story-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.15);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.25);
	color: #fff;
	font-size: 22px;
	width: 40px;
	height: 56px;
	border-radius: 12px;
	cursor: pointer;
	transition: .2s ease;
	z-index: 20;
}

	.story-nav:hover {
		background: rgba(255,255,255,.28);
	}

.story-prev {
	left: -10px;
}

.story-next {
	right: -10px;
}

/* ============================================================
   VIDEO + DESCRIPTION
   ============================================================ */

.story-video-wrapper {
	position: relative;
	margin-top: 12px;
}

#storyVideo {
	width: 100%;
	border-radius: 12px;
	background: #000;
}

/* توضیحات پایین ویدیو */
/* توضیحات باید روی ویدیو باشد و کلیک‌پذیر */
.story-desc {
	position: absolute;
	bottom: 12px;
	left: 12px;
	right: 12px;
	background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.25));
	color: #fff;
	padding: 10px 12px 8px;
	border-radius: 12px;
	font-size: 13px;
	max-height: 42px; /* حالت جمع‌شده */
	overflow: hidden;
	cursor: pointer; /* مهم */
	z-index: 30; /* روی ویدیو */
	transition: max-height .3s ease;
}

	/* حالت باز */
	.story-desc.expanded {
		max-height: 200px; /* هرچقدر خواستی بگذار */
	}

/* دکمه بیشتر/کمتر */
.story-desc-toggle {
	background: transparent;
	border: none;
	color: #ff9a00;
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	font-weight: bold;
}


/* ===========================
   BUTTONS – نسخه شفاف و شناور
   =========================== */

.story-btn {
	position: absolute;
	top: 12px;
	background: rgba(255,255,255,.15); /* شفاف */
	backdrop-filter: blur(8px); /* افکت شیشه‌ای */
	border: 1px solid rgba(255,255,255,.25);
	color: #fff;
	padding: 6px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%; /* دایره‌ای */
	cursor: pointer;
	font-size: 16px;
	transition: .2s ease;
	z-index: 20; /* روی ویدیو */
}

	.story-btn:hover {
		background: rgba(255,255,255,.28);
	}

/* موقعیت دکمه‌ها */
.story-close-btn {
	right: 12px;
}

.story-mute-btn {
	right: 56px;
}

.story-share-btn {
	right: 100px;
}



/* قاب ثابت برای ویدیو – مثل دیجی‌کالا */
.story-video-wrapper {
	position: relative;
	width: 100%;
	height: 70vh; /* ارتفاع ثابت – می‌تونی تغییر بدی */
	max-height: 600px;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

/* ویدیو داخل قاب */
#storyVideo {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	object-fit: cover; /* مهم‌ترین بخش */
	transform: translate(-50%, -50%);
}

/*
.story-carousel .item {
	margin: 0 6px !important;
}*/

.story-bar .owl-nav {
	position: absolute;
	top: 40%;
	width: 100%;
	pointer-events: none;
}

	.story-bar .owl-nav button {
		pointer-events: auto;
	}

	.story-bar .owl-nav .owl-prev {
		position: absolute;
		right: -10px;
	}

	.story-bar .owl-nav .owl-next {
		position: absolute;
		left: -10px;
	}









