/* CineSphere Luxury Dark Cinema Design System */
:root {
  --bg-primary: #08090d;
  --bg-secondary: #0f1219;
  --bg-surface: #171b26;
  --bg-glass: rgba(15, 18, 25, 0.75);
  --border-glass: rgba(255, 255, 255, 0.08);
  
  --accent-red: #e50914;
  --accent-red-hover: #b80710;
  --accent-gold: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(229, 9, 20, 0.4);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: background 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.brand-icon {
  color: var(--accent-red);
  font-size: 1.8rem;
}
.brand-text span {
  color: var(--accent-red);
}
.site-header-logo {
  height: 66px;
  max-height: 72px;
  max-width: 320px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header-logo:hover {
  transform: scale(1.04);
}

/* Home Page Zoomed-Out Layout for expansive cinematic display (Header stays 100% full-size) */
.home-zoom-container {
  zoom: 0.90;
  transform-origin: top center;
  width: 100%;
}
@media (max-width: 768px) {
  .home-zoom-container {
    zoom: 0.92;
  }
}
@media (max-width: 768px) {
  .navbar {
    height: 68px;
    padding: 0 1rem;
  }
  .site-header-logo {
    height: 52px;
    max-height: 56px;
    max-width: 220px;
  }
}
@media (max-width: 480px) {
  .navbar {
    height: 62px;
  }
  .site-header-logo {
    height: 42px;
    max-height: 46px;
    max-width: 170px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  transform: translateY(-1px);
}

/* BongoBD Style Dropdowns */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.dropdown-arrow {
  font-size: 0.65rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  padding: 8px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  display: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 99999 !important;
  list-style: none;
}
/* Invisible bridge so mouse hover doesn't drop when moving down */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: translateY(0) !important;
}
.dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 18px !important;
  color: #cbd5e1 !important;
  font-size: 0.88rem !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.dropdown-item:hover {
  background: rgba(229, 9, 20, 0.2) !important;
  color: #ffffff !important;
  padding-left: 22px !important;
}
.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}

/* UNIVERSAL FORM SELECT & DROPDOWNS (Requirement #9) */
select, .form-select, select.form-control, .select-control {
  background-color: #131926 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}
select option, .form-select option, select.form-control option {
  background-color: #131926 !important;
  color: #ffffff !important;
  padding: 10px 14px;
}
select optgroup, select.form-control optgroup {
  background-color: #0b0f19 !important;
  color: #94a3b8 !important;
  font-weight: 700;
}

.nav-search-container {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 8px 60px 8px 38px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  width: 240px;
  height: 38px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.nav-search-input:focus {
  outline: none;
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(229, 9, 20, 0.85);
  width: 340px;
  box-shadow: 0 0 22px rgba(229, 9, 20, 0.35), 0 4px 18px rgba(0, 0, 0, 0.6);
}
.search-icon-nav {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.25s ease;
}
.nav-search-input:focus ~ .search-icon-nav,
.nav-search-form:focus-within .search-icon-nav {
  color: var(--accent-red);
}
.nav-search-clear-btn {
  position: absolute;
  right: 32px;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #cbd5e1;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}
.nav-search-clear-btn:hover {
  background: var(--accent-red);
  color: #fff;
  transform: scale(1.1);
}
.nav-search-kbd-hint {
  position: absolute;
  right: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  font-family: monospace;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nav-search-input:focus ~ .nav-search-kbd-hint {
  opacity: 0.5;
}

/* Live Search Suggestions Dropdown */
.nav-live-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 440px;
  max-width: 94vw;
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(229, 9, 20, 0.16);
  z-index: 999999;
  overflow: hidden;
  animation: navSearchDropSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes navSearchDropSlide {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.live-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.live-search-header-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.live-search-count-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 12px;
}
.live-search-fuzzy-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.18), rgba(99, 102, 241, 0.18));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #f1f5f9;
}
.live-search-fuzzy-notice strong {
  color: #38bdf8;
}
.live-search-items-list {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.live-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  text-decoration: none;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  position: relative;
}
.live-search-item:last-child {
  border-bottom: none;
}
.live-search-item:hover,
.live-search-item.is-selected {
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-red);
  padding-left: 13px;
}
.live-search-item.is-best-match {
  background: rgba(229, 9, 20, 0.05);
}
.live-search-thumb-wrapper {
  position: relative;
  width: 46px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.live-search-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.live-search-item:hover .live-search-thumb {
  transform: scale(1.08);
}
.live-search-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.live-search-item:hover .live-search-play-overlay {
  opacity: 1;
}
.live-search-info {
  flex: 1;
  min-width: 0;
}
.live-search-rank-row {
  margin-bottom: 3px;
}
.live-search-rank {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(229, 9, 20, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(229, 9, 20, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
}
.live-search-item-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}
.live-search-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.live-search-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.live-search-tag-movie {
  background: rgba(229, 9, 20, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(229, 9, 20, 0.35);
}
.live-search-tag-series {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.live-search-tag-anim {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}
.live-search-tag-year {
  color: #94a3b8;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}
.live-search-tag-rating {
  color: #fbbf24;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.live-search-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.live-search-item:hover .live-search-action-btn,
.live-search-item.is-selected .live-search-action-btn {
  background: var(--accent-red);
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}
.live-search-hint-pill {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 0.76rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.live-search-hint-pill:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}
.live-search-footer {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}
.live-search-full-link {
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.2s ease;
}
.live-search-full-link:hover {
  color: #fff;
  text-decoration: underline;
}
.live-search-full-link kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 3px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-vip-nav {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}
.btn-vip-nav:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* HEADER DOWNLOAD APP BUTTON */
.btn-download-app-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(56, 189, 248, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.48);
  color: #38bdf8;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-download-app-header:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.5);
}
.btn-download-app-header:active {
  transform: translateY(0);
}
.btn-download-app-header .app-icon {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.btn-download-app-header:hover .app-icon {
  transform: scale(1.2) rotate(-5deg);
}
@media (max-width: 768px) {
  .btn-download-app-header {
    display: none !important; /* Hide upper app download button on mobile/small screens */
  }
}

/* CineBaaj Native App: Hide all Download App elements */
.in-cinebaaj-app .btn-download-app-header,
.in-cinebaaj-app .mobile-nav-apps,
.in-cinebaaj-app .app-download-option {
  display: none !important;
}

.btn-login-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.btn-login-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.user-badge-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}
.user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--border-glass);
}
.badge-vip {
  background: var(--accent-gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* MAIN CONTENT WRAPPER */
.main-wrapper {
  margin-top: 70px;
  flex: 1;
}

/* HERO BILLBOARD */
.hero-billboard {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center top;
  padding: 4rem 3rem;
  overflow: hidden;
}
/* ==========================================================================
   HERO BANNER & SLIDER SYSTEM (BongoBD / Netflix Style)
   ========================================================================== */
.hero-slider-container {
  position: relative;
  width: 100%;
  min-height: 520px;
  max-height: 620px;
  overflow: hidden;
  background: #080c14;
}

.hero-slide {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: none;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  align-items: center;
  transition: opacity 0.4s ease-in-out;
}

.hero-slide.active {
  display: flex !important;
}

.hero-content {
  position: relative;
  z-index: 15;
  max-width: 760px;
  padding: 4rem 5.5rem; /* Generous 88px left padding ensures arrows NEVER collide with buttons */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ff4d58;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0.6rem 0 0.8rem;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-overview {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 650px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 20;
}

.hero-actions a,
.hero-actions button {
  white-space: nowrap;
}
.btn-play-hero {
  background: var(--accent-red);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}
.btn-play-hero:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.6);
}
.btn-details-hero {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.btn-details-hero:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* SECTION SHELF */
.section-shelf {
  padding: 2.5rem 2rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--accent-red);
  border-radius: 2px;
}
.view-all-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.view-all-link:hover {
  color: var(--accent-red);
}

/* MOVIE GRID & CARDS (Standard Cinema Poster 2:3 Ratio) */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1.25rem;
}

/* SINGLE-ROW HORIZONTAL SLIDER SHELF WITH ARROW BUTTONS & AUTO-SLIDE */
.shelf-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 0.6rem;
}

.shelf-slider-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 4px 18px 4px;
  width: 100%;
}

.shelf-slider-track::-webkit-scrollbar {
  display: none;
}

.shelf-slider-track .movie-card {
  flex: 0 0 175px;
  width: 175px;
  max-width: 175px;
  min-width: 175px;
}

.shelf-slider-track .continue-card {
  flex: 0 0 270px;
  width: 270px;
  max-width: 270px;
  min-width: 270px;
}

.shelf-nav-btn,
.tv-hero-arrow {
  position: absolute;
  top: 0 !important;
  bottom: 0 !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none !important;
  user-select: none;
  padding: 0;
}

.tv-hero-arrow {
  width: 48px;
  height: 48px;
  z-index: 35;
}

.shelf-nav-btn svg,
.tv-hero-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
  pointer-events: none;
  transition: transform 0.18s ease;
}

.tv-hero-arrow svg {
  width: 22px;
  height: 22px;
}

.shelf-nav-btn:hover,
.shelf-nav-btn:focus,
body.tv-mode .shelf-nav-btn.tv-focused,
.tv-hero-arrow:hover,
.tv-hero-arrow:focus,
body.tv-mode .tv-hero-arrow.tv-focused {
  top: 0 !important;
  bottom: 0 !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.35), rgba(15, 23, 42, 0.95)) !important;
  border-color: #00f2fe !important;
  color: #00f2fe !important;
  transform: scale(1.14) translateZ(0) !important;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.75), 0 8px 25px rgba(0, 0, 0, 0.8) !important;
}

