/**
 * يمن فيديو - تنسيقات الشورتس الشاملة
 * تصميم عصري متوافق مع هوية الموقع
 * مُحسن لجميع الأجهزة والقرارات
 * @version 1.0.0
 * @author Yemen Video Team
 */
:root {
	--yvs-primary: #e53e3e;
	--yvs-primary-dark: #c53030;
	--yvs-primary-light: #fc8181;
	--yvs-accent: #ff6b6b;
	--yvs-bg-primary: #0a0a0a;
	--yvs-bg-secondary: #1a1a1a;
	--yvs-bg-tertiary: #2a2a2a;
	--yvs-bg-overlay: rgba(0,0,0,0.7);
	--yvs-text-primary: #ffffff;
	--yvs-text-secondary: #e2e8f0;
	--yvs-text-muted: #94a3b8;
	--yvs-text-dark: #1a202c;
	--yvs-success: #48bb78;
	--yvs-warning: #ed8936;
	--yvs-error: #f56565;
	--yvs-info: #4299e1;
	--yvs-border-radius: 12px;
	--yvs-border-radius-sm: 8px;
	--yvs-border-radius-lg: 20px;
	--yvs-shadow: 0 10px 25px rgba(0,0,0,0.3);
	--yvs-shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
	--yvs-transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
	--yvs-transition-fast: all 0.15s ease-out;
	--yvs-transition-slow: all 0.5s ease-in-out;
	--yvs-font-arabic: 'Tajawal', 'Cairo', sans-serif;
	--yvs-font-english: 'Inter', 'SF Pro Display', sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	overflow-x: hidden;
}

body {
	font-family: var(--yvs-font-arabic);
	background: var(--yvs-bg-primary);
	color: var(--yvs-text-primary);
	direction: rtl;
	text-align: right;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.en-text {
	font-family: var(--yvs-font-english);
	direction: ltr;
	text-align: left;
}

.shorts-page {
	background: var(--yvs-bg-primary);
	min-height: 100vh;
	position: relative;
	overflow: hidden;
}

.shorts-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: var(--yvs-bg-primary);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 1;
}

.videos-container {
	flex: 1;
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--yvs-bg-primary);
}

.video-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--yvs-bg-primary);
	opacity: 0;
	transform: translateY(100%);
	transition: var(--yvs-transition-slow);
	z-index: 1;
}

.video-slide.active {
	opacity: 1;
	transform: translateY(0);
	z-index: 10;
}

.video-slide.prev {
	transform: translateY(-100%);
}

.video-slide.next {
	transform: translateY(100%);
}

.video-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--yvs-bg-primary);
	overflow: hidden;
}

.video-element {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--yvs-bg-secondary);
}

.youtube-video, .native-video {
	width: 100%;
	height: 100%;
	border: none;
	outline: none;
}

.video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.video-gradient {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 40%;
	background: linear-gradient(transparent, rgba(0,0,0,0.8));
	pointer-events: none;
}

.platform-indicator {
	position: absolute;
	top: 20px;
	right: 20px;
	background: var(--yvs-bg-overlay);
	color: var(--yvs-text-primary);
	padding: 8px 12px;
	border-radius: var(--yvs-border-radius-sm);
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	backdrop-filter: blur(10px);
	z-index: 20;
}

.platform-indicator i {
	font-size: 14px;
}

.progress-bar {
	position: absolute;
	bottom: 100px;
	left: 20px;
	right: 140px;
	height: 3px;
	background: rgba(255,255,255,0.3);
	border-radius: 2px;
	overflow: hidden;
	z-index: 20;
}

.progress-fill {
	height: 100%;
	background: var(--yvs-primary);
	width: 0%;
	transition: width 0.1s linear;
	border-radius: 2px;
}

.play-pause-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 80px;
	height: 80px;
	background: var(--yvs-bg-overlay);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--yvs-text-primary);
	font-size: 32px;
	opacity: 0;
	scale: 0.8;
	transition: var(--yvs-transition);
	pointer-events: none;
	backdrop-filter: blur(10px);
	z-index: 25;
}

