/* Nexus Web: visual compartilhado (AnimeNexus / MoviesNexus). As cores de destaque vêm do nx-brand.js */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root {
  --nx-accent: #a855f7; --nx-accent2: #ec4899;
  --nx-bg: #07070c; --nx-bg2: #0e0e16; --nx-card: #14141f; --nx-card2: #1b1b29; --nx-line: rgba(255,255,255,.08);
  --nx-text: #f4f4f8; --nx-muted: rgba(244,244,248,.62); --nx-ok: #22c55e; --nx-err: #ef4444; --nx-warn: #f59e0b;
  --nx-grad: linear-gradient(135deg, var(--nx-accent), var(--nx-accent2));
  --nx-r: 16px; --nx-top: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--nx-bg); color: var(--nx-text); font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--nx-accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 10px; } ::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--nx-muted); }

/* botões */
.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 800; font-size: .95rem; cursor: pointer; transition: transform .15s, background .15s, opacity .15s, box-shadow .15s; white-space: nowrap; }
.nx-btn:active { transform: scale(.97); } .nx-btn:disabled { opacity: .55; cursor: not-allowed; }
.nx-btn.primary { background: var(--nx-grad); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--nx-accent) 40%, transparent); }
.nx-btn.primary:hover { box-shadow: 0 10px 30px color-mix(in srgb, var(--nx-accent) 60%, transparent); }
.nx-btn.light { background: #fff; color: #0a0a0f; } .nx-btn.light:hover { background: #e7e7ee; }
.nx-btn.ghost { background: rgba(255,255,255,.08); border-color: var(--nx-line); } .nx-btn.ghost:hover { background: rgba(255,255,255,.14); }
.nx-btn.icon { padding: 0; width: 44px; height: 44px; border-radius: 50%; }
.nx-btn.sm { padding: 7px 12px; font-size: .82rem; border-radius: 10px; } .nx-btn.icon.sm { width: 36px; height: 36px; }
.nx-btn.on { background: color-mix(in srgb, var(--nx-accent) 25%, transparent); border-color: var(--nx-accent); }

/* toasts */
#nx-toasts { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.nx-toast { padding: 12px 18px; border-radius: 14px; background: #1f1f2e; border: 1px solid var(--nx-line); box-shadow: 0 14px 40px rgba(0,0,0,.5); font-weight: 600; font-size: .9rem; animation: nxIn .25s ease; max-width: 90vw; }
.nx-toast.ok { border-color: color-mix(in srgb, var(--nx-ok) 60%, transparent); } .nx-toast.err { border-color: var(--nx-err); background: #2a1215; }
.nx-toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes nxIn { from { opacity: 0; transform: translateY(10px); } }

/* cartões de pôster */
.nx-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; outline: none; }
.nx-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--nx-card2); transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s; }
.nx-poster img, .nx-noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-noimg { display: grid; place-items: center; font-size: 3rem; font-weight: 900; color: var(--nx-accent); background: linear-gradient(160deg, #241c38, #121220); }
.nx-card:hover .nx-poster, .nx-card:focus-visible .nx-poster { transform: translateY(-6px) scale(1.03); box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 2px var(--nx-accent); }
.nx-card > b { font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-card > small { font-size: .74rem; color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.nx-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.nx-badges span { padding: 2px 7px; border-radius: 7px; font-size: .64rem; font-weight: 900; letter-spacing: .03em; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.b-new { background: var(--nx-grad) !important; } .b-audio { margin-left: auto; }
.b-rate { position: absolute; bottom: 8px; left: 8px; padding: 2px 7px; border-radius: 7px; font-size: .7rem; font-weight: 800; background: rgba(0,0,0,.72); color: #fbbf24; }
.nx-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; }
.nx-play i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--nx-grad); font-size: 1.2rem; box-shadow: 0 8px 26px rgba(0,0,0,.5); transform: scale(.8); transition: transform .2s; }
.nx-card:hover .nx-play { opacity: 1; } .nx-card:hover .nx-play i { transform: scale(1); }
.nx-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); }
.nx-prog i { display: block; height: 100%; background: var(--nx-grad); }

/* esqueleto de carregamento */
.nx-sk { background: linear-gradient(90deg, #15151f 0, #22222f 50%, #15151f 100%); background-size: 200% 100%; animation: nxSk 1.2s infinite; border-radius: 14px; }
@keyframes nxSk { to { background-position: -200% 0; } }

/* campos */
.nx-field { display: flex; flex-direction: column; gap: 6px; }
.nx-field label { font-size: .82rem; font-weight: 700; color: var(--nx-muted); }
.nx-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--nx-line); transition: border-color .15s, background .15s, box-shadow .15s; }
.nx-input:focus-within { border-color: var(--nx-accent); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nx-accent) 18%, transparent); }
.nx-input > i { color: var(--nx-muted); width: 16px; text-align: center; }
.nx-input input, .nx-input select { flex: 1; min-width: 0; padding: 14px 0; border: none; background: none; color: var(--nx-text); font: inherit; outline: none; }
.nx-input select option { background: #14141f; }
.nx-input .eye { background: none; border: none; color: var(--nx-muted); cursor: pointer; padding: 6px; }
.nx-input.bad { border-color: var(--nx-err); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* seletor de avatar (igual ao do app) */
.av-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); animation: nxIn .2s ease; }
.av-box { width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 22px; background: var(--nx-bg2); border: 1px solid var(--nx-line); box-shadow: 0 40px 100px rgba(0,0,0,.7); overflow: hidden; }
.av-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--nx-line); }
.av-prev { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: #222; box-shadow: 0 0 0 3px var(--nx-accent); }
.av-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .av-head small { color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-x { width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.av-tabs { display: flex; gap: 4px; padding: 10px 14px 0; overflow-x: auto; }
.av-tabs button { flex-shrink: 0; padding: 9px 14px; border: none; border-radius: 10px 10px 0 0; background: none; color: var(--nx-muted); font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; }
.av-tabs button.on { color: #fff; border-bottom-color: var(--nx-accent); background: rgba(255,255,255,.04); }
.av-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.av-tile { padding: 0; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 3px solid transparent; background: #1b1b29; cursor: pointer; transition: transform .15s, border-color .15s; }
.av-tile:hover { transform: scale(1.05); } .av-tile.on { border-color: var(--nx-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-accent) 30%, transparent); }
.av-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-more { display: flex; margin: 14px auto 0; }
.av-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--nx-line); }
.av-search input { flex: 1; padding: 12px 0; background: none; border: none; color: #fff; font: inherit; outline: none; } .av-search i { color: var(--nx-muted); }
.av-msg { text-align: center; font-size: .86rem; }
.av-rules { padding: 14px; border-radius: 14px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.35); margin-bottom: 12px; font-size: .88rem; }
.av-rules b i { color: var(--nx-warn); } .av-rules ul { margin: 6px 0; padding-left: 20px; } .av-rules p { margin: 6px 0; }
.av-progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 12px; } .av-progress i { display: block; height: 100%; width: 0; background: var(--nx-grad); transition: width .2s; }
.av-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--nx-line); }
@media (max-width: 640px) { .av-modal { padding: 0; } .av-box { height: 100%; max-height: none; border-radius: 0; } .av-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); } }

