/*
Theme Name: NetoFlix Kids Theme
Theme URI: https://example.com/netoflix-kids-theme
Author: NetoFlix
Author URI: https://example.com
Description: Theme WordPress terinspirasi Netflix untuk plugin NetoFlix Edu dengan opsi warna.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: netoflix-kids-theme
*/

:root {
  --nf-accent: #e50914;
  --nf-bg: #0b0f19;
  --nf-surface: #161b2b;
  --nf-text: #f5f7ff;
  --nf-muted: #b7bed9;
  --nf-radius: 14px;
  --nf-font-family: "Poppins", "Segoe UI", sans-serif;
  --nf-font-size-xs: 12px;
  --nf-font-size-sm: 14px;
  --nf-font-size-md: 16px;
  --nf-font-size-lg: 20px;
  --nf-font-size-xl: 28px;
  --nf-heading-weight: 700;
  --nf-text-strong: #ffffff;
  --nf-text-body: #f5f7ff;
  --nf-text-soft: #c7cde2;
  --nf-poster-ratio: 2 / 3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--nf-font-family);
  background: radial-gradient(1000px 400px at 80% -20%, color-mix(in srgb, var(--nf-accent) 30%, transparent), transparent),
    linear-gradient(180deg, var(--nf-bg) 0%, #090d16 100%);
  color: var(--nf-text-body);
  font-size: var(--nf-font-size-md);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--nf-text-strong);
}

button,
input,
select,
textarea {
  font-family: var(--nf-font-family);
  font-size: var(--nf-font-size-md);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nf-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.nf-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--nf-bg) 88%, black);
  border-bottom: 1px solid color-mix(in srgb, var(--nf-text) 10%, transparent);
  backdrop-filter: blur(8px);
}

.nf-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.nf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.4px;
}

.nf-brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.nf-brand-title {
  font-weight: 700;
  font-size: 18px;
}

.nf-brand-tagline {
  margin-top: 2px;
  font-size: 12px;
  color: var(--nf-muted);
  letter-spacing: 0;
}

.nf-brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--nf-accent);
  color: #fff;
  font-weight: 800;
}

.nf-menu {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--nf-muted);
  font-weight: 500;
}

.nf-menu ul {
  display: flex;
  gap: 16px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nf-menu a:hover,
.nf-menu .current-menu-item a {
  color: var(--nf-text);
}

.nf-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 50px;
  overflow: hidden;
}

.nf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.15) 60%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.1) 80%);
}

.nf-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.nf-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.nf-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.nf-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nf-muted);
  margin-bottom: 12px;
}

.nf-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, var(--nf-font-size-xl));
  line-height: 1.05;
  color: var(--nf-text-strong);
}

.nf-hero p {
  margin-top: 14px;
  color: #e8ecff;
  max-width: 62ch;
}

.nf-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nf-btn-primary {
  background: var(--nf-accent);
  color: #fff;
}

.nf-btn-ghost {
  background: color-mix(in srgb, var(--nf-surface) 86%, black);
  color: var(--nf-text);
  border: 1px solid color-mix(in srgb, var(--nf-text) 14%, transparent);
}

.nf-section {
  padding: 34px 0;
}

.nf-section-title {
  margin: 0 0 14px;
  font-size: var(--nf-font-size-xl);
  letter-spacing: 0.2px;
  color: var(--nf-text-strong);
}

.nf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.nf-card {
  background: color-mix(in srgb, var(--nf-surface) 92%, black);
  border: 1px solid color-mix(in srgb, var(--nf-text) 8%, transparent);
  border-radius: var(--nf-radius);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.nf-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--nf-accent) 45%, transparent);
}

.nf-card-auth,
.nf-card-auth:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.nf-thumb {
  display: block;
  width: 100%;
  aspect-ratio: var(--nf-poster-ratio);
  background: #0f1220;
  overflow: hidden;
}

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

.nf-card-body {
  padding: 12px;
}

.nf-card-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.nf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.nf-chip {
  background: color-mix(in srgb, var(--nf-accent) 25%, transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 8px;
}

.nf-card-text {
  margin: 0;
  color: var(--nf-muted);
  font-size: 14px;
}

.nf-filter {
  background: color-mix(in srgb, var(--nf-surface) 88%, black);
  border: 1px solid color-mix(in srgb, var(--nf-text) 10%, transparent);
  border-radius: var(--nf-radius);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.nf-filter label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--nf-muted);
}

