/**
 * WatchME — Authentic Netflix Design System
 * Clean dark canvas (#141414), Netflix red (#E50914), crisp poster rails,
 * SVG-outlined Top 10 cards, responsive Live TV Zone, and Cinema Theater UI.
 */

:root {
  --nf-bg: #080b14;
  --nf-surface: #101524;
  --nf-elevated: #182036;
  --nf-hover: #222c49;
  --nf-red: #f22d4a;
  --nf-red-hover: #ff425e;
  --nf-red-glow: rgba(242, 45, 74, 0.48);
  --nf-cobalt: #2563eb;
  --nf-cobalt-bright: #3b82f6;
  --nf-blue-glow: rgba(37, 99, 235, 0.54);
  --nf-violet: #6e56cf;
  --nf-violet-bright: #7c5cff;
  --nf-green: #32d9a0;
  --nf-gold: #f5c518;
  --nf-text: #f4f6fb;
  --nf-text-secondary: #a7b2cc;
  --nf-text-muted: #7683a3;
  --nf-border: rgba(255, 255, 255, 0.12);
  --nf-border-subtle: rgba(255, 255, 255, 0.07);
  --nf-radius-sm: 6px;
  --nf-radius-md: 10px;
  --nf-radius-lg: 14px;
  --nf-font-display: 'Bebas Neue', 'Impact', sans-serif;
  --nf-font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nf-side-pad: clamp(16px, 3.6vw, 52px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--nf-bg);
}

body.nf-theme {
  font-family: var(--nf-font-body);
  background-color: var(--nf-bg);
  color: var(--nf-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
}

/* Focus visible for Smart TV / keyboard navigation */
.tv-focusable:focus-visible {
  outline: 2.5px solid #ffffff !important;
  outline-offset: 3px;
  z-index: 30;
}

/* ==================== NETFLIX NAVBAR ==================== */
.nf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 var(--nf-side-pad);
  background: linear-gradient(to bottom, rgba(8, 11, 20, 0.9) 0%, rgba(8, 11, 20, 0.42) 62%, rgba(8, 11, 20, 0) 100%);
  z-index: 150;
  display: flex;
  align-items: center;
  transition: background-color 0.28s ease, box-shadow 0.28s ease;
}

.nf-header.scrolled,
.nf-header.solid-nav {
  background: rgba(8, 11, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.nf-header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nf-header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nf-mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--nf-radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--nf-text);
}

.nf-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--nf-font-display);
  font-size: 32px;
  letter-spacing: 2px;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
  user-select: none;
  flex-shrink: 0;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.nf-brand:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.35));
}
.nf-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.25);
}
.nf-brand-word {
  display: inline-flex;
  align-items: baseline;
  color: #ffffff;
}
.nf-brand-word em {
  font-style: normal;
  color: var(--nf-red);
}

.nf-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nf-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #e5e5e5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nf-nav-link:hover {
  color: #b3b3b3;
}

.nf-nav-link.active {
  color: #ffffff;
  font-weight: 700;
}

.nf-nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2.5px;
  background: var(--nf-red);
  border-radius: 2px;
}

/* Movies Category Dropdown */
.nf-nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nf-nav-caret {
  font-size: 10px;
  opacity: 0.72;
  transition: transform 0.2s ease;
}

.nf-nav-dropdown-wrap:hover .nf-nav-caret {
  transform: rotate(180deg);
}

.nf-movies-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  min-width: 206px;
  padding: 8px;
  background: rgba(16, 21, 36, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.72);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 180;
}

.nf-movies-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nf-movies-dropdown.open {
  display: flex;
}

.nf-movies-drop-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nf-text-secondary);
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nf-movies-drop-item i {
  width: 16px;
  text-align: center;
  color: var(--nf-violet-bright);
}

.nf-movies-drop-item:hover,
.nf-movies-drop-item.active {
  background: var(--nf-elevated);
  color: #ffffff;
}

.nf-mobile-region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 14px 8px;
}

.nf-mobile-chip {
  background: var(--nf-elevated);
  border: 1px solid var(--nf-border);
  color: var(--nf-text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.nf-mobile-chip.active,
.nf-mobile-chip:hover {
  background: var(--nf-violet-bright);
  border-color: var(--nf-violet-bright);
  color: #ffffff;
}

.nav-live-dot,
.live-dot-inline {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nf-red);
  display: inline-block;
  box-shadow: 0 0 8px var(--nf-red);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.nav-badge {
  background: var(--nf-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

/* Expanding Search Box */
.nf-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nf-search-box {
  display: flex;
  align-items: center;
  height: 36px;
  width: 36px;
  overflow: hidden;
  border-radius: var(--nf-radius-sm);
  border: 1px solid transparent;
  background: transparent;
  transition: width 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.nf-search-box.open {
  width: min(290px, 52vw);
  background: rgba(15, 15, 15, 0.92);
  border-color: rgba(255, 255, 255, 0.7);
}

.nf-search-icon-btn {
  flex: 0 0 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}

.nf-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nf-search-box.open .nf-search-input {
  opacity: 1;
  padding-right: 4px;
}

.nf-search-clear {
  display: none;
  flex: 0 0 28px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--nf-text-secondary);
  font-size: 13px;
}

.nf-search-box.open.has-query .nf-search-clear {
  display: flex;
}

/* Mobile Drawer */
.nf-mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nf-border);
  padding: 12px var(--nf-side-pad) 16px;
  flex-direction: column;
  gap: 6px;
  z-index: 145;
}

.nf-mobile-drawer.open {
  display: flex;
}

.nf-mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--nf-radius-md);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--nf-text-secondary);
  text-align: left;
}

.nf-mobile-link.active,
.nf-mobile-link:hover {
  background: var(--nf-elevated);
  color: #fff;
}

@media (max-width: 900px) {
  .nf-mobile-menu-btn {
    display: inline-flex;
  }
  .nf-nav {
    display: none;
  }
  .nf-header-left {
    gap: 12px;
  }
  .nf-brand {
    font-size: 28px;
  }
}

/* ==================== MAIN PORTAL ==================== */
.nf-main {
  flex: 1;
  width: 100%;
}

/* ==================== BILLBOARD HERO (MIDNIGHT CINEMA WIDESCREEN) ==================== */
.nf-hero {
  position: relative;
  width: 100%;
  min-height: 540px;
  height: 82vh;
  max-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--nf-bg);
}

.nf-hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.nf-hero-ambient {
  position: absolute;
  inset: -32px;
  width: calc(100% + 64px);
  height: calc(100% + 64px);
  object-fit: cover;
  object-position: center 22%;
  filter: blur(22px) saturate(1.15) brightness(0.46);
  transform: scale(1.05);
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.nf-hero.has-widescreen .nf-hero-ambient {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  filter: none;
  transform: none;
}

.nf-hero.has-widescreen .nf-hero-poster-col {
  display: none;
}

.nf-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--nf-bg) 3%, rgba(8, 11, 20, 0.72) 26%, rgba(8, 11, 20, 0.14) 68%, rgba(8, 11, 20, 0.45) 100%),
    linear-gradient(to right, rgba(8, 11, 20, 0.94) 8%, rgba(8, 11, 20, 0.66) 44%, rgba(8, 11, 20, 0.08) 82%);
  z-index: 2;
}

.nf-hero-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 84px var(--nf-side-pad) 64px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.nf-hero-info {
  max-width: 580px;
  flex: 1;
}

.nf-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(244, 246, 251, 0.85);
  margin-bottom: 12px;
}

.nf-w-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--nf-red);
  color: #fff;
  font-family: var(--nf-font-display);
  font-size: 15px;
  line-height: 1;
  border-radius: 4px;
  letter-spacing: 0;
}

.nf-hero-title-logo {
  max-width: min(390px, 76vw);
  max-height: 128px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  margin-bottom: 16px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.75));
}

.nf-hero-title {
  font-family: var(--nf-font-heading);
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
}

.nf-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 14px;
  color: rgba(244, 246, 251, 0.9);
}

.nf-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--nf-gold);
  font-weight: 800;
  font-size: 14px;
}

.nf-meta-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.nf-match-score {
  color: var(--nf-green);
  font-weight: 700;
}

.nf-meta-year {
  color: #f4f6fb;
}

.nf-maturity-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f4f6fb;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.nf-meta-genre {
  color: #d6deef;
}