.shelf-nav-btn:active,
.tv-hero-arrow:active {
  top: 0 !important;
  bottom: 0 !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
  transform: scale(0.92) translateZ(0) !important;
  background: #00f2fe !important;
  color: #030406 !important;
}

.shelf-prev-btn {
  left: -14px;
}

.shelf-next-btn {
  right: -14px;
}

.tv-hero-arrow-prev {
  left: 1.5rem;
}

.tv-hero-arrow-next {
  right: 1.5rem;
}
.movie-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
}
.movie-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.25);
}
.card-poster-wrapper {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  overflow: hidden !important;
  background: #0f1422 !important;
}
.card-poster {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: 2 / 3 !important;
  transition: transform 0.4s ease;
}
.movie-card:hover .card-poster {
  transform: scale(1.06);
}
.card-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.card-vip-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 900;
  font-size: 0.68rem;
  padding: 3px 7px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.card-hd-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.card-badge-anim {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.card-badge-type {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.card-badge-lang {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.card-hover-play {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
  pointer-events: none;
}
.movie-card:hover .card-hover-play {
  opacity: 1;
}
.play-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.9);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}
.movie-card:hover .play-icon-circle {
  transform: scale(1);
}
.card-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* DIGITAL HERO STYLES */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.hero-nav-arrow:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.8);
}
.hero-nav-arrow.left-arrow { left: 24px; }
.hero-nav-arrow.right-arrow { right: 24px; }

