@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  --netflix-red: #E50914;
  --netflix-red-hover: #F40612;
  --netflix-red-dark: #B20710;
  --bg-black: #141414;
  --bg-darker: #0A0A0A;
  --bg-card: #181818;
  --bg-card-hover: #232323;
  --text-white: #FFFFFF;
  --text-gray: #A3A3A3;
  --text-muted: #737373;
  --border-color: #2F2F2F;
}

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

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Netflix Font Style */
.font-netflix {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  letter-spacing: 1px;
}

.font-heading {
  font-family: 'Montserrat', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--netflix-red);
}

/* Navbar Glass Effect */
.glass-nav {
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(20,20,20,0.65) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Red Ambient Cinema Glow behind the Video Player */
.cinema-glow-wrapper {
  position: relative;
}

.cinema-glow-wrapper::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.22) 0%, rgba(229, 9, 20, 0.05) 50%, transparent 75%);
  filter: blur(55px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* Big Video Player Container */
.main-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.main-player-frame iframe,
.main-player-frame video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 20s Pause / Resume Overlay for Adsterra */
.pause-resume-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  animation: fadeInOverlay 0.4s ease-out forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.pulsing-resume-btn {
  background: linear-gradient(135deg, #E50914 0%, #b20710 100%);
  color: white;
  box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
  animation: btn-pulse 1.8s infinite;
}

@keyframes btn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(229, 9, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
  }
}

/* Pulsing Live Dot */
.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #E50914;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
  animation: pulse-red 1.8s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
  }
}

/* Suggested Video Netflix Cards */
.suggested-card {
  position: relative;
  background-color: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.suggested-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.4);
  border-color: var(--netflix-red);
}

.suggested-card .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

/* Active playing movie highlight badge */
.active-playing-badge {
  background: linear-gradient(135deg, var(--netflix-red) 0%, #b20710 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.5);
}

/* Netflix Buttons */
.btn-netflix-primary {
  background: var(--netflix-red);
  color: #FFFFFF;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-netflix-primary:hover {
  background: var(--netflix-red-hover);
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.45);
}

.btn-netflix-secondary {
  background: rgba(109, 109, 110, 0.7);
  color: #FFFFFF;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-netflix-secondary:hover {
  background: rgba(109, 109, 110, 0.9);
  transform: scale(1.03);
}

/* Facebook Boost Banner */
.fb-boost-bar {
  background: linear-gradient(90deg, #1877F2 0%, #0C4899 50%, #082956 100%);
  color: white;
  border-radius: 8px;
}

/* Admin Styling */
.admin-card {
  background: #181818;
  border: 1px solid #282828;
  border-radius: 12px;
}

.admin-input {
  background-color: #121212;
  border: 1px solid #333333;
  color: #ffffff;
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
}

.admin-input:focus {
  outline: none;
  border-color: var(--netflix-red);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.25);
}