.nf-hero-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(244, 246, 251, 0.84);
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.nf-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nf-btn-play {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(115deg, #ff1f44 0%, #dc0e35 34%, #6a1bb8 68%, #1d5cff 100%);
  background-size: 240% 100%;
  background-position: 0% 50%;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 26px;
  border-radius: 10px;
  border: 1px solid rgba(255, 130, 150, 0.34);
  box-shadow:
    -6px 8px 22px -6px rgba(242, 45, 74, 0.56),
    6px 8px 22px -6px rgba(37, 99, 235, 0.28),
    0 8px 20px rgba(4, 7, 16, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    background-position 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.28s ease;
}

.nf-btn-play::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -75%;
  width: 55%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.34) 48%, rgba(147, 197, 253, 0.22) 60%, transparent 100%);
  transform: skewX(-22deg) translateX(0);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.nf-btn-play i {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.nf-btn-play:hover {
  background-position: 100% 50%;
  border-color: rgba(147, 197, 253, 0.58);
  transform: translateY(-2px) scale(1.022);
  box-shadow:
    -11px 9px 30px -2px rgba(242, 45, 74, 0.68),
    11px 9px 30px -2px rgba(37, 99, 235, 0.72),
    0 14px 32px rgba(4, 7, 16, 0.74),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.nf-btn-play:hover::after {
  opacity: 1;
  transform: skewX(-22deg) translateX(420%);
}

.nf-btn-play:hover i {
  transform: translateX(2px) scale(1.1);
}

.nf-btn-play:active {
  transform: translateY(0) scale(0.975);
}

.nf-btn-info {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(120deg, rgba(16, 22, 40, 0.84) 0%, rgba(22, 30, 54, 0.8) 46%, rgba(242, 45, 74, 0.26) 76%, rgba(37, 99, 235, 0.34) 100%);
  background-size: 240% 100%;
  background-position: 0% 50%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: #f4f7ff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(4, 7, 16, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background-position 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.nf-btn-info::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -75%;
  width: 52%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: skewX(-22deg) translateX(0);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.nf-btn-info:hover {
  background-position: 100% 50%;
  border-color: rgba(147, 197, 253, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    -9px 8px 26px -3px rgba(242, 45, 74, 0.42),
    9px 8px 26px -3px rgba(37, 99, 235, 0.48),
    0 12px 26px rgba(4, 7, 16, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.nf-btn-info:hover::after {
  opacity: 1;
  transform: skewX(-22deg) translateX(420%);
}

.nf-btn-info:active {
  transform: translateY(0) scale(0.98);
}

.nf-btn-circle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(16, 22, 40, 0.84) 0%, rgba(20, 27, 48, 0.8) 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(4, 7, 16, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    border-color 0.26s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.nf-btn-circle i {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nf-btn-circle:hover {
  border-color: rgba(147, 197, 253, 0.72);
  background: linear-gradient(135deg, rgba(242, 45, 74, 0.92) 0%, rgba(37, 99, 235, 0.92) 100%);
  transform: translateY(-2px) scale(1.08);
  box-shadow:
    -6px 6px 20px rgba(242, 45, 74, 0.56),
    6px 6px 20px rgba(37, 99, 235, 0.6),
    0 10px 22px rgba(4, 7, 16, 0.6);
}

.nf-btn-circle:hover:not(.active) i {
  transform: rotate(90deg) scale(1.08);
}

.nf-btn-circle.active {
  border-color: rgba(147, 197, 253, 0.64);
  background: linear-gradient(135deg, rgba(242, 45, 74, 0.86) 0%, rgba(37, 99, 235, 0.86) 100%);
  box-shadow:
    -5px 5px 16px rgba(242, 45, 74, 0.44),
    5px 5px 16px rgba(37, 99, 235, 0.46);
}

/* Crisp Featured Poster Fallback on Desktop */
.nf-hero-poster-col {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.nf-hero-poster-frame {
  width: clamp(190px, 19vw, 255px);
  aspect-ratio: 2 / 3;
  border-radius: var(--nf-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.8);
  background: var(--nf-surface);
}

.nf-hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centered Hero Pagination Dots & Subtle Arrows */
.nf-hero-controls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nf-hero-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 21, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nf-hero-arrow:hover {
  background: linear-gradient(135deg, #f22d4a 0%, #2563eb 100%);
  border-color: rgba(147, 197, 253, 0.65);
  color: #fff;
  box-shadow: -4px 4px 14px rgba(242, 45, 74, 0.48), 4px 4px 14px rgba(37, 99, 235, 0.52);
}

.nf-hero-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nf-hero-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nf-hero-dot.active {
  width: 24px;
  background: linear-gradient(90deg, #f22d4a 0%, #2563eb 100%);
  box-shadow: -3px 0 10px rgba(242, 45, 74, 0.6), 3px 0 10px rgba(37, 99, 235, 0.6);
}

@media (max-width: 820px) {
  .nf-hero {
    height: auto;
    min-height: 460px;
    padding-top: 24px;
  }
  .nf-hero-poster-col {
    display: none;
  }
  .nf-hero-controls {
    bottom: 18px;
  }
}

/* ==================== NETFLIX ROWS STACK ==================== */
.nf-rows-stack {
  position: relative;
  z-index: 8;
  margin-top: 8px;
  padding-bottom: 44px;
}

@media (max-width: 820px) {
  .nf-rows-stack {
    margin-top: 4px;
  }
}

.nf-row {
  margin-bottom: 30px;
  position: relative;
}

.nf-row-header {
  padding: 0 var(--nf-side-pad);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nf-row-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nf-row-title {
  font-family: var(--nf-font-heading);
  font-size: clamp(17.5px, 1.85vw, 22px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #f4f6fb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nf-count-pill {
  font-size: 11px;
  font-weight: 700;
  background: var(--nf-elevated);
  border: 1px solid var(--nf-border);
  color: var(--nf-text-secondary);
  padding: 2px 8px;
  border-radius: var(--nf-radius-sm);
}

.nf-explore-btn {
  font-size: 13px;
  font-weight: 600;
  color: #c8d2ec;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nf-explore-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nf-row-rail-wrap {
  position: relative;
}

.nf-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px var(--nf-side-pad) 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nf-rail::-webkit-scrollbar {
  display: none;
}

/* Hover Edge Scroll Paddles */
.nf-paddle {
  position: absolute;
  top: 14px;
  bottom: 18px;
  width: 44px;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.nf-paddle.prev { left: 0; border-radius: 0 4px 4px 0; }
.nf-paddle.next { right: 0; border-radius: 4px 0 0 4px; }

.nf-row-rail-wrap:hover .nf-paddle {
  opacity: 1;
}

.nf-paddle:hover {
  background: rgba(20, 20, 20, 0.92);
  color: var(--nf-red);
}

@media (hover: none) {
  .nf-paddle {
    display: none;
  }
}

/* ==================== MIDNIGHT CINEMA 2:3 POSTER CARDS ==================== */
.nf-card {
  flex: 0 0 clamp(144px, 13.4vw, 192px);
  width: clamp(144px, 13.4vw, 192px);
  min-width: 0;
  position: relative;
  border-radius: var(--nf-radius-md);
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.25, 0.8, 0.25, 1), z-index 0.2s;
}

.nf-card:hover {
  transform: translateY(-5px);
  z-index: 20;
}

.nf-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--nf-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nf-card:hover .nf-card-media,
.nf-top10-card:hover .nf-card-media {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.68);
}

.nf-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nf-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(8, 11, 20, 0.84);
  backdrop-filter: blur(6px);
  color: #f4f6fb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 2;
}

.nf-card-badge.nf-badge-right {
  top: auto;
  bottom: 8px;
  left: auto;
  right: 8px;
}

.nf-card-badge.badge-series {
  background: var(--nf-red);
  border-color: var(--nf-red);
}

.nf-new-upload-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--nf-violet-bright) 0%, #5b43d6 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.45px;
  padding: 4px 8px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.nf-crown-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd84d 0%, #f59e0b 100%);
  color: #141006;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
  z-index: 3;
}

/* Continue Watching Progress Bar */
.nf-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 4;
}

.nf-progress-fill {
  height: 100%;
  background: var(--nf-red);
}

.nf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 16, 16, 0.98) 8%, rgba(16, 16, 16, 0.45) 55%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  gap: 8px;
  z-index: 3;
}

.nf-card:hover .nf-card-overlay,
.nf-card:focus-within .nf-card-overlay {
  opacity: 1;
  pointer-events: auto;
}

.nf-card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nf-mini-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(24, 24, 24, 0.85);
  color: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.nf-mini-btn.play {
  background: #ffffff;
  color: #141414;
  border-color: #ffffff;
}

.nf-mini-btn:hover {
  transform: scale(1.12);
  border-color: rgba(147, 197, 253, 0.78);
  background: linear-gradient(135deg, #f22d4a 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: -4px 4px 14px rgba(242, 45, 74, 0.52), 4px 4px 14px rgba(37, 99, 235, 0.56);
}

.nf-mini-btn.active {
  background: var(--nf-red);
  border-color: var(--nf-red);
}

.nf-mini-btn.info {
  margin-left: auto;
}

.nf-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nf-card-sub {
  font-size: 11px;
  color: var(--nf-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nf-card-caption {
  margin-top: 9px;
  padding: 0 2px;
}

.nf-card-caption-title {
  font-family: var(--nf-font-heading);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--nf-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nf-card-caption-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--nf-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== TRENDING NOW (#1–#10 RANKED VERTICAL POSTERS) ==================== */
.nf-rail-top10 {
  gap: 18px;
}

.nf-top10-card {
  flex: 0 0 clamp(150px, 14.2vw, 198px);
  width: clamp(150px, 14.2vw, 198px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform 0.24s ease;
}

.nf-top10-card:hover {
  transform: translateY(-5px);
  z-index: 20;
}

.nf-top10-poster-wrap {
  position: relative;
  width: 100%;
  padding-left: 12px;
}

.nf-top10-card .nf-card-media {
  width: 100%;
  z-index: 2;
}

.trending-rank-num {
  position: absolute;
  left: -2px;
  bottom: -8px;
  z-index: 4;
  font-family: var(--nf-font-heading);
  font-size: clamp(56px, 5vw, 76px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: #080b14;
  -webkit-text-stroke: 2.6px rgba(255, 255, 255, 0.92);
  paint-order: stroke fill;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  user-select: none;
}

.nf-top10-card:hover .trending-rank-num {
  -webkit-text-stroke-color: var(--nf-violet-bright);
}

.nf-top10-card .nf-card-caption {
  padding-left: 14px;
}

.nf-top10-card:hover .nf-card-overlay,
.nf-top10-card:focus-within .nf-card-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ==================== NETFLIX 16:9 LANDSCAPE HOME RAIL CARDS ==================== */
.nf-landscape-card {
  flex: 0 0 clamp(212px, 19vw, 268px);
  position: relative;
  border-radius: var(--nf-radius-sm);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), z-index 0.2s;
}

.nf-landscape-card:hover {
  transform: scale(1.06);
  z-index: 20;
}

.nf-landscape-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--nf-radius-sm);
  overflow: hidden;
  background: var(--nf-surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.nf-landscape-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.nf-landscape-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 8%, rgba(0, 0, 0, 0.22) 55%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.nf-landscape-w {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--nf-font-display);
  font-size: 16px;
  line-height: 1;
  color: var(--nf-red);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  z-index: 2;
}

.nf-landscape-label {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  pointer-events: none;
}

.nf-landscape-title {
  font-family: var(--nf-font-display);
  font-size: 20px;
  letter-spacing: 0.7px;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nf-landscape-card:hover .nf-card-overlay,
.nf-landscape-card:focus-within .nf-card-overlay {
  opacity: 1;
  padding: 10px;
}

/* ==================== LIVE CHANNEL CARDS (HOME RAIL & WALL) ==================== */
.nf-channel-card {
  flex: 0 0 185px;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nf-channel-card:hover {
  transform: translateY(-4px);
  background: var(--nf-elevated);
  border-color: rgba(255, 255, 255, 0.28);
}

.nf-channel-card.active {
  background: rgba(229, 9, 20, 0.14);
  border-color: var(--nf-red);
  box-shadow: 0 0 0 1px var(--nf-red);
}

.nf-ch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nf-ch-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--nf-text-muted);
}

.nf-ch-live-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--nf-green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nf-ch-live-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nf-green);
}

.nf-ch-fav-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--nf-text-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nf-ch-fav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nf-ch-fav-btn.active {
  color: var(--nf-gold);
}

.nf-ch-logo-well {
  height: 62px;
  background: #0d0d0d;
  border-radius: var(--nf-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nf-ch-logo-well img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nf-ch-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nf-ch-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nf-ch-cat {
  font-size: 11.5px;
  color: var(--nf-text-secondary);
}

.nf-ch-playing-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--nf-red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  display: none;
}

.nf-channel-card.active .nf-ch-playing-pill {
  display: inline-block;
}

/* ==================== DEDICATED LIVE TV ZONE ==================== */
.live-zone {
  padding: 86px var(--nf-side-pad) 48px;
}

.live-zone-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 34px;
}

.live-zone-player-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.live-player-mount {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--nf-radius-lg);
  overflow: hidden;
  border: 1px solid var(--nf-border);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.7);
  position: relative;
}

/* Active Channel Info Strip below Live Player */
.live-now-bar {
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.live-now-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.live-now-logo-wrap {
  width: 54px;
  height: 38px;
  background: #000;
  border-radius: var(--nf-radius-sm);
  border: 1px solid var(--nf-border);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-now-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.live-now-info {
  min-width: 0;
}

.live-now-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-now-badge {
  background: var(--nf-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
}

.live-now-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--nf-text-muted);
}

.live-now-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.live-now-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--nf-text-secondary);
  margin-top: 2px;
}

.source-pill {
  background: rgba(70, 211, 105, 0.14);
  color: var(--nf-green);
  border: 1px solid rgba(70, 211, 105, 0.35);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.live-now-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nf-pill-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(120deg, rgba(24, 32, 54, 0.9) 0%, rgba(20, 27, 48, 0.92) 48%, rgba(242, 45, 74, 0.26) 76%, rgba(37, 99, 235, 0.34) 100%);
  background-size: 240% 100%;
  background-position: 0% 50%;
  border: 1px solid var(--nf-border);
  color: #e5eaf5;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition:
    background-position 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease,
    box-shadow 0.28s ease,
    transform 0.18s ease,
    color 0.18s ease;
}

.nf-pill-btn:hover {
  background-position: 100% 50%;
  border-color: rgba(147, 197, 253, 0.48);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow:
    -6px 6px 18px -2px rgba(242, 45, 74, 0.34),
    6px 6px 18px -2px rgba(37, 99, 235, 0.38),
    0 8px 18px rgba(4, 7, 16, 0.52);
}

.nf-pill-btn.active {
  border-color: var(--nf-gold);
  color: var(--nf-gold);
}

.nf-pill-red {
  background: linear-gradient(115deg, #ff1f44 0%, #dc0e35 36%, #6a1bb8 70%, #1d5cff 100%);
  background-size: 240% 100%;
  background-position: 0% 50%;
  border-color: rgba(255, 130, 150, 0.38);
  color: #ffffff;
  box-shadow: -4px 6px 16px -4px rgba(242, 45, 74, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.nf-pill-red:hover {
  background-position: 100% 50%;
  border-color: rgba(147, 197, 253, 0.62);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow:
    -8px 7px 22px -2px rgba(242, 45, 74, 0.62),
    8px 7px 22px -2px rgba(37, 99, 235, 0.66),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

/* EPG Sidebar Column */
.live-zone-epg-col {
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 580px;
}

.epg-header {
  padding: 14px;
  border-bottom: 1px solid var(--nf-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.epg-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.epg-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.epg-title i {
  color: var(--nf-red);
}

.epg-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.epg-fav-filter {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--nf-elevated);
  border: 1px solid var(--nf-border);
  color: var(--nf-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.epg-fav-filter.active {
  background: rgba(245, 197, 24, 0.16);
  border-color: var(--nf-gold);
  color: var(--nf-gold);
}

.epg-search-wrap {
  position: relative;
}

.epg-search-wrap i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--nf-text-muted);
}

.epg-search-input {
  width: 100%;
  background: #101010;
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-sm);
  padding: 8px 10px 8px 32px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
}

.epg-search-input:focus {
  border-color: var(--nf-red);
}

.guide-channel-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.guide-channel-list::-webkit-scrollbar {
  width: 6px;
}
.guide-channel-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.guide-channel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--nf-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.guide-channel-item:hover {
  background: var(--nf-elevated);
}

.guide-channel-item.active {
  background: rgba(229, 9, 20, 0.18);
  border-left-color: var(--nf-red);
}

.channel-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--nf-text-muted);
  min-width: 26px;
}

.channel-thumb-wrap {
  width: 42px;
  height: 28px;
  background: #000;
  border-radius: 3px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.channel-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.channel-name-txt {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-category-tag {
  font-size: 10.5px;
  color: var(--nf-text-secondary);
}

/* Equalizer Animation on Active Channel */
.eq-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.guide-channel-item.active .eq-bars {
  display: flex;
}

.eq-bars span {
  width: 2.5px;
  background: var(--nf-red);
  border-radius: 1px;
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}
.eq-bars span:nth-child(2) { animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { animation-delay: 0.4s; }

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Bottom Channel Wall */
.live-zone-wall {
  margin-top: 10px;
}

.live-wall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.live-wall-sub {
  font-size: 13px;
  color: var(--nf-text-secondary);
  margin-top: 2px;
}

.live-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.live-wall-grid .nf-channel-card {
  flex: initial;
  width: 100%;
}

@media (max-width: 1180px) {
  .live-zone-stage {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

@media (max-width: 900px) {
  .live-zone-stage {
    grid-template-columns: 1fr;
  }
  .live-zone-epg-col {
    max-height: 360px;
  }
}

@media (max-width: 560px) {
  .live-wall-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 10px;
  }
}

/* ==================== CATALOG VIEWS (MOVIES / TV SHOWS / MY LIST / SEARCH) ==================== */
.nf-catalog-view {
  padding: 96px var(--nf-side-pad) 56px;
  min-height: 75vh;
}

.nf-catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.nf-catalog-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
}

.nf-catalog-sub {
  font-size: 13.5px;
  color: var(--nf-text-secondary);
  margin-top: 4px;
}

.nf-select {
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--nf-radius-sm);
  outline: none;
  cursor: pointer;
}

.nf-region-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 6px;
  scrollbar-width: none;
}

.nf-region-tabs::-webkit-scrollbar {
  display: none;
}

.nf-region-tab {
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  color: var(--nf-text-secondary);
  font-family: var(--nf-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nf-region-tab:hover {
  background: var(--nf-elevated);
  color: #ffffff;
}

.nf-region-tab.active {
  background: linear-gradient(120deg, #f22d4a 0%, #2563eb 100%);
  border-color: rgba(147, 197, 253, 0.35);
  color: #ffffff;
  box-shadow: -5px 6px 18px rgba(242, 45, 74, 0.38), 5px 6px 18px rgba(37, 99, 235, 0.4);
}

.nf-category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.nf-category-pills::-webkit-scrollbar {
  display: none;
}

.nf-pill {
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  color: var(--nf-text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nf-pill:hover {
  background: var(--nf-elevated);
  color: #fff;
}

.nf-pill.active {
  background: #ffffff;
  color: #141414;
  border-color: #ffffff;
  font-weight: 700;
}

.nf-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 18px 14px;
  margin-top: 20px;
}

.nf-browse-grid .nf-card {
  flex: initial;
  width: 100%;
  min-width: 0;
}

.nf-sub-heading {
  margin-top: 26px;
  margin-bottom: 12px;
}

.nf-empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.nf-empty-state i {
  font-size: 40px;
  color: var(--nf-text-muted);
}

.nf-empty-state p {
  font-size: 14px;
  color: var(--nf-text-secondary);
  max-width: 420px;
  line-height: 1.5;
}

/* ==================== UNIFIED PLAYER & NETFLIX CINEMA THEATER ==================== */
body.theater-open {
  overflow: hidden !important;
  height: 100vh;
}

.theater-player-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 400;
  display: none;
}

.theater-player-overlay.active {
  display: flex;
}

.theater-player-host {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
}

.player-viewport-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.player-viewport-shell.is-theater.controls-idle {
  cursor: none;
}

#mainVideoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: object-fit 0.15s ease;
}

#mainVideoPlayer.aspect-cover {
  object-fit: cover;
}

/* Center Clickable Surface & Overlay Play/Ripple */
.player-click-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  cursor: pointer;
}

.player-viewport-shell.is-theater.controls-idle .player-click-layer {
  cursor: none;
}

/* Directional 10s Seek Ripple Arcs (Left -10s / Right +10s) */
.player-seek-ripple {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 16;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-seek-ripple.left {
  left: 0;
  background: radial-gradient(circle at 22% 50%, rgba(229, 9, 20, 0.34) 0%, rgba(255, 255, 255, 0.12) 48%, transparent 74%);
  border-top-right-radius: 50% 45%;
  border-bottom-right-radius: 50% 45%;
}

.player-seek-ripple.right {
  right: 0;
  background: radial-gradient(circle at 78% 50%, rgba(229, 9, 20, 0.34) 0%, rgba(255, 255, 255, 0.12) 48%, transparent 74%);
  border-top-left-radius: 50% 45%;
  border-bottom-left-radius: 50% 45%;
}

.player-seek-ripple.active {
  opacity: 1;
  animation: seekZonePop 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.seek-ripple-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 78px;
  min-height: 78px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  color: #ffffff;
}

.seek-ripple-chevrons {
  font-size: 20px;
  line-height: 1;
  color: #ffffff;
}

.player-seek-ripple.left.active .seek-ripple-chevrons {
  animation: seekNudgeLeft 0.42s ease;
}

.player-seek-ripple.right.active .seek-ripple-chevrons {
  animation: seekNudgeRight 0.42s ease;
}

.seek-ripple-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
}

@keyframes seekZonePop {
  0% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes seekNudgeLeft {
  0% { transform: translateX(6px); opacity: 0.5; }
  50% { transform: translateX(-5px); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes seekNudgeRight {
  0% { transform: translateX(-6px); opacity: 0.5; }
  50% { transform: translateX(5px); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Center Cinema Transport Cluster (-10s • Play/Pause • +10s) */
.player-center-cluster {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 6vw, 48px);
  z-index: 18;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.player-viewport-shell.controls-idle .player-center-cluster {
  opacity: 0;
  pointer-events: none;
}

.player-center-play,
.player-center-jump {
  pointer-events: auto;
  touch-action: manipulation;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.72);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.player-center-play {
  width: 72px;
  height: 72px;
  font-size: 26px;
}

.player-center-play i.fa-play {
  margin-left: 3px;
}

.player-center-jump {
  position: relative;
  width: 54px;
  height: 54px;
  border-color: rgba(255, 255, 255, 0.52);
  font-size: 20px;
  gap: 2px;
}

.player-center-jump span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}

.player-center-play:hover,
.player-center-jump:hover {
  transform: scale(1.08);
  background: rgba(229, 9, 20, 0.9);
  border-color: #ffffff;
}

.player-center-play:active,
.player-center-jump:active {
  transform: scale(0.94);
}

.nf-jump-btn.seek-pulse,
.player-center-jump.seek-pulse {
  animation: seekBtnPulse 0.32s ease;
}

@keyframes seekBtnPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); color: #ffffff; background: rgba(229, 9, 20, 0.35); }
  100% { transform: scale(1); }
}

.player-action-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(16, 16, 16, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 19;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.player-action-feedback.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Floating Top Cinema Header */
.player-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 26px 42px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.42) 55%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 25;
  transition: opacity 0.3s ease;
}

.player-viewport-shell.is-inline .player-top-bar {
  display: none !important;
}

.player-viewport-shell.controls-idle .player-top-bar {
  opacity: 0;
  pointer-events: none;
}

.player-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.nf-player-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 10px 6px 4px;
  border-radius: var(--nf-radius-sm);
  transition: transform 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.nf-player-back-btn:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.nf-player-back-btn i {
  font-size: 20px;
}

.player-top-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.player-top-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-top-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.player-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Inline Live Zone adjustments */
.player-viewport-shell.is-inline #backToBrowseBtn,
.player-viewport-shell.is-inline .theater-only-live,
.player-viewport-shell.is-inline .movie-playing-badge,
.player-viewport-shell.is-inline #ctrlSourceBtn,
.player-viewport-shell.is-inline #ctrlFavChannelBtn {
  display: none !important;
}

.player-viewport-shell.is-inline .player-controls-bar {
  flex-wrap: nowrap;
  gap: 6px;
}

.player-viewport-shell.is-inline .ctrl-left,
.player-viewport-shell.is-inline .ctrl-right {
  gap: 4px;
}

@media (max-width: 640px) {
  .player-top-bar {
    padding: 12px 14px 28px;
  }
  .nf-player-back-btn span {
    display: none;
  }
  .player-top-title {
    font-size: 14px;
  }
  .player-top-meta {
    display: none;
  }
  .player-viewport-shell.is-inline #ctrlSourceBtn,
  .player-viewport-shell.is-inline #ctrlFavChannelBtn,
  .player-viewport-shell.is-inline #ctrlPipBtn,
  .player-viewport-shell.is-inline #ctrlAspectBtn {
    display: none !important;
  }
  .player-viewport-shell.is-inline .player-controls-overlay {
    padding: 16px 10px 8px;
  }
  .player-viewport-shell.is-inline .player-controls-bar {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .player-viewport-shell.is-inline .nf-player-icon-btn,
  .player-viewport-shell.is-inline .ctrl-pill-btn {
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }
  .player-viewport-shell.is-inline .nf-player-icon-btn {
    width: 30px;
    padding: 0;
  }
  .osd-banner {
    top: 8px;
    left: 8px;
    padding: 6px 10px;
    gap: 8px;
  }
  .osd-logo {
    width: 30px;
    height: 22px;
  }
  .osd-title {
    font-size: 12.5px;
  }
}

/* Loader */
.video-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(15, 15, 15, 0.88);
  padding: 16px 26px;
  border-radius: var(--nf-radius-md);
  border: 1px solid var(--nf-border);
  font-size: 13px;
  font-weight: 600;
}

.video-loader.active {
  display: flex;
}

.nf-spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--nf-red);
  border-radius: 50%;
  animation: spinRing 0.75s linear infinite;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

/* OSD Banner */
.osd-banner {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 70px;
  left: 24px;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 22;
  transition: opacity 0.3s ease;
}

.player-viewport-shell.is-inline .osd-banner {
  top: 14px;
  left: 14px;
}

.osd-logo {
  width: 40px;
  height: 28px;
  object-fit: contain;
  border-radius: 3px;
}

.osd-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.osd-num {
  font-size: 10px;
  font-weight: 800;
  background: var(--nf-red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}

.osd-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.osd-meta {
  font-size: 11px;
  color: var(--nf-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* Stream Offline Error Overlay */
.stream-error-card {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.94);
  z-index: 30;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
}

.stream-error-card.active {
  display: flex;
}

.error-icon {
  font-size: 38px;
  color: var(--nf-red);
}

.error-title {
  font-size: 19px;
  font-weight: 700;
}

.error-desc {
  font-size: 13px;
  color: var(--nf-text-secondary);
  max-width: 420px;
  line-height: 1.5;
}

.error-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

/* Bottom Netflix Gradient Controls Overlay */
.player-controls-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.62) 55%, transparent 100%);
  padding: 42px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 25;
  transition: opacity 0.3s ease;
}

.player-viewport-shell.is-inline .player-controls-overlay {
  padding: 26px 14px 10px;
}

.player-viewport-shell.controls-idle .player-controls-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Multi-layer Timeline Scrubber */
.movie-scrubber-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scrubber-time {
  font-size: 12.5px;
  font-weight: 600;
  color: #e5e5e5;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
}

.scrubber-duration-btn {
  text-align: right;
  cursor: pointer;
  transition: color 0.15s ease;
}

.scrubber-duration-btn:hover {
  color: #ffffff;
}

.nf-scrubber-track {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
}

.nf-scrubber-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transition: height 0.15s ease;
}

.nf-scrubber-buffered {
  position: absolute;
  left: 0;
  height: 4px;
  width: 0%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  pointer-events: none;
  transition: height 0.15s ease;
}

.nf-scrubber-played {
  position: absolute;
  left: 0;
  height: 4px;
  width: 0%;
  border-radius: 999px;
  background: var(--nf-red);
  pointer-events: none;
  transition: height 0.15s ease;
}

.nf-scrubber-track:hover::before,
.nf-scrubber-track:hover .nf-scrubber-buffered,
.nf-scrubber-track:hover .nf-scrubber-played,
.nf-scrubber-track.dragging::before,
.nf-scrubber-track.dragging .nf-scrubber-buffered,
.nf-scrubber-track.dragging .nf-scrubber-played {
  height: 7px;
}

.nf-scrubber-tooltip {
  position: absolute;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(16, 16, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
}

.nf-scrubber-track:hover .nf-scrubber-tooltip,
.nf-scrubber-track.dragging .nf-scrubber-tooltip {
  opacity: 1;
}

.movie-seek-slider {
  position: relative;
  z-index: 4;
  width: 100%;
  height: 22px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.movie-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--nf-red);
  box-shadow: 0 0 10px var(--nf-red-glow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.nf-scrubber-track:hover .movie-seek-slider::-webkit-slider-thumb {
  transform: scale(1.22);
}

/* Sleek Borderless Netflix Action Bar */
.player-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ctrl-left, .ctrl-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nf-player-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.nf-player-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.nf-player-icon-btn.active {
  color: var(--nf-gold);
}

.nf-jump-btn {
  position: relative;
  width: auto;
  padding: 0 8px;
  border-radius: var(--nf-radius-sm);
  gap: 3px;
}

.nf-jump-btn span {
  font-size: 11px;
  font-weight: 800;
}

.ctrl-pill-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: var(--nf-radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease;
}

.ctrl-pill-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.nf-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ffffff;
  background: rgba(229, 9, 20, 0.24);
  border: 1px solid rgba(229, 9, 20, 0.55);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Smooth Thin Custom Volume Slider */
.ctrl-volume-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nf-volume-slider-wrap {
  width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: width 0.22s ease;
}

.ctrl-volume-group:hover .nf-volume-slider-wrap,
.ctrl-volume-group:focus-within .nf-volume-slider-wrap {
  width: 78px;
  padding-right: 4px;
}

.ctrl-volume-slider {
  width: 72px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(to right, var(--nf-red) var(--vol, 100%), rgba(255, 255, 255, 0.3) var(--vol, 100%));
  outline: none;
  cursor: pointer;
}

.ctrl-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

/* Playback Speed Popover Menu */
.nf-speed-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nf-speed-popover {
  display: none;
  position: absolute;
  bottom: 42px;
  right: 0;
  min-width: 130px;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  padding: 6px 0;
  flex-direction: column;
  z-index: 40;
}

.nf-speed-popover.open {
  display: flex;
}

.nf-speed-opt {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  color: var(--nf-text-secondary);
}

.nf-speed-opt:hover {
  background: var(--nf-elevated);
  color: #ffffff;
}

.nf-speed-opt.active {
  color: var(--nf-red);
}

@media (max-width: 640px) {
  .nf-volume-slider-wrap,
  .movie-playing-badge {
    display: none !important;
  }
}

.movie-playing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 6px;
  max-width: 260px;
}

.movie-playing-badge span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide redundant playing badge inside fullscreen theater (title is already in Top Bar) */
.player-viewport-shell.is-theater .movie-playing-badge {
  display: none;
}

/* Fullscreen Live Theater Channel Drawer */
.theater-live-drawer {
  width: 330px;
  background: var(--nf-surface);
  border-left: 1px solid var(--nf-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 35;
}

@media (max-width: 900px) {
  .theater-live-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 85vw);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.8);
  }
}

/* ==================== NETFLIX SUBTITLES & AUDIO/CC POPOVER ==================== */
.player-subtitle-overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 112px;
  width: min(86%, 920px);
  z-index: 21;
  pointer-events: none;
  text-align: center;
  transition: bottom 0.28s ease;
}

.player-viewport-shell.controls-idle .player-subtitle-overlay {
  bottom: 34px;
}

.nf-sub-line {
  display: inline-block;
  color: #ffffff;
  font-size: clamp(15px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.38;
  background: rgba(0, 0, 0, 0.72);
  padding: 4px 14px;
  border-radius: 6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  white-space: pre-line;
  max-width: 100%;
}

.nf-tracks-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ctrl-pill-btn.cc-active {
  background: rgba(229, 9, 20, 0.25);
  border: 1px solid rgba(229, 9, 20, 0.72);
  color: #ffffff;
}

.nf-tracks-popover {
  display: none;
  position: absolute;
  bottom: 44px;
  right: 0;
  min-width: 310px;
  max-width: min(440px, 92vw);
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  padding: 12px;
  gap: 14px;
  z-index: 45;
}

.nf-tracks-popover.open {
  display: flex;
}

.nf-tracks-col {
  flex: 1;
  min-width: 136px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nf-tracks-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--nf-text-secondary);
  padding: 0 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nf-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 220px;
  overflow-y: auto;
}

.nf-track-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--nf-text-secondary);
  text-align: left;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.nf-track-opt:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nf-track-opt.active {
  color: #ffffff;
  background: rgba(229, 9, 20, 0.18);
  border-left-color: var(--nf-red);
}

.nf-track-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .nf-tracks-popover {
    flex-direction: column;
    min-width: 220px;
    right: -32px;
  }
}

/* ==================== SERIES SEASONS & EPISODES DRAWER ==================== */
.theater-episodes-drawer {
  width: 360px;
  background: var(--nf-surface);
  border-left: 1px solid var(--nf-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 36;
  flex-shrink: 0;
}

.ep-drawer-header {
  padding: 16px;
  border-bottom: 1px solid var(--nf-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ep-drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ep-drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-drawer-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ep-drawer-close {
  width: 30px;
  height: 30px;
  font-size: 15px;
}

.ep-drawer-seasons,
.nf-season-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.ep-drawer-seasons::-webkit-scrollbar,
.nf-season-tabs::-webkit-scrollbar {
  display: none;
}

.nf-season-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--nf-text-secondary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nf-season-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.nf-season-pill.active {
  background: var(--nf-red);
  border-color: var(--nf-red);
  color: #ffffff;
}

.ep-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-drawer-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--nf-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.ep-drawer-card:hover {
  background: var(--nf-elevated);
  border-color: rgba(255, 255, 255, 0.14);
}

.ep-drawer-card.active {
  background: rgba(229, 9, 20, 0.14);
  border-color: var(--nf-red);
}

.ep-drawer-thumb {
  position: relative;
  width: 96px;
  height: 54px;
  border-radius: var(--nf-radius-sm);
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.ep-drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-drawer-num-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

.ep-drawer-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
}

.ep-drawer-progress > span {
  display: block;
  height: 100%;
  background: var(--nf-red);
}

.ep-drawer-info {
  flex: 1;
  min-width: 0;
}

.ep-drawer-ep-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-drawer-ep-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--nf-text-secondary);
}

.ep-playing-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--nf-red);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 3px;
}

