:root {
  --bharatazad-accent: #E50914;
  --orbitjoy-accent: var(--bharatazad-accent);
  --cinejoy-accent: var(--bharatazad-accent);
  --cinejoy-bg: #141414;
  --cinejoy-card: #181818;
  --cinejoy-card-hover: #242424;
  --cinejoy-border: rgba(255, 255, 255, 0.1);
  --cinejoy-text: #ffffff;
  --cinejoy-muted: #b3b3b3;
}

* {
  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: #141414;
}

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

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

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

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

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

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

.shadow-accent {
  box-shadow: 0 10px 25px -5px rgba(229, 9, 20, 0.35);
}

/* Active server styling */
.active-server {
  border-color: var(--bharatazad-accent) !important;
  background-color: rgba(229, 9, 20, 0.18) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.25);
}

/* Netflix Header Scroll State */
.netflix-header {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(20, 20, 20, 0.55) 70%, transparent 100%);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.netflix-header.scrolled {
  background: #141414;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

.media-card:hover {
  transform: scale(1.06);
  z-index: 20;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.9);
}

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

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

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

.poster-overlay {
  opacity: 0;
  transition: opacity 0.22s ease;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(20, 20, 20, 0.92) 100%);
}

/* Netflix Top 10 Outlined Rank Numbers */
.top10-rank {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 6.5rem;
  line-height: 0.85;
  color: #141414;
  -webkit-text-stroke: 3px #595959;
  user-select: none;
  letter-spacing: -0.06em;
  transition: -webkit-text-stroke-color 0.2s ease;
}

.top10-item:hover .top10-rank {
  -webkit-text-stroke-color: #ffffff;
}

/* Skeleton Loading Shimmer */
.skeleton {
  background: linear-gradient(90deg, #1b1b1b 25%, #2a2a2a 50%, #1b1b1b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

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

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

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

/* Smooth carousels */
.carousel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding-top: 0.5rem;
}

.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.8);
}
