/* Títulos, sinopsis, reparto, dirección y biografías en cualquier escritura (chino, japonés, coreano, árabe, hindi,
   tailandés…): fuentes Noto (assets/fonts/intl/OFL.txt) al final de --nf-font; el navegador solo baja la de las letras
   que la fuente de siempre no tiene. Las mismas que usan las apps (fonts/ del panel). */
@font-face { font-family: 'MPX Intl cjk'; src: url('../fonts/intl/intl-cjk.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+3000-303F, U+3040-30FF, U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: 'MPX Intl kr'; src: url('../fonts/intl/intl-kr.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF; }
@font-face { font-family: 'MPX Intl latin'; src: url('../fonts/intl/intl-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0180-024F, U+0250-02AF, U+0370-03FF, U+0400-052F, U+1C80-1C8F, U+1E00-1EFF, U+1F00-1FFF, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: 'MPX Intl hebrew'; src: url('../fonts/intl/intl-hebrew.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: 'MPX Intl arabic'; src: url('../fonts/intl/intl-arabic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'MPX Intl armenian'; src: url('../fonts/intl/intl-armenian.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0530-058F, U+FB13-FB17; }
@font-face { font-family: 'MPX Intl devanagari'; src: url('../fonts/intl/intl-devanagari.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0900-097F, U+A8E0-A8FF; }
@font-face { font-family: 'MPX Intl bengali'; src: url('../fonts/intl/intl-bengali.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0980-09FF; }
@font-face { font-family: 'MPX Intl gurmukhi'; src: url('../fonts/intl/intl-gurmukhi.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0A00-0A7F; }
@font-face { font-family: 'MPX Intl gujarati'; src: url('../fonts/intl/intl-gujarati.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0A80-0AFF; }
@font-face { font-family: 'MPX Intl oriya'; src: url('../fonts/intl/intl-oriya.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0B00-0B7F; }
@font-face { font-family: 'MPX Intl tamil'; src: url('../fonts/intl/intl-tamil.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0B80-0BFF; }
@font-face { font-family: 'MPX Intl telugu'; src: url('../fonts/intl/intl-telugu.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0C00-0C7F; }
@font-face { font-family: 'MPX Intl kannada'; src: url('../fonts/intl/intl-kannada.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0C80-0CFF; }
@font-face { font-family: 'MPX Intl malayalam'; src: url('../fonts/intl/intl-malayalam.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0D00-0D7F; }
@font-face { font-family: 'MPX Intl sinhala'; src: url('../fonts/intl/intl-sinhala.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0D80-0DFF; }
@font-face { font-family: 'MPX Intl thai'; src: url('../fonts/intl/intl-thai.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0E00-0E7F; }
@font-face { font-family: 'MPX Intl lao'; src: url('../fonts/intl/intl-lao.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0E80-0EFF; }
@font-face { font-family: 'MPX Intl myanmar'; src: url('../fonts/intl/intl-myanmar.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1000-109F, U+AA60-AA7F; }
@font-face { font-family: 'MPX Intl georgian'; src: url('../fonts/intl/intl-georgian.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F; }
@font-face { font-family: 'MPX Intl ethiopic'; src: url('../fonts/intl/intl-ethiopic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F; }
@font-face { font-family: 'MPX Intl khmer'; src: url('../fonts/intl/intl-khmer.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1780-17FF, U+19E0-19FF; }
@font-face { font-family: 'MPX Intl tibetan'; src: url('../fonts/intl/intl-tibetan.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0F00-0FFF; }
@font-face { font-family: 'MPX Intl mongolian'; src: url('../fonts/intl/intl-mongolian.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1800-18AF; }
@font-face { font-family: 'MPX Intl syriac'; src: url('../fonts/intl/intl-syriac.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0700-074F, U+0860-086F; }
@font-face { font-family: 'MPX Intl thaana'; src: url('../fonts/intl/intl-thaana.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0780-07BF; }
@font-face { font-family: 'MPX Intl nko'; src: url('../fonts/intl/intl-nko.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+07C0-07FF; }
@font-face { font-family: 'MPX Intl tifinagh'; src: url('../fonts/intl/intl-tifinagh.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+2D30-2D7F; }
@font-face { font-family: 'MPX Intl vai'; src: url('../fonts/intl/intl-vai.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+A500-A63F; }
@font-face { font-family: 'MPX Intl adlam'; src: url('../fonts/intl/intl-adlam.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1E900-1E95F; }
@font-face { font-family: 'MPX Intl bamum'; src: url('../fonts/intl/intl-bamum.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+A6A0-A6FF; }
@font-face { font-family: 'MPX Intl cherokee'; src: url('../fonts/intl/intl-cherokee.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+13A0-13FF, U+AB70-ABBF; }
@font-face { font-family: 'MPX Intl canadian'; src: url('../fonts/intl/intl-canadian.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1400-167F, U+18B0-18FF; }
@font-face { font-family: 'MPX Intl yi'; src: url('../fonts/intl/intl-yi.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+A000-A4CF; }
@font-face { font-family: 'MPX Intl olchiki'; src: url('../fonts/intl/intl-olchiki.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1C50-1C7F; }
@font-face { font-family: 'MPX Intl javanese'; src: url('../fonts/intl/intl-javanese.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+A980-A9DF; }
@font-face { font-family: 'MPX Intl balinese'; src: url('../fonts/intl/intl-balinese.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1B00-1B7F; }
@font-face { font-family: 'MPX Intl sundanese'; src: url('../fonts/intl/intl-sundanese.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1B80-1BBF, U+1CC0-1CCF; }
@font-face { font-family: 'MPX Intl meetei'; src: url('../fonts/intl/intl-meetei.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+ABC0-ABFF, U+AAE0-AAFF; }
@font-face { font-family: 'MPX Intl taiviet'; src: url('../fonts/intl/intl-taiviet.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+AA80-AADF; }
@font-face { font-family: 'MPX Intl cham'; src: url('../fonts/intl/intl-cham.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+AA00-AA5F; }
@font-face { font-family: 'MPX Intl taile'; src: url('../fonts/intl/intl-taile.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1950-197F; }
@font-face { font-family: 'MPX Intl newtailue'; src: url('../fonts/intl/intl-newtailue.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1980-19DF; }
@font-face { font-family: 'MPX Intl taitham'; src: url('../fonts/intl/intl-taitham.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1A20-1AAF; }
@font-face { font-family: 'MPX Intl lepcha'; src: url('../fonts/intl/intl-lepcha.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1C00-1C4F; }
@font-face { font-family: 'MPX Intl limbu'; src: url('../fonts/intl/intl-limbu.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1900-194F; }
@font-face { font-family: 'MPX Intl buginese'; src: url('../fonts/intl/intl-buginese.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1A00-1A1F; }
@font-face { font-family: 'MPX Intl batak'; src: url('../fonts/intl/intl-batak.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+1BC0-1BFF; }

/* ==========================================================
   WebPlayer – Tema estilo Netflix (PC + celular vertical)
   ========================================================== */
:root {
    --nf-red: #e50914;
    --nf-red-h: #f6121d;
    --nf-bg: #141414;
    --nf-bg2: #181818;
    --nf-card: #2f2f2f;
    --nf-text: #e5e5e5;
    --nf-white: #fff;
    --nf-gray: #808080;
    --nf-gray2: #b3b3b3;
    --nf-pad: 4%;
    --nf-header: 68px;
    --nf-tabbar: 0px;
    --card-w: clamp(118px, 13.2vw, 230px);
    --nf-font: "Netflix Sans", "Helvetica Neue", Helvetica, Roboto, "Segoe UI", Arial, 'MPX Intl cjk', 'MPX Intl kr', 'MPX Intl latin', 'MPX Intl hebrew', 'MPX Intl arabic', 'MPX Intl armenian', 'MPX Intl devanagari', 'MPX Intl bengali', 'MPX Intl gurmukhi', 'MPX Intl gujarati', 'MPX Intl oriya', 'MPX Intl tamil', 'MPX Intl telugu', 'MPX Intl kannada', 'MPX Intl malayalam', 'MPX Intl sinhala', 'MPX Intl thai', 'MPX Intl lao', 'MPX Intl myanmar', 'MPX Intl georgian', 'MPX Intl ethiopic', 'MPX Intl khmer', 'MPX Intl tibetan', 'MPX Intl mongolian', 'MPX Intl syriac', 'MPX Intl thaana', 'MPX Intl nko', 'MPX Intl tifinagh', 'MPX Intl vai', 'MPX Intl adlam', 'MPX Intl bamum', 'MPX Intl cherokee', 'MPX Intl canadian', 'MPX Intl yi', 'MPX Intl olchiki', 'MPX Intl javanese', 'MPX Intl balinese', 'MPX Intl sundanese', 'MPX Intl meetei', 'MPX Intl taiviet', 'MPX Intl cham', 'MPX Intl taile', 'MPX Intl newtailue', 'MPX Intl taitham', 'MPX Intl lepcha', 'MPX Intl limbu', 'MPX Intl buginese', 'MPX Intl batak', sans-serif;
    color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--nf-bg);
    color: var(--nf-text);
    font-family: var(--nf-font);
    font-size: 16px;
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
body.nf-app { padding-top: 0; padding-bottom: var(--nf-tabbar); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--nf-red); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- barra de carga superior ---------- */
#nf-loadbar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--nf-red); z-index: 3000; box-shadow: 0 0 8px var(--nf-red);
    transition: width .4s ease, opacity .3s; opacity: 0; pointer-events: none;
}
#nf-loadbar.on { opacity: 1; width: 75%; transition: width 8s cubic-bezier(.1,.7,.1,1), opacity .2s; }

/* ==========================================================
   HEADER
   ========================================================== */
.nf-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nf-header);
    display: flex; align-items: center; gap: 24px;
    padding: 0 var(--nf-pad);
    background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 60%, transparent 100%);
    transition: background-color .35s ease;
}
.nf-header.solid { background-color: var(--nf-bg); }
.nf-logo { display: flex; align-items: center; flex-shrink: 0; }
.nf-logo img { height: 38px; width: auto; display: block; }
.nf-nav { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nf-nav a { font-size: 14px; color: var(--nf-text); transition: color .3s; white-space: nowrap; }
.nf-nav a:hover { color: var(--nf-gray2); }
.nf-nav a.active { color: #fff; font-weight: 700; }
.nf-header-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.nf-search { position: relative; display: flex; align-items: center; }
.nf-search form { display: flex; align-items: center; border: 1px solid transparent; transition: all .3s; padding: 4px 6px; }
.nf-search.open form { background: rgba(0,0,0,.85); border-color: #fff; }
.nf-search input {
    width: 0; opacity: 0; border: 0; outline: 0; background: transparent; color: #fff;
    font-size: 14px; transition: width .3s ease, opacity .2s; padding: 4px 0;
}
.nf-search.open input { width: 230px; opacity: 1; padding: 4px 8px; }
.nf-icon-btn { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; display: inline-flex; align-items: center; justify-content: center; }
.nf-icon-btn svg { width: 22px; height: 22px; }

.nf-clock { text-align: right; line-height: 1.1; cursor: pointer; user-select: none; }
.nf-clock .t { font-size: 15px; font-weight: 700; color: #fff; }
.nf-clock .d { font-size: 11px; color: var(--nf-gray2); }

.nf-profile { position: relative; }
.nf-profile-btn { display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; color: #fff; padding: 0; }
.nf-avatar {
    width: 32px; height: 32px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e50914, #8b0000); font-weight: 800; font-size: 15px; color: #fff; text-transform: uppercase;
}
.nf-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #fff; transition: transform .25s; }
.nf-profile.open .nf-caret { transform: rotate(180deg); }
.nf-menu {
    position: absolute; right: 0; top: calc(100% + 14px); min-width: 220px; background: rgba(0,0,0,.92);
    border: 1px solid rgba(255,255,255,.15); padding: 8px 0; display: none; box-shadow: 0 8px 30px rgba(0,0,0,.6);
}
.nf-profile.open .nf-menu { display: block; animation: nfFade .18s ease; }
.nf-menu .who { padding: 8px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 13px; color: var(--nf-gray2); }
.nf-menu .who b { display: block; color: #fff; font-size: 14px; }
.nf-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14px; color: #ddd; }
.nf-menu a:hover { text-decoration: underline; color: #fff; }
.nf-menu a i { width: 18px; text-align: center; color: var(--nf-gray2); }
.nf-menu .sep { border-top: 1px solid rgba(255,255,255,.15); margin-top: 6px; padding-top: 6px; }
/* idioma de la app (menú del perfil) */
.nf-menu .lang { display: flex; flex-direction: column; gap: 6px; padding: 10px 16px 8px; font-size: 13px; color: var(--nf-gray2); border-top: 1px solid rgba(255,255,255,.15); margin-top: 6px; }
.nf-menu .lang i { width: 18px; text-align: center; }
.nf-menu .lang .nf-select { width: 100%; font-size: 13px; }

/* resultados de búsqueda instantánea */
.nf-suggest {
    position: absolute; top: calc(100% + 10px); right: 0; width: min(560px, 92vw); max-height: 70vh; overflow-y: auto;
    background: #141414; border: 1px solid #333; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.7); padding: 12px; display: none; z-index: 1100;
}
.nf-suggest.show { display: block; animation: nfFade .15s ease; }
.nf-suggest h4 { margin: 4px 4px 8px; font-size: 13px; color: var(--nf-gray2); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.nf-suggest .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 10px; }
.nf-suggest .more { display: block; text-align: center; padding: 10px; color: #fff; background: #262626; border-radius: 4px; font-size: 14px; }
.nf-suggest .empty { color: var(--nf-gray2); padding: 12px; text-align: center; }

/* barra inferior móvil (como la app) */
.nf-tabbar { display: none; }
.nf-mobile-pills { display: none; }

/* ==========================================================
   CONTENIDO GENERAL
   ========================================================== */
.nf-main { min-height: 100vh; }
.nf-page { padding: calc(var(--nf-header) + 20px) var(--nf-pad) 40px; }
.nf-page-title { font-size: clamp(24px, 3vw, 38px); font-weight: 700; margin: 0 0 6px; color: #fff; }
.nf-page-sub { color: var(--nf-gray2); margin: 0 0 22px; font-size: 15px; }

/* ---------- HERO ---------- */
.nf-hero {
    position: relative; height: 56.25vw; min-height: 420px; max-height: 88vh; overflow: hidden; background: #000;
}
.nf-hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center 20%;
    transition: opacity .9s ease; opacity: 0;
}
.nf-hero-bg.on { opacity: 1; }
.nf-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(77deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 38%, transparent 70%);
}
.nf-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14.7vw; min-height: 120px; z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(20,20,20,.15) 15%, rgba(20,20,20,.55) 45%, var(--nf-bg) 100%);
}
.nf-hero-info {
    position: absolute; z-index: 2; left: var(--nf-pad); bottom: 30%; width: 40%; min-width: 320px;
}
.nf-hero-poster { display: none; }
.nf-hero-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 3px; font-weight: 700; color: #ddd; margin-bottom: 8px; text-transform: uppercase; }
.nf-hero-kicker .n { color: var(--nf-red); font-size: 26px; font-weight: 900; letter-spacing: 0; line-height: 1; }
.nf-hero-title { font-size: clamp(30px, 4.2vw, 64px); font-weight: 800; margin: 0 0 14px; line-height: 1.02; color: #fff; text-shadow: 2px 2px 6px rgba(0,0,0,.45); }
.nf-hero-meta { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #ddd; margin-bottom: 10px; flex-wrap: wrap; }
.nf-match { color: #46d369; font-weight: 700; }
.nf-badge { border: 1px solid rgba(255,255,255,.4); padding: 0 6px; font-size: 12px; border-radius: 3px; }
.nf-hero-desc {
    font-size: clamp(14px, 1.2vw, 19px); color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,.6); margin: 0 0 20px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nf-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.nf-hero-dots { position: absolute; z-index: 3; right: var(--nf-pad); bottom: 30%; display: flex; gap: 6px; }
/* el texto del destacado nunca sube debajo de la barra de arriba (títulos largos, pantallas bajas): queda entre la barra y
   el 30 % de abajo, con el título en 2 líneas como mucho y la sinopsis más corta cuando falta alto */
.nf-hero-info { top: calc(var(--nf-header) + 18px); display: flex; flex-direction: column; justify-content: flex-end; }
.nf-hero-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .06em; }
@media (min-width: 900px) and (max-height: 820px) {
    .nf-hero-title { font-size: clamp(28px, 3.4vw, 52px); }
    .nf-hero-desc { -webkit-line-clamp: 2; margin-bottom: 16px; }
}
@media (min-width: 900px) and (max-height: 640px) { .nf-hero-desc { display: none; } }
/* Películas / Series sin destacados: sin banner, el título y los géneros bajan debajo de la barra */
.nf-hero.nf-hero-none { display: none; }
.nf-hero-none + .nf-filterbar { padding-top: calc(var(--nf-header) + 22px) !important; margin-top: 0 !important; }
.nf-hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); padding: 0; cursor: pointer; }
.nf-hero-dots button.on { background: #fff; }

/* ---------- BOTONES ---------- */
.nf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 4px; cursor: pointer; font-weight: 700; font-size: clamp(14px, 1.15vw, 18px);
    padding: .6em 1.6em .6em 1.3em; transition: background-color .2s, transform .1s; white-space: nowrap; line-height: 1.2;
}
.nf-btn:active { transform: scale(.97); }
.nf-btn svg { width: 1.45em; height: 1.45em; flex-shrink: 0; }
.nf-btn-white { background: #fff; color: #000; }
.nf-btn-white:hover { background: rgba(255,255,255,.75); }
.nf-btn-gray { background: rgba(109,109,110,.7); color: #fff; }
.nf-btn-gray:hover { background: rgba(109,109,110,.4); }
.nf-btn-dark { background: #2a2a2a; color: #fff; border: 1px solid #444; }
.nf-btn-dark:hover { background: #3a3a3a; }
.nf-btn-red, .nf-btn-red:visited { background: var(--nf-red); color: #fff; }
.nf-btn-red:hover { background: var(--nf-red-h); }
.nf-btn-circle {
    width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: rgba(42,42,42,.6);
    color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, background .2s; padding: 0;
}
.nf-btn-circle:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.nf-btn-circle svg { width: 22px; height: 22px; }
.nf-btn-circle.on { background: #fff; color: #000; border-color: #fff; }

/* ---------- PLATAFORMAS ---------- */
.nf-plats-row { position: relative; z-index: 4; margin-top: -9vw; margin-bottom: 8px; }
.nf-platforms {
    position: relative; display: flex; gap: 14px; padding: 0 var(--nf-pad);
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-behavior: smooth;
}
/* flechas como las de las filas: aparecen al pasar el mouse */
.nf-plats-row .nf-arrow { top: 0; bottom: 0; }
.nf-plats-row:hover .nf-arrow { opacity: 1; }
.nf-platforms::-webkit-scrollbar { display: none; }
.nf-plat {
    flex: 0 0 auto; width: clamp(130px, 12.5vw, 210px); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
    position: relative; scroll-snap-align: start; border: 2px solid rgba(255,255,255,.12);
    background: linear-gradient(135deg, #1d1d1d, #0d0d0d); box-shadow: 0 6px 18px rgba(0,0,0,.5);
    transition: transform .25s ease, border-color .25s ease; display: flex; align-items: center; justify-content: center;
}
.nf-plat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-plat .txt { font-weight: 900; font-size: clamp(16px, 1.6vw, 24px); color: #fff; letter-spacing: .5px; text-align: center; padding: 6px; }
.nf-plat:hover, .nf-plat:focus-visible { transform: scale(1.06); border-color: #fff; outline: none; }

/* ---------- CHIPS DE GÉNERO ---------- */
.nf-chips { display: flex; gap: 10px; overflow-x: auto; padding: 14px var(--nf-pad) 6px; scrollbar-width: none; }
.nf-chips::-webkit-scrollbar { display: none; }
.nf-chip {
    flex: 0 0 auto; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff;
    font-size: 14px; background: rgba(20,20,20,.6); cursor: pointer; transition: all .2s; white-space: nowrap;
}
.nf-chip:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.nf-chip.active { background: #fff; color: #000; border-color: #fff; font-weight: 700; }

/* ---------- FILAS (ROWS) ---------- */
.nf-rows { position: relative; z-index: 3; padding-bottom: 40px; }
.nf-row { margin: 3vw 0 0; position: relative; }
.nf-row:first-child { margin-top: 1vw; }
.nf-row-head { display: flex; align-items: baseline; gap: 12px; padding: 0 var(--nf-pad); margin-bottom: 8px; }
.nf-row-title { font-size: clamp(16px, 1.45vw, 22px); font-weight: 700; color: #e5e5e5; margin: 0; }
.nf-row-more { font-size: 13px; color: #54b9c5; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: all .3s; white-space: nowrap; }
.nf-row:hover .nf-row-more { opacity: 1; transform: none; }
.nf-row-viewport { position: relative; }
.nf-slider {
    /* solo de lado: sin overflow-y: hidden el navegador la volvía desplazable hacia arriba / abajo (el número del Top 10
       sobresalía) y las flechas subían la misma fila en vez de pasar a la de arriba o abajo */
    display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scrollbar-width: none;
    padding: 10px var(--nf-pad) 18px; scroll-padding: 0 var(--nf-pad); overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}
.nf-slider::-webkit-scrollbar { display: none; }
.nf-arrow {
    position: absolute; top: 10px; bottom: 18px; width: var(--nf-pad); min-width: 40px; z-index: 6; border: 0; cursor: pointer;
    background: rgba(20,20,20,.55); color: #fff; opacity: 0; transition: opacity .2s, background .2s; display: flex; align-items: center; justify-content: center;
}
.nf-arrow svg { width: 34px; height: 34px; transition: transform .15s; }
.nf-arrow:hover { background: rgba(20,20,20,.8); }
.nf-arrow:hover svg { transform: scale(1.25); }
.nf-arrow.l { left: 0; border-radius: 0 4px 4px 0; }
.nf-arrow.r { right: 0; border-radius: 4px 0 0 4px; }
.nf-row:hover .nf-arrow { opacity: 1; }
.nf-arrow[hidden] { display: none; }

/* ---------- TARJETAS ---------- */
.nf-card {
    position: relative; flex: 0 0 var(--card-w); width: var(--card-w); border-radius: 4px; overflow: hidden;
    background: var(--nf-card); aspect-ratio: 2 / 3; transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s; display: block;
    content-visibility: auto; contain-intrinsic-size: 160px 240px;
}
.nf-card img {
    width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s ease;
}
.nf-card img.ok { opacity: 1; }
.nf-card .nm {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 8px; font-size: 13px; font-weight: 600; color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,.9)); line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    opacity: 0; transition: opacity .25s;
}
.nf-card.noimg .nm, .nf-card:hover .nm, .nf-card:focus-visible .nm { opacity: 1; }
.nf-card .rt {
    position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 6px; border-radius: 3px; opacity: 0; transition: opacity .25s;
}
.nf-card:hover .rt { opacity: 1; }
.nf-card .tp { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; }
.nf-card .pb { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; z-index: 2; }
.nf-card .pb i { display: block; height: 100%; background: var(--nf-red); }
.nf-card.has-pb .nm { padding-bottom: 14px; }
@media (hover: hover) and (min-width: 900px) {
    .nf-slider .nf-card:hover, .nf-slider .nf-card:focus-visible { transform: scale(1.12); z-index: 5; box-shadow: 0 10px 30px rgba(0,0,0,.75); outline: none; }
    .nf-slider .nf-card:first-child:hover { transform-origin: left center; }
    .nf-slider .nf-card:last-child:hover { transform-origin: right center; }
}
.nf-skel {
    flex: 0 0 var(--card-w); width: var(--card-w); aspect-ratio: 2/3; border-radius: 4px;
    background: linear-gradient(100deg, #222 30%, #2e2e2e 50%, #222 70%); background-size: 300% 100%; animation: nfShimmer 1.3s infinite linear;
}
@keyframes nfShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes nfFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Top 10 numerado */
.nf-top .nf-topitem { flex: 0 0 auto; display: flex; align-items: flex-end; position: relative; padding-left: calc(var(--card-w) * .55); }
.nf-top .nf-topitem .num {
    position: absolute; left: 0; bottom: 0; font-size: calc(var(--card-w) * 1.05); font-weight: 900; line-height: .9;
    color: var(--nf-bg); -webkit-text-stroke: 3px #595959; letter-spacing: -.08em; font-family: Arial Black, Arial, sans-serif; white-space: nowrap;
}
.nf-top .nf-topitem .nf-card { z-index: 1; }
/* el 10 ocupa dos cifras: más espacio y cifras juntas para que el 0 no quede bajo la carátula */
.nf-top .nf-topitem.ten { padding-left: calc(var(--card-w) * 1.2); }
.nf-top .nf-topitem.ten .num { letter-spacing: -.02em; font-size: calc(var(--card-w) * .9); }

/* ---------- REJILLA ---------- */
.nf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 8px; }
.nf-grid .nf-card { width: auto; flex: none; }
@media (hover: hover) { .nf-grid .nf-card:hover { transform: scale(1.05); z-index: 4; box-shadow: 0 10px 30px rgba(0,0,0,.7); } }
.nf-grid-status { text-align: center; color: var(--nf-gray2); padding: 30px 10px; }
.nf-empty { text-align: center; color: var(--nf-gray2); padding: 60px 20px; font-size: 16px; }
.nf-empty svg { width: 54px; height: 54px; opacity: .5; display: block; margin: 0 auto 14px; }

/* ---------- BARRA DE FILTROS (explorar) ---------- */
.nf-browse-head {
    position: relative; padding: calc(var(--nf-header) + 26px) var(--nf-pad) 6px;
    background: radial-gradient(1200px 300px at 0% 0%, var(--accent, rgba(229,9,20,.35)), transparent 70%);
}
.nf-browse-head h1 { font-size: clamp(26px, 3.4vw, 44px); margin: 0 0 4px; color: #fff; font-weight: 800; display: flex; align-items: center; gap: 14px; }
.nf-browse-head h1 img { height: 1.3em; border-radius: 6px; }
.nf-browse-head p { margin: 0; color: var(--nf-gray2); }
.nf-filterbar {
    position: sticky; top: var(--nf-header); z-index: 50; background: rgba(20,20,20,.96); backdrop-filter: blur(6px);
    border-bottom: 1px solid #222; padding: 0 0 4px;
}
.nf-filterbar .row1 { display: flex; align-items: center; gap: 12px; padding: 10px var(--nf-pad) 0; flex-wrap: wrap; }
.nf-seg { display: inline-flex; border: 1px solid #444; border-radius: 999px; overflow: hidden; }
.nf-seg button { background: transparent; color: #ddd; border: 0; padding: 7px 16px; cursor: pointer; font-size: 14px; }
.nf-seg button.active { background: #fff; color: #000; font-weight: 700; }
.nf-select {
    background: #000; color: #fff; border: 1px solid #555; padding: 7px 30px 7px 12px; font-size: 14px; border-radius: 4px; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.nf-input {
    background: #000; color: #fff; border: 1px solid #555; padding: 8px 12px; font-size: 14px; border-radius: 4px; min-width: 200px; outline: 0;
}
.nf-input:focus { border-color: #fff; }
.nf-count { color: var(--nf-gray2); font-size: 13px; margin-left: auto; }
/* lupa de plataforma (arriba a la derecha) */
.nf-psearch {
    position: absolute; right: var(--nf-pad); top: calc(var(--nf-header) + 26px); display: flex; align-items: center;
    border: 1px solid transparent; border-radius: 4px; transition: background .2s, border-color .2s;
}
.nf-psearch.open { background: rgba(0,0,0,.85); border-color: #fff; }
.nf-psearch-in {
    width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 15px; opacity: 0;
    transition: width .25s ease, padding .25s ease, opacity .2s;
}
.nf-psearch.open .nf-psearch-in { width: 260px; padding: 9px 4px 9px 12px; opacity: 1; }
.nf-psearch-in::-webkit-search-cancel-button { filter: invert(1); }
.nf-psearch-btn {
    background: transparent; border: 0; color: #fff; cursor: pointer; padding: 8px; display: flex; border-radius: 4px; order: -1;
}
.nf-psearch-btn:hover, .nf-psearch-btn:focus-visible { background: rgba(255,255,255,.12); outline: 0; }

/* ==========================================================
   DETALLE (película / serie)
   ========================================================== */
.nf-detail-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; background: #000; overflow: hidden; }
.nf-detail-bg { position: absolute; inset: 0; background-size: cover; background-position: center 18%; }
.nf-detail-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,20,20,.95) 0%, rgba(20,20,20,.7) 35%, rgba(20,20,20,.1) 75%); }
.nf-detail-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40%; z-index: 1; background: linear-gradient(transparent, var(--nf-bg)); }
.nf-detail-inner { position: relative; z-index: 2; display: flex; gap: 40px; align-items: flex-end; padding: calc(var(--nf-header) + 30px) var(--nf-pad) 40px; width: 100%; }
.nf-detail-poster { flex: 0 0 auto; width: clamp(160px, 18vw, 280px); border-radius: 6px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.8); aspect-ratio: 2/3; background: #222; }
.nf-detail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-detail-info { max-width: 760px; }
.nf-detail-info h1 { font-size: clamp(28px, 4vw, 58px); margin: 0 0 12px; line-height: 1.05; color: #fff; font-weight: 800; }
.nf-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #ccc; font-size: 15px; margin-bottom: 14px; }
.nf-detail-meta .dot::before { content: "•"; color: #777; margin-right: 10px; }
.nf-detail-plot { font-size: clamp(14px, 1.15vw, 18px); color: #ddd; margin: 0 0 22px; line-height: 1.55; }
.nf-detail-plot.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nf-detail-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.nf-detail-extra { color: var(--nf-gray2); font-size: 14px; margin-top: 18px; }
.nf-detail-extra b { color: #777; font-weight: 400; }
.nf-section { padding: 10px var(--nf-pad) 20px; }
.nf-section h2 { font-size: clamp(18px, 1.6vw, 24px); margin: 18px 0 14px; color: #fff; }
.nf-cast { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.nf-cast::-webkit-scrollbar { display: none; }
.nf-actor { flex: 0 0 96px; text-align: center; }
.nf-actor img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #333; display: block; margin: 0 auto 8px; box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.nf-actor .a { font-size: 13px; font-weight: 700; color: #eee; line-height: 1.2; }
.nf-actor .c { font-size: 12px; color: #999; line-height: 1.2; margin-top: 2px; }

/* episodios */
.nf-eps-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.nf-eps { display: flex; flex-direction: column; border-top: 1px solid #333; margin-top: 12px; }
.nf-ep { display: flex; align-items: center; gap: 18px; padding: 18px 12px; border-bottom: 1px solid #333; border-radius: 4px; transition: background .2s; position: relative; }
.nf-ep:hover { background: #2a2a2a; }
.nf-ep.current { background: #262626; }
.nf-ep .no { font-size: 22px; color: #d2d2d2; width: 34px; text-align: center; flex-shrink: 0; }
.nf-ep .th { position: relative; flex: 0 0 auto; width: clamp(120px, 14vw, 180px); aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #333; }
.nf-ep .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-ep .th .pl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; background: rgba(0,0,0,.35); }
.nf-ep:hover .th .pl { opacity: 1; }
.nf-ep .th .pl svg { width: 40px; height: 40px; color: #fff; border: 2px solid #fff; border-radius: 50%; padding: 8px; background: rgba(0,0,0,.5); }
.nf-ep .th .pb { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.3); }
.nf-ep .th .pb i { display: block; height: 100%; background: var(--nf-red); }
.nf-ep .tx { flex: 1; min-width: 0; }
.nf-ep .tt { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; color: #fff; font-size: 16px; margin-bottom: 6px; }
.nf-ep .tt .du { color: #ccc; font-weight: 400; font-size: 14px; white-space: nowrap; }
.nf-ep .ds { color: #a3a3a3; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* modal (trailer) */
.nf-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 20px; }
.nf-modal.open { display: flex; animation: nfFade .2s ease; }
.nf-modal-box { position: relative; width: min(1000px, 100%); background: #181818; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.8); }
.nf-modal-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #181818; color: #fff; font-size: 22px; cursor: pointer; }
.nf-ratio { position: relative; aspect-ratio: 16/9; background: #000; }
.nf-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* toast */
.nf-toast { position: fixed; left: 50%; bottom: calc(24px + var(--nf-tabbar)); transform: translateX(-50%) translateY(20px); background: #fff; color: #000; padding: 10px 18px; border-radius: 4px; font-weight: 600; font-size: 14px; z-index: 3000; opacity: 0; transition: all .25s; pointer-events: none; }
.nf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* footer */
.nf-footer { padding: 30px var(--nf-pad) 40px; color: #757575; font-size: 13px; text-align: center; }
.nf-footer a { color: #999; }
.nf-footer a:hover { text-decoration: underline; }

/* ==========================================================
   LOGIN
   ========================================================== */
.nf-login-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #000; overflow-x: hidden; }
.nf-login-wall { position: fixed; inset: -10%; z-index: 0; overflow: hidden; transform: rotate(-8deg) scale(1.15); }
.nf-login-wall-inner { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; animation: nfWall 120s linear infinite; will-change: transform; }
.nf-login-wall img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; display: block; background: #111; }
@keyframes nfWall { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.nf-login-shade { position: fixed; inset: 0; z-index: 1; background: rgba(0,0,0,.55); background-image: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.85) 100%); }
.nf-login-header { position: relative; z-index: 2; padding: 24px var(--nf-pad); }
.nf-login-logo { height: 52px; width: auto; display: block; }
.nf-login-main { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 16px 40px; }
.nf-login-box { width: 100%; max-width: 450px; background: rgba(0,0,0,.75); border-radius: 6px; padding: 52px 64px 44px; }
.nf-login-box h1 { color: #fff; font-size: 32px; font-weight: 700; margin: 0 0 28px; }
.nf-login-error { background: #e87c03; color: #fff; border-radius: 4px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; line-height: 1.4; }
.nf-field { position: relative; display: block; margin-bottom: 16px; }
.nf-field input {
    width: 100%; height: 56px; border-radius: 4px; border: 1px solid rgba(128,128,128,.7); background: rgba(22,22,22,.7);
    color: #fff; font-size: 16px; padding: 22px 16px 6px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.nf-field input:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.nf-field span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #b3b3b3; font-size: 16px; pointer-events: none; transition: all .15s ease; }
.nf-field input:focus + span, .nf-field input:not(:placeholder-shown) + span { top: 14px; font-size: 12px; }
.nf-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #b3b3b3; cursor: pointer; padding: 6px; border-radius: 50%; line-height: 0; }
.nf-eye.on { color: #fff; }
.nf-eye:hover, .nf-eye:focus-visible { color: #fff; background: rgba(255,255,255,.12); outline: none; }
/* el ojo tachado mientras la contraseña se ve */
.nf-eye .nf-eye-shut, .nf-eye.on .nf-eye-open { display: none; }
.nf-eye.on .nf-eye-shut { display: inline; }
.nf-field input[type=password], .nf-field input#password { padding-right: 48px; }
.nf-btn-block { width: 100%; height: 48px; font-size: 16px; margin-top: 10px; position: relative; padding: 0; }
.nf-spinner { display: none; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: nfSpin .7s linear infinite; }
.loading .nf-spinner { display: inline-block; }
.loading .lbl { display: none; }
button:disabled { cursor: progress; opacity: .85; }
@keyframes nfSpin { to { transform: rotate(360deg); } }
.nf-remember { display: flex; align-items: center; gap: 8px; color: #b3b3b3; font-size: 15px; margin-top: 18px; cursor: pointer; }
.nf-remember input { width: 18px; height: 18px; accent-color: #fff; }
.nf-login-hint { color: #8c8c8c; font-size: 13px; margin: 22px 0 0; }
.nf-login-footer { position: relative; z-index: 2; text-align: center; color: #999; padding: 20px; font-size: 14px; background: rgba(0,0,0,.6); }
.nf-login-footer a { color: #fff; font-weight: 700; }
.nf-login-footer p { margin: 0; }

/* ==========================================================
   TABLET
   ========================================================== */
@media (max-width: 1100px) {
    .nf-nav { gap: 14px; }
    .nf-clock { display: none; }
}

/* ==========================================================
   CELULAR (vertical, estilo app de Netflix)
   ========================================================== */
@media (max-width: 899px) {
    :root { --nf-header: 56px; --nf-tabbar: 62px; --card-w: 29vw; --nf-pad: 12px; }
    .nf-header { gap: 10px; background: linear-gradient(180deg, rgba(0,0,0,.75), transparent); }
    .nf-header.solid { background: rgba(20,20,20,.97); }
    .nf-logo img { height: 30px; }
    .nf-nav { display: none; }
    .nf-clock { display: none; }
    .nf-header-right { gap: 10px; }
        .nf-search.open { position: absolute; left: 0; right: 0; top: 0; height: var(--nf-header); background: var(--nf-bg); padding: 0 10px; z-index: 5; }
    .nf-search.open form { flex: 1; }
    .nf-search.open input { width: 100%; flex: 1; }
    .nf-suggest { position: fixed; top: var(--nf-header); left: 0; right: 0; width: auto; max-height: calc(100vh - var(--nf-header) - var(--nf-tabbar)); border-radius: 0; border: 0; border-top: 1px solid #333; }
    .nf-suggest .grid { grid-template-columns: repeat(3, 1fr); }
    .nf-profile .nf-caret { display: none; }
    .nf-menu { position: fixed; top: var(--nf-header); right: 8px; }

    .nf-mobile-pills {
        display: flex; gap: 8px; position: fixed; top: var(--nf-header); left: 0; right: 0; z-index: 990; padding: 4px var(--nf-pad) 10px;
        overflow-x: auto; scrollbar-width: none; transition: transform .3s ease, background-color .3s; background: transparent;
    }
    .nf-mobile-pills::-webkit-scrollbar { display: none; }
    .nf-mobile-pills.solid { background: rgba(20,20,20,.97); }
    .nf-mobile-pills.hide { transform: translateY(-120%); }
    .nf-mobile-pills a { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 5px 14px; font-size: 14px; color: #fff; }
    .nf-mobile-pills a.active { background: #fff; color: #000; border-color: #fff; font-weight: 700; }

    .nf-tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; height: calc(var(--nf-tabbar) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom); background: rgba(18,18,18,.97); border-top: 1px solid #262626; backdrop-filter: blur(8px);
    }
    .nf-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8c8c8c; font-size: 10.5px; }
    .nf-tabbar a svg { width: 23px; height: 23px; }
    .nf-tabbar a.active { color: #fff; }

    /* hero tipo app: póster centrado */
    .nf-hero { height: auto; min-height: 0; max-height: none; padding: calc(var(--nf-header) + 52px) 18px 22px; background: var(--nf-bg); }
    .nf-hero::before { background: radial-gradient(120% 70% at 50% 30%, transparent 0%, var(--nf-bg) 75%); }
    .nf-hero::after { display: none; }
    .nf-hero-bg { filter: blur(18px) saturate(1.4); transform: scale(1.3); opacity: 0; }
    .nf-hero-bg.on { opacity: .55; }
    .nf-hero-info { position: relative; left: auto; bottom: auto; width: 100%; min-width: 0; z-index: 2; text-align: center; }
    .nf-hero-poster {
        display: block; position: relative; width: min(78vw, 360px); margin: 0 auto; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden;
        box-shadow: 0 12px 40px rgba(0,0,0,.75); background: #222 center/cover no-repeat; border: 1px solid rgba(255,255,255,.12);
    }
    .nf-hero-poster::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.92)); }
    .nf-hero-poster .in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 14px 16px; }
    .nf-hero-title { font-size: 26px; margin: 0 0 6px; }
    .nf-hero-kicker { justify-content: center; font-size: 11px; letter-spacing: 2px; }
    .nf-hero-meta { justify-content: center; font-size: 13px; margin-bottom: 12px; }
    .nf-hero-desc { display: none; }
    .nf-hero-btns { justify-content: center; gap: 10px; }
    .nf-hero-btns .nf-btn { flex: 1; font-size: 16px; padding: 10px 12px; }
    .nf-hero-dots { position: relative; right: auto; bottom: auto; justify-content: center; margin-top: 14px; }
    .d-only { display: none !important; }
    .nf-hero-btns.m-only { margin-top: 16px; }

    .nf-plats-row { margin-top: 6px; }
    .nf-platforms { gap: 10px; }
    .nf-plat { width: 38vw; border-radius: 8px; }
    .nf-chips { padding-top: 10px; }
    .nf-chip { font-size: 13px; padding: 6px 13px; }
    .nf-row { margin-top: 18px; }
    .nf-row-title { font-size: 17px; }
    .nf-row-more { opacity: 1; transform: none; font-size: 12px; margin-left: auto; }
    .nf-slider { gap: 6px; padding: 6px var(--nf-pad) 8px; }
    .nf-arrow { display: none; }
    .nf-card .nm { font-size: 11px; padding: 18px 5px 5px; }
    .nf-card .rt { display: none; }
    .nf-grid { grid-template-columns: repeat(3, 1fr); gap: 8px 6px; }
    .nf-top .nf-topitem { padding-left: calc(var(--card-w) * .5); }
    .nf-top .nf-topitem .num { -webkit-text-stroke: 2px #595959; }
    .nf-top .nf-topitem.ten { padding-left: calc(var(--card-w) * 1.12); }

    .nf-page { padding-top: calc(var(--nf-header) + 54px); }
    .nf-hero-none + .nf-filterbar { padding-top: calc(var(--nf-header) + 56px) !important; }
    .nf-hero-info { top: auto; display: block; }
    .nf-hero-title { display: block; -webkit-line-clamp: unset; overflow: visible; }
    .nf-browse-head { padding-top: calc(var(--nf-header) + 56px); }
    .nf-filterbar { top: var(--nf-header); }
    .nf-filterbar .row1 { gap: 8px; }
    .nf-input { min-width: 0; flex: 1; }
    .nf-count { width: 100%; margin: 0; }
    .nf-browse-head h1 { padding-right: 46px; }
    .nf-psearch { top: calc(var(--nf-header) + 56px); }
    .nf-psearch.open { left: var(--nf-pad); z-index: 5; }
    .nf-psearch.open .nf-psearch-in { width: auto; flex: 1; min-width: 0; }

    .nf-detail-hero { min-height: 0; display: block; }
    .nf-detail-bg { position: relative; inset: auto; height: 62vw; max-height: 420px; }
    .nf-detail-hero::before { display: none; }
    .nf-detail-hero::after { top: 0; bottom: auto; height: 62vw; max-height: 420px; background: linear-gradient(180deg, rgba(20,20,20,.15) 40%, var(--nf-bg) 100%); }
    .nf-detail-inner { display: block; padding: 0 var(--nf-pad) 18px; margin-top: -40px; }
    .nf-detail-poster { display: none; }
    .nf-detail-info h1 { font-size: 26px; }
    .nf-detail-meta { font-size: 13px; gap: 8px; }
    .nf-detail-plot { font-size: 14px; }
    .nf-detail-btns { flex-direction: column; align-items: stretch; }
    .nf-detail-btns .nf-btn { width: 100%; font-size: 16px; padding: 11px; }
    .nf-detail-btns .icons { display: flex; justify-content: space-around; margin-top: 6px; }
    .nf-ep { gap: 12px; padding: 14px 4px; flex-wrap: wrap; }
    .nf-ep .no { display: none; }
    .nf-ep .th { width: 42vw; }
    .nf-ep .ds { width: 100%; flex-basis: 100%; -webkit-line-clamp: 2; font-size: 13px; }
    .nf-ep .tx { min-width: 40%; }
    .nf-ep .tt { flex-direction: column; gap: 2px; font-size: 14px; }

    .nf-login-wall-inner { grid-template-columns: repeat(4, 1fr); }
    .nf-login-box { background: rgba(0,0,0,.6); padding: 30px 22px; }
    .nf-login-box h1 { font-size: 28px; }
    .nf-login-logo { height: 40px; }
}
@media (min-width: 900px) {
    .nf-detail-btns .icons { display: contents; }
    .m-only { display: none !important; }
}
@media (max-width: 899px) and (orientation: landscape) {
    .nf-hero-poster { width: 34vh; }
}

/* reduce animaciones si el sistema lo pide */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Actor: elenco con enlace y página de filmografía */
a.nf-actor { color: inherit; text-decoration: none; border-radius: 10px; outline-offset: 4px; }
a.nf-actor img { transition: transform .2s, box-shadow .2s; }
@media (hover: hover) { a.nf-actor:hover img { transform: scale(1.06); box-shadow: 0 0 0 3px var(--nf-red), 0 6px 16px rgba(0,0,0,.7); } }
a.nf-actor:focus-visible img { box-shadow: 0 0 0 3px #fff; }
.nf-actor-back { display: inline-flex; align-items: center; gap: 6px; color: #ccc; text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.nf-actor-back svg { width: 18px; height: 18px; }
.nf-actor-back:hover { color: #fff; }
.nf-actor-head { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 26px; }
.nf-actor-photo { width: 180px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: #222; flex: none; box-shadow: 0 8px 26px rgba(0,0,0,.6); }
.nf-actor-txt { min-width: 0; max-width: 820px; }
.nf-actor-txt h1 { font-size: clamp(26px, 3vw, 44px); margin: 0 0 8px; color: #fff; }
.nf-actor-meta { color: #aaa; font-size: 14px; margin: 0 0 12px; }
.nf-actor-bio { color: #ddd; font-size: 15px; line-height: 1.55; margin: 0; max-height: 7.75em; overflow: hidden; }
.nf-actor-bio.open { max-height: none; }
.nf-actor-more { background: none; border: 0; color: #fff; font-weight: 700; padding: 6px 0; cursor: pointer; font-size: 14px; }
.nf-actor-h2 { font-size: clamp(18px, 1.6vw, 24px); color: #fff; margin: 8px 0 14px; }
.nf-actor-h2 span { color: #888; font-weight: 400; }
@media (max-width: 640px) {
    .nf-actor-head { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
    .nf-actor-photo { width: 140px; }
}

/* ---------- Aviso del panel (Alertas): bienvenida / vencimiento ---------- */
html.nf-alert-open { overflow: hidden; }
.nf-alert { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(ellipse at center, rgba(26,0,3,.8), rgba(0,0,0,.92)); animation: nfFade .25s ease; }
.nf-alert-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; text-align: center; padding: 30px 30px 28px; border-radius: 14px; background: linear-gradient(#1f1f1f, #121212); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 24px 70px rgba(0,0,0,.85); }
.nf-alert-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 14px 14px 0 0; background: var(--nf-red); }
.nf-alert.is-welcome .nf-alert-card::before { background: linear-gradient(90deg, var(--nf-red), #f5c518); }
.nf-alert-logo { height: 34px; width: auto; margin-bottom: 18px; }
.nf-alert-title { margin: 0 0 12px; color: #fff; font-size: 1.6rem; font-weight: 800; line-height: 1.25; }
.nf-alert.is-expiry .nf-alert-title { color: var(--nf-red-h); }
.nf-alert-msg { margin: 0; color: var(--nf-gray2); font-size: 1.05rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.nf-alert-img { display: block; max-width: 100%; max-height: 260px; margin: 20px auto 0; border-radius: 8px; object-fit: contain; }
/* varias imágenes del aviso: encimadas en el mismo lugar; cambian con un fundido */
.nf-alert-imgs { display: grid; margin: 20px auto 0; }
.nf-alert-imgs .nf-alert-img { grid-area: 1 / 1; margin: 0 auto; opacity: 0; transition: opacity .4s ease; }
.nf-alert-imgs .nf-alert-img.is-on { opacity: 1; }
.nf-alert-btn { width: 100%; justify-content: center; margin-top: 24px; text-transform: uppercase; }
.nf-alert-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) { .nf-alert-card { padding: 26px 20px 22px; } .nf-alert-title { font-size: 1.3rem; } }

/* ==========================================================
   PERFILES (includes/profiles.php): con perfiles encendidos el avatar del perfil va a la izquierda,
   el menú en el centro y el logo a la derecha
   ========================================================== */
.nf-avatar.img { background: #333; overflow: hidden; padding: 0; }
.nf-avatar.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-header--prof .nf-profile { flex-shrink: 0; }
/* con perfiles el menú va al centro de la barra (como las apps de TV): el avatar a la izquierda, el logo a la derecha */
@media (min-width: 1000px) {
    .nf-header--prof nav { position: absolute; left: 50%; transform: translateX(-50%); }
}
/* campanita (perfiles): partidos y programas con aviso (assets/nf/bell.js) */
.nf-bell { position: relative; }
.nf-bell .dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--nf-red); box-shadow: 0 0 0 2px var(--nf-bg); }
.nf-bell .dot[hidden] { display: none; }
.nf-bell-box { position: absolute; top: calc(100% + 10px); right: 0; width: min(380px, 92vw); max-height: 60vh; overflow-y: auto; background: #141414; border: 1px solid #333; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.6); z-index: 60; padding: 8px 0; }
.nf-bell-box[hidden] { display: none; }
.nf-bell-box h4 { margin: 4px 16px 8px; font-size: 14px; color: #fff; }
.nf-bell-box .it { padding: 10px 16px; font-size: 14px; color: #e5e5e5; border-top: 1px solid #222; }
.nf-bell-box .it.live { color: #fff; font-weight: 700; }
.nf-bell-box .none { padding: 10px 16px 14px; font-size: 13px; color: #9a9a9a; }
.nf-header--prof .nf-menu { left: 0; right: auto; }
.nf-header--prof .nf-header-right .nf-logo { margin-left: 4px; }
.nf-header--prof .nf-logo img { height: 34px; }
.nf-tabbar .nf-tab-av { width: 25px; height: 25px; border-radius: 4px; object-fit: cover; display: block; opacity: .85; }
.nf-tabbar a.active .nf-tab-av { opacity: 1; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 899px) {
    .nf-header--prof .nf-menu { left: 8px; right: auto; }
    .nf-header--prof .nf-logo img { height: 28px; }
    .nf-header--prof .nf-avatar { width: 30px; height: 30px; }
}
/* perfil infantil (includes/kids.php): la etiqueta junto al nombre del perfil */
.nf-kids-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #111; background: linear-gradient(135deg, #ffd54f, #ff8a65); border-radius: 999px; padding: 2px 7px; vertical-align: middle; }