.nf-ep-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.nf-ep-search {
  max-width: 240px;
  padding: 7px 12px !important;
  font-size: 13px !important;
}

@media (max-width: 900px) {
  .theater-episodes-drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(340px, 88vw);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.85);
  }
}

/* ==================== NETFLIX DETAIL / EPISODES MODAL ==================== */
.nf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 350;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow-y: auto;
}

.nf-modal.active {
  display: flex;
}

.nf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.nf-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 840px;
  background: var(--nf-surface);
  border-radius: var(--nf-radius-lg);
  overflow: hidden;
  border: 1px solid var(--nf-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9);
  margin: auto 0;
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.nf-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nf-modal-close:hover {
  background: var(--nf-red);
  border-color: var(--nf-red);
}

.nf-modal-hero {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  overflow: hidden;
}

.nf-modal-bg {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(14px) brightness(0.45);
}

.nf-modal-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--nf-surface) 4%, rgba(24, 24, 24, 0.55) 60%, rgba(24, 24, 24, 0.25) 100%);
}

.nf-modal-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  width: 100%;
}

.nf-modal-poster {
  width: 120px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--nf-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

.nf-modal-headline {
  flex: 1;
  min-width: 0;
}

.nf-modal-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.nf-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nf-modal-body {
  padding: 6px 28px 28px;
}

.nf-modal-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.nf-modal-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #d4d4d4;
  margin-bottom: 24px;
}

