/* ============================================
   NETFLIX-STYLE THEME - Movie Streaming
   ============================================ */

/* --- CSS Custom Properties --- */
:root, body.preset-dark-1 {
  --nf-bg: #141414;
  --nf-bg-lighter: #181818;
  --nf-bg-card: #1a1a1a;
  --nf-black: #000000;
  --nf-white: #ffffff;
  --nf-gray: #808080;
  --nf-gray-light: #b3b3b3;
  --nf-gray-dark: #333333;
  --nf-red: #e50914;
  --nf-red-hover: #f40612;
  --nf-gold: #f5c518;
  --nf-transition-fast: 0.15s ease;
  --nf-transition-medium: 0.3s ease;
  --nf-transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --nf-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.6);
  --nf-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.8);
  --nf-border-radius: 6px;
  --nf-navbar-height: 82px;
  --nf-font-primary: 'Kanit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Netflix Color Presets */
body.preset-dark-2 {
  --nf-bg: #0a0e17; --nf-bg-lighter: #0f1520; --nf-bg-card: #141b28;
  --nf-red: #4a90d9; --nf-red-hover: #5ea3ed; --nf-gray-dark: #1e2a3d;
}
body.preset-dark-3 {
  --nf-bg: #0d0b1a; --nf-bg-lighter: #13102a; --nf-bg-card: #1a1530;
  --nf-red: #9b59b6; --nf-red-hover: #b06ec9; --nf-gray-dark: #251e3a;
}
body.preset-light-1 {
  --nf-bg: #f5f5f5; --nf-bg-lighter: #ffffff; --nf-bg-card: #ffffff;
  --nf-black: #1a1a2e; --nf-white: #1a1a2e; --nf-gray: #64748b;
  --nf-gray-light: #475569; --nf-gray-dark: #e2e8f0;
  --nf-red: #e50914; --nf-red-hover: #ff1a26;
  --nf-shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --nf-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}
body.preset-light-2 {
  --nf-bg: #eef0f4; --nf-bg-lighter: #f8f9fc; --nf-bg-card: #ffffff;
  --nf-black: #1e293b; --nf-white: #1e293b; --nf-gray: #64748b;
  --nf-gray-light: #475569; --nf-gray-dark: #d1d5db;
  --nf-red: #d32f2f; --nf-red-hover: #ef4444;
  --nf-shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --nf-shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
}
body.preset-light-3 {
  --nf-bg: #faf8f5; --nf-bg-lighter: #ffffff; --nf-bg-card: #ffffff;
  --nf-black: #292524; --nf-white: #292524; --nf-gray: #78716c;
  --nf-gray-light: #57534e; --nf-gray-dark: #e7e5e4;
  --nf-red: #c62828; --nf-red-hover: #e53935;
  --nf-shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --nf-shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
}

/* Gradient Luxury Presets */
body.preset-grad-1 {
  --nf-bg: #0a0a0a; --nf-bg-lighter: #111108; --nf-bg-card: #151210;
  --nf-red: #d4a843; --nf-red-hover: #e8be5a; --nf-gray-dark: #1a1608;
  --nf-gold: #d4a843;
}
body.preset-grad-2 {
  --nf-bg: #0d0a10; --nf-bg-lighter: #140e18; --nf-bg-card: #1a1220;
  --nf-red: #e84393; --nf-red-hover: #fd79a8; --nf-gray-dark: #201428;
}
body.preset-grad-3 {
  --nf-bg: #080c18; --nf-bg-lighter: #0e1424; --nf-bg-card: #121a30;
  --nf-red: #c8a96e; --nf-red-hover: #dcc088; --nf-gray-dark: #162040;
}
body.preset-grad-4 {
  --nf-bg: #060d0a; --nf-bg-lighter: #0a1610; --nf-bg-card: #0e1c14;
  --nf-red: #50c878; --nf-red-hover: #6ad890; --nf-gray-dark: #122a1c;
}
body.preset-grad-5 {
  --nf-bg: #0e0e10; --nf-bg-lighter: #161618; --nf-bg-card: #1c1c20;
  --nf-red: #c0c0c8; --nf-red-hover: #d8d8e0; --nf-gray-dark: #24242a;
}

