: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: #fff;
  --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);
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  overflow-x: hidden;
}

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

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

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

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

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

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

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

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

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

.video-container.hls-video-container .video-element,
.video-container.hls .video-element,
.video-element.hls-video {
  object-fit: cover !important;
  width: 100% !important;
  height: auto !important;
  max-height: 100vh !important;
}

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

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

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

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

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

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

/* ─────────────────────────────────────────
   العناصر الجديدة – منطقة التفاعل باللمس
   ───────────────────────────────────────── */
.zone-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  bottom: 70px; /* ترك مساحة لشريط التقدم */
}

.z-back,
.z-mid,
.z-fwd {
  position: relative;
  cursor: pointer;
}
.z-back { flex: 0 0 28%; }
.z-mid  { flex: 1; }
.z-fwd  { flex: 0 0 28%; }

.zone-glow {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
}
.z-back .zone-glow {
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.22), transparent 65%);
}
.z-fwd .zone-glow {
  background: radial-gradient(ellipse at 80% 50%, rgba(0, 229, 255, 0.22), transparent 65%);
}
.zone-glow.lit {
  animation: glowFlash 0.55s ease-out forwards;
}
@keyframes glowFlash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

.zone-tag {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.z-back .zone-tag { right: 14px; }
.z-fwd  .zone-tag { left: 14px; }
.zone-tag.show { opacity: 1; }
.zone-tag svg {
  width: 28px;
  height: 28px;
  fill: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}
.zone-tag span {
  font-family: var(--yvs-font-english);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
}

/* تأثير النبض للتشغيل */
.play-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
}
.play-ripple svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}
.play-ripple.pop {
  animation: ripPop 0.58s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes ripPop {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  42%  { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  72%  { transform: translate(-50%, -50%) scale(0.93); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* انفجار الإعجاب */
.like-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%) scale(0);
  font-size: 80px;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
}
.like-burst.pop {
  animation: lkPop 0.82s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes lkPop {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(-18deg); opacity: 0; }
  35%  { transform: translate(-50%, -62%) scale(1.3) rotate(6deg); opacity: 1; }
  65%  { transform: translate(-50%, -58%) scale(1.1) rotate(-3deg); opacity: 1; }
  100% { transform: translate(-50%, -78%) scale(0.9) rotate(0deg); opacity: 0; }
}

/* حلقة التحميل (buffering) */
.buf-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--yvs-primary);
  animation: spin 0.75s linear infinite;
  pointer-events: none;
  z-index: 18;
  opacity: 0;
  transition: opacity 0.3s;
}
.buf-ring.show {
  opacity: 1;
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ─────────────────────────────────────────
   شريط التقدم المتقدم (RTL)
   ───────────────────────────────────────── */
.progress-bar {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 25;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  direction: ltr; /* المحتوى يبقى ltr لكن التعبئة من اليمين */
}
.progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
}
.progress-fill {
  position: absolute;
  top: 50%;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(270deg, var(--yvs-primary) 0%, #007acc 100%);
  border-radius: 99px;
  width: 0%;
  transition: width 0.25s linear;
  box-shadow: 0 0 7px rgba(0, 229, 255, 0.5);
}
.progress-thumb {
  position: absolute;
  top: 50%;
  right: 0%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--yvs-primary), 0 0 12px rgba(0, 229, 255, 0.9);
  transform: translate(50%, -50%) scale(0);
  transition: transform 0.2s;
  pointer-events: none;
}
.progress-bar:hover .progress-thumb,
.progress-bar.drag .progress-thumb {
  transform: translate(50%, -50%) scale(1);
}
.progress-buffered {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  width: 0%;
}
.progress-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: none;
  white-space: nowrap;
}
.progress-bar.drag .progress-tooltip {
  display: block;
}
.progress-touch-area {
  position: absolute;
  inset: -10px;
}

/* أيقونة التشغيل/الإيقاف */
.play-pause-icon {
  background: var(--yvs-bg-overlay);
  width: 80px;
  height: 80px;
  color: var(--yvs-text-primary);
  opacity: 0;
  transition: var(--yvs-transition);
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 25;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
}
.play-pause-icon.visible {
  opacity: 1;
  scale: 1;
}
.play-pause-icon i {
  margin-right: 4px;
}

/* حالة الخطأ */
.error-state {
  background: var(--yvs-bg-secondary);
  width: 100%;
  height: 100%;
  color: var(--yvs-text-secondary);
  text-align: center;
  z-index: 30;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}