.hero-digital-poster-card {
  position: relative;
  width: 280px;
  height: 410px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.25);
  border: 2px solid rgba(0, 242, 254, 0.4);
  background: #0f172a;
  flex-shrink: 0;
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.4s ease;
}
.hero-digital-poster-card:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(229, 9, 20, 0.5);
  border-color: var(--accent-red);
}
.hero-digital-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-digital-glow-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00f2fe;
  color: #00f2fe;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}
.hero-digital-footer-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(10, 13, 20, 0.95) 0%, rgba(10, 13, 20, 0) 100%);
  padding: 24px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* STREAMING PLAYER PAGE */
.player-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}
.player-stage-container {
  max-width: 1040px;
  margin: 0 auto 1.5rem;
  width: 100%;
}
.player-wrapper {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: min(72vh, 585px);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-glass);
}
.player-wrapper:fullscreen,
.player-wrapper:-webkit-full-screen,
.player-wrapper.is-fullscreen {
  max-width: 100vw !important;
  max-height: 100vh !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
}
#cinemaPlayerWrapper.is-pseudo-fullscreen,
.player-wrapper.is-pseudo-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 2147483647 !important;
  background: #000 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#cinemaPlayerWrapper.is-pseudo-fullscreen iframe,
#cinemaPlayerWrapper.is-pseudo-fullscreen video,
.player-wrapper.is-pseudo-fullscreen iframe,
.player-wrapper.is-pseudo-fullscreen video {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
}
#universalTrailerBox.is-pseudo-fullscreen,
#trailerVideoWrapper.is-pseudo-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 2147483647 !important;
  background: #000 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#trailerVideoWrapper.is-pseudo-fullscreen iframe,
#trailerVideoWrapper.is-pseudo-fullscreen video {
  width: 100vw !important;
  height: 100vh !important;
}
.stream-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* SERVER SELECTOR CONTROLS */
.server-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-surface);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  border: 1px solid var(--border-glass);
}
.server-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.server-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 6px;
}
.btn-server {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-server:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-server.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

/* TORRENT DOWNLOAD / EXTERNAL STREAM SHELF */
.torrent-shelf {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 1.5rem;
}
.torrent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.torrent-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.torrent-item-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.torrent-item-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
  transform: translateY(-2px);
}
.torrent-seeds {
  color: #10b981;
  font-weight: 700;
}

/* FOOTER */
.site-footer {
  background: #090d16;
  border-top: 1px solid var(--border-glass);
  padding: 3.5rem 2rem 2.5rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li {
  margin: 0;
  padding: 0;
}
.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: inline-block;
}
.footer-col a:hover {
  color: #ffffff;
  transform: translateX(4px);
}
.footer-disclaimer {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.8rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.7;
}

/* MOBILE BOTTOM NAVIGATION */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  gap: 3px;
}
.mobile-nav-item.active {
  color: var(--accent-red);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  body { padding-bottom: 60px; }
  .mobile-bottom-nav { display: flex; }
  .hero-billboard { padding: 2rem 1.5rem; min-height: 55vh; }
  .hero-title { font-size: 1.8rem; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
  .footer-container { grid-template-columns: 1fr; }
}

/* BONGO BD STYLE DROPDOWNS */

/* PREMIER BADGE */
.badge-premier {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* CONTINUE WATCHING CARD */
.continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.continue-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.continue-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}
.continue-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.continue-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.continue-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
}
.continue-progress-fill {
  height: 100%;
  background: var(--accent-red);
}

