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

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #ec4899;
  --accent: #06b6d4;
  --bg-dark: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: #f3f4f6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
}

/* Ambient Player Glow */
.player-glow-wrap {
  position: relative;
}
.player-glow-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(236, 72, 153, 0.15) 50%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* Cinema Mode */
#cinema-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.cinema-active #cinema-overlay {
  opacity: 1;
  pointer-events: auto;
}
body.cinema-active .cinema-target {
  position: relative;
  z-index: 50 !important;
}

/* Card Hover Animations */
.anime-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.anime-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.6), 0 0 15px rgba(99, 102, 241, 0.2);
}

.anime-card .poster-img {
  transition: transform 0.4s ease;
}
.anime-card:hover .poster-img {
  transform: scale(1.05);
}

/* Hero Carousel */
.hero-gradient {
  background: linear-gradient(180deg, rgba(9, 13, 22, 0) 0%, rgba(9, 13, 22, 0.7) 60%, rgba(9, 13, 22, 1) 100%);
}

.hero-side-gradient {
  background: linear-gradient(90deg, rgba(9, 13, 22, 1) 0%, rgba(9, 13, 22, 0.8) 50%, transparent 100%);
}

/* Pulse Animation for Live badge */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
.pulse-badge {
  animation: pulse-glow 2s infinite ease-in-out;
}

/* Line Clamp Utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Active Episode Pulse */
.active-ep-item {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25));
  border-color: #6366f1 !important;
  color: #fff !important;
}