.nf-filter select,
.nf-filter button {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--nf-text) 16%, transparent);
  background: #0e1422;
  color: var(--nf-text);
  padding: 0 10px;
}

.nf-player {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--nf-text) 12%, transparent);
  background: #060911;
}

.nf-player video {
  width: 100%;
  display: block;
}

.nf-footer {
  margin-top: 40px;
  border-top: 1px solid color-mix(in srgb, var(--nf-text) 10%, transparent);
  color: var(--nf-muted);
}

.nf-footer .nf-container {
  padding: 20px 0 28px;
}

.nf-color-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  background: color-mix(in srgb, var(--nf-surface) 94%, black);
  border: 1px solid color-mix(in srgb, var(--nf-text) 13%, transparent);
  border-radius: 12px;
  padding: 10px;
  min-width: 190px;
}

.nf-color-switcher label {
  display: block;
  color: var(--nf-muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.nf-color-switcher select {
  width: 100%;
  border-radius: 8px;
  min-height: 36px;
  background: #0e1422;
  color: var(--nf-text);
  border: 1px solid color-mix(in srgb, var(--nf-text) 18%, transparent);
  padding: 0 8px;
}

@media (max-width: 768px) {
  .nf-header-row {
    flex-wrap: wrap;
  }

  .nf-hero {
    min-height: 52vh;
    padding-top: 62px;
  }

  .nf-menu {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* Landing homepage inspired layout */
.home .nf-header {
  position: absolute;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.home .nf-header .nf-brand,
.home .nf-header .nf-menu {
  display: none;
}

.nf-home-hero {
  position: relative;
  min-height: 86vh;
  padding: 20px 0 70px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.82) 100%),
    var(--nf-hero, linear-gradient(120deg, #1b1b1b, #101010));
  background-size: cover;
  background-position: center;
}

.nf-home-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
}

.nf-home-topbar,
.nf-home-copy {
  position: relative;
  z-index: 2;
}

.nf-home-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
}

.nf-home-logo {
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #e50914;
}

.nf-home-actions {
  display: flex;
  gap: 10px;
}

.nf-home-actions select,
.nf-home-signin {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  height: 36px;
  padding: 0 12px;
  background: rgba(16, 16, 16, 0.72);
  color: #fff;
  font-weight: 600;
}

.nf-home-signin {
  display: inline-flex;
  align-items: center;
  background: var(--nf-accent);
  border-color: var(--nf-accent);
}

.nf-home-copy {
  margin: 16vh auto 0;
  max-width: 760px;
  text-align: center;
}

.nf-home-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}

.nf-home-sub,
.nf-home-sub2 {
  margin: 14px auto 0;
  max-width: 68ch;
  color: #e6e6e6;
}

.nf-home-sub {
  font-size: 20px;
  font-weight: 600;
}

.nf-email-cta {
  margin: 20px auto 0;
  max-width: 670px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.nf-email-cta input {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
}

.nf-email-cta button {
  min-height: 56px;
  border: 0;
  border-radius: 4px;
  background: var(--nf-accent);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  padding: 0 24px;
  cursor: pointer;
}

.nf-wave-divider {
  height: 4px;
  background: linear-gradient(90deg, #ff2462, #891eff);
}

.nf-landing-section {
  padding: 34px 0;
  background: #000;
}

.nf-landing-section h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.nf-trending-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 188px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.nf-trend-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  min-height: 252px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nf-trend-fallback {
  display: grid;
  place-items: center;
  padding: 12px;
  background: #181818;
  text-align: center;
  font-weight: 700;
}

.nf-rank {
  position: absolute;
  left: 8px;
  bottom: 2px;
  color: #fff;
  font-weight: 800;
  font-size: 70px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.nf-reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.nf-reason-card {
  position: relative;
  min-height: 180px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(130deg, #1d1f44, #17090f);
  padding: 18px;
}

.nf-reason-card h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.nf-reason-card p {
  margin: 0;
  color: #d4d4d4;
}

.nf-reason-icon {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 24px;
}

.nf-faq-wrap {
  max-width: 980px;
}

.nf-faq-item {
  margin-bottom: 8px;
}

.nf-faq-button {
  width: 100%;
  min-height: 76px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  background: #2d2d2d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 24px;
  cursor: pointer;
}

.nf-faq-plus {
  font-size: 38px;
  line-height: 1;
}

.nf-faq-answer {
  background: #2d2d2d;
  margin-top: 1px;
  padding: 14px 18px;
  color: #e3e3e3;
}

.nf-faq-item.is-open .nf-faq-plus {
  transform: rotate(45deg);
}

.nf-last-cta {
  padding-top: 18px;
  padding-bottom: 52px;
}

.nf-last-cta > .nf-container > p {
  text-align: center;
  margin-bottom: 8px;
}

.nf-link-footer {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.nf-link-footer a {
  color: #b7b7b7;
  text-decoration: underline;
}

.home .nf-footer {
  margin-top: 0;
  border-top: 0;
  background: #000;
}

@media (max-width: 768px) {
  .nf-home-logo {
    font-size: 28px;
  }

  .nf-home-copy {
    margin-top: 12vh;
  }

  .nf-email-cta {
    grid-template-columns: 1fr;
  }

  .nf-email-cta button {
    font-size: 20px;
  }

  .nf-landing-section h2 {
    font-size: 24px;
  }

  .nf-rank {
    font-size: 54px;
  }

  .nf-faq-button {
    font-size: 18px;
    min-height: 62px;
  }
}

/* Pixel-close landing variant */
.home .nf-header,
.home .nf-color-switcher {
  display: none;
}

.nfx-home {
  background: #000;
  color: #fff;
}

.nfx-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.nfx-hero {
  position: relative;
  min-height: 92vh;
  padding: 22px 0 80px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.78)),
    linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)),
    var(--nfx-hero-bg, linear-gradient(135deg, #1e1e1e, #111));
  background-size: cover;
  background-position: center;
}

.nfx-hero-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.7));
}

.nfx-topbar,
.nfx-hero-content {
  position: relative;
  z-index: 2;
}

.nfx-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nfx-logo {
  color: #e50914;
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: 34px;
  line-height: 1;
}

.nfx-top-actions {
  display: flex;
  gap: 10px;
}

.nfx-top-actions select,
.nfx-signin {
  min-height: 34px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(12, 12, 12, 0.72);
  padding: 0 12px;
  font-weight: 600;
}

.nfx-signin {
  display: inline-flex;
  align-items: center;
  background: var(--nf-accent);
  border-color: var(--nf-accent);
}

.nfx-hero-content {
  max-width: 860px;
  margin: 18vh auto 0;
  text-align: center;
}

.nfx-hero-content h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.03;
  font-weight: 800;
}

.nfx-sub1,
.nfx-sub2,
.nfx-sub3 {
  margin: 10px auto 0;
}

.nfx-sub1 {
  font-size: 20px;
  font-weight: 600;
}

.nfx-sub2,
.nfx-sub3 {
  color: #ececec;
}

.nfx-email-row {
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 690px;
}

.nfx-email-row input {
  min-height: 56px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  background: rgba(9, 9, 9, 0.68);
  color: #fff;
  padding: 0 14px;
  font-size: 16px;
}

.nfx-email-row button {
  min-height: 56px;
  border: 0;
  border-radius: 4px;
  background: var(--nf-accent);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  padding: 0 26px;
  cursor: pointer;
}

.nfx-start-link {
  display: inline-block;
  margin-top: 14px;
  color: #ffb3b7;
  text-decoration: underline;
}

.nfx-curve {
  height: 5px;
  background: linear-gradient(90deg, #ff1872, #ff295b, #8a20ff);
}

.nfx-block {
  background: #000;
  padding: 30px 0;
}

.nfx-block h2 {
  margin: 0 0 14px;
  font-size: 32px;
}

.nfx-trending {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 180px);
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 10px;
}

.nfx-trend-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.nfx-trend-item img,
.nfx-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nfx-fallback {
  display: grid;
  place-items: center;
  text-align: center;
  background: #181818;
  padding: 10px;
}

.nfx-rank {
  position: absolute;
  left: 5px;
  bottom: 0;
  font-size: 70px;
  line-height: 0.9;
  font-weight: 800;
  color: #fff;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

.nfx-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nfx-reason-card {
  position: relative;
  min-height: 220px;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(130% 110% at 100% 100%, rgba(255, 50, 142, 0.22), transparent),
    linear-gradient(150deg, #1e1e48, #140a12);
}

.nfx-reason-card h3 {
  margin: 0 0 8px;
  font-size: 28px;
}

.nfx-reason-card p {
  margin: 0;
  color: #d7d7d7;
}

.nfx-icon {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 28px;
}

.nfx-faq {
  max-width: 1000px;
}

.nfx-faq-item {
  margin-bottom: 8px;
}

.nfx-faq-btn {
  width: 100%;
  min-height: 84px;
  padding: 0 20px;
  border: 0;
  background: #2d2d2d;
  color: #fff;
  font-size: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.nfx-plus {
  font-size: 42px;
  line-height: 1;
}

.nfx-faq-panel {
  background: #2d2d2d;
  margin-top: 1px;
  padding: 14px 20px;
  color: #e6e6e6;
}

.nfx-faq-item.is-open .nfx-plus {
  transform: rotate(45deg);
}

.nfx-bottom {
  padding-bottom: 60px;
}

.nfx-bottom > .nfx-container > p {
  text-align: center;
  margin-bottom: 8px;
}

.nfx-footer-links {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.nfx-footer-links a {
  color: #b7b7b7;
  text-decoration: underline;
  font-size: 14px;
}

.nfx-home + .nf-footer {
  margin-top: 0;
  border-top: 0;
  background: #000;
}

@media (max-width: 900px) {
  .nfx-logo {
    font-size: 26px;
  }

  .nfx-hero-content {
    margin-top: 12vh;
  }

  .nfx-email-row {
    grid-template-columns: 1fr;
  }

  .nfx-email-row button {
    font-size: 20px;
  }

  .nfx-reasons {
    grid-template-columns: 1fr;
  }

  .nfx-block h2 {
    font-size: 24px;
  }

  .nfx-faq-btn {
    font-size: 18px;
    min-height: 68px;
  }

  .nfx-rank {
    font-size: 54px;
  }

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

/* Home v2 - closer to provided reference */
.home .nf-header,
.home .nf-color-switcher,
.home .nf-footer {
  display: none;
}

.nfx-home-v2 {
  background: #000;
  color: var(--nf-text-body);
  font-family: var(--nf-font-family);
}

.nfx2-shell {
  width: min(1230px, 92vw);
  margin: 0 auto;
}

.nfx2-hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding: 22px 0 70px;
  background: #000;
}

.nfx2-collage {
  position: absolute;
  inset: -14% -18%;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  transform: rotate(-17deg) scale(1.18);
  transform-origin: center;
  opacity: 0.62;
}

.nfx2-collage-item {
  margin: 0;
  height: 140px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nfx2-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.1);
}

.nfx2-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 15%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.8)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.96));
}

