:root {
  --bg-main: #08090d;
  --bg-surface: #10131c;
  --bg-card: #141824;
  --bg-glass: rgba(12, 15, 23, 0.84);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #e50914;
  --accent-hover: #ff1e27;
  --accent-glow: rgba(229, 9, 20, 0.45);
  --gold: #f5c518;
  --radius-card: 12px;
  --radius-modal: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}


::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #08090d; }
::-webkit-scrollbar-thumb { background: #272d3d; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  background: linear-gradient(180deg, rgba(8,9,13,0.95) 0%, rgba(8,9,13,0.4) 70%, transparent 100%);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}
.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-left { display: flex; align-items: center; gap: 28px; }
.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 25px; font-weight: 900;
  letter-spacing: 1.5px; color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
  cursor: pointer;
}
.brand span.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  background: transparent; border: 0; color: var(--text-secondary);
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  cursor: pointer; transition: all 0.2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-link.active { color: #fff; background: var(--accent); box-shadow: 0 4px 14px var(--accent-glow); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box input {
  width: 240px; padding: 9px 14px 9px 36px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(16, 19, 28, 0.85);
  color: #fff; font-size: 13.5px; outline: none; transition: width 0.25s ease, border-color 0.2s ease;
}
.search-box input:focus { width: 310px; border-color: var(--accent); }
.search-icon { position: absolute; left: 12px; color: var(--text-secondary); font-size: 14px; pointer-events: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); }

.hero {
  position: relative; width: 100%; height: 82vh; min-height: 540px; max-height: 780px;
  overflow: hidden; display: flex; align-items: flex-end; padding: 0 4% 72px;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 20%;
  transform: scale(1.03); transition: opacity 0.6s ease, transform 6s ease; z-index: 1;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(8,9,13,0.96) 0%, rgba(8,9,13,0.68) 48%, rgba(8,9,13,0.15) 100%),
    linear-gradient(0deg, #08090d 2%, rgba(8,9,13,0.5) 35%, rgba(8,9,13,0.25) 100%);
}
.hero-content { position: relative; z-index: 3; max-width: 650px; }
.hero-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.badge-type {
  padding: 4px 10px; border-radius: 6px; background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
}
.badge-meta {
  padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 700; color: #e2e8f0;
}
.badge-rating { color: var(--gold); }
.hero-title {
  font-size: clamp(28px, 4.4vw, 52px); font-weight: 900; line-height: 1.1;
  margin-bottom: 12px; letter-spacing: -0.5px; text-shadow: 0 4px 20px rgba(0,0,0,0.7);
}
.hero-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; color: #cbd5e1; }
.hero-genres span::after { content: "•"; margin-left: 8px; color: var(--accent); }
.hero-genres span:last-child::after { content: ""; }
.hero-overview {
  font-size: 15px; color: #cbd5e1; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 24px; max-width: 580px;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn-play {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 10px;
  border: 0; background: #fff; color: #08090d; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn-play:hover { background: var(--accent); color: #fff; transform: scale(1.03); }
.btn-watch-now {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 22px var(--accent-glow);
}
.btn-watch-now:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: scale(1.04);
}
.btn-info {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(30, 35, 50, 0.72);
  backdrop-filter: blur(10px); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all 0.18s ease;
}
.btn-info:hover { background: rgba(255,255,255,0.18); }
.hero-dots { position: absolute; right: 4%; bottom: 34px; z-index: 4; display: flex; gap: 8px; }
.hero-dot { width: 24px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.28); border: 0; cursor: pointer; transition: all 0.25s ease; }
.hero-dot.active { width: 42px; background: var(--accent); }

.main-body { position: relative; z-index: 5; margin-top: -24px; padding-bottom: 60px; }
.genre-strip { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 10px 4% 22px; scrollbar-width: none; }
.genre-strip::-webkit-scrollbar { display: none; }
.genre-pill {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-subtle);
  background: var(--bg-surface); color: #cbd5e1; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.genre-pill:hover, .genre-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.row-section { margin-bottom: 34px; padding: 0 4%; }
