* {
  font-family: 'Cairo', 'Tahoma', sans-serif;
}

body {
  font-family: 'Cairo', 'Tahoma', sans-serif;
  margin: 0;
  background: #0f0628;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(236, 72, 153, 0.5);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(236, 72, 153, 0.8);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
  }
}

#download-btn:hover {
  animation: pulse-glow 1.5s infinite;
}

/* Media item styles */
.media-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s;
}

.media-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-4px);
}

.media-item .quality-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.media-item .quality-badge {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: rgba(236, 72, 153, 0.2);
  color: #ec4899;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.media-item .download-action {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.media-item .download-action:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

/* RTL adjustments */
[dir='rtl'] .media-item:hover {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 640px) {
  h2 {
    font-size: 2rem !important;
  }
}