.nfx2-topbar,
.nfx2-center {
  position: relative;
  z-index: 2;
}

.nfx2-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nfx2-logo {
  color: #e50914;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nfx2-logo-wrap {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.nfx2-tagline {
  margin-top: 2px;
  font-size: 11px;
  color: #d0d0d0;
  letter-spacing: 0;
  max-width: 260px;
}

.nfx2-actions {
  display: flex;
  gap: 10px;
}

.nfx2-actions select,
.nfx2-signin {
  min-height: 34px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(22, 22, 22, 0.75);
  color: #fff;
  padding: 0 12px;
  font-size: 14px;
}

.nfx2-signin {
  display: inline-flex;
  align-items: center;
  background: var(--nf-accent);
  border-color: var(--nf-accent);
  font-weight: 600;
}

.nfx2-center {
  max-width: 740px;
  margin: 21vh auto 0;
  text-align: center;
}

.nfx2-center h1 {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.1;
  font-weight: 800;
}

.nfx2-sub1,
.nfx2-sub2,
.nfx2-sub3 {
  margin: 14px auto 0;
}

.nfx2-sub1 {
  font-size: 22px;
  font-weight: 600;
}

.nfx2-sub2,
.nfx2-sub3 {
  color: #f0f0f0;
}

.nfx2-email {
  margin: 18px auto 0;
  max-width: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 8px;
}