/* NETWORK SPEED / LATENCY BADGE */
.network-speed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* PREMIER LOCKED SCREEN */
.premier-locked-screen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(35, 15, 20, 0.96) 0%, rgba(5, 7, 12, 0.98) 100%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
}

/* USER DROPDOWN ITEMS */
.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

/* ==========================================================================
   AD UNITS & MONETIZATION STYLING (For Guest & Free Users)
   ========================================================================== */
.ad-container-slot {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.78) 0%, rgba(30, 41, 59, 0.45) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 1.5rem auto;
  max-width: 970px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ad-container-slot:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ad-container-slot:empty {
  display: none !important;
}

/* Modern Slot Header Bar */
.ad-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ad-badge-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.48);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
}
.ad-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: adDotPulse 2s infinite ease-in-out;
}
@keyframes adDotPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Remove Ads with VIP Pill CTA */
.ad-vip-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ad-vip-cta:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

/* Content Container */
.ad-content-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}
.ad-image-wrapper {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.ad-img-responsive {
  width: auto;
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}
.ad-img-responsive:hover {
  transform: scale(1.01);
}

/* Custom Ad Slot Sizing */
.ad-slot-sidebar {
  max-width: 320px;
  margin: 1rem auto;
}
.ad-slot-player_bottom {
  max-width: 860px;
  margin: 1.25rem auto;
}
.ad-slot-footer_banner {
  max-width: 970px;
  margin: 2rem auto 1rem;
}

/* Video Pre-roll & Mid-roll Modern In-Player Overlays */
.preroll-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.96) 0%, rgba(3, 7, 18, 0.99) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 24px;
  overflow: hidden;
  text-align: center;
  transition: opacity 0.35s ease;
}

.preroll-header-hud {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 60;
}

.preroll-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #c084fc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.preroll-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 8px #c084fc;
  display: inline-block;
  animation: csDotPulse 1.2s infinite;
}

@keyframes csDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.preroll-header-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.preroll-vip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}
.preroll-vip-link:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #fbbf24;
  color: #fff;
  transform: translateY(-1px);
}

.preroll-content-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 1rem auto;
}

.preroll-fallback-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.btn-skip-preroll {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}
.btn-skip-preroll:not(:disabled) {
  background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
  border-color: #e50914;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.65);
  animation: skipPulse 1.8s infinite;
  cursor: pointer;
}
.btn-skip-preroll:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mid-roll Break Countdown Warning Pill */
.midroll-warning-pill {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 45;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(236, 72, 153, 0.6);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  animation: slideInDown 0.3s ease;
}
.pill-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 10px #ec4899;
  animation: csDotPulse 0.9s infinite;
}
.warning-pill-vip {
  color: #fbbf24;
  text-decoration: underline;
  font-weight: 800;
  margin-left: 4px;
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes skipPulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

/* ==========================================================================
   RIGHT SIDEBAR SKYSCRAPER AD (160x600 / 300x600 Vertical Banner)
   ========================================================================== */
.ad-sidebar-skyscraper-right {
  position: fixed;
  top: 90px;
  right: 15px;
  width: 175px;
  max-width: 320px;
  max-height: calc(100vh - 120px);
  z-index: 40;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.72) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.ad-skyscraper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}