/* manutenção (qualquer página; o admin liga em Configurações → Sites) */
body.noscroll { overflow: hidden; }
.hm-maint { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--nx-accent) 22%, transparent), transparent 60%), var(--nx-bg); }
.hm-maint .big { font-size: 4rem; } .hm-maint h1 { margin: 6px 0; } .hm-maint p { color: var(--nx-muted); max-width: 420px; margin: 0 auto 18px; }

/* "precisa ser VIP" (player, leitor, TV, IPTV) */
.nx-pay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(245,197,24,.18), transparent 60%), rgba(7,7,12,.94); }
.nx-pay.inline { position: relative; inset: auto; min-height: 320px; border-radius: 20px; border: 1px solid var(--nx-line); }
.nx-pay-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #1a1300; background: linear-gradient(135deg, #f5c518, #f59e0b); box-shadow: 0 10px 34px rgba(245,197,24,.4); }
.nx-pay b { font-size: 1.1rem; max-width: 460px; } .nx-pay span { color: var(--nx-muted); } .nx-pay strong { color: #f5c518; }
.nx-lock { color: #f5c518; font-size: .75em; }
/* selo dos títulos que vêm das listas IPTV dos sites */
.nx-badges .b-vip { background: linear-gradient(135deg, #f5c518, #f59e0b) !important; color: #1a1300; }

/* sessão em outro aparelho / ferramentas do desenvolvedor (nx-guard.js) */
.nx-kick { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; text-align: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--nx-accent) 20%, transparent), transparent 60%), rgba(7,7,12,.97); }
.nx-kick > div { max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nx-kick i { font-size: 2.6rem; color: var(--nx-accent); } .nx-kick h2 { margin: 4px 0 0; } .nx-kick p { margin: 0; color: var(--nx-muted); line-height: 1.5; } .nx-kick p b { color: #fff; }
.nx-kick small { color: var(--nx-muted); margin-top: 6px; } .nx-kick-a { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
/* bloqueio de seleção/arrastar em capas e vídeos */
.nx-guard img, .nx-guard video, .nx-guard .nx-card, .nx-guard .nv { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }

/* faixa de versão nova */
.nx-upd { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 350; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 16px;
  background: rgba(18,18,28,.97); border: 1px solid var(--nx-line); box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: nxIn .25s ease; max-width: calc(100vw - 24px); }
.nx-upd > i { color: var(--nx-accent); } .nx-upd span { font-size: .88rem; }
.nx-upd-x { border: none; background: none; color: var(--nx-muted); cursor: pointer; font-size: 1rem; padding: 4px 6px; }

/* ---------- janela "Avaliar" ---------- */
.nx-rate { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); animation: nxIn .18s ease; }
.nx-rate-box { position: relative; width: min(380px, 100%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 22px 20px; border-radius: 24px; background: #15151f; border: 1px solid var(--nx-line); box-shadow: 0 30px 80px rgba(0,0,0,.6); text-align: center; }
.nx-rate-box img { width: 84px; height: 120px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); margin-bottom: 6px; }
.nx-rate-box small { color: var(--nx-muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.nx-rate-box b { font-size: 1.1rem; line-height: 1.3; }
.nx-rate-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 10px; border: none; background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }
.nx-rate-stars { display: flex; gap: 6px; margin: 10px 0 2px; }
.nx-rate-stars button { border: none; background: none; padding: 2px; font-size: 2.1rem; color: rgba(255,255,255,.18); cursor: pointer; transition: transform .12s, color .12s; }
.nx-rate-stars button:hover { transform: scale(1.15); } .nx-rate-stars button.on { color: #f5c518; text-shadow: 0 0 18px rgba(245,197,24,.45); }
.nx-rate-lbl { font-weight: 800; color: #fde68a; min-height: 1.2em; }
.nx-rate-avg { font-size: .8rem; color: var(--nx-muted); } .nx-rate-avg i { color: #f5c518; }
.nx-rate-box .nx-btn { width: 100%; justify-content: center; margin-top: 10px; }