.nfx2-email input {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.7);
  color: #fff;
  padding: 0 14px;
  font-size: 16px;
}

.nfx2-email button {
  min-height: 56px;
  border: 0;
  border-radius: 4px;
  background: var(--nf-accent);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  padding: 0 20px;
  cursor: pointer;
}

.nfx2-divider {
  height: 5px;
  background: linear-gradient(90deg, #ff1c8d 0%, #ff2e62 35%, #a42bff 100%);
  border-radius: 999px 999px 0 0;
}

.nfx2-section {
  background: #000;
  padding: 26px 0;
}

.nfx2-section1 {
  padding-bottom: 72px;
}

.nfx2-section2 {
  padding-top: 28px;
}

.nfx2-section3 {
  padding-top: 20px;
}

.nfx2-section4 {
  padding-top: 22px;
  padding-bottom: 56px;
}

.nfx2-section h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.nfx2-trending-wrap {
  position: relative;
  padding: 0 38px;
}

.nfx2-trending-viewport {
  overflow: hidden;
}

.nfx2-trending {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}

.nfx2-trending::-webkit-scrollbar {
  display: none;
}

.nfx2-trend {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 5);
  display: block;
  aspect-ratio: var(--nf-poster-ratio);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nfx2-trend img,
.nfx2-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nfx2-fallback {
  background: #171717;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
}

.nfx2-nav {
  position: absolute;
  top: calc(50% - 18px);
  width: 32px;
  height: 60px;
  border: 0;
  border-radius: 8px;
  background: rgba(28, 28, 28, 0.75);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.nfx2-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

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

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

.nfx2-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.nfx2-card {
  position: relative;
  border-radius: 16px;
  min-height: 200px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(130% 110% at 100% 100%, rgba(255, 41, 110, 0.25), transparent),
    linear-gradient(145deg, #1b1e43, #160a11);
}

.nfx2-card-1 {
  background: radial-gradient(130% 110% at 100% 100%, color-mix(in srgb, var(--nfx2-card1, #ff7850) 32%, transparent), transparent),
    linear-gradient(145deg, color-mix(in srgb, var(--nfx2-card1, #ff7850) 36%, #161616), #0f0c0a);
}

.nfx2-card-2 {
  background: radial-gradient(130% 110% at 100% 100%, color-mix(in srgb, var(--nfx2-card2, #5ab4ff) 32%, transparent), transparent),
    linear-gradient(145deg, color-mix(in srgb, var(--nfx2-card2, #5ab4ff) 36%, #141a1e), #0a1016);
}

.nfx2-card-3 {
  background: radial-gradient(130% 110% at 100% 100%, color-mix(in srgb, var(--nfx2-card3, #a078ff) 32%, transparent), transparent),
    linear-gradient(145deg, color-mix(in srgb, var(--nfx2-card3, #a078ff) 36%, #16131c), #100d16);
}

.nfx2-card-4 {
  background: radial-gradient(130% 110% at 100% 100%, color-mix(in srgb, var(--nfx2-card4, #6ef0be) 32%, transparent), transparent),
    linear-gradient(145deg, color-mix(in srgb, var(--nfx2-card4, #6ef0be) 36%, #111b17), #0b120f);
}

.nfx2-card-5 {
  background: radial-gradient(130% 110% at 100% 100%, color-mix(in srgb, var(--nfx2-card5, #ff5ac8) 32%, transparent), transparent),
    linear-gradient(145deg, color-mix(in srgb, var(--nfx2-card5, #ff5ac8) 36%, #1e141c), #120a11);
}

.nfx2-card h3 {
  margin: 0 0 8px;
  font-size: 30px;
}

.nfx2-card p {
  margin: 0;
  color: #d6d6d6;
  max-width: 58ch;
}

.nfx2-card span {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 26px;
}

.nfx2-faq {
  max-width: 1040px;
}

.nfx2-faq-item {
  margin-bottom: 8px;
}

.nfx2-faq-btn {
  width: 100%;
  min-height: 82px;
  border: 0;
  background: #2d2d2d;
  color: #fff;
  padding: 0 20px;
  font-size: 26px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.nfx2-plus {
  font-size: 42px;
  line-height: 1;
}

.nfx2-panel {
  background: #2d2d2d;
  margin-top: 1px;
  padding: 14px 20px;
  color: #e6e6e6;
}

.nfx2-faq-item.is-open .nfx2-plus {
  transform: rotate(45deg);
}

.nfx2-bottom {
  padding-top: 8px;
  padding-bottom: 56px;
}

.nfx2-bottom-copy {
  text-align: center;
  margin: 0 0 8px;
}

.nfx2-contact {
  display: inline-block;
  margin-top: 26px;
  color: #bcbcbc;
  text-decoration: underline;
}

.nfx2-links {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.nfx2-links a {
  color: #b8b8b8;
  text-decoration: underline;
  font-size: 14px;
}

.nfx2-lang-row {
  margin-top: 24px;
}

.nfx2-lang-row select {
  min-height: 34px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  padding: 0 12px;
}

@media (max-width: 900px) {
  .nfx2-logo {
    font-size: 30px;
  }

  .nfx2-center {
    margin-top: 14vh;
  }

  .nfx2-sub1 {
    font-size: 19px;
  }

  .nfx2-email {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .nfx2-email button {
    font-size: 24px;
  }

  .nfx2-collage {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
  }

  .nfx2-trending-wrap {
    padding: 0 30px;
  }

  .nfx2-cards {
    grid-template-columns: 1fr;
  }

  .nfx2-card h3 {
    font-size: 28px;
  }

  .nfx2-section h2 {
    font-size: 24px;
  }

  .nfx2-faq-btn {
    font-size: 20px;
    min-height: 66px;
  }

  .nfx2-rank {
    font-size: 54px;
  }

  .nfx2-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .nfx2-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .nfx2-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Single Film layout inspired by reference */
.single-film .nf-header,
.single-film .nf-footer,
.single-film .nf-color-switcher {
  display: none;
}

.nfxs-page {
  background: #030303;
  color: #fff;
  min-height: 100vh;
}

.nfxs-shell {
  width: min(1240px, 94vw);
  margin: 0 auto;
}

.nfxs-hero {
  position: relative;
  padding: 20px 0 24px;
  background: radial-gradient(1200px 450px at 50% 0, rgba(255, 255, 255, 0.08), transparent),
    #040404;
}

.nfxs-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(120, 180, 255, 0.12), transparent 62%);
  pointer-events: none;
}

.nfxs-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.nfxs-logo {
  color: #e50914;
  font-size: 60px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nfxs-signin {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.nfxs-tabs {
  position: relative;
  z-index: 2;
  margin: 10px auto 16px;
  background: rgba(6, 6, 6, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  width: fit-content;
  padding: 6px;
  display: flex;
  gap: 6px;
}

.nfxs-tabs button {
  border: 0;
  border-radius: 999px;
  min-height: 34px;
  background: transparent;
  color: #d8d8d8;
  padding: 0 18px;
  cursor: pointer;
}

.nfxs-tabs button.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nfxs-banner-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 520px;
}

.nfxs-banner-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.7)), var(--nfxs-banner, linear-gradient(140deg, #20252e, #0f1219));
  background-size: cover;
  background-position: center;
}

.nfxs-banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0.52));
}

.nfxs-banner-content {
  position: absolute;
  left: 44px;
  bottom: 36px;
  z-index: 3;
  max-width: 380px;
}

.nfxs-brand {
  margin: 0;
  color: #e50914;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.nfxs-banner-content h1 {
  margin: 6px 0 14px;
  font-size: 48px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nfxs-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 280px;
}

.nfxs-cta input {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 10, 0.66);
  color: #fff;
  padding: 0 16px;
}

.nfxs-cta button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--nf-accent);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
}

.nfxs-note {
  margin: 8px 0 0;
  color: #ddd;
  font-size: 22px;
}

.nfxs-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.nfxs-controls span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
}

.nfxs-info-card {
  margin-top: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, rgba(50, 50, 50, 0.74), rgba(32, 32, 32, 0.68));
  padding: 24px;
}

.nfxs-info-card h2 {
  margin: 0 0 8px;
  font-size: 46px;
}

.nfxs-meta {
  color: #e1e1e1;
  font-weight: 600;
  margin-bottom: 12px;
}

.nfxs-meta span {
  margin: 0 8px;
}

.nfxs-info-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.nfxs-section {
  padding: 18px 0 40px;
}

.nfxs-section h3 {
  margin: 24px 0 10px;
  font-size: 48px;
}

.nfxs-trailer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nfxs-trailer-card {
  background: #151515;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nfxs-trailer-card img,
.nfxs-trailer-video,
.nfxs-trailer-embed iframe {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 0;
  display: block;
}

.nfxs-trailer-embed {
  background: #000;
}

.nfxs-trailer-meta {
  display: flex;
  justify-content: space-between;
  color: #bbb;
  font-size: 12px;
  padding: 8px 10px 0;
}

.nfxs-trailer-card p {
  margin: 6px 10px 12px;
}

.nfxs-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nfxs-detail-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, #232323, #171717);
  padding: 14px;
}

.nfxs-detail-card h4 {
  margin: 8px 0 4px;
  font-size: 18px;
}

.nfxs-detail-card p {
  margin: 0;
  color: #dfdfdf;
}

.nfxs-strip-wrap {
  position: relative;
  padding: 0 34px;
}

.nfxs-strip-viewport {
  overflow: hidden;
}

.nfxs-strip-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.nfxs-strip-track::-webkit-scrollbar {
  display: none;
}

.nfxs-poster {
  flex: 0 0 calc((100% - 50px) / 6);
  display: block;
  aspect-ratio: var(--nf-poster-ratio);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
}

.nfxs-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nfxs-footer-block {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .nfxs-logo {
    font-size: 38px;
  }

  .nfxs-banner-card {
    min-height: 420px;
  }

  .nfxs-banner-content {
    left: 18px;
    right: 18px;
    max-width: 80%;
  }

  .nfxs-banner-content h1 {
    font-size: 34px;
  }

  .nfxs-note {
    font-size: 16px;
  }

  .nfxs-info-card h2,
  .nfxs-section h3 {
    font-size: 32px;
  }

  .nfxs-info-grid,
  .nfxs-details-grid,
  .nfxs-trailer-grid {
    grid-template-columns: 1fr;
  }

  .nfxs-poster {
    flex-basis: calc((100% - 10px) / 2);
  }
}

/* Force default global header/footer visible on every template */
.home .nf-header,
.single-film .nf-header {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--nf-bg) 88%, black);
  border-bottom: 1px solid color-mix(in srgb, var(--nf-text) 10%, transparent);
  backdrop-filter: blur(8px);
}

.home .nf-header .nf-brand,
.home .nf-header .nf-menu,
.single-film .nf-header .nf-brand,
.single-film .nf-header .nf-menu {
  display: inline-flex !important;
}

.home .nf-footer,
.single-film .nf-footer {
  display: block !important;
}

/* Typography sync across all templates */
.nf-header,
.nf-footer,
.nfx-home-v2,
.nfxs-page,
.nf-section,
.nf-card,
.nf-filter,
.nfx2-section,
.nfxs-section {
  font-family: var(--nf-font-family);
  color: var(--nf-text-body);
}

.nf-header a,
.nf-footer a,
.nfx-home-v2 a,
.nfxs-page a {
  color: var(--nf-text-body);
}

.nf-brand-title,
.nfx2-logo,
.nfxs-logo {
  font-weight: var(--nf-heading-weight);
}

.nf-brand-tagline,
.nfx2-tagline,
.nfx2-sub2,
.nfx2-sub3,
.nfxs-note,
.nfxs-detail-card p,
.nfx2-card p {
  color: var(--nf-text-soft);
  font-size: var(--nf-font-size-sm);
}

.nf-section-title,
.nfx2-section h2,
.nfxs-section h3 {
  font-size: var(--nf-font-size-xl);
  font-weight: var(--nf-heading-weight);
  color: var(--nf-text-strong);
}

.nf-card p,
.nfx2-panel p,
.nfxs-info-grid p {
  font-size: var(--nf-font-size-md);
}

.nf-chip,
.nfxs-meta,
.nfxs-trailer-meta {
  font-size: var(--nf-font-size-xs);
}