.ad-skyscraper-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}
.ad-skyscraper-close:hover {
  background: rgba(239, 68, 68, 0.8);
  color: #fff;
  border-color: #ef4444;
}
.ad-skyscraper-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  min-height: 200px;
}
.ad-skyscraper-link {
  display: block;
  width: 100%;
}
.ad-skyscraper-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.2s ease;
}
.ad-skyscraper-img:hover {
  transform: scale(1.02);
}
.ad-skyscraper-footer {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.ad-skyscraper-footer .ad-vip-cta {
  font-size: 0.68rem;
  padding: 3px 8px;
  width: 100%;
  justify-content: center;
}
/* Hide on tablet and mobile to preserve full content width */
@media screen and (max-width: 1280px) {
  .ad-sidebar-skyscraper-right {
    display: none !important;
  }
}

/* ==========================================================================
   PAGE POPUP INTERSTITIAL AD MODAL (with 5-second Skip Button)
   ========================================================================== */
.page-interstitial-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-interstitial-backdrop.fade-in {
  opacity: 1;
}
.page-interstitial-backdrop.fade-out {
  opacity: 0;
}
.page-interstitial-dialog {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 29, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 9, 20, 0.15);
  width: 100%;
  max-width: 680px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: interstitialSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes interstitialSlideUp {
  from { transform: translateY(24px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.page-interstitial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}
.page-interstitial-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-skip-interstitial {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: not-allowed;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-skip-interstitial.can-skip {
  background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
  border-color: #e50914;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.65);
  animation: skipPulse 1.8s infinite;
}
.btn-skip-interstitial.can-skip:hover {
  transform: scale(1.03);
  box-shadow: 0 0 24px rgba(229, 9, 20, 0.8);
}
.page-interstitial-body {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  max-height: 75vh;
  overflow-y: auto;
}
.page-interstitial-img-wrapper {
  display: block;
  max-width: 100%;
}
.page-interstitial-img {
  max-width: 100%;
  max-height: 450px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}



/* Fullscreen Video Player Mode */
#cinemaPlayerWrapper:fullscreen,
#cinemaPlayerWrapper:-webkit-full-screen,
#cinemaPlayerWrapper:-moz-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  background: #000 !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT ENGINE (Mobile, Tablet, Laptop, Smart TV)
   ========================================================================== */

/* Navbar responsive breakpoint */
@media screen and (max-width: 900px) {
  .navbar nav {
    display: none !important; /* Hide desktop nav links; accessed via mobile bottom nav */
  }
}

/* Mobile Phones (Viewport < 768px) */
/* Mobile Phones (Viewport < 768px) */
@media screen and (max-width: 767px) {
  .navbar {
    height: 64px !important;
    padding: 0 0.75rem !important;
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .nav-left {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  .site-header-logo {
    height: 38px !important;
    max-height: 40px !important;
    max-width: 130px !important;
  }
  .nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
  }
  .nav-search-form {
    display: flex !important;
    position: relative !important;
    align-items: center !important;
    flex: 1 !important;
    max-width: 260px !important;
    min-width: 100px !important;
    margin: 0 4px !important;
  }
  .nav-search-input {
    width: 100% !important;
    padding: 6px 10px 6px 30px !important;
    font-size: 0.82rem !important;
    height: 36px !important;
    border-radius: 20px !important;
  }
  .nav-search-input:focus {
    width: 100% !important;
  }
  .search-icon-nav {
    left: 10px !important;
    font-size: 0.82rem !important;
  }
  .btn-download-app-header {
    display: none !important; /* Hide upper download app button on mobile to save space */
  }
  .btn-login-nav {
    padding: 6px 12px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .user-badge-nav {
    padding: 3px 8px 3px 4px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .user-avatar-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
  }
  .main-wrapper {
    padding-bottom: 75px !important; /* Room for bottom bar */
    margin-top: 64px !important;
  }

  /* Hero Section: Auto height & ample room so buttons are NEVER cut off */
  .hero-slider-container {
    height: auto !important;
    min-height: 480px !important;
    max-height: unset !important;
  }
  .hero-slide {
    height: auto !important;
    min-height: 480px !important;
  }
  .hero-slide > div:last-child {
    padding: 2rem 1.2rem 3.5rem !important;
    gap: 0.65rem !important;
  }
  .hero-title {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }
  .hero-meta {
    font-size: 0.82rem !important;
    gap: 6px !important;
  }
  .hero-overview {
    display: none !important; /* Hiding overview on mobile ensures Watch Now and Trailer buttons are 100% visible and above slide dots! */
  }
  .hero-actions, .hero-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 0.6rem !important;
    z-index: 25 !important;
  }
  .hero-actions .btn-primary,
  .hero-actions button {
    padding: 10px 18px !important;
    font-size: 0.86rem !important;
  }
  .hero-nav-arrow {
    display: none !important;
  }

  .movie-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .section-shelf,
  .section-container {
    padding: 1.5rem 1rem !important;
  }
  .player-page-container {
    padding: 1rem 0.8rem 4rem !important;
  }
  .player-wrapper {
    border-radius: 8px !important;
  }
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 2rem 1rem !important;
  }
}

/* Extra small mobile screens (<= 480px) */
@media screen and (max-width: 480px) {
  .site-header-logo {
    height: 34px !important;
    max-height: 36px !important;
    max-width: 100px !important;
  }
  .nav-search-form {
    display: flex !important; /* ALWAYS keep search visible on mobile/app */
    min-width: 80px !important;
    max-width: 180px !important;
    margin: 0 2px !important;
  }
  .nav-search-input {
    padding: 5px 8px 5px 24px !important;
    font-size: 0.76rem !important;
    height: 32px !important;
  }
  .search-icon-nav {
    left: 7px !important;
    font-size: 0.72rem !important;
  }
  .btn-login-nav {
    padding: 5px 8px !important;
    font-size: 0.76rem !important;
  }
}

/* Tablets & Small Laptops (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 14px !important;
  }
  .hero-slider-container {
    height: 480px !important;
  }
  .hero-title {
    font-size: 2.2rem !important;
  }
}

/* Desktops & Laptops (1025px - 1599px) */
@media screen and (min-width: 1025px) and (max-width: 1599px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)) !important;
    gap: 1.25rem !important;
  }
}

/* Smart TV & Ultra-Wide 4K Displays (>= 1600px) */
@media screen and (min-width: 1600px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
  }
  .hero-slider-container {
    height: 560px !important;
  }
  .tv-focusable:focus {
    outline: 3px solid #00f2fe !important;
    outline-offset: 3px !important;
    transform: scale(1.04) !important;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.7) !important;
  }
}