/* Series Episodes List */
.nf-episodes-section {
  border-top: 1px solid var(--nf-border-subtle);
  padding-top: 20px;
  margin-bottom: 26px;
}

.nf-episodes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.nf-episodes-header h3,
.nf-similar-section h3 {
  font-size: 17px;
  font-weight: 700;
}

.nf-episodes-status {
  font-size: 13px;
  color: var(--nf-text-secondary);
  margin-bottom: 10px;
}

.nf-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.nf-episode-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--nf-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nf-episode-item:hover {
  background: var(--nf-elevated);
  border-color: rgba(255, 255, 255, 0.15);
}

.nf-ep-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--nf-text-muted);
  min-width: 24px;
  text-align: center;
}

.nf-ep-thumb {
  width: 112px;
  height: 64px;
  border-radius: var(--nf-radius-sm);
  overflow: hidden;
  position: relative;
  background: #000;
  flex-shrink: 0;
}

.nf-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nf-ep-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nf-episode-item:hover .nf-ep-play {
  opacity: 1;
}

.nf-ep-meta {
  flex: 1;
  min-width: 0;
}

.nf-ep-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.nf-ep-sub {
  font-size: 12px;
  color: var(--nf-text-secondary);
}

/* More Like This Grid inside Modal */
.nf-similar-section {
  border-top: 1px solid var(--nf-border-subtle);
  padding-top: 20px;
}

.nf-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.nf-similar-card {
  cursor: pointer;
  border-radius: var(--nf-radius-sm);
  overflow: hidden;
  background: var(--nf-elevated);
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nf-similar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.nf-similar-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.nf-similar-title {
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .nf-modal-hero {
    padding: 20px;
  }
  .nf-modal-poster {
    width: 88px;
  }
  .nf-modal-body {
    padding: 6px 20px 22px;
  }
}

/* ==================== NAVBAR AUTH & SUBSCRIPTION CLUSTER ==================== */
.nf-header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nf-guest-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nf-upgrade-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: var(--nf-radius-sm);
  border: 1px solid rgba(245, 197, 24, 0.55);
  background: rgba(245, 197, 24, 0.12);
  color: var(--nf-gold);
  transition: all 0.2s ease;
}

.nf-upgrade-btn:hover {
  background: rgba(245, 197, 24, 0.24);
  border-color: var(--nf-gold);
}

.nf-signin-btn {
  background: var(--nf-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--nf-radius-sm);
  transition: background-color 0.2s ease;
}

