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

:root {
  --bg-main: #0a0508;
  --bg-card: #140b10;
  --bg-card-hover: #1c0f17;
  --bg-surface: #1e111a;
  --primary-red: #ff0055;
  --primary-crimson: #dc143c;
  --primary-darkred: #8b0000;
  --border-red: rgba(255, 0, 85, 0.25);
  --border-card: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --nav-bg: rgba(10, 5, 8, 0.92);
}

/* Enhanced Light Theme Styling */
html.light {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #ffffff;
  --border-red: rgba(255, 0, 85, 0.3);
  --border-card: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-muted: #475569;
  --nav-bg: rgba(255, 255, 255, 0.95);
}

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

html.light body {
  background-color: #f8fafc;
  color: #0f172a;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #2a1523;
  border-radius: 4px;
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff0055;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(20, 11, 16, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 0, 85, 0.2);
}

html.light .glass-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.07), 0 0 20px rgba(255, 0, 85, 0.05);
}

.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 0, 85, 0.25);
  transition: background-color 0.4s ease;
}

html.light .glass-nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.glass-card {
  background: rgba(26, 14, 21, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.light .glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.glass-card:hover {
  border-color: rgba(255, 0, 85, 0.5);
  box-shadow: 0 10px 30px -10px rgba(255, 0, 85, 0.35);
  transform: translateY(-4px);
}

html.light .glass-card:hover {
  border-color: #ff0055;
  box-shadow: 0 12px 30px -5px rgba(255, 0, 85, 0.2);
}

/* Logo Contrast Styling for Light Mode */
.brand-text-red {
  color: #0f172a;
}
html.dark .brand-text-red {
  color: #ffffff;
}

/* Neon Red Utilities */
.neon-text-red {
  color: #ff1a53;
  text-shadow: 0 0 12px rgba(255, 0, 85, 0.7), 0 0 24px rgba(255, 0, 85, 0.35);
}

html.light .neon-text-red {
  color: #e11d48;
  text-shadow: 0 0 8px rgba(225, 29, 72, 0.25);
}

.btn-primary-red {
  background: linear-gradient(135deg, #ff0055 0%, #b3003b 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 0, 85, 0.4);
  transition: all 0.25s ease;
}

.btn-primary-red:hover {
  background: linear-gradient(135deg, #ff266f 0%, #d40046 100%);
  box-shadow: 0 6px 24px rgba(255, 0, 85, 0.6);
  transform: translateY(-1px);
}

.btn-outline-red {
  background: rgba(255, 0, 85, 0.08);
  border: 1px solid rgba(255, 0, 85, 0.35);
  color: #ff4d80;
  transition: all 0.25s ease;
}

html.light .btn-outline-red {
  background: rgba(255, 0, 85, 0.06);
  border-color: rgba(255, 0, 85, 0.4);
  color: #e11d48;
}

.btn-outline-red:hover {
  background: rgba(255, 0, 85, 0.22);
  border-color: #ff0055;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 0, 85, 0.35);
}

/* Full Screen Player Theater View Styles (Polished Light Mode) */
.fullscreen-player-overlay {
  background-color: rgba(5, 2, 4, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

html.light .fullscreen-player-overlay {
  background-color: #f8fafc;
  backdrop-filter: blur(20px);
}

.player-top-bar {
  background-color: rgba(10, 5, 8, 0.95);
  border-bottom: 1px solid rgba(255, 0, 85, 0.2);
}

html.light .player-top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.responsive-embed-theater {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 0, 85, 0.3);
  border: 1px solid rgba(255, 0, 85, 0.35);
}

.responsive-embed-theater iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

html.light .responsive-embed-theater {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 0, 85, 0.15);
}

/* Category Filter Pill Active State */
.cat-pill {
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}

html.light .cat-pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cat-pill:hover {
  background: rgba(255, 0, 85, 0.15);
  border-color: rgba(255, 0, 85, 0.4);
  color: #ffffff;
}

html.light .cat-pill:hover {
  color: #ff0055;
  border-color: rgba(255, 0, 85, 0.3);
}

.cat-pill.active {
  background: linear-gradient(135deg, #ff0055 0%, #8b0000 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 0, 85, 0.4);
  border-color: transparent;
}

/* Pulse animation for 18+ badge */
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 0, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

.live-pulse {
  animation: pulse-red 2s infinite;
}

/* Video card thumbnail container hover zoom */
.thumb-container {
  overflow: hidden;
}

.thumb-container img {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-card:hover .thumb-container img {
  transform: scale(1.06);
}

.play-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover .play-overlay {
  opacity: 1;
}

/* Neon Red Spinner Loading Animation */
@keyframes spin-neon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.neon-spinner {
  border: 4px solid rgba(255, 0, 85, 0.15);
  border-top-color: #ff0055;
  border-right-color: #ff1a53;
  border-radius: 50%;
  animation: spin-neon 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

/* Theme Toggle Button Animation */
.theme-toggle-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover .theme-toggle-icon {
  transform: rotate(30deg) scale(1.1);
}