/* ==========================================================================
   FLOATING FULLSCREEN BUTTON & RESPONSIVE PLAYER STYLES (Requirement #3)
   Solves third-party iframe watermark & button obstruction on small screens
/* Fullscreen & Player Activity Detection Layers */
.player-interaction-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  background: transparent;
  pointer-events: none;
}
.player-interaction-overlay.active-catcher {
  pointer-events: auto !important;
  cursor: default !important;
}
.player-top-interaction-zone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 50;
  pointer-events: none !important;
  background: transparent;
}
#cinemaPlayerWrapper:fullscreen .player-top-interaction-zone,
#cinemaPlayerWrapper:-webkit-full-screen .player-top-interaction-zone,
#cinemaPlayerWrapper.is-fullscreen .player-top-interaction-zone {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 110px !important;
  z-index: 50 !important;
  pointer-events: none !important;
}

/* Clean Cloud Embeds - Crops out external pop-out and browser escape headers */
.stream-iframe.is-gdrive-embed {
  top: -56px !important;
  bottom: auto !important;
  height: calc(100% + 56px) !important;
}
.stream-iframe.is-onedrive-embed {
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.player-top-click-shield {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 12;
  display: none;
  background: transparent;
  pointer-events: auto;
}
.player-wrapper.has-cloud-embed .player-top-click-shield {
  display: block;
}

.floating-fullscreen-btn {
  position: absolute;
  top: 50%;
  left: 14px;
  right: auto !important;
  z-index: 999999999 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, visibility 0.3s ease;
  user-select: none;
  pointer-events: auto !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}
.floating-fullscreen-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}
.floating-fullscreen-btn:focus,
.floating-fullscreen-btn:focus-visible,
.floating-fullscreen-btn:active {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1);
}
.floating-fullscreen-btn.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-50%) translateX(-12px) scale(0.92) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* In Fullscreen Mode: Floating button becomes Exit Fullscreen on Left Side Middle with ultra-high z-index */
#cinemaPlayerWrapper:fullscreen .floating-fullscreen-btn,
#cinemaPlayerWrapper:-webkit-full-screen .floating-fullscreen-btn,
#cinemaPlayerWrapper.is-fullscreen .floating-fullscreen-btn,
.floating-fullscreen-btn.in-fullscreen {
  position: fixed !important;
  top: 50% !important;
  left: 20px !important;
  right: auto !important;
  transform: translateY(-50%) scale(1) !important;
  z-index: 99999999 !important;
  padding: 10px 22px !important;
  font-size: 0.95rem !important;
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.85) !important;
}
#cinemaPlayerWrapper:fullscreen .floating-fullscreen-btn:hover,
#cinemaPlayerWrapper:-webkit-full-screen .floating-fullscreen-btn:hover,
#cinemaPlayerWrapper.is-fullscreen .floating-fullscreen-btn:hover,
.floating-fullscreen-btn.in-fullscreen:hover {
  transform: translateY(-50%) scale(1.06) !important;
}
#cinemaPlayerWrapper:fullscreen .floating-fullscreen-btn.is-hidden,
#cinemaPlayerWrapper:-webkit-full-screen .floating-fullscreen-btn.is-hidden,
#cinemaPlayerWrapper.is-fullscreen .floating-fullscreen-btn.is-hidden,
.floating-fullscreen-btn.in-fullscreen.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-50%) translateX(-12px) scale(0.92) !important;
}

/* =========================================================================
   CURSOR AUTO-HIDE AFTER 5 SECONDS (Issue #1: Fullscreen & Player Cursor Invisibility)
   ========================================================================= */
.hide-cursor,
.hide-cursor *,
#cinemaPlayerWrapper.hide-cursor,
#cinemaPlayerWrapper.hide-cursor *,
#cinemaPlayerWrapper.hide-cursor iframe,
#cinemaPlayerWrapper.hide-cursor video,
#cinemaPlayerWrapper.hide-cursor .player-interaction-overlay,
#cinemaPlayerWrapper.hide-cursor .player-interaction-overlay.active-catcher,
#cinemaPlayerWrapper.hide-cursor .player-top-interaction-zone,
body.player-hide-cursor,
body.player-hide-cursor * {
  cursor: none !important;
}