.nf-signin-btn:hover {
  background: var(--nf-red-hover);
}

.nf-user-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nf-plan-pill {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: var(--nf-radius-sm);
  background: var(--nf-elevated);
  border: 1px solid var(--nf-border);
  color: var(--nf-text-secondary);
}

.nf-plan-pill.standard {
  background: rgba(70, 211, 105, 0.16);
  border-color: rgba(70, 211, 105, 0.45);
  color: var(--nf-green);
}

.nf-plan-pill.premium {
  background: rgba(245, 197, 24, 0.16);
  border-color: rgba(245, 197, 24, 0.55);
  color: var(--nf-gold);
}

.nf-user-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nf-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--nf-radius-sm);
  background: linear-gradient(135deg, #e50914 0%, #8b0000 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nf-user-dropdown {
  display: none;
  position: absolute;
  top: 44px;
  right: 0;
  width: 225px;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  padding: 8px 0;
  z-index: 200;
}

.nf-user-dropdown.open {
  display: block;
}

.nf-dropdown-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--nf-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nf-dropdown-head strong {
  font-size: 13.5px;
  color: #fff;
}

.nf-dropdown-head span {
  font-size: 11.5px;
  color: var(--nf-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nf-dropdown-item {
  width: 100%;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e5e5e5;
  text-align: left;
  transition: background-color 0.15s ease;
}

.nf-dropdown-item:hover {
  background: var(--nf-elevated);
  color: #fff;
}

.nf-dropdown-item.nf-dropdown-admin {
  color: var(--nf-gold);
  font-weight: 600;
}

.nf-dropdown-item.danger {
  color: #ff6b6b;
}

.nf-dropdown-sep {
  height: 1px;
  background: var(--nf-border-subtle);
  margin: 4px 0;
}

@media (max-width: 600px) {
  .nf-upgrade-btn span,
  .nf-plan-pill {
    display: none;
  }
}

.nf-announcement-bar[data-tone="info"] {
  background: linear-gradient(90deg, #1d4ed8, #2563eb, #1e40af);
}

.nf-announcement-bar[data-tone="promo"] {
  background: linear-gradient(90deg, #b20710, #e50914 55%, #b45309);
}

.nf-announcement-bar[data-tone="warning"] {
  background: linear-gradient(90deg, #b45309, #d97706);
}

.nf-maint-gate {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: radial-gradient(circle at 30% 20%, rgba(229, 9, 20, 0.18), transparent 45%), radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.16), transparent 45%), #07080c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.nf-maint-card {
  max-width: 520px;
  width: 100%;
  background: rgba(16, 18, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}

.nf-maint-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.nf-maint-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}

.nf-maint-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
}

.nf-maint-meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 22px;
}

.nf-maint-meta a { color: #60a5fa; text-decoration: none; }

.nf-maint-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Visible Server-Rendered SEO Streaming Guide & Internal Discovery Links */
.nf-seo-directory {
  margin: 34px var(--nf-side-pad) 16px;
  padding: 22px 24px;
  border-radius: 14px;
  background: rgba(15, 17, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nf-seo-dir-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nf-seo-dir-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 6px;
}

.nf-seo-dir-head p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
  margin: 0;
  max-width: 920px;
}

.nf-seo-meta-line {
  font-size: 12px !important;
  color: rgba(147, 197, 253, 0.85) !important;
  font-weight: 600;
  margin-bottom: 6px !important;
}

.nf-seo-back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nf-seo-group-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 9px;
}

.nf-seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.nf-seo-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.nf-seo-chip:hover {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.55);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.16), rgba(37, 99, 235, 0.2));
}

.nf-seo-chip.primary {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.45);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 640px) {
  .nf-seo-directory {
    margin: 22px 14px 12px;
    padding: 16px;
  }
}

/* Announcement Banner */
.nf-announcement-bar {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #b20710, #e50914);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px var(--nf-side-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 140;
}

/* ==================== GOOGLE ADSENSE READY SLOTS ==================== */
.nf-ad-slot {
  max-width: 970px;
  margin: 18px auto 26px;
  padding: 0 var(--nf-side-pad);
}

body.is-ad-free .nf-ad-slot {
  display: none !important;
}

.nf-ad-frame {
  background: #181818;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--nf-radius-md);
  padding: 12px 16px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.nf-ad-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--nf-text-muted);
  letter-spacing: 0.6px;
}

.nf-ad-remove-link {
  color: var(--nf-gold);
  font-weight: 600;
  cursor: pointer;
}

.nf-ad-remove-link:hover {
  text-decoration: underline;
}

.nf-ad-placeholder-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--nf-text-secondary);
}

/* ==================== AUTH, CHECKOUT & ACCOUNT MODALS ==================== */
.nf-auth-card {
  max-width: 440px;
  padding: 32px 28px 28px;
}

.nf-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nf-font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 6px;
}

.nf-auth-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.nf-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #101010;
  border-radius: var(--nf-radius-sm);
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--nf-border-subtle);
}

.nf-auth-tab {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nf-text-secondary);
  border-radius: 3px;
}

.nf-auth-tab.active {
  background: var(--nf-elevated);
  color: #fff;
}

.nf-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nf-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nf-field-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--nf-text-secondary);
}

.nf-input,
.nf-textarea {
  width: 100%;
  background: #101010;
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

.nf-input:focus,
.nf-textarea:focus {
  border-color: var(--nf-red);
}

.nf-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nf-btn-red-full {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(115deg, #ff1f44 0%, #dc0e35 36%, #6a1bb8 70%, #1d5cff 100%);
  background-size: 240% 100%;
  background-position: 0% 50%;
  border: 1px solid rgba(255, 130, 150, 0.34);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 9px;
  margin-top: 4px;
  box-shadow: -6px 8px 20px -6px rgba(242, 45, 74, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition:
    background-position 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    transform 0.2s ease,
    border-color 0.26s ease;
}

.nf-btn-red-full:hover {
  background-position: 100% 50%;
  border-color: rgba(147, 197, 253, 0.58);
  transform: translateY(-1.5px);
  box-shadow:
    -10px 9px 28px -2px rgba(242, 45, 74, 0.62),
    10px 9px 28px -2px rgba(37, 99, 235, 0.66),
    0 12px 26px rgba(4, 7, 16, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.nf-btn-red-full:active {
  transform: translateY(0) scale(0.985);
}

.nf-form-alert {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--nf-radius-sm);
  margin-bottom: 12px;
}

.nf-form-alert.error {
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.5);
  color: #ffb3b3;
}

.nf-form-alert.success {
  background: rgba(70, 211, 105, 0.15);
  border: 1px solid rgba(70, 211, 105, 0.45);
  color: #b7f7c7;
}

.nf-auth-switch-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--nf-text-muted);
  text-align: center;
}

.nf-checkout-summary {
  background: #101010;
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nf-checkout-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.checkout-method-tab {
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  background: #101010;
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-sm);
  color: var(--nf-text-secondary);
}

.checkout-method-tab.active {
  background: rgba(229, 9, 20, 0.16);
  border-color: var(--nf-red);
  color: #ffffff;
}

.nf-checkout-instructions,
.nf-demo-card-note {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--nf-red);
  padding: 10px 12px;
  border-radius: var(--nf-radius-sm);
  font-size: 12.5px;
  line-height: 1.5;
  color: #e5e5e5;
  margin-bottom: 14px;
}

.nf-account-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #101010;
  padding: 12px 14px;
  border-radius: var(--nf-radius-sm);
  border: 1px solid var(--nf-border-subtle);
  margin-bottom: 16px;
}

/* ==================== MONTHLY SUBSCRIPTION PLANS ==================== */
.nf-plans-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 30px;
}

.nf-plans-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--nf-green);
  margin-bottom: 6px;
}

.nf-current-plan-banner {
  max-width: 980px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(70, 211, 105, 0.12), rgba(24, 24, 24, 0.95));
  border: 1px solid rgba(70, 211, 105, 0.35);
  border-radius: var(--nf-radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nf-pricing-grid {
  max-width: 1040px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 860px) {
  .nf-pricing-grid {
    grid-template-columns: 1fr;
  }
}

.nf-plan-card {
  position: relative;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nf-plan-card.popular {
  border-color: var(--nf-red);
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.14) 0%, var(--nf-surface) 38%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.nf-plan-popular-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--nf-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.nf-plan-name {
  font-size: 20px;
  font-weight: 800;
}

.nf-plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nf-plan-amount {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.nf-plan-period {
  font-size: 13px;
  color: var(--nf-text-secondary);
}

.nf-plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  font-size: 13.5px;
  color: #d4d4d4;
}

.nf-plan-features li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nf-plan-features i {
  color: var(--nf-green);
}

/* ==================== ADMIN CONTROL PANEL ==================== */
.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--nf-border-subtle);
  padding-bottom: 12px;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--nf-radius-sm);
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  color: var(--nf-text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.admin-tab-btn:hover {
  background: var(--nf-elevated);
  color: #fff;
}

.admin-tab-btn.active {
  background: var(--nf-red);
  border-color: var(--nf-red);
  color: #fff;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-kpi-label {
  font-size: 12px;
  color: var(--nf-text-secondary);
}

.admin-kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.admin-panel-card {
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.admin-panel-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--nf-border-subtle);
  white-space: nowrap;
}

.admin-table th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--nf-text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge.approved,
.status-badge.active { background: rgba(70, 211, 105, 0.16); color: var(--nf-green); }
.status-badge.pending { background: rgba(245, 197, 24, 0.16); color: var(--nf-gold); }
.status-badge.rejected,
.status-badge.suspended { background: rgba(229, 9, 20, 0.18); color: #ff7b7b; }

.admin-action-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-sm-btn {
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 3px;
  background: var(--nf-elevated);
  border: 1px solid var(--nf-border);
  color: #e5e5e5;
}

.admin-sm-btn:hover { background: var(--nf-hover); color: #fff; }
.admin-sm-btn.green { border-color: rgba(70, 211, 105, 0.5); color: var(--nf-green); }
.admin-sm-btn.red { border-color: rgba(229, 9, 20, 0.5); color: #ff7b7b; }

/* Load More Pagination */
.nf-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}

.nf-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 999px;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.nf-load-more-btn:hover {
  background: var(--nf-red);
  border-color: var(--nf-red);
  transform: translateY(-1px);
}

/* Admin Auto-Sync Console */
.admin-sync-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-sync-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nf-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--nf-radius-sm);
  transition: background-color 0.16s ease;
}

.admin-sync-primary-btn:hover:not(:disabled) {
  background: var(--nf-red-hover);
}

.admin-sync-primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-sync-sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--nf-radius-sm);
  transition: background-color 0.16s ease;
}

.admin-sync-sec-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.admin-sync-sec-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-sync-progress-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-md);
  padding: 14px 16px;
}

.admin-sync-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-sync-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.admin-sync-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--nf-red), #ff4b55);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.admin-sync-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--nf-text-secondary);
}

.admin-sync-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
  margin: 6px 0 4px;
}

.admin-sync-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e5e5e5;
  cursor: pointer;
}

/* ==================== LEGAL & CONTACT PAGES ==================== */
.legal-card {
  margin-top: 20px;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-lg);
  padding: 28px;
  line-height: 1.7;
  color: #d4d4d4;
  max-width: 900px;
}

.legal-card h2 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 10px;
}

.legal-card h3 {
  font-size: 16px;
  color: #ffffff;
  margin: 18px 0 8px;
}

.legal-card p,
.legal-card li {
  font-size: 14px;
  margin-bottom: 8px;
}

.legal-card ul {
  padding-left: 20px;
}

/* ==================== RICH 4-COLUMN NETFLIX FOOTER ==================== */
.nf-footer {
  border-top: 1px solid var(--nf-border-subtle);
  background: #0b0b0b;
  padding: 48px var(--nf-side-pad) 32px;
  margin-top: auto;
}