/* Light theme global overrides */
body[class*="preset-light"] { color: var(--nf-black) !important; }
body[class*="preset-light"] .nf-navbar { background: rgba(255,255,255,0.92) !important; backdrop-filter: blur(20px); }
body[class*="preset-light"] .nf-navbar.navbar-scrolled { background: rgba(255,255,255,0.97) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
body[class*="preset-light"] .nf-navbar .nav-link { color: #334155 !important; }
body[class*="preset-light"] .nf-navbar .navbar-brand img { filter: brightness(0.3); }
body[class*="preset-light"] .nf-dropdown-categories { background: #fff !important; border: 1px solid #e2e8f0 !important; }
body[class*="preset-light"] .nf-dropdown-categories .dropdown-item { color: #334155 !important; }
body[class*="preset-light"] .nf-dropdown-categories .dropdown-item:hover { background: #f1f5f9 !important; }
body[class*="preset-light"] .card { background: var(--nf-bg-card) !important; border: 1px solid #e2e8f0 !important; color: var(--nf-black) !important; }
body[class*="preset-light"] .card .card-header { background: #f8fafc !important; border-bottom: 1px solid #e2e8f0 !important; color: var(--nf-black) !important; }
body[class*="preset-light"] .text-white { color: var(--nf-black) !important; }
body[class*="preset-light"] .nf-footer { background: #fff !important; border-top: 1px solid #e2e8f0; }
body[class*="preset-light"] .nf-footer-links a { color: #475569 !important; }
body[class*="preset-light"] .form-control { background: #f8fafc !important; border-color: #d1d5db !important; color: #1e293b !important; }
body[class*="preset-light"] .modal-content { background: #fff !important; color: #1e293b !important; }

/* --- Global Reset & Base --- */
body {
  font-family: var(--nf-font-primary) !important;
  background: var(--nf-bg) !important;
  color: var(--nf-white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: var(--nf-white);
  text-decoration: none;
  transition: color var(--nf-transition-fast);
}

a:hover {
  color: var(--nf-gray-light);
  text-decoration: none;
}

img {
  border-radius: var(--nf-border-radius);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--nf-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--nf-gray-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--nf-gray);
}

/* --- Border Radius Utilities --- */
.border-radius-1 {
  border-radius: var(--nf-border-radius);
}

.border-radius-2 {
  border-radius: 20px;
}

/* ============================================
   NAVBAR - Transparent to Solid on Scroll
   ============================================ */
.nf-navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0 4% !important;
  height: var(--nf-navbar-height);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%) !important;
  border: none !important;
  display: flex;
  align-items: center;
}

.nf-navbar.navbar-scrolled {
  background: rgba(20, 20, 20, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nf-navbar .container,
.nf-navbar .container-fluid {
  max-width: 100% !important;
  padding: 0 !important;
}

.nf-navbar .navbar-brand img {
  height: 64px;
  width: auto;
  filter: brightness(1.1);
  transition: filter var(--nf-transition-fast);
}

.nf-navbar .navbar-brand img:hover {
  filter: brightness(1.3);
}

.nf-navbar .nav-link {
  color: #e5e5e5 !important;
  font-size: 0.875rem;
  font-weight: 300;
  transition: color var(--nf-transition-fast);
  padding: 8px 14px !important;
  letter-spacing: 0.01em;
}

.nf-navbar .nav-link:hover {
  color: var(--nf-white) !important;
}

.nf-navbar .text-wanning-2 {
  color: #e5e5e5 !important;
}

.nf-navbar .text-wanning-2:hover {
  color: var(--nf-white) !important;
}

/* Search field */
.nf-navbar .form-control {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--nf-white);
  border-radius: var(--nf-border-radius);
  font-size: 0.875rem;
  padding: 6px 12px;
  width: 200px;
  transition: all 0.3s ease;
}

.nf-navbar .form-control::placeholder {
  color: var(--nf-gray);
}

.nf-navbar .form-control:focus {
  background: rgba(0, 0, 0, 0.85);
  border-color: var(--nf-white);
  box-shadow: none;
  width: 260px;
}

/* Search & member buttons */
.nf-navbar .btn {
  border-radius: var(--nf-border-radius);
  font-size: 0.85rem;
  padding: 6px 16px;
  font-weight: 400;
  transition: all var(--nf-transition-fast);
}

.nf-navbar .btn-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--nf-white);
}

.nf-navbar .btn-dark:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nf-navbar .btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--nf-white);
}

.nf-navbar .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--nf-white);
}

/* Categories Dropdown */
.nf-dropdown-categories {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nf-border-radius);
  padding: 8px 0;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.nf-dropdown-categories .dropdown-item {
  color: var(--nf-gray-light);
  font-size: 0.85rem;
  padding: 6px 20px;
  transition: all var(--nf-transition-fast);
}

.nf-dropdown-categories .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--nf-white);
}

/* Navbar toggler mobile */
.nf-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 4px 8px;
}

.nf-navbar .navbar-toggler-icon {
  width: 1.2em;
  height: 1.2em;
}

/* Body padding for fixed navbar */
body {
  padding-top: var(--nf-navbar-height);
}

/* ============================================
   HERO BANNER SECTION
   ============================================ */
.nf-hero {
  position: relative;
  width: 100vw;
  height: 85vh;
  min-height: 500px;
  max-height: 850px;
  overflow: hidden;
  margin-top: calc(-1 * var(--nf-navbar-height));
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.nf-hero .owl-carousel,
.nf-hero .owl-stage-outer,
.nf-hero .owl-stage,
.nf-hero .owl-item,
.nf-hero .owl-item > div,
.nf-hero .list-slide,
.nf-hero .list-slide > a {
  height: 100%;
  display: block;
}

.nf-hero .slide-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  min-height: unset !important;
  max-height: unset !important;
  opacity: 1;
}

/* Hero gradient overlays */
.nf-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, var(--nf-bg));
  pointer-events: none;
  z-index: 2;
}

.nf-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Left-side vignette */
.nf-hero .nf-hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Hero info overlay */
.nf-hero-info {
  position: absolute;
  bottom: 25%;
  left: 4%;
  z-index: 5;
  max-width: 45%;
  pointer-events: auto;
}