.play-pause-icon.visible {
	opacity: 1;
	scale: 1;
}

.play-pause-icon i {
	margin-right: 4px;
}

.error-state {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--yvs-bg-secondary);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--yvs-text-secondary);
	text-align: center;
	z-index: 30;
}

.error-state i {
	font-size: 48px;
	color: var(--yvs-error);
	margin-bottom: 16px;
}

.error-state p {
	font-size: 16px;
	margin-bottom: 20px;
}

.retry-btn {
	background: var(--yvs-primary);
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: var(--yvs-border-radius);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
}

.retry-btn:hover {
	background: var(--yvs-primary-dark);
	transform: translateY(-2px);
}

.video-info {
	position: absolute;
	bottom: 20px;
	right: 20px;
	left: 140px;
	color: var(--yvs-text-primary);
	z-index: 20;
}

.video-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.video-channel {
	margin-bottom: 8px;
}

.channel-link {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--yvs-text-secondary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: var(--yvs-transition-fast);
}

.channel-link:hover {
	color: var(--yvs-text-primary);
}

.channel-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--yvs-primary);
}

.video-stats {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 12px;
	color: var(--yvs-text-muted);
	font-weight: 500;
}

.video-stats span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.top-controls {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(rgba(0,0,0,0.8), transparent);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	z-index: 50;
	backdrop-filter: blur(10px);
}

.top-left, .top-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.page-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--yvs-text-primary);
	text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.control-btn {
	width: 44px;
	height: 44px;
	background: var(--yvs-bg-overlay);
	border: none;
	border-radius: 50%;
	color: var(--yvs-text-primary);
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
	backdrop-filter: blur(10px);
}

.control-btn:hover {
	background: var(--yvs-bg-tertiary);
	transform: scale(1.1);
}

.control-btn:active {
	transform: scale(0.95);
}

.reels-actions-panel {
	position: absolute;
	bottom: 200px;
	left: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	z-index: 30;
}

.reels-action-btn {
	width: 50px;
	height: 50px;
	background: var(--yvs-bg-overlay);
	border: none;
	border-radius: 50%;
	color: var(--yvs-text-primary);
	font-size: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
	text-decoration: none;
	backdrop-filter: blur(15px);
	position: relative;
}

.reels-action-btn:hover {
	background: var(--yvs-bg-tertiary);
	transform: scale(1.1);
}

.reels-action-btn:active {
	transform: scale(0.9);
}

.reels-action-btn.active {
	background: var(--yvs-primary);
	color: white;
}

.reels-action-btn.active:hover {
	background: var(--yvs-primary-dark);
}

.action-count {
	font-size: 11px;
	font-weight: 600;
	margin-top: 4px;
	text-align: center;
	line-height: 1;
	min-height: 14px;
}

.like-btn.active {
	animation: likeAnimation 0.6s ease-out;
}

.navigation-controls {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 40;
}

.nav-btn {
	width: 48px;
	height: 48px;
	background: var(--yvs-bg-overlay);
	border: none;
	border-radius: 50%;
	color: var(--yvs-text-primary);
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
	backdrop-filter: blur(15px);
}

.nav-btn:hover:not(:disabled) {
	background: var(--yvs-bg-tertiary);
	transform: scale(1.1);
}

.nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.nav-btn.disabled {
	opacity: 0.3;
	pointer-events: none;
}

.search-panel, .filters-panel, .menu-panel, .video-info-panel {
	position: absolute;
	top: 0;
	right: -100%;
	width: 100%;
	max-width: 400px;
	height: 100%;
	background: var(--yvs-bg-secondary);
	backdrop-filter: blur(20px);
	border-left: 1px solid var(--yvs-bg-tertiary);
	transition: var(--yvs-transition);
	z-index: 100;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--yvs-primary) var(--yvs-bg-tertiary);
}