.row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.row-title { font-size: 19px; font-weight: 800; letter-spacing: -0.2px; display: flex; align-items: center; gap: 10px; }
.row-title::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--accent); }
.row-controls { display: flex; gap: 8px; }
.scroll-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-subtle);
  background: var(--bg-surface); color: #fff; cursor: pointer; font-size: 14px;
}
.scroll-btn:hover { background: var(--accent); border-color: var(--accent); }
.cards-slider { display: flex; gap: 15px; overflow-x: auto; scroll-behavior: smooth; padding: 6px 2px 12px; scrollbar-width: none; }
.cards-slider::-webkit-scrollbar { display: none; }

.media-card {
  flex: 0 0 185px; width: 185px; border-radius: var(--radius-card); background: var(--bg-card);
  border: 1px solid var(--border-subtle); overflow: hidden; cursor: pointer; position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.media-card:hover {
  transform: translateY(-6px) scale(1.03); border-color: rgba(229, 9, 20, 0.75);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.65); z-index: 10;
}
.poster-wrap { position: relative; width: 100%; aspect-ratio: 2 / 3; background: #181d2c; overflow: hidden; }
.poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.media-card:hover .poster-wrap img { transform: scale(1.06); }
.card-top-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.pill-quality {
  padding: 2px 7px; border-radius: 5px; background: rgba(8, 9, 13, 0.82); backdrop-filter: blur(6px);
  color: #38bdf8; font-size: 10.5px; font-weight: 800; border: 1px solid rgba(56, 189, 248, 0.3);
}
.pill-star { padding: 2px 7px; border-radius: 5px; background: rgba(8, 9, 13, 0.85); color: var(--gold); font-size: 11px; font-weight: 800; }
.card-hover-play {
  position: absolute; inset: 0; background: rgba(8, 9, 13, 0.45); display: flex;
  align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease;
}
.media-card:hover .card-hover-play { opacity: 1; }
.play-circle {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 0 20px var(--accent-glow);
}
.card-info { padding: 10px 11px 12px; }
.card-title { font-size: 13.5px; font-weight: 700; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.card-sub { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-secondary); }

/* Direct OTT Badges on Poster */
.card-ott-strip { position: absolute; bottom: 8px; left: 8px; display: flex; gap: 5px; z-index: 4; }
.card-ott-strip a { display: inline-block; line-height: 0; transition: transform 0.15s ease; }
.card-ott-strip a:hover { transform: scale(1.18); }
.card-ott-strip img { width: 25px; height: 25px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.35); box-shadow: 0 2px 8px rgba(0,0,0,0.85); }

.star-card {
  flex: 0 0 140px; width: 140px; text-align: center; cursor: pointer; padding: 10px 8px;
  border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.star-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.star-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; border: 2px solid rgba(255,255,255,0.14); }
.star-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star-role { font-size: 11px; color: var(--text-secondary); }