.nf-hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--nf-white);
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nf-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.nf-hero-description {
  font-size: 1.05rem;
  color: #ddd;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.nf-hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nf-btn-play {
  background: var(--nf-white);
  color: var(--nf-black);
  border: none;
  padding: 10px 32px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: var(--nf-border-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--nf-transition-fast);
  font-family: var(--nf-font-primary);
  text-decoration: none;
}

.nf-btn-play:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--nf-black);
  text-decoration: none;
}

.nf-btn-info {
  background: rgba(109, 109, 110, 0.7);
  color: var(--nf-white);
  border: none;
  padding: 10px 28px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: var(--nf-border-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--nf-transition-fast);
  font-family: var(--nf-font-primary);
}

.nf-btn-info:hover {
  background: rgba(109, 109, 110, 0.4);
}

/* Hero Owl dots */
.nf-hero .owl-dots {
  position: absolute;
  bottom: 12%;
  right: 4%;
  z-index: 5;
}

.nf-hero .owl-dot span {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4) !important;
  border-radius: 50%;
  transition: all var(--nf-transition-medium);
}

.nf-hero .owl-dot.active span {
  background: var(--nf-white) !important;
  width: 28px;
  border-radius: 6px;
}

/* Hide default slide-title & slide-button-play inside hero */
.nf-hero .slide-title {
  display: none !important;
}

.nf-hero .slide-button-play {
  display: none !important;
}

/* ============================================
   MOVIE ROWS - Netflix Horizontal Scroll
   ============================================ */
.nf-row {
  padding: 0 4%;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.nf-row:hover {
  z-index: 2;
}

.nf-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 11;
}

.nf-row-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e5e5e5;
  margin: 0;
  line-height: 1.3;
}

.nf-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 6px;
  border: 1px solid var(--nf-accent-30, rgba(229,9,20,0.3));
  background: var(--nf-accent-06, rgba(229,9,20,0.06));
  color: var(--nf-red);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
  pointer-events: auto !important;
}

.nf-see-all:hover {
  background: var(--nf-red);
  border-color: var(--nf-red);
  color: #fff;
  box-shadow: 0 4px 16px var(--nf-accent-30, rgba(229,9,20,0.3));
  transform: translateY(-1px);
}

.nf-see-all i {
  font-size: 0.65rem;
  transition: transform 0.3s;
}

.nf-see-all:hover i {
  transform: translateX(3px);
}

.nf-slider {
  display: flex;
  overflow-x: auto;
  overflow-y: clip;
  gap: 10px;
  scroll-behavior: smooth;
  padding: 5rem 0 12rem;
  margin: -5rem 0 -12rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

/* --- Movie Card --- */
.nf-card {
  flex: 0 0 auto;
  width: 185px;
  position: relative;
  cursor: pointer;
  transition: transform var(--nf-transition-slow), z-index 0s 0.35s;
  border-radius: var(--nf-border-radius);
  overflow: visible;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .nf-card:hover {
    transform: scale(1.35);
    z-index: 10;
    transition: transform var(--nf-transition-slow), z-index 0s;
  }
}

.nf-card-poster {
  position: relative;
  overflow: hidden;
  border-radius: var(--nf-border-radius);
  transition: border-radius var(--nf-transition-medium);
}

@media (hover: hover) and (pointer: fine) {
  .nf-card:hover .nf-card-poster {
    border-radius: var(--nf-border-radius) var(--nf-border-radius) 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }
}

.nf-card-image {
  width: 100%;
  aspect-ratio: 5/7;
  object-fit: cover;
  border-radius: var(--nf-border-radius);
  display: block;
  transition: border-radius var(--nf-transition-medium), opacity var(--nf-transition-medium);
}

@media (hover: hover) and (pointer: fine) {
  .nf-card:hover .nf-card-image {
    border-radius: var(--nf-border-radius) var(--nf-border-radius) 0 0;
  }
}

/* Card badges */
.nf-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}

.nf-badge-imdb {
  background: var(--nf-gold);
  color: var(--nf-black);
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
}

.nf-badge-resolution {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--nf-white);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  width: fit-content;
  backdrop-filter: blur(4px);
}

.nf-badge-sound {
  color: var(--nf-gray-light);
  font-size: 0.65rem;
}

/* Play button overlay on card */
.nf-card-play {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--nf-transition-medium), border-radius var(--nf-transition-medium);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--nf-border-radius);
  z-index: 4;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .nf-card:hover .nf-card-play {
    opacity: 1;
    border-radius: var(--nf-border-radius) var(--nf-border-radius) 0 0;
  }
}

.nf-card-play i {
  font-size: 2.8rem;
  color: var(--nf-white);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

/* Info panel that appears on hover below card */
.nf-card-info {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--nf-bg-card);
  padding: 14px;
  border-radius: 0 0 var(--nf-border-radius) var(--nf-border-radius);
  box-shadow: var(--nf-shadow-hover);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--nf-transition-medium), transform var(--nf-transition-medium);
  z-index: 10;
}

@media (hover: hover) and (pointer: fine) {
  .nf-card:hover .nf-card-info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
}

.nf-card-info-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nf-white);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-card-info-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--nf-gray-light);
  flex-wrap: wrap;
}