.search-panel.active, .filters-panel.active, .menu-panel.active, .video-info-panel.active {
	right: 0;
}

.search-header, .filters-header, .menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid var(--yvs-bg-tertiary);
	background: var(--yvs-bg-secondary);
	position: sticky;
	top: 0;
	z-index: 10;
}

.search-header h3, .filters-header h3, .menu-header h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--yvs-text-primary);
}

.close-btn {
	width: 36px;
	height: 36px;
	background: var(--yvs-bg-tertiary);
	border: none;
	border-radius: 50%;
	color: var(--yvs-text-primary);
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
}

.close-btn:hover {
	background: var(--yvs-error);
	transform: scale(1.1);
}

.search-content, .filters-content, .menu-content, .video-info-content {
	padding: 20px;
}

.search-input {
	width: 100%;
	padding: 12px 16px;
	background: var(--yvs-bg-tertiary);
	border: 2px solid transparent;
	border-radius: var(--yvs-border-radius);
	color: var(--yvs-text-primary);
	font-size: 16px;
	font-family: var(--yvs-font-arabic);
	transition: var(--yvs-transition-fast);
}

.search-input:focus {
	outline: none;
	border-color: var(--yvs-primary);
	background: var(--yvs-bg-secondary);
}

.search-input::placeholder {
	color: var(--yvs-text-muted);
}

.search-results {
	margin-top: 20px;
}

.search-result {
	display: flex;
	gap: 12px;
	padding: 12px;
	background: var(--yvs-bg-tertiary);
	border-radius: var(--yvs-border-radius);
	margin-bottom: 12px;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
}

.search-result:hover {
	background: var(--yvs-bg-primary);
	transform: translateX(-4px);
}

.result-thumbnail {
	position: relative;
	width: 80px;
	height: 60px;
	border-radius: var(--yvs-border-radius-sm);
	overflow: hidden;
	flex-shrink: 0;
}

.result-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.result-duration {
	position: absolute;
	bottom: 4px;
	right: 4px;
	background: rgba(0,0,0,0.8);
	color: white;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
}

.result-info {
	flex: 1;
	min-width: 0;
}

.result-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--yvs-text-primary);
	line-height: 1.3;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.result-channel {
	font-size: 12px;
	color: var(--yvs-text-muted);
	margin-bottom: 6px;
}

.result-stats {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	color: var(--yvs-text-muted);
}

.result-stats span {
	display: flex;
	align-items: center;
	gap: 3px;
}

.search-loading, .no-search-results, .search-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	text-align: center;
	color: var(--yvs-text-muted);
}

.search-loading i, .no-search-results i, .search-error i {
	font-size: 32px;
	margin-bottom: 12px;
}

.loading-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--yvs-bg-tertiary);
	border-top: 3px solid var(--yvs-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.filter-group {
	margin-bottom: 24px;
}

.filter-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--yvs-text-primary);
	margin-bottom: 12px;
}

.filter-label i {
	font-size: 16px;
	color: var(--yvs-primary);
}

.filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.filter-option {
	background: var(--yvs-bg-tertiary);
	border: none;
	color: var(--yvs-text-secondary);
	padding: 8px 16px;
	border-radius: var(--yvs-border-radius);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
	display: flex;
	align-items: center;
	gap: 6px;
}

.filter-option:hover {
	background: var(--yvs-bg-primary);
	color: var(--yvs-text-primary);
}

.filter-option.active {
	background: var(--yvs-primary);
	color: white;
}

.filter-option i {
	font-size: 12px;
}

.filter-select, .filter-search {
	width: 100%;
	padding: 10px 12px;
	background: var(--yvs-bg-tertiary);
	border: 1px solid transparent;
	border-radius: var(--yvs-border-radius);
	color: var(--yvs-text-primary);
	font-size: 14px;
	font-family: var(--yvs-font-arabic);
	transition: var(--yvs-transition-fast);
}

.filter-select:focus, .filter-search:focus {
	outline: none;
	border-color: var(--yvs-primary);
	background: var(--yvs-bg-secondary);
}

