/* =============================================================================
   SwaMedia Cinema & Streaming — Premium Dark Design System (CSS)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #050505;
  --bg-card: #101010;
  --bg-modal: #0e0e0e;
  --accent-red: #dc2626;
  --accent-amber: #f59e0b;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --border-subtle: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
}

img, video, iframe {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Layout Containers */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-md  { max-width: 28rem; margin-left: auto; margin-right: auto; }

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

/* Glassmorphism Cards & Panels */
.glass-card {
  background-color: rgba(16, 16, 16, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
}

.glass-modal {
  background-color: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.75rem;
}

/* Movie Card Styles */
.movie-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  aspect-ratio: 2 / 3;
}

.movie-card:hover {
  box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.5);
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card-overlay {
  display: none !important;
}

/* =============================================================================
   Zig-Zag Micro-Loader Animation
   ============================================================================= */
@keyframes zigzag-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8)); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes zigzag-slide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

.zigzag-loader-icon {
  animation: zigzag-pulse 1s infinite ease-in-out;
}

.zigzag-bar-progress {
  animation: zigzag-slide 1.5s infinite ease-in-out;
}

/* Badges */
.badge-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-4k {
  background-color: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
}

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

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Mobile Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.6rem 0.5rem;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}