.nf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .nf-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .nf-footer-grid {
    grid-template-columns: 1fr;
  }
}

.nf-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--nf-font-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 12px;
}

.nf-footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--nf-text-secondary);
  max-width: 320px;
  margin-bottom: 14px;
}

.nf-footer-socials {
  display: flex;
  gap: 10px;
}

.nf-footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nf-text-secondary);
  font-size: 13px;
}

.nf-footer-socials a:hover {
  background: var(--nf-red);
  border-color: var(--nf-red);
  color: #fff;
}

.nf-footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.nf-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--nf-text-secondary);
}

.nf-footer-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.nf-footer-bottom {
  border-top: 1px solid var(--nf-border-subtle);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.nf-footer-copy {
  font-size: 12px;
  color: var(--nf-text-muted);
}

.nf-footer-admin-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--nf-gold);
}

/* Cookie Consent Banner */
.nf-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
  z-index: 500;
}

.nf-cookie-banner p {
  flex: 1;
  min-width: 220px;
  font-size: 12.5px;
  color: var(--nf-text-secondary);
  line-height: 1.5;
}

.nf-cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.nf-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.nf-toast {
  background: rgba(28, 28, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid var(--nf-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--nf-radius-sm);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  animation: toastIn 0.2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== OBSIDIAN CINEMA SUPER MOBILE DESIGN SYSTEM ==================== */
html,
body {
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input[type="range"],
.nf-card,
.nf-pill {
  touch-action: manipulation;
}

/* Fixed Glassmorphic Mobile Bottom Navigation Bar (hidden on desktop) */
.nf-mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .nf-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 160;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    background: rgba(14, 14, 14, 0.92);
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.65);
  }

  body.theater-open .nf-mobile-bottom-nav {
    display: none !important;
  }

  .nf-mnav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 4px 2px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.15px;
    border-radius: 10px;
    transition: color 0.18s ease, transform 0.15s ease;
  }

  .nf-mnav-item i {
    font-size: 17px;
    line-height: 1;
    transition: transform 0.18s ease, color 0.18s ease;
  }

  .nf-mnav-item:active {
    transform: scale(0.92);
  }

  .nf-mnav-item.active {
    color: #ffffff;
    font-weight: 700;
  }

  .nf-mnav-item.active i {
    color: var(--nf-red);
    transform: translateY(-1px);
  }

  .nf-mnav-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    width: 24px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--nf-red);
    box-shadow: 0 2px 10px var(--nf-red-glow);
  }

  .nf-mnav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nf-mnav-live-dot {
    position: absolute;
    top: -2px;
    right: -6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nf-red);
    box-shadow: 0 0 6px var(--nf-red);
    animation: pulseDot 1.6s infinite;
  }

  .nf-mnav-badge {
    position: absolute;
    top: -5px;
    right: -11px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--nf-red);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .nf-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .nf-cookie-banner {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    padding: 12px 14px;
  }

  .nf-toast-container {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    right: 14px;
    align-items: center;
  }

  .nf-toast {
    width: 100%;
    max-width: 400px;
  }
}

/* Netflix Mobile Hero Poster Showcase & Tablet/Phone Polish */
@media (max-width: 820px) {
  .nf-hero {
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 0;
  }

  .nf-hero-vignette {
    background:
      radial-gradient(circle at 50% 28%, rgba(20, 20, 20, 0.12) 0%, rgba(14, 14, 14, 0.84) 68%, var(--nf-bg) 100%),
      linear-gradient(to top, var(--nf-bg) 4%, rgba(20, 20, 20, 0.55) 38%, rgba(12, 12, 12, 0.65) 100%);
  }

  .nf-hero-stage {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: calc(70px + env(safe-area-inset-top, 0px)) 16px 46px;
  }

  .nf-hero-poster-col {
    display: flex !important;
    order: -1;
    justify-content: center;
    width: 100%;
  }

  .nf-hero-poster-frame {
    width: min(52vw, 204px);
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.86), 0 0 28px rgba(229, 9, 20, 0.15);
  }

  .nf-hero.has-widescreen .nf-hero-poster-col {
    display: none !important;
  }

  .nf-hero.has-widescreen {
    min-height: 460px;
    align-items: flex-end;
  }

  .nf-hero.has-widescreen .nf-hero-ambient {
    object-position: center top;
    filter: brightness(0.72);
  }

  .nf-hero.has-widescreen .nf-hero-vignette {
    background:
      linear-gradient(to top, var(--nf-bg) 8%, rgba(8, 11, 20, 0.84) 44%, rgba(8, 11, 20, 0.18) 82%, rgba(8, 11, 20, 0.55) 100%);
  }

  .nf-hero-title-logo {
    max-width: min(260px, 70vw);
    max-height: 84px;
    object-position: center bottom;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }

  .nf-hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 460px;
    width: 100%;
  }

  .nf-hero-eyebrow {
    font-size: 10.5px;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }

  .nf-hero-title {
    font-size: clamp(1.65rem, 7.2vw, 2.35rem);
    line-height: 1.08;
    margin-bottom: 10px;
  }

  .nf-hero-meta {
    justify-content: center;
    gap: 8px 10px;
    font-size: 12.5px;
    margin-bottom: 10px;
  }

  .nf-hero-desc {
    font-size: 13px;
    line-height: 1.48;
    -webkit-line-clamp: 2;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.82);
  }

  .nf-hero-actions {
    width: 100%;
    max-width: 370px;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 9px;
  }

  .nf-hero-actions .nf-btn-play,
  .nf-hero-actions .nf-btn-info {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 8px;
    white-space: nowrap;
  }

  .nf-hero-actions .nf-btn-circle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .nf-hero-controls {
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translateX(-50%);
  }

  .nf-hero-arrow {
    display: none;
  }
}

/* Core Phone Viewport Overhaul (360px - 640px) */
@media (max-width: 640px) {
  :root {
    --nf-side-pad: 14px;
  }

  /* Compact Glass Header & Non-Colliding Full-Width Search Overlay */
  .nf-header {
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 12px 0;
  }

  .nf-header-inner {
    position: relative;
    gap: 8px;
  }

  .nf-header-left {
    gap: 8px;
    min-width: 0;
  }

  .nf-mobile-menu-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .nf-brand {
    font-size: 24px;
    letter-spacing: 1.4px;
    gap: 7px;
  }
  .nf-brand-icon {
    width: 26px;
    height: 26px;
  }

  .nf-header-right {
    gap: 8px;
  }

  .nf-signin-btn {
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: 6px;
  }

  .nf-upgrade-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .nf-search-box {
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .nf-search-box.open {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 40px;
    z-index: 25;
    padding: 0 4px;
    border-radius: 10px;
    background: rgba(22, 22, 22, 0.98);
    border-color: rgba(229, 9, 20, 0.75);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  }

  .nf-search-box.open .nf-search-clear {
    display: flex;
    flex: 0 0 34px;
  }

  .nf-mobile-drawer {
    top: calc(56px + env(safe-area-inset-top, 0px));
    padding: 10px 14px 16px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  }

  /* Rows, Poster Cards & 3-Column Mobile Grids */
  .nf-row {
    margin-bottom: 22px;
  }

  .nf-row-header {
    margin-bottom: 8px;
    gap: 8px;
  }

  .nf-row-title {
    font-size: 16px;
    font-weight: 700;
  }

  .nf-explore-btn {
    font-size: 12px;
    padding: 4px 6px;
  }

  .nf-rail {
    gap: 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nf-card {
    flex: 0 0 clamp(114px, 30.5vw, 142px);
    width: clamp(114px, 30.5vw, 142px);
    min-width: 0;
    scroll-snap-align: start;
  }

  .nf-card:active {
    transform: scale(0.97);
  }

  .nf-card-title {
    font-size: 12px;
  }

  .nf-card-sub {
    font-size: 10.5px;
  }

  /* Touch devices: hide hover-only overlay so tapping anywhere on a poster card opens it directly */
  .nf-card-overlay {
    display: none !important;
    pointer-events: none !important;
  }

  .nf-card:hover {
    transform: none;
  }

  /* Top 10 Compact Mobile Cards */
  .nf-top10-card {
    flex: 0 0 clamp(122px, 33vw, 152px);
    width: clamp(122px, 33vw, 152px);
  }

  .nf-top10-poster-wrap {
    padding-left: 8px;
  }

  .trending-rank-num {
    font-size: 46px;
    left: -1px;
    bottom: -6px;
    -webkit-text-stroke-width: 2px;
  }

  .nf-top10-card .nf-card-caption {
    padding-left: 10px;
  }

  /* Browse Views (Movies, TV Shows, My List, Search) -> Crisp 3-Column App Grid */
  .nf-subpage-wrap,
  .live-zone-wrap {
    padding-top: calc(68px + env(safe-area-inset-top, 0px));
  }

  .nf-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }

  .nf-page-title {
    font-size: 22px;
  }

  .nf-browse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 9px;
    margin-top: 14px;
  }

  /* Live TV Zone Mobile Polish */
  .live-now-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .live-now-actions {
    width: 100%;
    display: flex;
    gap: 6px;
  }

  .live-now-actions .nf-pill-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 7px 8px;
    font-size: 11.5px;
  }

  .live-zone-epg-col {
    max-height: 320px;
  }

  /* Fullscreen Mobile Cinema Player, Scrubber & Non-Wrapping Action Bar */
  .player-center-cluster {
    gap: 28px;
  }

  .player-center-play {
    width: 62px;
    height: 62px;
    font-size: 22px;
  }

  .player-center-jump {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  .player-seek-ripple {
    width: 42%;
  }

  .seek-ripple-circle {
    min-width: 66px;
    min-height: 66px;
    padding: 10px 12px;
  }

  .player-viewport-shell.is-theater .player-top-bar {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 24px;
    gap: 8px;
  }

  .player-viewport-shell.is-theater .player-controls-overlay {
    padding: 24px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .movie-scrubber-wrap {
    gap: 8px;
    margin-bottom: 6px;
  }

  .nf-scrubber-track {
    height: 28px;
  }

  .movie-seek-slider {
    height: 28px;
  }

  .movie-seek-slider::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
  }

  .scrubber-time {
    font-size: 11px;
    min-width: 38px;
  }

  /* Keep Theater Bottom Controls on a Clean Single Touch Row */
  .player-viewport-shell.is-theater .player-controls-bar {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .player-viewport-shell.is-theater .player-controls-bar::-webkit-scrollbar {
    display: none;
  }

  .player-viewport-shell.is-theater .ctrl-left,
  .player-viewport-shell.is-theater .ctrl-right {
    gap: 2px;
    flex-shrink: 0;
  }

  .player-viewport-shell.is-theater .nf-player-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .player-viewport-shell.is-theater .nf-jump-btn {
    padding: 0 4px;
    height: 32px;
    font-size: 14px;
  }

  .player-viewport-shell.is-theater .ctrl-pill-btn {
    height: 30px;
    padding: 0 7px;
    font-size: 11px;
    gap: 4px;
    white-space: nowrap;
  }

  /* Fit all theater controls inside 360px-390px without right-edge clipping (Episodes stays in Top Bar) */
  .player-viewport-shell.is-theater #ctrlPrevEpBtn,
  .player-viewport-shell.is-theater #ctrlEpisodesBtn,
  .player-viewport-shell.is-theater #ctrlPipBtn,
  .player-viewport-shell.is-theater #ctrlTracksText,
  .player-viewport-shell.is-theater #ctrlSpeedBtn i {
    display: none !important;
  }

  .player-viewport-shell.is-theater #ctrlTracksBtn {
    width: 32px;
    padding: 0;
    justify-content: center;
    font-size: 14px;
  }

  /* Bottom-Sheet Popovers inside Theater Player (Audio/Subtitles & Speed) */
  .nf-tracks-popover,
  .nf-speed-popover {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    min-width: 0;
    max-height: 56dvh;
    overflow-y: auto;
    border-radius: 14px;
    padding: 12px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.92);
    z-index: 60;
  }

  .nf-track-opt,
  .nf-speed-opt {
    min-height: 40px;
    font-size: 13.5px;
  }

  /* Full-Width Mobile Slide-Over Drawers for Episodes & Live Guide */
  .theater-episodes-drawer,
  .theater-live-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Native iOS/Android Bottom-Sheet Modals (Detail, Auth, Checkout, Account) */
  .nf-modal {
    align-items: flex-end;
    padding: 0;
  }

  .nf-modal-card {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: 0;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    padding-bottom: env(safe-area-inset-bottom, 12px);
  }

  .nf-modal-card.nf-auth-card {
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .nf-modal-hero-content {
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
  }

  .nf-modal-poster {
    display: block;
    width: 82px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .nf-modal-title {
    font-size: 20px;
  }

  .nf-modal-body {
    padding: 16px 14px 24px;
  }

  .nf-ep-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nf-similar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }

  /* Checkout & Admin Mobile Responsiveness */
  .nf-checkout-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    flex-shrink: 0;
  }

  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 359px) {
  .nf-browse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile Landscape Cinema Mode (e.g. rotated phone 844x390) */
@media (max-height: 500px) and (orientation: landscape) {
  .player-viewport-shell.is-theater .player-top-bar {
    padding: 8px max(16px, env(safe-area-inset-right, 16px)) 18px max(16px, env(safe-area-inset-left, 16px));
  }

  .player-viewport-shell.is-theater .player-controls-overlay {
    padding: 16px max(16px, env(safe-area-inset-right, 16px)) max(8px, env(safe-area-inset-bottom, 8px)) max(16px, env(safe-area-inset-left, 16px));
  }

  .player-center-cluster {
    gap: 36px;
  }

  .player-center-play {
    width: 54px;
    height: 54px;
    font-size: 20px;
  }

  .player-center-jump {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .movie-scrubber-wrap {
    margin-bottom: 2px;
  }
}

/* ==================== DEKHBD VIP CINEMA LOUNGE — CUSTOMER DASHBOARD ==================== */
.nf-dashboard-view {
  padding: 98px var(--nf-side-pad) 88px;
  background:
    radial-gradient(ellipse 80% 420px at 50% 0%, rgba(242, 45, 74, 0.085), transparent 72%),
    radial-gradient(ellipse 60% 340px at 88% 8%, rgba(245, 197, 24, 0.055), transparent 68%);
}

.ud-shell {
  max-width: 1280px;
  margin: 0 auto;
  animation: udFadeUp 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes udFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes udPulseRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.45; }
}

.ud-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 300px;
  color: var(--nf-text-secondary);
}