.filter-search-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hashtags-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hashtag-pill {
	background: var(--yvs-bg-tertiary);
	border: none;
	color: var(--yvs-text-secondary);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
}

.hashtag-pill:hover {
	background: var(--yvs-primary-light);
	color: white;
}

.hashtag-pill.active {
	background: var(--yvs-primary);
	color: white;
}

.filter-options-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.filter-switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
}

.filter-switch label {
	font-size: 14px;
	color: var(--yvs-text-secondary);
	cursor: pointer;
}

.filter-switch input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--yvs-primary);
	cursor: pointer;
}

.filter-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--yvs-bg-tertiary);
}

.btn-apply-filters, .btn-reset-filters {
	flex: 1;
	padding: 12px 20px;
	border: none;
	border-radius: var(--yvs-border-radius);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.btn-apply-filters {
	background: var(--yvs-primary);
	color: white;
}

.btn-apply-filters:hover {
	background: var(--yvs-primary-dark);
	transform: translateY(-2px);
}

.btn-reset-filters {
	background: var(--yvs-bg-tertiary);
	color: var(--yvs-text-secondary);
}

.btn-reset-filters:hover {
	background: var(--yvs-bg-primary);
	color: var(--yvs-text-primary);
}

.menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	color: var(--yvs-text-secondary);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	border-bottom: 1px solid var(--yvs-bg-tertiary);
	transition: var(--yvs-transition-fast);
	background: none;
	border-left: none;
	border-right: none;
	border-top: none;
	width: 100%;
	text-align: right;
	cursor: pointer;
}

.menu-item:hover {
	color: var(--yvs-text-primary);
	background: var(--yvs-bg-tertiary);
	padding-right: 12px;
	border-radius: var(--yvs-border-radius);
}

.menu-item i {
	font-size: 18px;
	width: 24px;
	color: var(--yvs-primary);
}

.video-info-content h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--yvs-text-primary);
	margin-bottom: 12px;
	line-height: 1.4;
}

.video-info-content p {
	color: var(--yvs-text-secondary);
	line-height: 1.6;
	margin-bottom: 16px;
}

.video-info-stats {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 16px 0;
	font-size: 14px;
	color: var(--yvs-text-muted);
}

.video-info-actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

.action-btn {
	flex: 1;
	padding: 10px 16px;
	background: var(--yvs-bg-tertiary);
	border: none;
	border-radius: var(--yvs-border-radius);
	color: var(--yvs-text-secondary);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
}

.action-btn:hover {
	background: var(--yvs-primary);
	color: white;
	transform: translateY(-2px);
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 200;
	backdrop-filter: blur(10px);
}

.modal-content {
	background: var(--yvs-bg-secondary);
	border-radius: var(--yvs-border-radius-lg);
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: var(--yvs-shadow-lg);
}

.share-modal-content {
	background: var(--yvs-bg-secondary);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid var(--yvs-bg-tertiary);
}

.modal-header h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--yvs-text-primary);
}

.modal-body {
	padding: 20px;
}

.modal-body p {
	color: var(--yvs-text-secondary);
	margin-bottom: 16px;
	text-align: center;
}

.share-icons {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin: 20px 0;
}

.share-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: white;
	text-decoration: none;
	transition: var(--yvs-transition-fast);
}

.share-icon.whatsapp {
	background: #25d366;
}

.share-icon.facebook {
	background: #1877f2;
}

.share-icon.twitter {
	background: #1da1f2;
}

.share-icon.telegram {
	background: #0088cc;
}

.share-icon.email {
	background: #ea4335;
}

.share-icon:hover {
	transform: scale(1.1) translateY(-2px);
	box-shadow: var(--yvs-shadow);
}

.share-or-text {
	text-align: center;
	color: var(--yvs-text-muted);
	font-size: 14px;
	margin: 20px 0 16px;
	position: relative;
}