/* --- Section Divider --- */
.nf-divider {
  border: none;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--nf-red), transparent) 1;
  margin: 2rem 4%;
}

/* ============================================
   MOVIE DETAIL PAGE - Cinematic Backdrop
   ============================================ */
.nf-movie-backdrop {
  position: relative;
  width: 100%;
  min-height: auto;
  padding: 0;
  overflow: hidden;
}

.nf-movie-backdrop-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.05);
  filter: blur(1px);
}

.nf-movie-backdrop-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.2) 0%,
    rgba(20, 20, 20, 0.6) 40%,
    rgba(20, 20, 20, 0.92) 70%,
    var(--nf-bg) 100%
  );
}

.nf-movie-backdrop-vignette {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(to right, rgba(20, 20, 20, 0.7), transparent);
}

.nf-movie-content {
  position: relative;
  z-index: 2;
  padding: 100px 4% 24px;
  display: flex;
  justify-content: center;
}

/* Glassmorphism info card */
.nf-glass-card {
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Override old movie-card */
.movie-card {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.movie-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--nf-white) !important;
  text-align: left;
  line-height: 1.2;
  margin-bottom: 1rem;
  padding: 0;
}

/* Movie metadata */
.nf-movie-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.nf-movie-meta .badge {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: var(--nf-border-radius);
  font-weight: 500;
}

.nf-movie-meta .badge-dark {
  background: rgba(255, 255, 255, 0.15);
  color: var(--nf-white);
}

.nf-movie-meta .badge-warning {
  background: var(--nf-gold);
  color: var(--nf-black);
}

/* Movie poster in detail */
.nf-movie-poster {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--nf-shadow-card);
  aspect-ratio: 5/7;
  object-fit: cover;
}

/* Genre links */
.nf-genre-link {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--nf-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 2px;
  transition: all var(--nf-transition-fast);
  text-decoration: none;
}

.nf-genre-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--nf-white);
  text-decoration: none;
}

/* Description */
.nf-movie-description {
  color: var(--nf-gray-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* TMDB screens slider CSS ย้ายเข้า partial: resources/views/template/movie/screens-slider.blade.php */

/* Favorite */
.favorite-movie {
  cursor: pointer;
  transition: transform var(--nf-transition-fast);
}

.favorite-movie:hover {
  transform: scale(1.2);
}

/* Trailer button */
.nf-btn-trailer {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--nf-white);
  padding: 8px 20px;
  border-radius: var(--nf-border-radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--nf-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nf-btn-trailer:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Player container */
/* Player container wrapper */
.nf-player-container-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .nf-player-container-wrap {
    padding: 0 12px;
  }
}

.nf-player-wrap {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.nf-player-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  background: var(--nf-black);
  margin: 2rem 0;
}

.nf-player-container iframe {
  width: 100%;
  height: 550px;
  border: none;
  display: block;
}

/* Sound/resolution buttons */
.nf-sound-selector {
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nf-sound-selector .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--nf-white);
  font-weight: 600;
  padding: 0 0 1rem 0;
}

.nf-sound-selector .card {
  background: transparent;
  border: none;
}

.sound_path {
  border-radius: var(--nf-border-radius) !important;
  font-weight: 500;
  padding: 8px 20px !important;
  margin: 4px;
  transition: all var(--nf-transition-fast);
}

.sound_path.btn-danger,
.sound_path.btn-link {
  background: var(--nf-red);
  color: var(--nf-white);
  border: none;
  text-decoration: none;
}

.sound_path.btn-danger:hover,
.sound_path.btn-link:hover {
  background: var(--nf-red-hover);
  color: var(--nf-white);
}

.sound_path.btn-dark {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--nf-white);
}

.sound_path.btn-dark:hover {
  background: rgba(255, 255, 255, 0.25);
}

.resolutionep {
  border-radius: var(--nf-border-radius) !important;
  background: rgba(255, 255, 255, 0.1);
  color: var(--nf-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  margin: 4px;
  cursor: pointer;
  transition: all var(--nf-transition-fast);
  display: inline-block;
}

.resolutionep:hover {
  background: var(--nf-gold);
  color: var(--nf-black);
  border-color: var(--nf-gold);
}

.resolutionep.btn-warning {
  background: var(--nf-gold);
  color: var(--nf-black);
  border-color: var(--nf-gold);
  font-weight: 600;
}

/* Trailer modal */
.modal-content {
  background: var(--nf-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.modal-body {
  padding: 0;
}

.modal-body iframe {
  border-radius: 12px 12px 0 0;
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER - Netflix-Style Minimal
   ============================================ */
.nf-footer {
  background: transparent !important;
  color: var(--nf-gray);
  padding: 50px 4% 40px;
  font-size: 0.82rem;
  border-top: none;
  margin-top: 3rem;
}

.nf-footer-logo {
  margin-bottom: 1.5rem;
}

.nf-footer-logo img {
  height: 30px;
  width: auto;
  opacity: 0.7;
}

.nf-footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.nf-footer-links a {
  color: var(--nf-gray);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--nf-transition-fast);
  display: block;
  padding: 4px 0;
}

.nf-footer-links a:hover {
  color: var(--nf-gray-light);
  text-decoration: underline;
}

.nf-footer-social {
  margin: 1.5rem 0;
}

.nf-footer-social .jssocials-share-link {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--nf-gray-light) !important;
  width: 36px;
  height: 36px;
  line-height: 36px;
  transition: all var(--nf-transition-fast);
}

.nf-footer-social .jssocials-share-link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--nf-white) !important;
}