/* ---------- HERO STAGE & TACTILE VIP MEMBER PASS ---------- */
.ud-hero-pass {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(135deg, #101628 0%, #0b0f1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 18px;
}

.ud-hero-pass.tier-premium {
  border-color: rgba(245, 197, 24, 0.34);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(245, 197, 24, 0.12), inset 0 1px 0 rgba(255, 232, 150, 0.24);
}

.ud-hero-pass.tier-standard {
  border-color: rgba(124, 92, 255, 0.34);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(185, 168, 255, 0.2);
}

.ud-hero-ambient-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(42px) saturate(1.45);
  transform: scale(1.22);
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
}

.ud-hero-ambient-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(242, 45, 74, 0.18), transparent 46%),
    radial-gradient(circle at 86% 20%, rgba(245, 197, 24, 0.14), transparent 48%),
    linear-gradient(120deg, rgba(9, 13, 24, 0.93) 14%, rgba(12, 17, 30, 0.82) 55%, rgba(8, 11, 20, 0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

.ud-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
}

.ud-hero-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1;
}

.ud-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.ud-avatar-orb {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nf-font-heading);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #f22d4a, #7c5cff);
  box-shadow: 0 0 0 3px rgba(242, 45, 74, 0.26), 0 14px 32px rgba(242, 45, 74, 0.28);
}

.ud-avatar-orb.premium {
  background: linear-gradient(135deg, #ffe27a 0%, #f5c518 45%, #d97706 100%);
  color: #0b0e17;
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.32), 0 14px 32px rgba(245, 197, 24, 0.24);
}

.ud-avatar-orb.standard {
  background: linear-gradient(135deg, #8b72ff, #4f46e5);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.3), 0 14px 32px rgba(124, 92, 255, 0.26);
}

.ud-avatar-orb.guest {
  background: linear-gradient(135deg, #1d2744, #101524);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4f6fb;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.ud-online-indicator {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #32d9a0;
  border: 3px solid #0b0f1c;
  box-shadow: 0 0 10px rgba(50, 217, 160, 0.65);
}

.ud-hero-identity {
  min-width: 0;
  flex: 1;
}

.ud-eyebrow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.ud-greeting-chip {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.01em;
  padding-right: 4px;
}

.ud-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #e4e9f5;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ud-tier-pill.standard {
  background: rgba(124, 92, 255, 0.22);
  border-color: rgba(124, 92, 255, 0.48);
  color: #e2dbff;
}

.ud-tier-pill.premium {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.24), rgba(217, 119, 6, 0.16));
  border-color: rgba(245, 197, 24, 0.5);
  color: #ffe891;
}

.ud-tier-pill.staff {
  background: rgba(242, 45, 74, 0.18);
  border-color: rgba(242, 45, 74, 0.46);
  color: #ffa3b1;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.ud-tier-pill.staff:hover {
  background: rgba(242, 45, 74, 0.3);
  border-color: rgba(242, 45, 74, 0.72);
}

.ud-sec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(50, 217, 160, 0.13);
  border: 1px solid rgba(50, 217, 160, 0.34);
  color: #63f5c4;
}

.ud-verify-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde047;
  cursor: pointer;
  transition: background 0.18s ease;
}

.ud-verify-pill:hover {
  background: rgba(251, 191, 36, 0.24);
}

.ud-user-name {
  font-family: var(--nf-font-heading);
  font-size: clamp(22px, 2.7vw, 31px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 4px;
  word-break: break-word;
}

.ud-user-meta {
  font-size: 13px;
  color: var(--nf-text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

.ud-hero-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.ud-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11.5px;
  color: #cbd5e1;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

button.ud-metric-chip:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  color: #fff;
}

.ud-metric-chip i {
  font-size: 11px;
  color: var(--nf-red);
}

.ud-metric-chip strong {
  color: #fff;
  font-weight: 800;
}

.ud-metric-chip.accent i {
  color: var(--nf-gold);
}

/* ---------- HOLOGRAPHIC FOIL VIP PASS CARD ---------- */
.ud-hero-right {
  flex-shrink: 0;
  width: 344px;
}

.ud-vip-card {
  position: relative;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(145deg, rgba(16, 22, 38, 0.92), rgba(9, 13, 24, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ud-vip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 22%, rgba(255, 255, 255, 0.06) 46%, transparent 64%);
  pointer-events: none;
}

.ud-vip-card.tier-premium {
  background:
    radial-gradient(circle at 86% 12%, rgba(245, 197, 24, 0.22), transparent 52%),
    linear-gradient(145deg, rgba(25, 23, 30, 0.94), rgba(11, 13, 22, 0.98));
  border-color: rgba(245, 197, 24, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 230, 140, 0.26);
}

.ud-vip-card.tier-standard {
  background:
    radial-gradient(circle at 86% 12%, rgba(124, 92, 255, 0.24), transparent 54%),
    linear-gradient(145deg, rgba(18, 20, 40, 0.94), rgba(10, 13, 24, 0.98));
  border-color: rgba(124, 92, 255, 0.42);
}

.ud-vip-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ud-vip-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  color: #fde68a;
  text-transform: uppercase;
}

.ud-vip-card.tier-free .ud-vip-brand { color: #cbd5e1; }
.ud-vip-card.tier-standard .ud-vip-brand { color: #c4b5fd; }

.ud-vip-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.62);
}

.ud-vip-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ud-vip-card-info {
  min-width: 0;
  flex: 1;
}

.ud-vip-plan-title {
  font-family: var(--nf-font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.ud-vip-plan-sub {
  font-size: 12px;
  color: var(--nf-text-secondary);
  line-height: 1.4;
}

.ud-vip-guest-pitch {
  font-size: 12.5px;
  color: var(--nf-text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.ud-ring-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ud-ring-wrap svg {
  display: block;
}

.ud-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ud-ring-center strong {
  font-family: var(--nf-font-heading);
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.ud-ring-center small {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nf-text-muted);
  margin-top: 2px;
}

.ud-renewal-actions,
.ud-guest-cta-box {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
}

.ud-renewal-actions .nf-pill-btn,
.ud-renewal-actions .nf-btn-play,
.ud-guest-cta-box .nf-pill-btn,
.ud-guest-cta-box .nf-btn-play {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.15;
}

/* ---------- FLOATING SEGMENTED LOUNGE NAV ---------- */
.ud-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ud-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 5px;
  border-radius: 14px;
  background: rgba(14, 19, 34, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 100%;
}

.ud-tabs::-webkit-scrollbar {
  display: none;
}

.ud-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nf-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ud-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.ud-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(242, 45, 74, 0.24), rgba(242, 45, 74, 0.1));
  border-color: rgba(242, 45, 74, 0.44);
  box-shadow: 0 6px 18px rgba(242, 45, 74, 0.16);
}

.ud-tab.active i {
  color: #ff6b81;
}

.ud-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
}

.ud-tab.active .ud-tab-count {
  background: rgba(242, 45, 74, 0.36);
  color: #fff;
}

.ud-quick-resume-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(242, 45, 74, 0.14);
  border: 1px solid rgba(242, 45, 74, 0.36);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  max-width: 280px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ud-quick-resume-pill span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ud-quick-resume-pill:hover {
  background: rgba(242, 45, 74, 0.26);
  transform: translateY(-1px);
}

/* ---------- BENTO LAYOUT & GLASS CARDS ---------- */
.ud-bento-top {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.ud-bento-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.ud-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}

.ud-lounge-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.ud-card {
  background: linear-gradient(180deg, rgba(17, 23, 40, 0.9), rgba(12, 17, 30, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ud-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ud-section-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  margin-bottom: 4px;
}

.ud-card-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--nf-font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
}

.ud-card-head h2 i {
  color: var(--nf-red);
  font-size: 15px;
}

.ud-card-desc {
  font-size: 13px;
  color: var(--nf-text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.ud-sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nf-green);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(50, 217, 160, 0.1);
  border: 1px solid rgba(50, 217, 160, 0.25);
}

/* ---------- PREMIERE "NOW RESUMING" SPOTLIGHT ---------- */
.ud-spotlight {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: #090d18;
  margin-bottom: 18px;
}

.ud-spotlight-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(1.35);
  transform: scale(1.18);
  opacity: 0.34;
  pointer-events: none;
}

.ud-spotlight-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8, 11, 20, 0.94) 15%, rgba(12, 17, 31, 0.78) 60%, rgba(8, 11, 20, 0.92) 100%);
  pointer-events: none;
}

.ud-spotlight-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
}

.ud-spotlight-poster {
  width: 108px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65);
  transition: transform 0.22s ease;
}

.ud-spotlight-poster:hover {
  transform: scale(1.03);
}

.ud-spotlight-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.ud-spotlight-meta {
  min-width: 0;
  flex: 1;
}

.ud-spotlight-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ud-now-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(242, 45, 74, 0.22);
  border: 1px solid rgba(242, 45, 74, 0.45);
  color: #ff99a8;
}

.ud-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nf-red);
  box-shadow: 0 0 8px var(--nf-red);
  flex-shrink: 0;
  animation: udPulseRing 1.9s ease-in-out infinite;
}

