:root {
  --bharatazad-accent: #95FF50;
  --orbitjoy-accent: var(--bharatazad-accent);
  --cinejoy-accent: var(--bharatazad-accent);
  --cinejoy-bg: #09090b;
  --cinejoy-card: #121214;
  --cinejoy-card-hover: #1c1c20;
  --cinejoy-border: rgba(255, 255, 255, 0.08);
  --cinejoy-text: #f4f4f5;
  --cinejoy-muted: #a1a1aa;
}

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

body {
  background-color: var(--cinejoy-bg);
  color: var(--cinejoy-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Montserrat', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cinejoy-accent);
}

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

/* Accent Utilities */
.text-accent {
  color: var(--cinejoy-accent) !important;
}

.bg-accent {
  background-color: var(--cinejoy-accent) !important;
}

.border-accent {
  border-color: var(--cinejoy-accent) !important;
}

.shadow-accent {
  box-shadow: 0 10px 25px -5px rgba(149, 255, 80, 0.25);
}

/* Active server styling */
.active-server {
  border-color: var(--cinejoy-accent) !important;
  background-color: rgba(149, 255, 80, 0.12) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(149, 255, 80, 0.2);
}

/* Media Cards */
.media-card {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cinejoy-card);
}

.media-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(149, 255, 80, 0.15);
}

.media-card:hover .poster-overlay {
  opacity: 1;
}

.media-card:hover .poster-img {
  transform: scale(1.05);
}

.poster-img {
  transition: transform 0.4s ease;
}

.poster-overlay {
  opacity: 0;
  transition: opacity 0.25s ease;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
}

/* Skeleton Loading Shimmer */
.skeleton {
  background: linear-gradient(90deg, #18181b 25%, #27272a 50%, #18181b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Theater Mode for Video Player */
.theater-mode {
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 60px) !important;
  z-index: 1000 !important;
  border-radius: 0 !important;
  border: none !important;
}

.theater-mode #iframe-container {
  height: calc(100% - 110px) !important;
  aspect-ratio: auto !important;
}

/* Smooth carousels */
.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* Custom modal transitions */
.modal-backdrop {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.75);
}