.nf-footer-custom {
  color: var(--nf-gray);
  font-size: 0.8rem;
  margin-top: 1rem;
}

.nf-footer-custom a {
  color: var(--nf-gray-light);
}

/* ============================================
   LAYOUT OVERRIDES - Full Width
   ============================================ */

/* Make main content full width, hide sidebar on home */
.nf-full-width .col-lg-15 {
  flex: 0 0 100%;
  max-width: 100%;
}

.nf-full-width .col-lg-5 {
  display: none;
}

/* Content container overrides */
.nf-main-container {
  background: transparent !important;
  border-radius: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.nf-main-container > .row {
  margin: 0 !important;
  padding: 0 !important;
  align-items: flex-start;
}

.nf-main-container > .row > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================
   CATEGORY WORD BAR (A-Z Filter)
   ============================================ */
a.list-button-category {
  border-radius: var(--nf-border-radius);
  padding: 6px 12px;
  color: var(--nf-gray-light);
  text-decoration: none;
  transition: all var(--nf-transition-fast);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  margin: 2px;
  display: inline-block;
  width: auto;
  height: auto;
  line-height: normal;
}

a.list-button-category:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--nf-white);
  opacity: 1;
}

/* ============================================
   SIDEBAR - Hidden but Functional
   ============================================ */
.nf-sidebar-hidden {
  display: none !important;
}

/* Widget styling (for pages that still show sidebar) */
.widget {
  background: rgba(30, 30, 30, 0.9) !important;
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-title p span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--nf-white);
  padding: 4px 14px;
  font-size: 0.85rem;
  border-radius: var(--nf-border-radius);
}

.category-item {
  background: rgba(255, 255, 255, 0.05);
  color: var(--nf-white);
  padding: 6px 14px;
  border-radius: var(--nf-border-radius);
  margin-bottom: 6px;
  transition: all var(--nf-transition-fast);
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.category-item a {
  color: var(--nf-gray-light) !important;
}

.category-item a:hover {
  color: var(--nf-white) !important;
}

/* ============================================
   CONTENT MAIN - Category, Search, etc.
   ============================================ */
.nf-content-main {
  padding: 10px 0;
}

.content-main {
  padding: 10px 0;
}

.content-main .box-header {
  color: #e5e5e5;
  font-size: 1.3rem;
  font-weight: 600;
}

/* ============================================
   OLD CLASSES - Compatibility Overrides
   ============================================ */

/* Override old slide classes for non-hero use */
.list-slide {
  cursor: pointer;
}

.slide-poster {
  opacity: 1;
  transition: 0.5s;
}

.slide-button-play {
  transition: 0.3s;
  transform: scale(0);
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin: auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  text-align: center;
  font-size: 2rem;
  z-index: 10;
}

.list-slide:hover .slide-button-play {
  opacity: 1;
  transform: scale(1);
}

.list-slide:hover .slide-poster {
  opacity: 0.7;
}

.slide-title {
  transition: 0.5s;
  opacity: 1;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: none;
  padding: 50px 10px 10px;
  border-radius: 0 0 6px 6px;
  font-size: 0.8rem;
  line-height: 1rem;
  pointer-events: none;
  white-space: normal;
  margin-bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
  color: #fff;
  text-align: center;
}

.list-slide:hover .slide-title {
  opacity: 0;
}

/* Old item-movie (used in non-home pages) */
.item-movie:hover .item-poster {
  opacity: 0.7;
}

.item-movie:hover .slide-button-play {
  opacity: 1;
  transform: scale(1);
}

.item-movie:hover {
  text-decoration: none;
}

.item-poster {
  opacity: 1;
  transition: 0.5s;
  width: 100%;
  aspect-ratio: 5/7;
  object-fit: cover;
}

.item-poster-horizontal {
  opacity: 1;
  transition: 0.5s;
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.title-poster {
  font-size: 0.85rem;
  margin-bottom: 0;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--nf-gray-light);
  margin-top: 8px;
}

.title-header {
  font-weight: 700;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  margin-bottom: 0;
  font-size: 1.5rem;
  color: #e5e5e5;
}

/* Old badges (for non-home pages) */
.imdb-score {
  position: absolute;
  text-align: center;
  border-top-left-radius: var(--nf-border-radius);
  border-bottom-right-radius: var(--nf-border-radius);
  font-size: 0.72rem;
  font-weight: bold;
  transition: 0.5s;
  background: rgba(0, 0, 0, 0.7) !important;
}

.sound-label {
  border-radius: 3px;
  position: absolute;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  transition: 0.5s;
  top: 10px;
  right: 20px;
  background: var(--nf-accent-80, rgba(229, 9, 20, 0.8)) !important;
  padding: 2px 8px;
}

.resolution {
  border-radius: 3px;
  position: absolute;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  transition: 0.5s;
  top: 30px;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1px 6px;
}

.resolution-hd,
.resolution-fullhd,
.resolution-zoom {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Detail resolution old */
.detail-resolution {
  background-color: var(--nf-gold);
  padding: 4px 10px;
  color: var(--nf-black);
  font-size: 0.75rem;
  border-radius: var(--nf-border-radius);
}

/* Movie list old */
.movie-list {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nf-border-radius);
  overflow: hidden;
}

.movie-list-head {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0;
}

.movie-list-head p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--nf-white);
  padding: 12px;
}