.ud-ep-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ud-spotlight-title {
  font-family: var(--nf-font-heading);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.ud-spotlight-desc {
  font-size: 13px;
  color: var(--nf-text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.ud-spotlight-progress-row {
  margin-bottom: 14px;
}

.ud-spotlight-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin-bottom: 6px;
}

.ud-spotlight-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f22d4a, #ff6b81);
}

.ud-spotlight-pct {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.ud-spotlight-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ud-spotlight-actions .nf-btn-play,
.ud-empty-actions .nf-btn-play {
  background: linear-gradient(115deg, #ffffff 0%, #f1f5f9 36%, #e11136 68%, #1d5cff 100%);
  background-size: 260% 100%;
  background-position: 0% 50%;
  border-color: rgba(255, 255, 255, 0.45);
  color: #090d18;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.16);
}

.ud-spotlight-actions .nf-btn-play:hover,
.ud-empty-actions .nf-btn-play:hover {
  background-position: 100% 50%;
  border-color: rgba(147, 197, 253, 0.62);
  color: #ffffff;
  box-shadow:
    -10px 8px 28px -2px rgba(242, 45, 74, 0.65),
    10px 8px 28px -2px rgba(37, 99, 235, 0.68),
    0 12px 26px rgba(4, 7, 16, 0.68);
}

.ud-upnext-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  margin-bottom: 10px;
}

/* ---------- CONTINUE WATCHING CARDS (CLEAN FACE-SAFE FRAMING) ---------- */
.ud-cw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 14px;
}

.ud-cw-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ud-cw-grid.full {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.ud-cw-card {
  background: rgba(8, 11, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ud-cw-card:hover,
.ud-cw-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(242, 45, 74, 0.48);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  outline: none;
}

.ud-cw-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0c101d;
  overflow: hidden;
}

.ud-cw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.35s ease;
}

.ud-cw-card:hover .ud-cw-thumb img {
  transform: scale(1.06);
}

.ud-cw-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 20, 0.08) 0%, rgba(8, 11, 20, 0.15) 52%, rgba(8, 11, 20, 0.78) 100%);
  pointer-events: none;
}

.ud-cw-pct-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(8, 11, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10.5px;
  font-weight: 700;
  color: #f4f6fb;
  backdrop-filter: blur(8px);
}

.ud-cw-play,
.ud-hover-play {
  position: absolute;
  right: 9px;
  bottom: 11px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 16, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  opacity: 0.88;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ud-hover-play.sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.ud-cw-card:hover .ud-cw-play,
.ud-cinema-card:hover .ud-hover-play,
.ud-poster-chip:hover .ud-hover-play {
  background: var(--nf-red);
  border-color: rgba(255, 255, 255, 0.55);
  transform: scale(1.08);
  opacity: 1;
}

.ud-cw-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.2);
}

.ud-cw-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f22d4a, #ff6b81);
}

.ud-cw-info {
  padding: 10px 11px 11px;
}

.ud-cw-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ud-cw-sub {
  font-size: 11px;
  color: var(--nf-text-secondary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- CINEMA PULSE & ACCOUNT PROTECTION ---------- */
.ud-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.28);
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 700;
}

.ud-taste-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ud-genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ud-genre-pill i {
  font-size: 9.5px;
  opacity: 0.6;
}

.ud-genre-pill:hover {
  background: rgba(242, 45, 74, 0.16);
  border-color: rgba(242, 45, 74, 0.44);
  color: #fff;
}

.ud-portal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ud-portal-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  border-radius: 12px;
  background: rgba(8, 11, 20, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ud-portal-btn i {
  font-size: 15px;
  color: var(--nf-red);
}

.ud-portal-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 45, 74, 0.42);
  background: rgba(242, 45, 74, 0.1);
  color: #fff;
}

.ud-shield-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(50, 217, 160, 0.07);
  border: 1px solid rgba(50, 217, 160, 0.22);
  margin-bottom: 12px;
}

.ud-shield-status {
  font-family: var(--nf-font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

.ud-shield-sub {
  font-size: 12px;
  color: var(--nf-text-secondary);
  margin-top: 2px;
}

.ud-sec-checklist,
.ud-benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ud-sec-item,
.ud-benefit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(8, 11, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.065);
  font-size: 12.5px;
  color: #e4e9f5;
  text-align: left;
  width: 100%;
}

.ud-sec-item.actionable {
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.ud-sec-item.actionable:hover {
  border-color: rgba(245, 197, 24, 0.42);
  background: rgba(245, 197, 24, 0.08);
}

.ud-sec-arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--nf-text-muted) !important;
}

.ud-sec-item.ok i,
.ud-benefit-list li i {
  color: var(--nf-green);
  flex-shrink: 0;
}

.ud-sec-item.warn i {
  color: var(--nf-gold);
  flex-shrink: 0;
}

.ud-shield-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ud-subtle-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ud-subtle-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ---------- PICKED FOR YOU & LIBRARY POSTER CARDS ---------- */
.ud-rec-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.ud-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}

.ud-cinema-card {
  background: rgba(8, 11, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ud-cinema-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.ud-cinema-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #0c101d;
  overflow: hidden;
  cursor: pointer;
}

.ud-cinema-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.35s ease;
}

.ud-cinema-card:hover .ud-cinema-poster img {
  transform: scale(1.06);
}

.ud-cinema-poster-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 20, 0.18) 0%, transparent 40%, rgba(8, 11, 20, 0.82) 100%);
  pointer-events: none;
}

.ud-quality-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(8, 11, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(8px);
}

.ud-rating-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(8, 11, 20, 0.78);
  color: #fde047;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  backdrop-filter: blur(8px);
}

.ud-cinema-meta {
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ud-cinema-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ud-cinema-sub {
  font-size: 11px;
  color: var(--nf-text-secondary);
  margin: 3px 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ud-cinema-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.ud-mini-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.16s ease;
}

.ud-mini-cta.primary {
  background: linear-gradient(120deg, rgba(242, 45, 74, 0.22) 0%, rgba(242, 45, 74, 0.14) 46%, #e11136 74%, #1d5cff 100%);
  background-size: 250% 100%;
  background-position: 0% 50%;
  border: 1px solid rgba(242, 45, 74, 0.42);
  color: #fff;
  transition: background-position 0.38s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.28s ease, transform 0.18s ease;
}

.ud-mini-cta.primary:hover {
  background-position: 100% 50%;
  border-color: rgba(147, 197, 253, 0.58);
  transform: translateY(-1px);
  box-shadow: -5px 5px 16px rgba(242, 45, 74, 0.48), 5px 5px 16px rgba(37, 99, 235, 0.52);
}

.ud-mini-icon-btn {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.18s ease, box-shadow 0.24s ease, transform 0.18s ease;
}

.ud-mini-icon-btn:hover {
  background: linear-gradient(135deg, rgba(242, 45, 74, 0.85) 0%, rgba(37, 99, 235, 0.85) 100%);
  border-color: rgba(147, 197, 253, 0.6);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: -4px 4px 14px rgba(242, 45, 74, 0.44), 4px 4px 14px rgba(37, 99, 235, 0.48);
}

.ud-mini-icon-btn.saved {
  background: rgba(50, 217, 160, 0.16);
  border-color: rgba(50, 217, 160, 0.44);
  color: #5ef0bd;
}

.ud-mini-icon-btn.danger:hover {
  background: rgba(242, 45, 74, 0.22);
  border-color: rgba(242, 45, 74, 0.5);
  color: #ff8598;
}

/* ---------- WATCHLIST STRIP & LIVE TV QUICK-ZAP ---------- */
.ud-mini-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.ud-poster-chip {
  cursor: pointer;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(8, 11, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.ud-poster-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 45, 74, 0.45);
}

.ud-poster-chip-img {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.ud-poster-chip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.ud-poster-chip-cap {
  padding: 7px 8px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ud-zap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ud-zap-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 13px;
  background: rgba(8, 11, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.085);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ud-zap-card:hover {
  border-color: rgba(242, 45, 74, 0.42);
  background: rgba(242, 45, 74, 0.08);
  transform: translateY(-1px);
}

.ud-zap-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.ud-zap-text {
  min-width: 0;
}

.ud-zap-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ud-zap-text small {
  display: block;
  font-size: 11px;
  color: var(--nf-text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ud-zap-star {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nf-text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ud-zap-star:hover,
.ud-zap-star.active {
  color: var(--nf-gold);
  background: rgba(245, 197, 24, 0.14);
  border-color: rgba(245, 197, 24, 0.36);
}

.ud-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nf-red);
  box-shadow: 0 0 9px var(--nf-red);
  flex-shrink: 0;
  animation: udPulseRing 2s ease-in-out infinite;
}

/* ---------- EMPTY STATES, BILLING, SESSIONS & PROFILE ---------- */
.ud-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--nf-text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.ud-empty-lounge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 20px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 0%, rgba(242, 45, 74, 0.07), rgba(8, 11, 20, 0.55) 70%);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.ud-empty-lounge.compact {
  padding: 24px 18px;
}

.ud-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #ff6b81;
  background: rgba(242, 45, 74, 0.14);
  border: 1px solid rgba(242, 45, 74, 0.28);
  margin-bottom: 12px;
}

.ud-empty-lounge h3 {
  font-family: var(--nf-font-heading);
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.ud-empty-lounge p {
  font-size: 12.5px;
  color: var(--nf-text-secondary);
  max-width: 390px;
  line-height: 1.5;
  margin-bottom: 14px;
}

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

.ud-billing-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(8, 11, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ud-billing-title {
  font-family: var(--nf-font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.ud-fav-ch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.ud-fav-ch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(8, 11, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.085);
}

.ud-fav-ch-main {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
}

.ud-fav-ch-name {
  font-size: 13.5px;
  font-weight: 700;
}

.ud-fav-ch-cat {
  font-size: 11.5px;
  color: var(--nf-text-secondary);
}

.ud-checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

.ud-checkbox-row input {
  accent-color: #f22d4a;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.ud-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ud-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(8, 11, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ud-session-row.current {
  border-color: rgba(50, 217, 160, 0.38);
  background: rgba(50, 217, 160, 0.06);
}

.ud-session-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

.ud-device-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 15px;
}

.ud-session-row.current .ud-device-icon {
  background: rgba(50, 217, 160, 0.16);
  color: #5ef0bd;
}

.ud-session-meta {
  font-size: 11.5px;
  color: var(--nf-text-secondary);
  margin-top: 3px;
}

.ud-current-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(50, 217, 160, 0.22);
  color: #63f5c4;
}

.ud-pw-meter {
  margin-top: 8px;
}

.ud-pw-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 5px;
}

.ud-pw-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
  background: var(--nf-text-muted);
}

.ud-pw-fill.weak { background: #f22d4a; }
.ud-pw-fill.fair { background: #f5c518; }
.ud-pw-fill.strong { background: #32d9a0; }

.ud-pw-label {
  font-size: 11.5px;
  color: var(--nf-text-secondary);
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1140px) {
  .ud-rec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ud-cw-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .ud-hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .ud-hero-right {
    width: 100%;
  }

  .ud-bento-top,
  .ud-bento-bottom,
  .ud-panel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .nf-dashboard-view {
    padding: 84px 14px 104px;
  }

  .ud-hero-content {
    padding: 18px 16px;
  }

  .ud-hero-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ud-avatar-orb {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 20px;
  }

  .ud-spotlight-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .ud-spotlight-poster {
    width: 88px;
  }

  .ud-card {
    padding: 16px;
  }

  .ud-cw-grid,
  .ud-cw-grid.compact,
  .ud-cw-grid.full,
  .ud-rec-grid,
  .ud-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ud-zap-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ud-shell,
  .ud-pulse-dot,
  .ud-live-dot {
    animation: none !important;
  }

  .nf-btn-play,
  .nf-btn-info,
  .nf-btn-circle,
  .nf-pill-btn,
  .nf-btn-red-full,
  .nf-btn-play::after,
  .nf-btn-info::after {
    transition: none !important;
  }

  .nf-btn-play:hover,
  .nf-btn-info:hover,
  .nf-btn-circle:hover,
  .nf-pill-btn:hover,
  .nf-btn-red-full:hover {
    transform: none !important;
  }
}
