/* ==========================================================================
   BEST ENTERTAINMENT TV - Netflix Streaming Edition
   Domain: bestentertainmenttv.com
   ========================================================================== */

:root {
  --bg-dark: #141414;
  --bg-surface: #181818;
  --bg-card: #1f1f1f;
  --bg-card-hover: #2a2a2a;
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(229, 9, 20, 0.4);
  
  --netflix-red: #E50914;
  --netflix-red-hover: #f40612;
  --netflix-red-glow: rgba(229, 9, 20, 0.45);
  
  --primary: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --whatsapp: #25D366;
  
  --text-main: #ffffff;
  --text-muted: #aaaaaa;
  --text-dim: #737373;
}

/* Reset & Overflow Fix to prevent any mobile horizontal scroll */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
  padding-top: 5rem;
}

@media (max-width: 1024px) {
  body {
    padding-top: 4.25rem;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #141414;
}
::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--netflix-red);
}

/* Fixed Header */
.site-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
}

.glass-nav {
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Netflix Style Cards */
.glass-panel {
  background: rgba(24, 24, 24, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
}

.glass-card {
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.9) 0%, rgba(24, 24, 24, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(229, 9, 20, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(229, 9, 20, 0.2);
}

/* Netflix Buttons */
.btn-netflix {
  background: var(--netflix-red);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.5rem;
  box-shadow: 0 4px 18px var(--netflix-red-glow);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
}
.btn-netflix:hover {
  background: var(--netflix-red-hover);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.65);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.55);
  transform: translateY(-2px);
}

/* Netflix Hero Backdrop Overlay & Full Bleed Banner */
.netflix-hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(229, 9, 20, 0.2) 0%, transparent 55%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.75) 0%, rgba(20, 20, 20, 0.88) 60%, #141414 100%),
    linear-gradient(90deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.8) 50%, rgba(20, 20, 20, 0.7) 100%),
    url('https://images.unsplash.com/photo-1593359677879-a4bb92f829d1?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.netflix-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, #141414 95%);
  pointer-events: none;
}

/* Netflix Style Poster Card Rows */
.netflix-poster-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
.netflix-poster-card:hover {
  transform: scale(1.04);
  border-color: var(--netflix-red);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(229, 9, 20, 0.35);
  z-index: 10;
}

/* TV Screen Bezel Frame */
.tv-screen-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 9, 20, 0.25);
  background: #000000;
}
.tv-screen-frame img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.tv-screen-frame:hover img {
  transform: scale(1.025);
}

.image-glow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 35%, rgba(20, 20, 20, 0.95) 100%);
  pointer-events: none;
}

/* Ambient Subtle Glows */
.ambient-glow-red {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  z-index: 0;
}
.ambient-glow-blue {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  z-index: 0;
}

/* Badges */
.badge-netflix-red {
  background: rgba(229, 9, 20, 0.2);
  color: #ff3844;
  border: 1px solid rgba(229, 9, 20, 0.4);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.25);
}
.badge-neon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.badge-neon-green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}
.badge-neon-blue {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

/* Live Pulse Dot */
.live-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--netflix-red);
  border-radius: 50%;
}
.live-pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  background-color: rgba(229, 9, 20, 0.4);
  border-radius: 50%;
  animation: pulse-ring 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #141414;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-glow-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(229, 9, 20, 0.15);
  border-top-color: var(--netflix-red);
  border-right-color: #fbbf24;
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.4);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   MOBILE APP BOTTOM BAR
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(3.75rem + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  padding-left: 4px;
  padding-right: 4px;
}
.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 4px 6px;
  border-radius: 8px;
  flex: 1;
  max-width: 20%;
  text-align: center;
}
.mobile-bottom-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}
.mobile-bottom-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.mobile-bottom-item:hover,
.mobile-bottom-item.active {
  color: var(--netflix-red);
}
.mobile-bottom-item.active svg {
  transform: translateY(-2px);
  color: var(--netflix-red);
  filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.6));
}
.mobile-bottom-item.whatsapp-action {
  color: #22c55e;
}
.mobile-bottom-item.whatsapp-action svg {
  color: #22c55e;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5));
}

/* ==========================================================================
   MOBILE SIDEBAR DRAWER
   ========================================================================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}
.sidebar-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #181818;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 55;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}
.sidebar-drawer.active {
  transform: translateX(0);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
#scrollTopBtn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
@media (min-width: 1024px) {
  #scrollTopBtn {
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
  }
}
#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scrollTopBtn:hover {
  background: var(--netflix-red);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.7);
  transform: translateY(-3px);
}

/* ==========================================================================
   ACCORDION
   ========================================================================== */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
}
.accordion-item.active .accordion-content {
  max-height: 500px;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--netflix-red);
}

/* Toast */
#toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(24, 24, 24, 0.96);
  border: 1px solid var(--netflix-red);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 9, 20, 0.4);
  z-index: 99999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