.movie-item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--nf-border-radius);
  overflow: hidden;
}

.movie-item .poster {
  aspect-ratio: 5/7;
  object-fit: cover;
}

/* Movie page old */
.movie-page {
  background-color: var(--nf-bg);
  padding: 20px 50px;
  border-radius: var(--nf-border-radius);
}

.movie-description {
  font-size: 0.95rem;
  color: var(--nf-gray-light);
}

.menu-movie {
  margin-top: 10px;
  border-radius: 0;
  padding: 20px 30px;
  color: var(--nf-white);
}

/* ============================================
   PAGINATION
   ============================================ */
ul.movie-paginate {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

ul.movie-paginate li {
  display: inline-block;
  border-radius: var(--nf-border-radius);
  padding: 0;
  transition: all var(--nf-transition-fast);
}

ul.movie-paginate li a {
  color: var(--nf-gray-light);
  padding: 8px 14px;
  display: block;
  text-decoration: none;
  border-radius: var(--nf-border-radius);
  transition: all var(--nf-transition-fast);
}

ul.movie-paginate li a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--nf-white);
}

ul.movie-paginate li:hover {
  background: transparent;
}

.page-item .page-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--nf-gray-light);
  border-radius: var(--nf-border-radius);
  font-size: 0.9rem;
  transition: all var(--nf-transition-fast);
}

.page-item .page-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--nf-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-item.active .page-link {
  background: var(--nf-red);
  border-color: var(--nf-red);
  color: var(--nf-white);
}

.page-item:first-child .page-link {
  border-radius: var(--nf-border-radius);
}

.page-item:last-child .page-link {
  border-radius: var(--nf-border-radius);
}

/* ============================================
   SOCIAL SHARE
   ============================================ */
.jssocials-share-link {
  border-radius: 50%;
  transition: all var(--nf-transition-fast);
}

#social-links ul {
  margin-block-start: 0;
  padding-inline-start: 0;
  padding-top: 0;
}

#social-links ul li {
  list-style-type: none;
  display: inline;
  margin-right: 10px;
}

#social-links ul li a {
  font-size: 1.8rem;
  color: var(--nf-gray-light);
  transition: color var(--nf-transition-fast);
}

#social-links ul li a:hover {
  color: var(--nf-white);
}

.share-header {
  font-size: 1rem;
  padding-top: 12px;
  display: inline;
  color: var(--nf-gray);
}

/* ============================================
   ARTICLE / CONTENT
   ============================================ */
#content-article img {
  width: 100% !important;
  height: auto !important;
  border-radius: var(--nf-border-radius);
}

#content-article iframe {
  width: 100% !important;
  height: 750px !important;
  border-radius: var(--nf-border-radius);
}

#content-article .twitter-tweet {
  max-width: 100% !important;
  width: 100% !important;
}

/* ============================================
   CARDS & FORMS (Bootstrap overrides)
   ============================================ */
.card {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--nf-white);
}

.card-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--nf-white);
  font-weight: 600;
}

.card-body {
  color: var(--nf-white);
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--nf-white);
  border-radius: var(--nf-border-radius);
  transition: all var(--nf-transition-fast);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--nf-white);
  box-shadow: none;
}

.form-control::placeholder {
  color: var(--nf-gray);
}

.btn-warning {
  background: var(--nf-gold);
  border-color: var(--nf-gold);
  color: var(--nf-black);
  font-weight: 600;
}

.btn-warning:hover {
  background: #ddb00a;
  border-color: #ddb00a;
}

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

.btn-danger:hover {
  background: var(--nf-red-hover);
  border-color: var(--nf-red-hover);
}

.text-warning {
  color: var(--nf-gold) !important;
}

.text-wanning-2 {
  color: #e5e5e5;
}

/* ============================================
   OWL CAROUSEL OVERRIDES
   ============================================ */
.owl-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Override owl nav arrows */
.owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 20, 0.7) !important;
  color: var(--nf-white) !important;
  width: 50px;
  height: 80px;
  font-size: 2rem !important;
  border-radius: var(--nf-border-radius) !important;
  transition: all var(--nf-transition-fast);
  z-index: 10;
}

.owl-nav button:hover {
  background: rgba(20, 20, 20, 0.9) !important;
}

.owl-nav .owl-prev {
  left: 0;
}

.owl-nav .owl-next {
  right: 0;
}

/* Fade animation for hero carousel */
.owl-carousel .animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.owl-carousel .fadeOut {
  animation-name: fadeOut;
}

/* ============================================
   TOP 10 RANKING ROW - Netflix Style
   ============================================ */
.nf-top10-slider {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  gap: 4px;
  scroll-behavior: smooth;
  padding: 2.5rem 0;
  margin: -2.5rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  counter-reset: ranking;
}