.error-state i {
  color: var(--yvs-error);
  margin-bottom: 16px;
  font-size: 48px;
}
.error-state p {
  margin-bottom: 20px;
  font-size: 16px;
}
.retry-btn {
  background: var(--yvs-primary);
  color: #fff;
  border-radius: var(--yvs-border-radius);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}
.retry-btn:hover {
  background: var(--yvs-primary-dark);
  transform: translateY(-2px);
}

/* معلومات الفيديو */
.video-info {
  color: var(--yvs-text-primary);
  z-index: 20;
  position: absolute;
  bottom: 20px;
  left: 140px;
  right: 20px;
}
.video-title {
  -webkit-line-clamp: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
}
.video-channel {
  margin-bottom: 8px;
}
.channel-link {
  color: var(--yvs-text-secondary);
  transition: var(--yvs-transition-fast);
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
}
.channel-link:hover {
  color: var(--yvs-text-primary);
}
.channel-avatar {
  object-fit: cover;
  border: 2px solid var(--yvs-primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
}
.video-stats {
  color: var(--yvs-text-muted);
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}
.video-stats span {
  align-items: center;
  gap: 4px;
  display: flex;
}

/* الأزرار العلوية */
.top-controls {
  z-index: 50;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.top-left,
.top-right {
  align-items: center;
  gap: 12px;
  display: flex;
}
.page-title {
  color: var(--yvs-text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 18px;
  font-weight: 700;
}
.control-btn {
  background: var(--yvs-bg-overlay);
  width: 44px;
  height: 44px;
  color: var(--yvs-text-primary);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  display: flex;
}
.control-btn:hover {
  background: var(--yvs-bg-tertiary);
  transform: scale(1.1);
}
.control-btn:active {
  transform: scale(0.95);
}

/* شريط الإجراءات الجانبي */
.reels-actions-panel {
  z-index: 30;
  flex-direction: column;
  gap: 16px;
  display: flex;
  position: absolute;
  bottom: 200px;
  left: 20px;
}
.reels-action-btn {
  background: var(--yvs-bg-overlay);
  width: 50px;
  height: 50px;
  color: var(--yvs-text-primary);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: none;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  text-decoration: none;
  display: flex;
  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: #fff;
}
.reels-action-btn.active:hover {
  background: var(--yvs-primary-dark);
}
.action-count {
  text-align: center;
  min-height: 14px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.like-btn.active {
  animation: 0.6s ease-out likeAnimation;
}

/* أزرار التنقل */
.navigation-controls {
  z-index: 40;
  flex-direction: column;
  gap: 12px;
  display: flex;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}
.nav-btn {
  background: var(--yvs-bg-overlay);
  width: 48px;
  height: 48px;
  color: var(--yvs-text-primary);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  display: flex;
}
.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 {
  background: var(--yvs-bg-secondary);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--yvs-bg-tertiary);
  width: 100%;
  max-width: 400px;
  height: 100%;
  transition: var(--yvs-transition);
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: var(--yvs-primary) var(--yvs-bg-tertiary);
  position: absolute;
  top: 0;
  right: -100%;
  overflow-y: auto;
}
.search-panel.active,
.filters-panel.active,
.menu-panel.active,
.video-info-panel.active {
  right: 0;
}
.search-header,
.filters-header,
.menu-header {
  border-bottom: 1px solid var(--yvs-bg-tertiary);
  background: var(--yvs-bg-secondary);
  z-index: 10;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  display: flex;
  position: sticky;
  top: 0;
}
.search-header h3,
.filters-header h3,
.menu-header h3 {
  color: var(--yvs-text-primary);
  font-size: 18px;
  font-weight: 700;
}
.close-btn {
  background: var(--yvs-bg-tertiary);
  width: 36px;
  height: 36px;
  color: var(--yvs-text-primary);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  display: flex;
}
.close-btn:hover {
  background: var(--yvs-error);
  transform: scale(1.1);
}
.search-content,
.filters-content,
.menu-content,
.video-info-content {
  padding: 20px;
}
.search-input {
  background: var(--yvs-bg-tertiary);
  border-radius: var(--yvs-border-radius);
  width: 100%;
  color: var(--yvs-text-primary);
  font-size: 16px;
  font-family: var(--yvs-font-arabic);
  transition: var(--yvs-transition-fast);
  border: 2px solid transparent;
  padding: 12px 16px;
}
.search-input::placeholder {
  color: var(--yvs-text-muted);
}
.search-results {
  margin-top: 20px;
}
.search-result {
  background: var(--yvs-bg-tertiary);
  border-radius: var(--yvs-border-radius);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  display: flex;
}
.search-result:hover {
  background: var(--yvs-bg-primary);
  transform: translate(-4px);
}
.result-thumbnail {
  border-radius: var(--yvs-border-radius-sm);
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  position: relative;
  overflow: hidden;
}
.result-duration {
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  position: absolute;
  bottom: 4px;
  right: 4px;
}
.result-title {
  color: var(--yvs-text-primary);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}
.result-channel {
  color: var(--yvs-text-muted);
  margin-bottom: 6px;
  font-size: 12px;
}
.result-stats span {
  align-items: center;
  gap: 3px;
  display: flex;
}
.search-loading,
.no-search-results,
.search-error {
  text-align: center;
  color: var(--yvs-text-muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  display: flex;
}
.search-loading i,
.no-search-results i,
.search-error i {
  margin-bottom: 12px;
  font-size: 32px;
}
.loading-spinner {
  border: 3px solid var(--yvs-bg-tertiary);
  border-top: 3px solid var(--yvs-primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: 1s linear infinite spin;
}

/* الفلاتر */
.filter-group {
  margin-bottom: 24px;
}
.filter-label {
  color: var(--yvs-text-primary);
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}
.filter-label i {
  color: var(--yvs-primary);
  font-size: 16px;
}
.filter-options {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}
.filter-option {
  background: var(--yvs-bg-tertiary);
  color: var(--yvs-text-secondary);
  border-radius: var(--yvs-border-radius);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  border: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}
.filter-option:hover {
  background: var(--yvs-bg-primary);
  color: var(--yvs-text-primary);
}
.filter-option.active {
  background: var(--yvs-primary);
  color: #fff;
}
.filter-option i {
  font-size: 12px;
}
.filter-select,
.filter-search {
  background: var(--yvs-bg-tertiary);
  border-radius: var(--yvs-border-radius);
  width: 100%;
  color: var(--yvs-text-primary);
  font-size: 14px;
  font-family: var(--yvs-font-arabic);
  transition: var(--yvs-transition-fast);
  border: 1px solid transparent;
  padding: 10px 12px;
}
.filter-select:focus,
.filter-search:focus {
  border-color: var(--yvs-primary);
  background: var(--yvs-bg-secondary);
  outline: none;
}
.filter-search-container {
  flex-direction: column;
  gap: 8px;
  display: flex;
}
.hashtags-grid {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}
.hashtag-pill {
  background: var(--yvs-bg-tertiary);
  color: var(--yvs-text-secondary);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}
.hashtag-pill:hover {
  background: var(--yvs-primary-light);
  color: #fff;
}
.hashtag-pill.active {
  background: var(--yvs-primary);
  color: #fff;
}
.filter-options-grid {
  flex-direction: column;
  gap: 12px;
  display: flex;
}
.filter-switch {
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  display: flex;
}
.filter-switch label {
  color: var(--yvs-text-secondary);
  cursor: pointer;
  font-size: 14px;
}
.filter-switch input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--yvs-primary);
  cursor: pointer;
}
.filter-actions {
  border-top: 1px solid var(--yvs-bg-tertiary);
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  display: flex;
}
.btn-apply-filters,
.btn-reset-filters {
  border-radius: var(--yvs-border-radius);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  border: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}
.btn-apply-filters {
  background: var(--yvs-primary);
  color: #fff;
}
.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 {
  color: var(--yvs-text-secondary);
  border-bottom: 1px solid var(--yvs-bg-tertiary);
  transition: var(--yvs-transition-fast);
  text-align: right;
  cursor: pointer;
  background: 0 0;
  border-top: none;
  border-left: none;
  border-right: none;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
}
.menu-item:hover {
  color: var(--yvs-text-primary);
  background: var(--yvs-bg-tertiary);
  border-radius: var(--yvs-border-radius);
  padding-right: 12px;
}
.menu-item i {
  width: 24px;
  color: var(--yvs-primary);
  font-size: 18px;
}

/* لوحة معلومات الفيديو */
.video-info-content h3 {
  color: var(--yvs-text-primary);
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.video-info-content p {
  color: var(--yvs-text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.video-info-stats {
  color: var(--yvs-text-muted);
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  font-size: 14px;
  display: flex;
}
.video-info-actions {
  gap: 12px;
  margin-top: 20px;
  display: flex;
}
.action-btn {
  background: var(--yvs-bg-tertiary);
  border-radius: var(--yvs-border-radius);
  color: var(--yvs-text-secondary);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  border: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
}
.action-btn:hover {
  background: var(--yvs-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* نافذة المشاركة */
.modal-overlay {
  z-index: 200;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
}
.modal-content {
  background: var(--yvs-bg-secondary);
  border-radius: var(--yvs-border-radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  box-shadow: var(--yvs-shadow-lg);
  overflow-y: auto;
}
.share-modal-content {
  background: var(--yvs-bg-secondary);
}
.modal-header {
  border-bottom: 1px solid var(--yvs-bg-tertiary);
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  display: flex;
}
.modal-header h3 {
  color: var(--yvs-text-primary);
  font-size: 18px;
  font-weight: 700;
}
.modal-body {
  padding: 20px;
}
.modal-body p {
  color: var(--yvs-text-secondary);
  text-align: center;
  margin-bottom: 16px;
}
.share-icons {
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  display: flex;
}
.share-icon {
  color: #fff;
  width: 50px;
  height: 50px;
  transition: var(--yvs-transition-fast);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  text-decoration: none;
  display: flex;
}
.share-icon.whatsapp {
  background: #25d366;
}
.share-icon.facebook {
  background: #1877f2;
}
.share-icon.twitter {
  background: #1da1f2;
}
.share-icon.telegram {
  background: #08c;
}
.share-icon.email {
  background: #ea4335;
}
.share-icon:hover {
  box-shadow: var(--yvs-shadow);
  transform: scale(1.1) translateY(-2px);
}
.share-or-text {
  text-align: center;
  color: var(--yvs-text-muted);
  margin: 20px 0 16px;
  font-size: 14px;
  position: relative;
}
.share-or-text:before,
.share-or-text:after {
  content: '';
  background: var(--yvs-bg-tertiary);
  width: 30%;
  height: 1px;
  position: absolute;
  top: 50%;
}
.share-or-text:before {
  right: 0;
}
.share-or-text:after {
  left: 0;
}
.share-link-container {
  gap: 8px;
  display: flex;
}
.share-link-container input {
  background: var(--yvs-bg-tertiary);
  border-radius: var(--yvs-border-radius);
  color: var(--yvs-text-primary);
  font-size: 14px;
  font-family: var(--yvs-font-english);
  text-align: left;
  direction: ltr;
  border: none;
  flex: 1;
  padding: 12px;
}
.btn-copy {
  background: var(--yvs-primary);
  color: #fff;
  border-radius: var(--yvs-border-radius);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  border: none;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}
.btn-copy:hover {
  background: var(--yvs-primary-dark);
}

/* مؤشر التحميل */
.loading-indicator {
  background: var(--yvs-bg-overlay);
  color: var(--yvs-text-primary);
  border-radius: var(--yvs-border-radius-lg);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.loading-overlay {
  z-index: 100;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}
.loading-content {
  color: var(--yvs-text-primary);
  flex-direction: column;
  align-items: center;
  gap: 16px;
  display: flex;
}

/* الإشعارات */
.toast-container {
  z-index: 300;
  flex-direction: column;
  gap: 8px;
  display: flex;
  position: fixed;
  top: 80px;
  right: 20px;
}
.toast {
  background: var(--yvs-bg-secondary);
  color: var(--yvs-text-primary);
  border-radius: var(--yvs-border-radius);
  box-shadow: var(--yvs-shadow);
  opacity: 0;
  min-width: 200px;
  max-width: 300px;
  transition: var(--yvs-transition);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-left: 4px solid var(--yvs-info);
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  transform: translate(100%);
}
.toast.show {
  opacity: 1;
  transform: translate(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 {
  flex-shrink: 0;
  font-size: 16px;
}
.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 {
  text-align: center;
  height: 100%;
  color: var(--yvs-text-secondary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  display: flex;
}
.error-message i,
.no-videos-message i,
.init-error i {
  color: var(--yvs-error);
  margin-bottom: 20px;
  font-size: 64px;
}
.error-message h3,
.no-videos-message h3,
.init-error h3 {
  color: var(--yvs-text-primary);
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
}
.error-message p,
.no-videos-message p,
.init-error p {
  max-width: 300px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.5;
}
.retry-button,
.btn-reset {
  background: var(--yvs-primary);
  color: #fff;
  border-radius: var(--yvs-border-radius);
  cursor: pointer;
  transition: var(--yvs-transition-fast);
  border: none;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
}
.retry-button:hover,
.btn-reset:hover {
  background: var(--yvs-primary-dark);
  transform: translateY(-2px);
}

/* حالات السحب والتفاعل */
.touch-dragging {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: hidden;
}
.touch-dragging * {
  pointer-events: none;
}
.touch-dragging .reels-actions-panel,
.touch-dragging .navigation-controls,
.touch-dragging .top-controls,
.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;
}

/* شريط التمرير للوحات */
.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: 0.6s ease-out fadeInUp;
}
.search-panel.active,
.filters-panel.active,
.menu-panel.active,
.video-info-panel.active {
  animation: 0.4s ease-out slideInRight;
}
.reels-action-btn:active {
  animation: 0.2s ease-out pulse;
}
.touch-dragging:not(.reels-actions-panel):not(.navigation-controls):not(.top-controls) {
  pointer-events: none;
}
.reels-container {
  cursor: grab;
}
.reels-container:active {
  cursor: grabbing;
}
.reels-action-btn.liked {
  background: var(--yvs-primary);
  color: #fff;
  animation: 0.6s ease-out likeAnimation;
}

/* عناصر التحديد المخصص */
.custom-select-container {
  width: 100%;
  font-family: var(--yvs-font-arabic);
  position: relative;
}
.custom-select__trigger {
  color: #e0e0e0;
  cursor: pointer;
  background-color: #2a2a2e;
  border: 1px solid #444;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  height: 45px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  display: flex;
  position: relative;
}
.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 {
  width: 10px;
  height: 10px;
  position: relative;
}
.custom-select__trigger .arrow:before,
.custom-select__trigger .arrow:after {
  content: '';
  background-color: #999;
  width: 2px;
  height: 100%;
  transition: all 0.2s;
  position: absolute;
  bottom: 0;
}
.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 {
  z-index: 100;
  background-color: #1e1e22;
  border: 1px solid #444;
  border-radius: 8px;
  max-height: 250px;
  display: none;
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  overflow-y: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.custom-select-container.open .custom-select__options {
  display: block;
}
.custom-select__option {
  color: #ccc;
  cursor: pointer;
  align-items: center;
  padding: 12px 15px;
  font-size: 14px;
  transition: background-color 0.2s;
  display: flex;
}
.custom-select__option:hover {
  background-color: #2a2a2e;
}
.custom-select__option.selected {
  color: #fff;
  background-color: #005f73;
  font-weight: 600;
}
.option-avatar {
  object-fit: cover;
  border: 1px solid #555;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin-left: 10px;
}

/* تأثير التغذية البصرية للسحب */
#touch-feedback {
  pointer-events: none;
  z-index: 999;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  transition: transform 0.2s ease-out;
  position: absolute;
  transform: scale(0);
}
#touch-feedback.active {
  transform: scale(1);
}

/* التغذية البصرية للتقديم/التأخير */
.seek-feedback {
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 25px;
  font-size: 24px;
  transition: opacity 0.3s ease-in-out, transform 0.3s;
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.seek-feedback.active {
  opacity: 1;
  animation: 0.6s ease-out seek-pop;
}
#seek-feedback-left {
  left: 20px;
}
#seek-feedback-right {
  right: 20px;
}
.seek-feedback i {
  margin-bottom: 8px;
  font-size: 28px;
}
.seek-feedback span {
  font-size: 16px;
  font-weight: 700;
}

/* نتائج البحث */
.search-results {
  max-height: calc(100vh - 200px);
  padding: 0;
  overflow-y: auto;
}
.search-results-header {
  z-index: 10;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  display: flex;
  position: sticky;
  top: 0;
}
.results-count {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}
.clear-search-btn {
  color: #ff3b30;
  cursor: pointer;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
}
.clear-search-btn:hover {
  background: rgba(255, 59, 48, 0.25);
  border-color: rgba(255, 59, 48, 0.5);
}
.search-results-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px;
  display: grid;
}
@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
}
.search-result-item {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s;
  overflow: hidden;
}
.search-result-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.search-result-item:active {
  transform: translateY(0);
}
.result-thumbnail {
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
}
.result-thumbnail img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
  position: absolute;
  top: 0;
  left: 0;
}
.search-result-item:hover .result-thumbnail img {
  transform: scale(1.05);
}
.result-duration {
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  bottom: 8px;
  right: 8px;
}
.result-info {
  padding: 12px;
}
.result-title {
  color: #fff;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
}
.result-channel {
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 0 0 6px;
  font-size: 12px;
  overflow: hidden;
}
.result-stats {
  color: rgba(255, 255, 255, 0.5);
  align-items: center;
  gap: 8px;
  font-size: 11px;
  display: flex;
}
.result-stats i {
  margin-left: 3px;
  font-size: 10px;
}
.search-loading,
.search-no-results,
.search-error {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  display: flex;
}
.search-loading i,
.search-no-results i,
.search-error i {
  opacity: 0.5;
  margin-bottom: 16px;
  font-size: 48px;
}
.search-loading .loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  animation: 0.8s linear infinite spin;
}
.search-loading span,
.search-no-results p,
.search-error p {
  margin: 0;
  font-size: 16px;
}
#search-results::-webkit-scrollbar {
  width: 8px;
}
#search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
#search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
#search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* محفز ظهور الفوتر */
.reels-footer-trigger {
  z-index: 50;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  padding: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
}
.reels-footer-trigger.visible {
  pointer-events: auto;
  transform: translateY(0);
}
.reels-footer-trigger .footer-indicator {
  color: rgba(255, 255, 255, 0.9);
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  display: flex;
}
.reels-footer-trigger .footer-indicator i {
  font-size: 16px;
  animation: 2s ease-in-out infinite bounce;
}
@keyframes bounce {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.reels-footer-trigger .show-footer-btn {
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-flex;
}
.reels-footer-trigger .show-footer-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.reels-footer-trigger .show-footer-btn:active {
  transform: translateY(0);
}
body.reels-footer-active footer {
  z-index: 100;
  background: #000;
  max-height: 80vh;
  animation: 0.4s cubic-bezier(0.4, 0, 0.2, 1) slideUpFooter;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: auto;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
}
@keyframes slideUpFooter {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.reels-footer-active footer:before {
  content: '×';
  cursor: pointer;
  color: #fff;
  z-index: 101;
  float: right;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  margin: 10px;
  font-size: 28px;
  transition: all 0.3s;
  display: flex;
  position: sticky;
  top: 10px;
  right: 10px;
}
body.reels-footer-active footer:before:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ميديا كويري للأجهزة الصغيرة */
@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: 180px;
    gap: 12px;
    left: 16px;
  }
  .reels-action-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  .action-count {
    font-size: 10px;
  }
  .navigation-controls {
    gap: 8px;
    right: 16px;
  }
  .nav-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .video-info {
    bottom: 16px;
    left: 120px;
    right: 16px;
  }
  .video-title {
    font-size: 15px;
  }
  .video-stats {
    gap: 12px;
    font-size: 11px;
  }
  .progress-bar {
    bottom: 80px;
    left: 16px;
    right: 120px;
  }
  .platform-indicator {
    padding: 6px 10px;
    font-size: 11px;
    top: 16px;
    right: 16px;
  }
  .search-panel,
  .filters-panel,
  .menu-panel,
  .video-info-panel {
    max-width: 100%;
  }
  .toast-container {
    left: 16px;
    right: 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;
  }
  .search-panel .search-header,
  .search-panel .search-content {
    padding: 16px;
  }
  .search-input {
    font-size: 16px;
  }
  .search-results-header {
    padding: 12px 16px;
  }
  .results-count {
    font-size: 13px;
  }
  .clear-search-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  .result-title {
    font-size: 13px;
  }
  .result-channel {
    font-size: 11px;
  }
}

@media (min-width: 1024px) {
  .reels-container {
    border: 1px solid var(--yvs-bg-tertiary);
    border-radius: var(--yvs-border-radius-lg);
    max-width: 500px;
    left: 50%;
    overflow: hidden;
    transform: translate(-50%);
  }
  .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 {
    gap: 8px;
    bottom: 60px;
  }
  .reels-action-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .video-info {
    bottom: 12px;
  }
  .video-title {
    -webkit-line-clamp: 1;
    font-size: 14px;
  }
  .progress-bar {
    bottom: 50px;
  }
}

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

/* تعريفات الرسوم المتحركة العامة */
@keyframes likeAnimation {
  0%,
  to {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(1.15);
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInRight {
  0% {
    transform: translate(100%);
  }
  to {
    transform: translate(0);
  }
}
@keyframes pulse {
  0%,
  to {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
@keyframes seek-pop {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
  30% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
  to {
    opacity: 0;
    transform: translateY(-50%) scale(1);
  }
}