.catalog-view { padding: 96px 4% 60px; min-height: 85vh; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.catalog-head h2 { font-size: 24px; font-weight: 900; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-filters select { padding: 9px 14px; border-radius: 9px; border: 1px solid var(--border-subtle); background: var(--bg-surface); color: #fff; font-size: 13.5px; outline: none; cursor: pointer; }
.catalog-filters select:focus, .catalog-filters select:hover { border-color: var(--accent); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.catalog-grid .media-card { width: 100%; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 32px; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 1200; background: rgba(4, 6, 10, 0.86);
  backdrop-filter: blur(10px); display: none; align-items: flex-start;
  justify-content: center; overflow-y: auto; padding: 32px 16px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  position: relative; width: 100%; max-width: 960px; border-radius: var(--radius-modal);
  background: #0e121b; border: 1px solid rgba(255,255,255,0.12); overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.85); animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 20; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(8,9,13,0.8);
  color: #fff; font-size: 18px; cursor: pointer;
}
.modal-close:hover { background: var(--accent); }
.modal-hero { position: relative; min-height: 360px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 28px; }
.modal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0e121b 4%, rgba(14,18,27,0.65) 55%, rgba(14,18,27,0.25) 100%); }
.modal-hero-inner { position: relative; z-index: 2; display: flex; gap: 22px; align-items: flex-end; width: 100%; }
.modal-poster { width: 145px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.15); box-shadow: 0 12px 28px rgba(0,0,0,0.7); flex-shrink: 0; }
.modal-body { padding: 0 28px 30px; }

.player-container { display: none; margin-bottom: 22px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-subtle); background: #000; aspect-ratio: 16 / 9; }
.player-container.active { display: block; }
.player-container iframe { width: 100%; height: 100%; border: 0; }

/* Direct OTT Launch Buttons in Modal */
.ott-section { margin: 0 0 18px; padding: 15px 16px; border-radius: 12px; background: #141926; border: 1px solid rgba(255,255,255,0.08); }
.ott-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ott-btn-group {
  display: inline-flex; align-items: stretch; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16); background: #0c101a;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.ott-btn-group:hover { border-color: #e50914; transform: translateY(-2px); }
.ott-direct-btn { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; color: #f8fafc; text-decoration: none; font-size: 13px; }
.ott-direct-btn:hover { background: rgba(229, 9, 20, 0.14); }
.ott-direct-btn img { width: 26px; height: 26px; border-radius: 6px; }
.ott-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(56, 189, 248, 0.18); color: #38bdf8; font-size: 10px; font-weight: 800; }
.ext-arrow { color: #94a3b8; font-weight: 800; margin-left: 2px; }
.ott-filter-mini {
  border: 0; border-left: 1px solid rgba(255,255,255,0.12); background: #182032;
  color: #94a3b8; padding: 0 10px; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.ott-filter-mini:hover { background: #e50914; color: #fff; }


/* Horizontal Cast Slider (Detail Modal) */
.cast-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}
.cast-slide-hint {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}
.cast-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.cast-slider::-webkit-scrollbar {
  display: none;
}
.cast-slide-card {
  flex: 0 0 126px;
  width: 126px;
  background: #141926;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cast-slide-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.cast-slide-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.cast-slide-card .c-meta {
  padding: 8px;
}
.cast-slide-card .c-name {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-slide-card .c-char {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 12px; margin-top: 12px; }
.cast-item { background: #141926; border: 1px solid var(--border-subtle); border-radius: 11px; overflow: hidden; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
.cast-item:hover { transform: translateY(-4px); border-color: var(--accent); }
.cast-item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.cast-item .c-meta { padding: 8px; }
.cast-item .c-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-item .c-char { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* Mobile-Style Season Selector Strip */
.season-episodes-section {
  margin-top: 22px;
}
.season-header-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.season-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.season-pills-bar::-webkit-scrollbar {
  display: none;
}
.season-chip-btn {
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #141926;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.season-chip-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.season-chip-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.episode-card {
  display: flex; gap: 14px; padding: 12px; border-radius: 11px;
  background: #141926; border: 1px solid var(--border-subtle); margin-bottom: 10px; align-items: center;
  transition: border-color 0.2s ease;
}
.episode-card:hover { border-color: rgba(229, 9, 20, 0.55); }
.episode-still-wrap { position: relative; flex-shrink: 0; cursor: pointer; border-radius: 8px; overflow: hidden; }
.episode-still { width: 140px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #1e2536; display: block; }
.episode-play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 18px; opacity: 0; transition: opacity 0.2s ease;
}
.episode-still-wrap:hover .episode-play-badge { opacity: 1; }
.ep-watch-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 8px;
  border: 0; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800;
  white-space: nowrap; cursor: pointer; transition: background 0.18s ease, transform 0.15s ease;
}
.ep-watch-btn:hover { background: var(--accent-hover); transform: scale(1.04); }

/* ==========================================================================
   CLEAN FULL-VIEWPORT PLAYER OVERLAY (MATCHING SCREENSHOT: NO HEADER BAR)
   ========================================================================== */
.nf-watch-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 99999;
  background: #000;
  display: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.nf-watch-backdrop.open {
  display: block;
}
.nf-player-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.nf-floating-close {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 2147483647;
  pointer-events: auto;
  touch-action: manipulation;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nf-floating-close:hover {
  background: rgba(229, 9, 20, 0.9);
  transform: scale(1.08);
}

.footer { border-top: 1px solid var(--border-subtle); padding: 28px 4%; text-align: center; color: var(--text-secondary); font-size: 13px; background: #06070a; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .search-box input { width: 165px; }
  .search-box input:focus { width: 210px; }
  .hero { height: 70vh; padding-bottom: 48px; }
  .modal-hero-inner { flex-direction: column; align-items: flex-start; }
  .modal-poster { width: 110px; }
  
/* Mobile-Style Season Selector Strip */
.season-episodes-section {
  margin-top: 22px;
}
.season-header-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.season-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.season-pills-bar::-webkit-scrollbar {
  display: none;
}
.season-chip-btn {
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #141926;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.season-chip-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.season-chip-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.episode-card { flex-direction: column; align-items: flex-start; }
  .episode-still-wrap, .episode-still { width: 100%; }
  .nf-playing-title { max-width: 150px; font-size: 13.5px; }
  .nf-brand-tag { display: none; }
}


/* Infinite Scroll Loader */
.infinite-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 0 12px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
}
.infinite-loader .spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinLoader 0.75s linear infinite;
}
@keyframes spinLoader {
  to { transform: rotate(360deg); }
}




/* Not-Found Live TMDB Search Box */
.tmdb-not-found-box {
  grid-column: 1 / -1;
  max-width: 680px;
  width: 100%;
  margin: 24px auto 12px;
  padding: 32px 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, #131826 0%, #0c101a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.tmdb-not-found-box .nf-empty-icon {
  font-size: 38px;
  margin-bottom: 10px;
}
.tmdb-not-found-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 6px;
}
.tmdb-not-found-box p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 20px;
}
.tmdb-live-search-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.tmdb-live-search-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #080b12;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tmdb-live-search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.22);
}
.tmdb-live-status {
  margin-top: 14px;
  font-size: 13.5px;
  min-height: 20px;
}
.live-tmdb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
}
.live-tmdb-header h3 {
  font-size: 18px;
  font-weight: 800;
}
.live-tmdb-pill {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
}


.ep-release-date {
  color: #38bdf8;
  font-weight: 600;
}
.ep-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(245, 197, 24, 0.14);
  border: 1px solid rgba(245, 197, 24, 0.4);
  color: #f5c518;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.episode-card.is-upcoming {
  opacity: 0.88;
}
.episode-still-wrap.is-unreleased {
  cursor: default;
}


/* ==========================================================================
   NETFLIX-STYLE MOBILE & TABLET APP UI ACROSS EVERY PAGE
   ========================================================================== */
.app-bottom-nav {
  display: none;
}

/* Tablet & Mobile Native App Experience (up to 1024px) */
@media (max-width: 1024px) {
  html, body {
    background: #05060a;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
  }

  /* App Top Header */
  .navbar {
    height: 56px;
    padding: 0 14px;
    background: rgba(6, 8, 12, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-left {
    gap: 10px;
    min-width: 0;
  }
  .brand {
    font-size: 19px;
    letter-spacing: 1px;
  }
  .nav-links {
    display: none;
  }
  .nav-right {
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }
  .search-box {
    flex: 1;
    max-width: 245px;
  }
  .search-box input,
  .search-box input:focus {
    width: 100%;
    max-width: 245px;
    padding: 7px 12px 7px 32px;
    font-size: 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
    flex-shrink: 0;
  }

  /* Sticky Bottom App Tab Bar (All Pages: Home, Movies, Series, Anime, Indian, My List) */
  .app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    min-height: 66px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(9, 11, 18, 0.97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
  }
  .app-tab-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    border-radius: 12px;
    padding: 7px 3px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #8b95a7;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.15s ease;
  }
  .app-tab-btn:active {
    transform: scale(0.92);
  }
  .app-tab-ico {
    font-size: 20px;
    line-height: 1.15;
    filter: grayscale(45%);
    transition: transform 0.18s ease, filter 0.18s ease;
  }
  .app-tab-lbl {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .app-tab-btn.active {
    color: #fff;
  }
  .app-tab-btn.active .app-tab-ico {
    transform: translateY(-1px) scale(1.1);
    filter: grayscale(0%);
  }
  .app-tab-btn.active .app-tab-lbl {
    color: #ff2a34;
    font-weight: 800;
  }

  /* 1. HOME PAGE APP STYLING */
  .hero {
    height: 64vh;
    min-height: 415px;
    max-height: 600px;
    padding: 66px 14px 36px;
    align-items: flex-end;
  }
  .hero-content {
    max-width: 100%;
    width: 100%;
  }
  .hero-badges {
    gap: 6px;
    margin-bottom: 8px;
  }
  .badge-type, .badge-meta {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .hero-title {
    font-size: clamp(24px, 5vw, 38px);
    margin-bottom: 6px;
  }
  .hero-genres {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .hero-overview {
    font-size: 13px;
    -webkit-line-clamp: 2;
    margin-bottom: 14px;
    max-width: 100%;
  }
  .hero-actions {
    gap: 8px;
    width: 100%;
  }
  .btn-play {
    flex: 1 1 auto;
    justify-content: center;
    padding: 11px 16px;
    font-size: 14px;
    border-radius: 10px;
  }
  .btn-info {
    padding: 11px 13px;
    font-size: 13px;
    border-radius: 10px;
  }
  .hero-dots {
    right: 14px;
    bottom: 12px;
    gap: 5px;
  }
  .hero-dot {
    width: 15px;
    height: 3px;
  }
  .hero-dot.active {
    width: 26px;
  }

  .main-body {
    margin-top: -6px;
    padding-bottom: 20px;
  }
  .genre-strip {
    padding: 8px 14px 16px;
    gap: 8px;
  }
  .genre-pill {
    padding: 7px 14px;
    font-size: 12.5px;
  }
  .row-section {
    margin-bottom: 24px;
    padding: 0 14px;
  }
  .row-title {
    font-size: 17px;
  }
  .cards-slider {
    gap: 11px;
  }
  .media-card {
    flex: 0 0 136px;
    width: 136px;
    border-radius: 10px;
  }
  .card-info {
    padding: 8px 8px 10px;
  }
  .card-title {
    font-size: 12.5px;
  }
  .card-sub {
    font-size: 10.5px;
  }
  .star-card {
    flex: 0 0 116px;
    width: 116px;
    padding: 8px 6px;
  }
  .star-avatar {
    width: 74px;
    height: 74px;
    margin-bottom: 7px;
  }
  .star-name {
    font-size: 12px;
  }

  /* 2. CATALOG / MOVIES / SERIES / ANIME / INDIAN / SEARCH / MY LIST PAGES */
  .catalog-view {
    padding: 70px 14px 36px;
    min-height: 82vh;
  }
  .catalog-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(16, 19, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }
  .catalog-head h2 {
    font-size: 19px;
  }
  .catalog-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  .catalog-filters select {
    width: 100%;
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: #0b0e16;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  /* 3. DETAIL MODAL / ACTOR MODAL (FULL-SCREEN EDGE-TO-EDGE APP VIEW) */
  .modal-backdrop {
    padding: 0 !important;
    align-items: stretch !important;
    background: #0e121b;
  }
  .modal-box {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow-y: auto;
    border-radius: 0 !important;
    border: 0 !important;
    margin: 0 !important;
  }
  /* Mobile-Style Hero Banner on Detail Page */
  .modal-hero {
    min-height: 310px;
    padding: 24px 16px 20px;
    align-items: flex-end;
    background-position: center top;
  }
  .modal-hero::after {
    background: linear-gradient(
      180deg,
      rgba(10, 13, 21, 0.22) 0%,
      rgba(14, 18, 27, 0.72) 55%,
      #0e121b 100%
    );
  }
  .modal-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .modal-poster {
    width: 128px;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
  }
  .modal-hero-inner .hero-badges,
  .modal-hero-inner .hero-genres,
  .modal-hero-inner .hero-actions {
    justify-content: center;
  }
  .modal-hero-inner h2 {
    font-size: 22px !important;
  }
  .season-pills-bar {
    gap: 7px;
  }
  .season-chip-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .modal-body {
    padding: 0 14px 28px;
  }
  .ott-section {
    padding: 12px;
    border-radius: 10px;
  }
  .ott-list {
    gap: 8px;
  }
  
/* Horizontal Cast Slider (Detail Modal) */
.cast-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}
.cast-slide-hint {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}
.cast-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.cast-slider::-webkit-scrollbar {
  display: none;
}
.cast-slide-card {
  flex: 0 0 126px;
  width: 126px;
  background: #141926;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cast-slide-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.cast-slide-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.cast-slide-card .c-meta {
  padding: 8px;
}
.cast-slide-card .c-name {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-slide-card .c-char {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cast-slide-card {
    flex: 0 0 112px;
    width: 112px;
  }
  .cast-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  
/* Mobile-Style Season Selector Strip */
.season-episodes-section {
  margin-top: 22px;
}
.season-header-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.season-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.season-pills-bar::-webkit-scrollbar {
  display: none;
}
.season-chip-btn {
  flex: 0 0 auto;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #141926;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.season-chip-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.season-chip-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.episode-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
  }
  .episode-still-wrap,
  .episode-still {
    width: 100%;
  }

  /* 4. PLAYER OVERLAY ON MOBILE & TABLET */
  .nf-floating-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .footer {
    padding: 20px 14px 28px;
    font-size: 11.5px;
  }
}

/* Compact Phone Screens (up to 430px) */
@media (max-width: 430px) {
  .brand {
    font-size: 17px;
  }
  .search-box,
  .search-box input,
  .search-box input:focus {
    max-width: 155px;
  }
  .app-tab-ico {
    font-size: 18px;
  }
  .app-tab-lbl {
    font-size: 10.5px;
  }
  .media-card {
    flex: 0 0 120px;
    width: 120px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}


/* ==========================================================================
   SCREENSHOT 2: NETFLIX CATALOG SORT TABS + FILTER PILLS BAR
   ========================================================================== */
.catalog-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.nf-filter-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nf-sort-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nf-sort-tabs::-webkit-scrollbar {
  display: none;
}
.nf-sort-tab {
  position: relative;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  padding: 8px 2px 11px;
  color: #cbd5e1;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.nf-sort-tab:hover {
  color: #fff;
}
.nf-sort-tab.active {
  color: #e50914;
}
.nf-sort-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #e50914;
}
.nf-filter-pills {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nf-filter-pills::-webkit-scrollbar {
  display: none;
}
#catalogCountBadge { display: none !important; }
.nf-pill-reset {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1d22;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.nf-pill-reset:hover {
  border-color: #e50914;
}
.nf-pill-select-wrap {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.nf-pill-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 0;
  padding: 8px 26px 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1d22;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.nf-pill-select-wrap select:focus,
.nf-pill-select-wrap select:hover {
  border-color: #e50914;
}
.nf-pill-caret {
  position: absolute;
  right: 10px;
  color: #e50914;
  font-size: 12px;
  pointer-events: none;
}

/* ==========================================================================
   SCREENSHOT 1: NETFLIX MOBILE APP DETAILS MODAL DESIGN
   ========================================================================== */
.modal-box > .modal-close {
  display: none;
}
.nfd-banner {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  background-size: cover;
  background-position: center 20%;
  background-color: #111319;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}
.nfd-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(14,18,27,0.15) 55%, #0e121b 100%);
  pointer-events: none;
}
.nfd-banner-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nfd-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nfd-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 17, 23, 0.72);
  color: #fff;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nfd-circle-btn:hover {
  background: #e50914;
}
.nfd-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 17, 23, 0.72);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nfd-center-play:hover {
  background: #e50914;
  border-color: #e50914;
}
.nfd-banner-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}
.nfd-vol-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 17, 23, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.nfd-body {
  padding: 6px 16px 28px;
  background: #0e121b;
}
.nfd-brand-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 4px;
}
.nfd-type-spaced {
  color: #e50914;
  letter-spacing: 1.8px;
}
.nfd-dot {
  color: #94a3b8;
}
.nfd-provider-txt {
  color: #cbd5e1;
  font-weight: 700;
}
.nfd-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 8px;
}
.nfd-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 10px;
}
.nfd-match {
  color: #46d369;
  font-weight: 800;
}
.nfd-date,
.nfd-runtime {
  color: #cbd5e1;
  font-weight: 600;
}
.nfd-box-badge {
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
}
.nfd-top10-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.nfd-top10-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: #e50914;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.nfd-top10-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}
.nfd-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.nfd-btn-primary {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 0;
  background: #e50914;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nfd-btn-primary:hover {
  background: #ff1e27;
}
.nfd-btn-secondary {
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  border: 0;
  background: #23262f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nfd-btn-secondary:hover {
  background: #2f333f;
}
.nfd-overview-wrap {
  margin-bottom: 10px;
}
.nfd-overview {
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.5;
}
.nfd-overview.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nfd-more-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 2px 0;
  cursor: pointer;
}
.nfd-credits {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 16px;
}
.nfd-credits span {
  color: #64748b;
  font-weight: 700;
}
.nfd-action-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nfd-act-item {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  cursor: pointer;
}
.nfd-act-ico {
  font-size: 20px;
  line-height: 1;
  color: #fff;
}
.nfd-act-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}
.nfd-subtabs {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  margin-top: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}
.nfd-subtabs::-webkit-scrollbar {
  display: none;
}
.nfd-subtab {
  position: relative;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  padding: 12px 2px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.nfd-subtab.active {
  color: #fff;
}
.nfd-subtab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: #e50914;
}
.nfd-tabpanel {
  padding-top: 14px;
}
.nfd-tabpanel.hidden {
  display: none;
}
.nf-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.nf-sim-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #181d2c;
  cursor: pointer;
}
.nf-sim-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nf-sim-match {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #46d369;
  font-size: 10.5px;
  font-weight: 800;
}