#cinemaPlayerWrapper.hide-cursor #universalControlsBar,
#cinemaPlayerWrapper.hide-cursor .cinema-player-controls {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

#cinemaPlayerWrapper.hide-cursor .floating-fullscreen-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) translateX(-15px) scale(0.9) !important;
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

@media (max-width: 768px) {
  .floating-fullscreen-btn {
    top: 50%;
    left: 8px;
    right: auto !important;
    transform: translateY(-50%);
    padding: 6px 14px;
    font-size: 0.78rem;
  }
  #cinemaPlayerWrapper:fullscreen .floating-fullscreen-btn,
  #cinemaPlayerWrapper:-webkit-full-screen .floating-fullscreen-btn,
  #cinemaPlayerWrapper.is-fullscreen .floating-fullscreen-btn,
  .floating-fullscreen-btn.in-fullscreen {
    top: 50% !important;
    left: 12px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
  }
}

.btn-server-bar-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.5);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-server-bar-fullscreen:hover {
  background: var(--accent-red);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.5);
}

/* FULLSCREEN PLAYER ADAPTATION */
#cinemaPlayerWrapper:fullscreen,
#cinemaPlayerWrapper:-webkit-full-screen,
#cinemaPlayerWrapper:-moz-full-screen,
#cinemaPlayerWrapper:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  border: none !important;
  background: #000 !important;
  z-index: 999999 !important;
}
#cinemaPlayerWrapper:fullscreen iframe,
#cinemaPlayerWrapper:-webkit-full-screen iframe,
#cinemaPlayerWrapper:-moz-full-screen iframe,
#cinemaPlayerWrapper:-ms-fullscreen iframe {
  width: 100vw !important;
  height: 100vh !important;
}

/* RESPONSIVE MOVIE DETAILS GRID */
.movie-details-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}
@media (max-width: 768px) {
  .movie-details-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 1.25rem !important;
  }
}

/* ==========================================================================
   GUEST USER IN-PLAYER LOGIN GATE & MOBILE RESPONSIVENESS
   ========================================================================== */
.player-wrapper.has-guest-gate {
  min-height: 420px;
}
.player-wrapper.has-guest-gate .floating-fullscreen-btn {
  display: none !important;
}

.guest-login-gate {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.guest-login-gate::-webkit-scrollbar {
  width: 4px;
}
.guest-login-gate::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.guest-login-card {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
  padding: 1.6rem 1.4rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  text-align: center;
  box-sizing: border-box;
  margin: auto;
}

.guest-gate-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e50914, #b91c1c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 0.75rem;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.6);
}

.guest-gate-badge {
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.guest-gate-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.guest-gate-desc {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0 0 1.2rem;
}

.guest-gate-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-gate-primary {
  background: #e50914;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.45);
  transition: transform 0.2s, background 0.2s;
}
.btn-gate-primary:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-gate-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s;
}
.btn-gate-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.guest-gate-perks {
  margin-top: 1rem;
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Tablet & Mobile Breakpoints for Guest Gate */
@media screen and (max-width: 768px) {
  .player-wrapper.has-guest-gate {
    aspect-ratio: auto !important;
    min-height: clamp(310px, 68vw, 340px) !important;
  }
  .player-wrapper.has-guest-gate .floating-fullscreen-btn {
    display: none !important;
  }
  .guest-login-gate {
    padding: 0.6rem 0.5rem !important;
  }
  .guest-login-card {
    padding: 0.85rem 0.8rem !important;
    border-radius: 12px !important;
    max-width: 96% !important;
  }
  .guest-gate-icon {
    display: none !important; /* Hide icon on mobile screens to save vertical space */
  }
  .guest-gate-badge {
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    margin-bottom: 5px !important;
  }
  .guest-gate-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.2 !important;
  }
  .guest-gate-desc {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.75rem !important;
  }
  .guest-gate-actions {
    gap: 6px !important;
  }
  .btn-gate-primary,
  .btn-gate-secondary {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    flex: 1 1 120px !important;
    min-width: 120px !important;
  }
  .guest-gate-perks {
    margin-top: 0.5rem !important;
    font-size: 0.68rem !important;
    gap: 8px !important;
  }
}

@media screen and (max-width: 480px) {
  .player-wrapper.has-guest-gate {
    min-height: 290px !important;
  }
  .guest-login-card {
    padding: 0.75rem 0.65rem !important;
  }
  .guest-gate-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.2rem !important;
  }
  .guest-gate-desc {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.6rem !important;
  }
  .btn-gate-primary,
  .btn-gate-secondary {
    padding: 7px 10px !important;
    font-size: 0.78rem !important;
    flex: 1 1 110px !important;
    min-width: 100px !important;
    border-radius: 6px !important;
  }
  .guest-gate-perks {
    display: none !important; /* Hide secondary perks on extra small screens for clean focus */
  }
}

