/* Dcreels theme — Night Sky (selalu dark) */
:root {
  --background: 0 0% 4%;
  --foreground: 40 12% 95%;
  --card: 0 0% 8%;
  --primary: 40 56% 54%;
  --secondary: 40 40% 42%;
  --muted: 0 0% 13%;
  --muted-foreground: 0 0% 66%;
  --border: 0 0% 18%;
  --gradient-primary: linear-gradient(135deg, hsl(40, 56%, 54%) 0%, hsl(38, 48%, 44%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 10%) 0%, hsl(0, 0%, 7%) 100%);
  --gradient-glow: radial-gradient(ellipse at center, hsl(40, 56%, 54%, 0.10) 0%, transparent 70%);
  --gradient-hero: linear-gradient(180deg, hsl(0, 0%, 4%) 0%, hsl(0, 0%, 6%) 100%);
}
html { color-scheme: dark; }
body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Inter", sans-serif;
  background-image: var(--gradient-hero);
  background-attachment: fixed;
}
.font-display, h1, h2, h3, h4, h5, h6 { font-family: "Space Grotesk", sans-serif; }
.bg-background { background-color: hsl(var(--background)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-foreground-90 { color: hsl(var(--foreground) / 0.9); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted\/50 { background-color: hsl(var(--muted) / 0.5); }
.bg-muted\/80 { background-color: hsl(var(--muted) / 0.8); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/15 { background-color: hsl(var(--primary) / 0.15); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-primary\/90 { background-color: hsl(var(--primary) / 0.9); }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }
.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-primary\/50 { border-color: hsl(var(--primary) / 0.5); }
.border-border\/30 { border-color: hsl(var(--border) / 0.3); }
.border-border\/50 { border-color: hsl(var(--border) / 0.5); }
.border-border\/60 { border-color: hsl(var(--border) / 0.6); }
.hover\:bg-muted\/50:hover { background-color: hsl(var(--muted) / 0.5); }
.hover\:bg-primary\/10:hover { background-color: hsl(var(--primary) / 0.1); }
.hover\:bg-primary\/20:hover { background-color: hsl(var(--primary) / 0.2); }
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:border-primary\/30:hover { border-color: hsl(var(--primary) / 0.3); }
.hover\:border-primary\/50:hover { border-color: hsl(var(--primary) / 0.5); }
.ring-primary\/50 { --tw-ring-color: hsl(var(--primary) / 0.5); }
.glass { background-color: hsl(var(--card) / 0.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid hsl(var(--border) / 0.5); }
.glass-strong { background-color: hsl(var(--card) / 0.8); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border: 1px solid hsl(var(--border) / 0.6); }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag-pill { padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500; border-radius: 9999px; background-color: hsl(var(--muted) / 0.8); color: hsl(var(--muted-foreground)); }
.tag-pill:hover { background-color: hsl(var(--primary) / 0.2); color: hsl(var(--primary)); }
.search-input { width: 100%; background-color: hsl(var(--muted) / 0.5); border: 1px solid hsl(var(--border) / 0.5); border-radius: 1rem; padding: 0.75rem 1.25rem; color: hsl(var(--foreground)); outline: none; }
.search-input:focus { border-color: hsl(var(--primary) / 0.5); box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2); }
.badge-popular { background: linear-gradient(135deg, hsl(350, 100%, 65%), hsl(320, 100%, 65%)); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-thin::-webkit-scrollbar { height: 6px; width: 6px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: hsl(var(--muted)); border-radius: 3px; }
.app-shimmer { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.app-shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); animation: shimmer 1.6s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.animate-fade-up { animation: fade-up 0.4s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fade-in 0.25s ease both; }
@keyframes scale-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.animate-scale-in { animation: scale-in 0.25s ease both; }
@keyframes pulseSlow { 0%, 100% { opacity: 0.15; transform: scale(1); } 50% { opacity: 0.25; transform: scale(1.05); } }
.animate-pulse-slow { animation: pulseSlow 8s ease-in-out infinite; }

/* Subtitle / WebVTT Styling */
/* In normal (non-native fullscreen) mode, hide native text track container to prevent duplicate subtitles with SubtitleOverlay */
video:not(:fullscreen):not(:-webkit-full-screen)::-webkit-media-text-track-container {
  display: none !important;
}

video:fullscreen::cue,
video:-webkit-full-screen::cue {
  background-color: rgba(0, 0, 0, 0.8) !important;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 600 !important;
  font-size: clamp(18px, 3.5vw, 24px) !important;
  line-height: 1.35 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

video:fullscreen::-webkit-media-text-track-container,
video:-webkit-full-screen::-webkit-media-text-track-container {
  transform: translateY(-25%) !important;
}

/* Custom Subtitle Overlay Styling (Cinema / NetShort style: large, clean, bold with strong shadow, no intrusive dark box) */
.player-subtitle-text {
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(17px, 4.5vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: pre-line;
  max-width: 92%;
  padding: 2px 10px;
  background: transparent;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.75),
    0 1px 2px rgba(0, 0, 0, 1);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
}