/* ==========================================================================
   NETFLIX MOBILE APP SEASON DROPDOWN & EPISODE LIST (SCREENSHOT MATCH)
   ========================================================================== */
.nf-season-bar {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.nf-season-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nf-season-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 38px 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1c1d22;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.nf-season-select:focus,
.nf-season-select:hover {
  border-color: rgba(255, 255, 255, 0.35);
}
.nf-season-caret {
  position: absolute;
  right: 13px;
  color: #e2e8f0;
  font-size: 13px;
  pointer-events: none;
}
.nf-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nf-ep-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  background: transparent;
  border: 0;
}
.nf-ep-item.is-upcoming {
  opacity: 0.85;
}
.nf-ep-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nf-ep-thumb-wrap {
  position: relative;
  flex: 0 0 132px;
  width: 132px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #181a20;
  cursor: pointer;
}
.nf-ep-thumb-wrap.is-unreleased {
  cursor: default;
}
.nf-ep-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nf-ep-play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
}
.nf-ep-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nf-ep-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nf-ep-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: #9ca3af;
  font-weight: 600;
}
.nf-ep-dot {
  color: #6b7280;
}
.nf-ep-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(245, 197, 24, 0.14);
  color: #f5c518;
  font-size: 11.5px;
  font-weight: 800;
}
.nf-ep-side-icons {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.nf-ep-ico-btn {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.15s ease;
}
.nf-ep-ico-btn:hover,
.nf-ep-ico-btn.checked {
  color: #fff;
  transform: scale(1.08);
}
.nf-ep-ico-btn.checked svg {
  stroke: #46d369;
}
.nf-ep-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #b3b8c4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Dedicated Search Page (Mobile Only) */
.search-page-view {
  display: none !important;
  padding: 72px 14px 48px;
  min-height: 82vh;
}
.search-page-hero {
  margin-bottom: 22px;
}
.search-page-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 4px 12px;
}
.search-page-ico {
  font-size: 16px;
  margin-right: 8px;
}
.search-page-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 15px;
  padding: 10px 6px;
  outline: none;
}
.search-clear-btn {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 16px;
  padding: 6px 8px;
  cursor: pointer;
}
.search-clear-btn:hover {
  color: #fff;
}
.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.search-quick-tags::-webkit-scrollbar {
  display: none;
}
.search-q-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #10131c;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.search-q-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 1024px) {
  .navbar .search-box {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .search-page-view {
    padding: 72px 14px 48px;
  }
}


@media (max-width: 1024px) {
  .nav-left { flex: 1; min-width: 0; }
  .brand { width: 100%; display: flex; align-items: center; }
  .nav-right { flex: 0 0 auto; }
}

body:not(.is-search-active) #searchPageView {
  display: none !important;
}
body.is-search-active #searchPageView {
  display: block !important;
}

/* Horizontal Comma-Separated Languages Slider Above Watch Button */
.nfd-lang-slider-wrap {
  margin-bottom: 10px;
}
.nfd-lang-slider {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 2px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nfd-lang-slider::-webkit-scrollbar {
  display: none;
}
.nfd-lang-item {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.2px;
}


.cast-profile-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 25;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 9, 13, 0.85);
  color: #fff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}
.cast-profile-close-btn:hover {
  background: #e50914;
  border-color: #e50914;
  transform: scale(1.06);
}


.nfd-lang-item.is-highlight-red {
  color: #ff2a34;
  font-weight: 900;
}