.share-or-text::before, .share-or-text::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 30%;
	height: 1px;
	background: var(--yvs-bg-tertiary);
}

.share-or-text::before {
	right: 0;
}

.share-or-text::after {
	left: 0;
}

.share-link-container {
	display: flex;
	gap: 8px;
}

.share-link-container input {
	flex: 1;
	padding: 12px;
	background: var(--yvs-bg-tertiary);
	border: none;
	border-radius: var(--yvs-border-radius);
	color: var(--yvs-text-primary);
	font-size: 14px;
	font-family: var(--yvs-font-english);
	direction: ltr;
	text-align: left;
}

.btn-copy {
	background: var(--yvs-primary);
	color: white;
	border: none;
	padding: 12px 16px;
	border-radius: var(--yvs-border-radius);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
	display: flex;
	align-items: center;
	gap: 6px;
}

.btn-copy:hover {
	background: var(--yvs-primary-dark);
}

.loading-indicator {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	background: var(--yvs-bg-overlay);
	color: var(--yvs-text-primary);
	padding: 20px;
	border-radius: var(--yvs-border-radius-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	backdrop-filter: blur(15px);
	z-index: 150;
}

.loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	backdrop-filter: blur(5px);
}

.loading-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	color: var(--yvs-text-primary);
}

.toast-container {
	position: fixed;
	top: 80px;
	right: 20px;
	z-index: 300;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.toast {
	background: var(--yvs-bg-secondary);
	color: var(--yvs-text-primary);
	padding: 12px 16px;
	border-radius: var(--yvs-border-radius);
	box-shadow: var(--yvs-shadow);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	min-width: 200px;
	max-width: 300px;
	opacity: 0;
	transform: translateX(100%);
	transition: var(--yvs-transition);
	backdrop-filter: blur(15px);
	border-left: 4px solid var(--yvs-info);
}

.toast.show {
	opacity: 1;
	transform: translateX(0);
}

.toast.success {
	border-left-color: var(--yvs-success);
}

.toast.error {
	border-left-color: var(--yvs-error);
}

.toast.warning {
	border-left-color: var(--yvs-warning);
}

.toast.info {
	border-left-color: var(--yvs-info);
}

.toast i {
	font-size: 16px;
	flex-shrink: 0;
}

.toast.success i {
	color: var(--yvs-success);
}

.toast.error i {
	color: var(--yvs-error);
}

.toast.warning i {
	color: var(--yvs-warning);
}

.toast.info i {
	color: var(--yvs-info);
}

.error-message, .no-videos-message, .init-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	color: var(--yvs-text-secondary);
	padding: 40px 20px;
}

.error-message i, .no-videos-message i, .init-error i {
	font-size: 64px;
	color: var(--yvs-error);
	margin-bottom: 20px;
}

.error-message h3, .no-videos-message h3, .init-error h3 {
	font-size: 24px;
	font-weight: 700;
	color: var(--yvs-text-primary);
	margin-bottom: 12px;
}

.error-message p, .no-videos-message p, .init-error p {
	font-size: 16px;
	line-height: 1.5;
	margin-bottom: 24px;
	max-width: 300px;
}

.retry-button, .btn-reset {
	background: var(--yvs-primary);
	color: white;
	border: none;
	padding: 14px 28px;
	border-radius: var(--yvs-border-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--yvs-transition-fast);
	display: flex;
	align-items: center;
	gap: 8px;
}

.retry-button:hover, .btn-reset:hover {
	background: var(--yvs-primary-dark);
	transform: translateY(-2px);
}

.touch-dragging {
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
}

.touch-dragging * {
	pointer-events: none;
}

.touch-dragging .reels-actions-panel, .touch-dragging .navigation-controls, .touch-dragging .top-controls {
	pointer-events: auto;
}

.touch-dragging .reels-actions-panel *, .touch-dragging .navigation-controls *, .touch-dragging .top-controls * {
	pointer-events: auto;
}

.video-slide, .video-container, .video-element {
	will-change: transform, opacity;
}