.nf-top10-slider::-webkit-scrollbar {
  display: none;
}

.nf-top10-card {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  height: 220px;
  margin-right: 20px;
  transition: transform var(--nf-transition-slow);
}

@media (hover: hover) and (pointer: fine) {
  .nf-top10-card:hover {
    transform: scale(1.08);
    z-index: 5;
  }
}

.nf-top10-card:hover {
  text-decoration: none;
}

.nf-top10-number {
  font-size: 11rem;
  font-weight: 900;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 3px #5a5a5a;
  font-family: 'Arial Black', 'Kanit', sans-serif;
  letter-spacing: -10px;
  position: relative;
  z-index: 1;
  user-select: none;
  margin-right: -30px;
  min-width: 80px;
  text-align: center;
  transition: all var(--nf-transition-medium);
}

.nf-top10-card:hover .nf-top10-number {
  -webkit-text-stroke-color: var(--nf-red);
  color: var(--nf-accent-15, rgba(229, 9, 20, 0.15));
}

.nf-top10-poster-wrap {
  position: relative;
  z-index: 2;
  width: 200px;
  flex-shrink: 0;
}

.nf-top10-poster {
  width: 200px;
  aspect-ratio: 5/7;
  object-fit: cover;
  border-radius: var(--nf-border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  display: block;
}

.nf-top10-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 40px 10px 10px;
  border-radius: 0 0 var(--nf-border-radius) var(--nf-border-radius);
  opacity: 0;
  transition: opacity var(--nf-transition-medium);
}

@media (hover: hover) and (pointer: fine) {
  .nf-top10-card:hover .nf-top10-overlay {
    opacity: 1;
  }
}

.nf-top10-overlay-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nf-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-top10-overlay-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* Card hover info - Enhanced for Netflix focus feel */
.nf-card-info {
  position: absolute;
  top: 100%;
  left: -10%;
  right: -10%;
  background: var(--nf-bg-card);
  padding: 16px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--nf-transition-medium), transform var(--nf-transition-medium);
  z-index: 10;
}

@media (hover: hover) and (pointer: fine) {
  .nf-card:hover .nf-card-info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
}

