/**
 * KU4ERIAVENKO — Сторисы (кружки в шапке и на главной + полноэкранный плеер)
 * Файл: css/stories.css
 */


/* ==========================================================================
   KU4ERIAVENKO STORIES COMPONENT (HERO SCALE & STYLE)
   ========================================================================== */

.ku4-stories-section {
	width: 100% !important;
	max-width: var(--wp--style--global--wide-size, 1100px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-top: var(--wp--preset--spacing--40, 32px) !important;
	padding-bottom: var(--wp--preset--spacing--50, 48px) !important;
	padding-left: var(--wp--preset--spacing--40, 24px) !important;
	padding-right: var(--wp--preset--spacing--40, 24px) !important;
	background: transparent !important;
	box-sizing: border-box !important;
}

.ku4-stories-header {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 24px !important;
	padding: 0 !important;
	border: none !important;
}

.ku4-stories-title {
	font-family: var(--wp--preset--font-family--system-font, sans-serif) !important;
	font-size: 45.696px !important;
	font-weight: bold !important;
	letter-spacing: normal !important;
	text-transform: uppercase !important;
	color: #ffffff !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.1 !important;
}

@media (max-width: 768px) {
	.ku4-stories-title {
		font-size: clamp(32px, 8vw, 45.696px) !important;
	}
}

.ku4-stories-title mark {
	background-color: transparent !important;
	color: #bd0000 !important;
}

.ku4-stories-track {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	gap: 24px !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 10px 4px 20px 4px !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scrollbar-width: thin !important;
	scrollbar-color: rgba(189, 0, 0, 0.4) transparent !important;
	-webkit-overflow-scrolling: touch !important;
	box-sizing: border-box !important;
}

.ku4-stories-track::-webkit-scrollbar {
	height: 4px !important;
}
.ku4-stories-track::-webkit-scrollbar-thumb {
	background: rgba(189, 0, 0, 0.4) !important;
	border-radius: 4px !important;
}

.ku4-story-item {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 10px !important;
	cursor: pointer !important;
	flex-shrink: 0 !important;
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
	text-decoration: none !important;
	width: 122px !important;
	user-select: none !important;
}

.ku4-story-item:hover {
	transform: none !important;
}

.ku4-story-ring-wrap {
	width: 114px !important;
	height: 114px !important;
	border-radius: 50% !important;
	padding: 3px !important;
	background: linear-gradient(135deg, #ffffff 0%, #ffe4eb 50%, #f7a8b8 100%) !important;
	position: relative !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
	transition: background 0.25s ease !important;
}

.ku4-story-item:hover .ku4-story-ring-wrap {
	transform: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
	background: linear-gradient(135deg, #ffffff 0%, #ffffff 65%, #ffd1dc 100%) !important;
}

.ku4-story-thumb {
	width: 100% !important;
	height: 100% !important;
	border-radius: 50% !important;
	border: 3px solid #091217 !important;
	overflow: hidden !important;
	background: #111b22 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.ku4-story-thumb img,
.ku4-story-thumb video {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform 0.4s ease !important;
}

.ku4-story-item:hover .ku4-story-thumb img {
	transform: scale(1.08) !important;
}

.ku4-story-label {
	font-family: var(--wp--preset--font-family--system-font, sans-serif) !important;
	font-size: 1.02rem !important;
	font-weight: 700 !important;
	color: rgba(250, 250, 250, 0.9) !important;
	text-align: center !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	max-width: 122px !important;
	transition: color 0.2s ease !important;
}

.ku4-story-item:hover .ku4-story-label {
	color: #ffffff !important;
}

/* Mobile Responsive Stories */
@media (max-width: 768px) {
	.ku4-stories-title {
		font-size: clamp(24px, 6vw, 32px) !important;
		margin-bottom: 10px !important;
	}
	.ku4-stories-track {
		gap: 12px !important;
		padding: 4px 2px 14px 2px !important;
	}
	.ku4-story-item {
		width: 74px !important;
		gap: 6px !important;
	}
	.ku4-story-ring-wrap {
		width: 70px !important;
		height: 70px !important;
		padding: 2.5px !important;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
	}
	.ku4-story-thumb {
		border: 2px solid #091217 !important;
	}
	.ku4-story-label {
		font-size: 0.78rem !important;
		font-weight: 600 !important;
		max-width: 74px !important;
		line-height: 1.15 !important;
	}
}

/* ==========================================================================
   STORY VIEWER (FULLSCREEN MODAL)
   ========================================================================== */

.ku4-story-modal {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2000000 !important;
	background: rgba(4, 7, 17, 0.92) !important;
	backdrop-filter: blur(24px) !important;
	-webkit-backdrop-filter: blur(24px) !important;
	display: none;
	align-items: center !important;
	justify-content: center !important;
	opacity: 0;
	transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.ku4-story-modal.active {
	display: flex !important;
	opacity: 1 !important;
}

.ku4-story-player {
	position: relative !important;
	width: 100% !important;
	max-width: 440px !important;
	height: 88vh !important;
	max-height: 860px !important;
	background: #000000 !important;
	border-radius: 20px !important;
	overflow: hidden !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
	display: flex !important;
	flex-direction: column !important;
}

/* Progress bars */
.ku4-story-progress-wrap {
	position: absolute !important;
	top: 14px !important;
	left: 14px !important;
	right: 14px !important;
	display: flex !important;
	gap: 6px !important;
	z-index: 10 !important;
}

.ku4-story-progress-bar {
	flex: 1 !important;
	height: 3px !important;
	background: rgba(255, 255, 255, 0.25) !important;
	border-radius: 3px !important;
	overflow: hidden !important;
}

.ku4-story-progress-fill {
	width: 0%;
	height: 100% !important;
	background: linear-gradient(90deg, #ffffff, #fca5b9) !important;
	border-radius: 3px !important;
	transition: width 0.1s linear !important;
}

.ku4-story-progress-bar.completed .ku4-story-progress-fill {
	width: 100% !important;
}

/* Header inside player */
.ku4-story-header {
	position: absolute !important;
	top: 26px !important;
	left: 16px !important;
	right: 16px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	z-index: 100 !important;
	pointer-events: none !important;
}

.ku4-story-author {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	pointer-events: auto !important;
}

.ku4-story-author-img {
	width: 34px !important;
	height: 34px !important;
	border-radius: 50% !important;
	border: 1.5px solid #fca5b9 !important;
	object-fit: cover !important;
}

.ku4-story-author-info {
	display: flex !important;
	flex-direction: column !important;
}

.ku4-story-author-name {
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	line-height: 1.2 !important;
}

.ku4-story-time {
	font-size: 0.75rem !important;
	color: rgba(255, 255, 255, 0.65) !important;
}

.ku4-story-controls {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	pointer-events: auto !important;
	position: relative !important;
	z-index: 101 !important;
}

.ku4-story-btn {
	background: rgba(0, 0, 0, 0.4) !important;
	border: none !important;
	color: #ffffff !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	pointer-events: auto !important;
	position: relative !important;
	z-index: 102 !important;
	transition: background 0.2s ease, transform 0.2s ease !important;
}

.ku4-story-btn:hover {
	background: rgba(189, 0, 0, 0.8) !important;
	transform: scale(1.1) !important;
}

/* Media area */
.ku4-story-media-stage {
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
	background: #000000 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.ku4-story-media-stage img,
.ku4-story-media-stage video {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	max-height: 100% !important;
}

/* Touch navigation areas */
.ku4-story-tap-prev,
.ku4-story-tap-next {
	position: absolute !important;
	top: 70px !important;
	bottom: 80px !important;
	z-index: 5 !important;
	cursor: pointer !important;
}
.ku4-story-tap-prev { left: 0 !important; width: 35% !important; }
.ku4-story-tap-next { right: 0 !important; width: 65% !important; }

/* Caption */
.ku4-story-caption-box {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	padding: 40px 20px 24px 20px !important;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%) !important;
	z-index: 8 !important;
	pointer-events: none !important;
}

.ku4-story-caption-text {
	color: #ffffff !important;
	font-size: 0.95rem !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	text-align: center !important;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

/* Desktop Arrow Buttons */
.ku4-story-nav-arrow {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	color: #ffffff !important;
	width: 48px !important;
	height: 48px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	z-index: 20 !important;
	transition: all 0.2s ease !important;
}

.ku4-story-nav-arrow:hover {
	background: #bd0000 !important;
	border-color: #bd0000 !important;
	transform: translateY(-50%) scale(1.1) !important;
}

.ku4-story-nav-prev { left: -64px !important; }
.ku4-story-nav-next { right: -64px !important; }

@media (max-width: 600px) {
	.ku4-story-nav-arrow { display: none !important; }
	.ku4-story-player {
		max-width: 100% !important;
		height: 100% !important;
		max-height: 100% !important;
		border-radius: 0 !important;
	}
}

/* ==========================================================================
   STORY UPLOAD MODAL
   ========================================================================== */

.ku4-upload-modal {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	background: rgba(4, 7, 17, 0.9) !important;
	backdrop-filter: blur(20px) !important;
	-webkit-backdrop-filter: blur(20px) !important;
	display: none;
	align-items: center !important;
	justify-content: center !important;
	opacity: 0;
	transition: opacity 0.3s ease !important;
	padding: 20px !important;
}

.ku4-upload-modal.active {
	display: flex !important;
	opacity: 1 !important;
}

.ku4-upload-dialog {
	width: 100% !important;
	max-width: 480px !important;
	background: #0d161d !important;
	border: 1px solid rgba(189, 0, 0, 0.3) !important;
	border-radius: 20px !important;
	padding: 28px !important;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(189, 0, 0, 0.2) !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
	position: relative !important;
}

.ku4-upload-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
}

.ku4-upload-title {
	font-size: 1.35rem !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	color: #ffffff !important;
	margin: 0 !important;
}

.ku4-upload-close {
	background: transparent !important;
	border: none !important;
	color: rgba(255, 255, 255, 0.6) !important;
	font-size: 1.5rem !important;
	cursor: pointer !important;
	line-height: 1 !important;
	transition: color 0.2s ease !important;
}

.ku4-upload-close:hover {
	color: #bd0000 !important;
}

.ku4-dropzone {
	border: 2px dashed rgba(189, 0, 0, 0.5) !important;
	border-radius: 14px !important;
	padding: 32px 20px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 12px !important;
	text-align: center !important;
	cursor: pointer !important;
	background: rgba(189, 0, 0, 0.03) !important;
	transition: all 0.25s ease !important;
	min-height: 180px !important;
	position: relative !important;
	overflow: hidden !important;
}

.ku4-dropzone.dragover,
.ku4-dropzone:hover {
	border-color: #bd0000 !important;
	background: rgba(189, 0, 0, 0.08) !important;
	box-shadow: inset 0 0 20px rgba(189, 0, 0, 0.15) !important;
}

.ku4-dropzone-icon {
	color: #bd0000 !important;
}

.ku4-dropzone-text {
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	margin: 0 !important;
}

.ku4-dropzone-sub {
	font-size: 0.78rem !important;
	color: rgba(255, 255, 255, 0.5) !important;
	margin: 0 !important;
}

.ku4-upload-preview {
	display: none;
	width: 100% !important;
	height: 180px !important;
	position: relative !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	background: #000000 !important;
}

.ku4-upload-preview img,
.ku4-upload-preview video {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

.ku4-upload-preview-remove {
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	background: rgba(0, 0, 0, 0.7) !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	color: #ffffff !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.ku4-form-group {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
}

.ku4-form-label {
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	color: rgba(255, 255, 255, 0.7) !important;
}

.ku4-form-input {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 8px !important;
	padding: 10px 14px !important;
	color: #ffffff !important;
	font-family: inherit !important;
	font-size: 0.95rem !important;
	outline: none !important;
	transition: border-color 0.2s ease !important;
}

.ku4-form-input:focus {
	border-color: #bd0000 !important;
	box-shadow: 0 0 10px rgba(189, 0, 0, 0.3) !important;
}

.ku4-submit-story-btn {
	background: #bd0000 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 14px 24px !important;
	font-family: inherit !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	transition: all 0.25s ease !important;
	margin-top: 4px !important;
}

.ku4-submit-story-btn:hover {
	background: #e00000 !important;
	box-shadow: 0 6px 20px rgba(189, 0, 0, 0.5) !important;
	transform: translateY(-2px) !important;
}

.ku4-submit-story-btn:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
	transform: none !important;
}


/* ============================================================
   Top Stories Bar below header (Editorial Luxury / Premium Media)
   ============================================================ */
.ku4-desktop-stories-wrap {
	display: none !important;
}

.ku4-mob-stories-bar {
	display: none !important;
	background: linear-gradient(180deg, #0d1319 0%, #080c10 100%);
	padding: 16px 0 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
	position: relative;
	z-index: 10;
}

.ku4-mob-stories-inner {
	display: flex !important;
	flex-direction: row !important;
	justify-content: flex-start !important;
	gap: 20px !important;
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch !important;
	padding: 4px 24px 4px var(--wp--preset--spacing--40, 24px) !important;
	scrollbar-width: none !important;
	align-items: flex-start !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
}
.ku4-mob-stories-inner::-webkit-scrollbar { display: none; }

.ku4-mob-stories-inner .ku4-story-item {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	width: 78px;
	text-align: center;
	user-select: none;
	transition: none !important;
}
.ku4-mob-stories-inner .ku4-story-item:hover {
	transform: none !important;
}

/* Premium White & Soft Pink Aesthetic Ring */
.ku4-mob-stories-inner .ku4-story-ring-wrap {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	padding: 2.5px;
	background: linear-gradient(135deg, #ffffff 0%, #ffe4eb 50%, #f7a8b8 100%);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
	flex-shrink: 0;
	box-sizing: border-box;
	transition: background 0.25s ease;
}
.ku4-mob-stories-inner .ku4-story-item:hover .ku4-story-ring-wrap {
	transform: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) !important;
	background: linear-gradient(135deg, #ffffff 0%, #ffffff 65%, #ffd1dc 100%);
}
.ku4-mob-stories-inner .ku4-story-item:active .ku4-story-ring-wrap {
	transform: none !important;
}

/* Inner photo thumbnail */
.ku4-mob-stories-inner .ku4-story-thumb {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #091217;
	background: #111a22;
	box-sizing: border-box;
}
.ku4-mob-stories-inner .ku4-story-thumb img,
.ku4-mob-stories-inner .ku4-story-thumb video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: none !important;
}
.ku4-mob-stories-inner .ku4-story-item:hover .ku4-story-thumb img {
	transform: none !important;
}

/* Strict, refined media typography */
.ku4-mob-stories-inner .ku4-story-label {
	font-family: var(--wp--preset--font-family--system-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.25;
	text-align: center;
	width: 78px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}
.ku4-mob-stories-inner .ku4-story-item:hover .ku4-story-label {
	color: #ffffff;
}

@media (max-width: 768px) {
	.ku4-mob-stories-bar {
		display: block !important;
		padding: 14px 0 14px !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	.ku4-mob-stories-inner {
		display: flex !important;
		flex-direction: row !important;
		justify-content: flex-start !important;
		align-items: flex-start !important;
		gap: 16px !important;
		padding: 2px var(--wp--style--root--padding-right, var(--wp--preset--spacing--60, 24px)) 2px var(--wp--style--root--padding-left, var(--wp--preset--spacing--60, 24px)) !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		margin: 0 !important;
		overflow-x: auto !important;
		scrollbar-width: none !important;
	}
	.ku4-mob-stories-inner::-webkit-scrollbar {
		display: none !important;
	}
	.ku4-mob-stories-inner .ku4-story-item {
		flex: 0 0 auto !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		width: 76px !important;
		gap: 6px !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	.ku4-mob-stories-inner .ku4-story-ring-wrap {
		width: 64px !important;
		height: 64px !important;
		padding: 2.5px !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}
	.ku4-mob-stories-inner .ku4-story-thumb {
		width: 100% !important;
		height: 100% !important;
	}
	.ku4-mob-stories-inner .ku4-story-label {
		font-size: 11px !important;
		width: 76px !important;
		max-width: 76px !important;
		text-align: center !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		line-height: 1.25 !important;
	}
}