.reels-action-btn, .nav-btn, .control-btn {
	will-change: transform, background-color;
}

@media (prefers-color-scheme: light) {
}

.search-panel::-webkit-scrollbar, .filters-panel::-webkit-scrollbar, .menu-panel::-webkit-scrollbar, .video-info-panel::-webkit-scrollbar {
	width: 6px;
}

.search-panel::-webkit-scrollbar-track, .filters-panel::-webkit-scrollbar-track, .menu-panel::-webkit-scrollbar-track, .video-info-panel::-webkit-scrollbar-track {
	background: var(--yvs-bg-tertiary);
}

.search-panel::-webkit-scrollbar-thumb, .filters-panel::-webkit-scrollbar-thumb, .menu-panel::-webkit-scrollbar-thumb, .video-info-panel::-webkit-scrollbar-thumb {
	background: var(--yvs-primary);
	border-radius: 3px;
}

.video-slide.active {
	animation: fadeInUp 0.6s ease-out;
}

.search-panel.active, .filters-panel.active, .menu-panel.active, .video-info-panel.active {
	animation: slideInRight 0.4s ease-out;
}

.reels-action-btn:active {
	animation: pulse 0.2s ease-out;
}

.touch-dragging, .mouse-dragging {
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
}

.touch-dragging *:not(.reels-actions-panel):not(.navigation-controls):not(.top-controls), .mouse-dragging *:not(.reels-actions-panel):not(.navigation-controls):not(.top-controls) {
	pointer-events: none;
}

.touch-dragging .reels-actions-panel *, .touch-dragging .navigation-controls *, .touch-dragging .top-controls *, .mouse-dragging .reels-actions-panel *, .mouse-dragging .navigation-controls *, .mouse-dragging .top-controls * {
	pointer-events: auto;
}

.shorts-container {
	cursor: grab;
}

.shorts-container:active {
	cursor: grabbing;
}

.reels-action-btn.liked {
	background: var(--yvs-primary);
	color: white;
	animation: likeAnimation 0.6s ease-out;
}

.custom-select-container {
	position: relative;
	width: 100%;
	font-family: 'Cairo', sans-serif;
}

.custom-select__trigger {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 15px;
	font-size: 14px;
	font-weight: 500;
	color: #e0e0e0;
	background-color: #2a2a2e;
	border: 1px solid #444;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	height: 45px;
}

.custom-select-container.open .custom-select__trigger {
	border-color: #4ecdc4;
	box-shadow: 0 0 0 2px rgba(78,205,196,0.3);
}

.custom-select__trigger .arrow {
	position: relative;
	height: 10px;
	width: 10px;
}

.custom-select__trigger .arrow::before, .custom-select__trigger .arrow::after {
	content: '';
	position: absolute;
	bottom: 0px;
	width: 2px;
	height: 100%;
	background-color: #999;
	transition: all 0.2s ease;
}

.custom-select__trigger .arrow::before {
	left: 1px;
	transform: rotate(45deg);
}

.custom-select__trigger .arrow::after {
	left: 6px;
	transform: rotate(-45deg);
}

.custom-select-container.open .arrow::before {
	transform: rotate(-45deg);
}

.custom-select-container.open .arrow::after {
	transform: rotate(45deg);
}

.custom-select__options {
	position: absolute;
	display: none;
	top: 105%;
	left: 0;
	right: 0;
	background-color: #1e1e22;
	border: 1px solid #444;
	border-radius: 8px;
	max-height: 250px;
	overflow-y: auto;
	z-index: 100;
	box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.custom-select-container.open .custom-select__options {
	display: block;
}

.custom-select__option {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	color: #ccc;
	cursor: pointer;
	transition: background-color 0.2s ease;
	font-size: 14px;
}

.custom-select__option:hover {
	background-color: #2a2a2e;
}

.custom-select__option.selected {
	background-color: #005f73;
	color: #fff;
	font-weight: 600;
}

.option-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	margin-left: 10px;
	object-fit: cover;
	border: 1px solid #555;
}