.nf-card-info-buttons {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.nf-card-info-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(42, 42, 42, 0.6);
  color: var(--nf-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all var(--nf-transition-fast);
  cursor: pointer;
}

.nf-card-info-btn:hover {
  border-color: var(--nf-white);
  background: rgba(255, 255, 255, 0.1);
}

.nf-card-info-btn-play {
  background: var(--nf-white);
  border-color: var(--nf-white);
  color: var(--nf-black);
}

.nf-card-info-btn-play:hover {
  background: #e0e0e0;
}

.nf-card-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.nf-card-info-tag {
  font-size: 0.65rem;
  color: var(--nf-gray-light);
  padding: 2px 0;
}

.nf-card-info-tag::before {
  content: '•';
  margin-right: 4px;
  color: var(--nf-gray-dark);
}

.nf-card-info-tag:first-child::before {
  display: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes nf-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nf-animate {
  animation: nf-fade-in 0.6s ease forwards;
}

@keyframes nf-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nf-slide-up {
  animation: nf-slide-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Loading shimmer */
@keyframes nf-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.nf-skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: nf-shimmer 1.5s ease infinite;
  border-radius: var(--nf-border-radius);
}

/* ============================================
   HR / DIVIDER OVERRIDES
   ============================================ */
hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   ADMIN BAR (keep functional)
   ============================================ */
.nf-admin-bar {
  position: relative;
  z-index: 1060;
}

/* ============================================
   ADS
   ============================================ */
.ads-click img {
  border-radius: var(--nf-border-radius);
  transition: opacity var(--nf-transition-fast);
}

.ads-click img:hover {
  opacity: 0.85;
}

/* ============================================
   FB COMMENTS STYLING
   ============================================ */
.fb-comments {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 1rem;
}

/* ============================================
   RELATED MOVIES
   ============================================ */
.nf-related-section {
  margin-top: 3rem;
}

.nf-related-section .owl-carousel .list-slide {
  padding: 4px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media screen and (max-width: 1200px) {
  .nf-card {
    width: 165px;
  }

  .movie-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 1024px) {
  .nf-hero {
    height: 60vh;
    min-height: 400px;
  }

  .nf-hero-info {
    max-width: 60%;
  }

  .nf-hero-title {
    font-size: 2.2rem;
  }

  .nf-card {
    width: 150px;
  }

  @media (hover: hover) and (pointer: fine) {
    .nf-card:hover {
      transform: scale(1.2);
    }
  }

  .nf-player-container iframe {
    height: 400px;
  }

  .movie-page {
    padding: 20px;
  }
}

@media screen and (max-width: 768px) {
  .nf-hero {
    height: 55vh;
    min-height: 350px;
  }

  .nf-hero-info {
    max-width: 80%;
    bottom: 20%;
  }

  .nf-hero-title {
    font-size: 1.6rem;
  }

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

  .nf-hero-buttons .nf-btn-play,
  .nf-hero-buttons .nf-btn-info {
    padding: 8px 20px;
    font-size: 0.95rem;
  }

  .nf-card {
    width: 130px;
  }

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

  .nf-card-info {
    display: none !important;
  }

  .nf-top10-number {
    font-size: 7rem;
    margin-right: -20px;
    min-width: 55px;
  }

  .nf-top10-poster-wrap {
    width: 150px;
  }

  .nf-top10-poster {
    width: 150px;
    aspect-ratio: 5/7;
  }

  .nf-row-title {
    font-size: 1.2rem;
  }

  .nf-footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .nf-player-container iframe {
    height: 280px;
  }

  .nf-glass-card {
    padding: 1.5rem;
  }

  .movie-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .nf-movie-poster {
    max-width: 60%;
    margin: 0 auto;
    display: block;
  }

  .nf-movie-content {
    padding: 100px 16px 40px;
  }

  .nf-navbar .form-control {
    width: 140px;
  }

  .nf-navbar .form-control:focus {
    width: 180px;
  }
}

@media screen and (max-width: 480px) {
  .nf-hero {
    height: 50vh;
    min-height: 280px;
  }

  .nf-hero-info {
    max-width: 90%;
    bottom: 18%;
  }

  .nf-hero-title {
    font-size: 1.3rem;
  }

  .nf-hero-buttons .nf-btn-play,
  .nf-hero-buttons .nf-btn-info {
    padding: 6px 16px;
    font-size: 0.85rem;
  }

  .nf-card {
    width: 115px;
  }

  .nf-slider {
    gap: 8px;
  }

  .nf-row {
    padding: 0 3%;
    margin-bottom: 1.5rem;
  }

  .nf-player-container iframe {
    height: 200px;
  }

  .movie-title {
    font-size: 1.3rem;
  }

  .nf-glass-card {
    padding: 1rem;
    border-radius: 10px;
  }

  .nf-movie-content {
    padding: 80px 3% 30px;
  }

  .nf-navbar {
    padding: 0 3% !important;
  }

  .nf-navbar .navbar-brand img {
    height: 36px;
  }

  .nf-footer {
    padding: 30px 3%;
  }

  .nf-footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
  }
}

/* ============================================
   LIVESCORE (if enabled)
   ============================================ */
#iframe-score108 {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--nf-border-radius);
}

/* ============================================
   TRAILER
   ============================================ */
.trailer {
  width: 100%;
  height: 350px;
  border-radius: var(--nf-border-radius);
}

@media screen and (max-width: 480px) {
  .trailer {
    height: 200px;
  }
}

/* ============================================
   JW PLAYER OVERRIDES
   ============================================ */
.jw-vast-nonlinear-close-button {
  inset: 0px !important;
}

.jw-flag-fullscreen .jw-logo {
  width: 100px !important;
  height: 100px !important;
}

.jw-flag-fullscreen .jw-banner {
  width: 40% !important;
}

/* ============================================
   TEXT COLOR OVERRIDE (for admin settings)
   ============================================ */
.text-white {
  color: var(--nf-white) !important;
}

.text-dark {
  color: var(--nf-gray-light) !important;
}

.text-secondary {
  color: var(--nf-gray) !important;
}

.text-muted {
  color: var(--nf-gray) !important;
}

.bg-white {
  background: transparent !important;
}

.bg-light {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* ============================================
   BOOTSTRAP BUTTON OVERRIDES (Dark Theme)
   ============================================ */
.btn-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--nf-white);
}

.btn-light:hover,
.btn-light:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--nf-white);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--nf-gray-light);
}

.btn-dark:hover,
.btn-dark:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--nf-white);
}

/* Episode buttons - active uses Netflix red */
.episode_path.btn-light,
.episode_path.btn-light:hover {
  background: var(--nf-red) !important;
  border-color: var(--nf-red) !important;
  color: var(--nf-white) !important;
  font-weight: 600;
}

.episode_path.btn-dark {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: var(--nf-gray-light) !important;
}

.episode_path.btn-dark:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--nf-white) !important;
}

/* Play-ep buttons for resolution selector */
.play-ep {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--nf-gray-light);
  padding: 8px 16px;
  border-radius: var(--nf-border-radius);
  cursor: pointer;
  transition: all var(--nf-transition-fast);
}

.play-ep:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--nf-white);
}

.play-ep.btn-primary {
  background: var(--nf-red);
  border-color: var(--nf-red);
  color: var(--nf-white);
}

/* Table and list overrides for dark theme */
.table {
  color: var(--nf-gray-light);
}

.table td, .table th {
  border-color: rgba(255, 255, 255, 0.08);
}

.list-group-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--nf-gray-light);
}

/* Alert overrides */
.alert {
  border-radius: var(--nf-border-radius);
}

.alert-info {
  background: rgba(23, 162, 184, 0.15);
  border-color: rgba(23, 162, 184, 0.3);
  color: #7dd3e1;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.3);
  color: var(--nf-gold);
}

.alert-danger {
  background: var(--nf-accent-15, rgba(229, 9, 20, 0.15));
  border-color: var(--nf-accent-30, rgba(229, 9, 20, 0.3));
  color: #ff6b6b;
}

/* Dropdown menus */
.dropdown-menu {
  background: var(--nf-bg-lighter);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
  color: var(--nf-gray-light);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--nf-white);
}

.dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.08);
}