/* ==========================================================================
   Modern Cinema Trailer Watch Popup Modal (Requirement #5)
   ========================================================================== */
@keyframes trailerPulse {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 4px #ef4444; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 12px #ef4444; }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 4px #ef4444; }
}

.trailer-modal-overlay {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.trailer-close-btn:focus-visible,
.trailer-close-btn:focus {
  outline: 2px solid var(--accent-red) !important;
  outline-offset: 2px;
}

#btnStreamFullFromTrailer:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.6) !important;
}

@media (max-width: 640px) {
  #universalTrailerBox {
    border-radius: 14px !important;
    margin: 0 6px !important;
  }
  #trailerModalTitle {
    font-size: 0.95rem !important;
    max-width: 200px !important;
  }
}

/* ==========================================================================
   Responsive Stream Server Grid
   - Browser (Desktop/Laptop) & TV App: 4 Rows x 2 Columns (repeat(2, 1fr))
   - Small Screens (Mobile & Mobile App): 8 Rows x 1 Column (1fr)
   ========================================================================== */
.server-grid-container,
#verifiedServerButtons {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}

@media screen and (max-width: 768px) {
  .server-grid-container,
  #verifiedServerButtons {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .server-grid-container .btn-server,
  #verifiedServerButtons .btn-server {
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
  }
}

body.in-cinebaaj-app:not(.tv-mode) .server-grid-container,
body.in-cinebaaj-app:not(.tv-mode) #verifiedServerButtons {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

body.tv-mode .server-grid-container,
body.tv-mode #verifiedServerButtons {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

/* ==========================================================================
   MODERN FULL CATALOG PAGE SYSTEM (Movies & Series)
   ========================================================================== */
.catalog-page-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 5rem;
  box-sizing: border-box;
}

.catalog-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.catalog-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.35);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.catalog-badge-pill.series-badge {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.catalog-heading {
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.catalog-heading-tag {
  font-size: 1rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 14px;
  border-radius: 9999px;
}

.catalog-subtext {
  color: var(--text-muted, #94a3b8);
  font-size: 0.95rem;
  margin: 0;
}

.catalog-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 7px 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.catalog-search-wrap:focus-within {
  border-color: #00f2fe;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35), 0 8px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.catalog-search-icon {
  font-size: 1.15rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.catalog-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  width: 100%;
}

.catalog-search-input::placeholder {
  color: #64748b;
}

.catalog-search-clear {
  color: #ef4444;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 3px 8px;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.catalog-search-clear:hover {
  background: rgba(239, 68, 68, 0.15);
}

.catalog-search-btn {
  background: linear-gradient(135deg, #e50914 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}
.catalog-search-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.55);
}
.series-search-btn {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35) !important;
}
.series-search-btn:hover {
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.55) !important;
}

/* Quick Language / Category Chips Bar */
.catalog-chips-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.catalog-chips-bar::-webkit-scrollbar {
  display: none;
}

.catalog-chip {
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.catalog-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.catalog-chip.active {
  background: linear-gradient(135deg, #e50914 0%, #b91c1c 100%);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
}
.catalog-chip.series-active {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: #c084fc;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.45);
}

/* Multi-Facet Filter Card */
.catalog-filter-card {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 1.35rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.catalog-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  align-items: flex-end;
}

.catalog-filter-item {
  display: flex;
  flex-direction: column;
}

.catalog-filter-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.catalog-filter-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.catalog-filter-select:hover,
.catalog-filter-select:focus {
  border-color: #00f2fe;
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.25);
}

.catalog-filter-select option {
  background: #0f172a;
  color: #ffffff;
  padding: 8px;
}

.catalog-filter-reset {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #94a3b8);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
}
.catalog-filter-reset:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Movie & Series Cards Grid */
.catalog-movie-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 1.4rem !important;
}

/* Modern Sliding Pagination */
.catalog-pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 3.8rem;
}

.catalog-pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 9px 15px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  transition: all 0.2s ease;
}
.pagination-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.pagination-num {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pagination-num:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}
.pagination-num.active {
  background: linear-gradient(135deg, #e50914 0%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 900;
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.55);
}
.series-container .pagination-num.active {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border-color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.55);
}

.pagination-dots {
  color: #64748b;
  font-weight: 800;
  padding: 0 5px;
}

.catalog-jump-form {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  padding: 7px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: #94a3b8;
}

.catalog-jump-input {
  width: 65px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-align: center;
  padding: 5px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  outline: none;
}
.catalog-jump-input:focus {
  border-color: #00f2fe;
}

.catalog-jump-btn {
  background: var(--accent-red, #e50914);
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.series-container .catalog-jump-btn {
  background: #a855f7;
}
.catalog-jump-btn:hover {
  transform: scale(1.05);
}