#touch-interaction-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 500;
	background: transparent;
	pointer-events: auto;
	touch-action: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

#touch-feedback {
	position: absolute;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(255,255,255,0.3);
	pointer-events: none;
	transform: scale(0);
	transition: transform 0.2s ease-out;
	z-index: 999;
}

#touch-feedback.active {
	transform: scale(1);
}

.top-controls, .navigation-controls, .reels-actions-panel {
	z-index: 1000;
	pointer-events: auto;
}

.top-controls *, .navigation-controls *, .reels-actions-panel * {
	pointer-events: auto;
}

.shorts-container {
	touch-action: pan-y pan-x;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.touch-dragging .reels-actions-panel, .touch-dragging .navigation-controls, .touch-dragging .top-controls, .touch-dragging .filters-panel.active, .touch-dragging .search-panel.active, .touch-dragging .menu-panel.active {
	pointer-events: auto;
}

.touch-dragging .reels-actions-panel *, .touch-dragging .navigation-controls *, .touch-dragging .top-controls *, .touch-dragging .filters-panel.active *, .touch-dragging .search-panel.active *, .touch-dragging .menu-panel.active * {
	pointer-events: auto;
}

@keyframes likeAnimation {
	0%, 100% {
		transform: scale(1);
	}

	25% {
		transform: scale(1.2);
	}

	50% {
		transform: scale(1.1);
	}

	75% {
		transform: scale(1.15);
	}
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

@media (max-width: 768px) {
	.top-controls {
		padding: 0 16px;
	}

	.page-title {
		font-size: 16px;
	}

	.control-btn {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.reels-actions-panel {
		bottom: bottom: 180px;
		left: 16px;
		gap: 12px;
	}

	.reels-action-btn {
		width: 50px;
		height: 50px;
		font-size: 18px;
	}

	.action-count {
		font-size: 10px;
	}

	.navigation-controls {
		right: 16px;
		gap: 8px;
	}

	.nav-btn {
		width: 44px;
		height: 44px;
		font-size: 16px;
	}

	.video-info {
		bottom: 16px;
		right: 16px;
		left: 120px;
	}

	.video-title {
		font-size: 15px;
	}

	.video-stats {
		font-size: 11px;
		gap: 12px;
	}

	.progress-bar {
		bottom: 80px;
		left: 16px;
		right: 120px;
	}

	.platform-indicator {
		top: 16px;
		right: 16px;
		padding: 6px 10px;
		font-size: 11px;
	}

	.search-panel, .filters-panel, .menu-panel, .video-info-panel {
		max-width: 100%;
	}

	.toast-container {
		right: 16px;
		left: 16px;
	}

	.toast {
		min-width: auto;
		max-width: 100%;
	}

	.modal-content {
		width: 95%;
		margin: 0 16px;
	}

	.share-icons {
		gap: 12px;
	}

	.share-icon {
		width: 45px;
		height: 45px;
		font-size: 18px;
	}
}

@media (min-width: 1024px) {
	.shorts-container {
		max-width: 500px;
		left: 50%;
		transform: translateX(-50%);
		border: 1px solid var(--yvs-bg-tertiary);
		border-radius: var(--yvs-border-radius-lg);
		overflow: hidden;
	}

	.search-panel, .filters-panel, .menu-panel, .video-info-panel {
		max-width: 350px;
	}
}

@media (max-height: 500px) and (orientation: landscape) {
	.top-controls {
		height: 50px;
	}

	.reels-actions-panel {
		bottom: 60px;
		gap: 8px;
	}

	.reels-action-btn {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.video-info {
		bottom: 12px;
	}

	.video-title {
		font-size: 14px;
		-webkit-line-clamp: 1;
	}

	.progress-bar {
		bottom: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
	}

	to {
		transform: translateX(0);
	}
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.8;
		transform: scale(1.05);
	}
}


.video-info-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.action-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.action-link i {
    font-size: 14px;
}