/* ═══════════════════════════════════════════════════════════════
   NOVA REDE — Tema Premium Unificado v2026
   Baseado em glassmorphism + dark streaming UI
   ═══════════════════════════════════════════════════════════════ */
:root {
  --accent: #e50914;
  --accent-2: #ff2a68;
  --bg: #050408;
  --bg-2: #0a0a0f;
  --bg-3: #111118;
  --card: #0f0f13;
  --card-2: #16161d;
  --glass: rgba(255,255,255,.04);
  --glass-border: rgba(255,255,255,.07);
  --text: #ffffff;
  --text-2: rgba(255,255,255,.72);
  --text-3: rgba(255,255,255,.48);
  --success: #2ecc71;
  --warn: #f1c40f;
  --danger: #e74c3c;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,.38);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.22);
  --transition: all .22s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: 'Inter','Segoe UI',Roboto,Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.28); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 14px; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; transition: var(--transition); letter-spacing: .02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 4px 18px rgba(229,9,20,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(229,9,20,.5); }
.btn-secondary {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: rgba(255,255,255,.14); }

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.nr-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 24px; height: 64px;
  background: rgba(5,4,8,.88);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.nr-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: -.01em; flex-shrink: 0; }
.nr-brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nr-brand span { background: linear-gradient(90deg,#fff 40%,rgba(255,255,255,.55)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nr-nav { display: flex; align-items: center; gap: 2px; }
.nr-nav a {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
  color: rgba(255,255,255,.65); font-size: 13px; font-weight: 600; transition: .16s; white-space: nowrap;
}
.nr-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nr-nav a.on { color: #fff; background: rgba(229,9,20,.15); border: 1px solid rgba(229,9,20,.22); }

.nr-userarea { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nr-avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.18);
  flex-shrink: 0; background: #1a1020; display: block; position: relative;
}
.nr-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nr-avatar-ph {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,var(--accent),#ff5965); font-size: 12px; font-weight: 800; color: #fff;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,.14);
}
.nr-userinfo { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nr-username { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.nr-meta { font-size: 10px; color: rgba(255,255,255,.42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; line-height: 1.3; }
.nr-exp { font-size: 10px; font-weight: 600; white-space: nowrap; }
.nr-exp.ok { color: var(--success); }
.nr-exp.warn { color: var(--warn); }
.nr-exp.bad { color: var(--danger); }

.nr-exit {
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.6); font-size: 12px; font-weight: 700;
  transition: .16s; white-space: nowrap; flex-shrink: 0;
}
.nr-exit:hover { background: rgba(229,9,20,.15); border-color: rgba(229,9,20,.3); color: #fff; }

/* Hamburger */
.nr-burger { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 6px 8px; border-radius: 10px; line-height: 1; transition: .15s; }
.nr-burger:hover { background: rgba(255,255,255,.08); }

/* Mobile drawer */
.nr-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 48; backdrop-filter: blur(2px); }
.nr-overlay.show { display: block; }
.nr-drawer {
  position: fixed; top: 0; left: -290px; bottom: 0; width: 280px;
  background: rgba(6,4,12,.97); backdrop-filter: blur(24px); z-index: 49; overflow-y: auto;
  display: flex; flex-direction: column; transition: left .26s cubic-bezier(.4,0,.2,1);
  border-right: 1px solid rgba(255,255,255,.08); padding: 0;
}
.nr-drawer.open { left: 0; }
.nr-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
.nr-drawer-title { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.nr-drawer-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.07); border: none; color: rgba(255,255,255,.5); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .14s; padding: 0; }
.nr-drawer-close:hover { background: rgba(255,255,255,.14); color: #fff; }
.nr-drawer-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nr-drawer a { padding: 13px 14px; border-radius: 12px; text-decoration: none; color: rgba(255,255,255,.75); font-size: 15px; font-weight: 600; border: 1px solid transparent; transition: .14s; display: flex; align-items: center; gap: 10px; }
.nr-drawer a:hover { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.07); }
.nr-drawer a.on { color: #fff; background: rgba(229,9,20,.12); border-color: rgba(229,9,20,.18); }
.nr-drawer-divider { height: 1px; background: rgba(255,255,255,.07); margin: 6px 2px; }
.nr-drawer-user { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.nr-drawer-user .name { font-size: 14px; font-weight: 700; color: #fff; }
.nr-drawer-user .meta { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* Search in header */
.nr-search { position: relative; }
.nr-search input {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  padding: 8px 14px 8px 36px; color: #fff; font-size: 13px; width: 190px; outline: none; transition: var(--transition);
}
.nr-search input:focus { width: 260px; background: rgba(255,255,255,.1); border-color: rgba(229,9,20,.35); }
.nr-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.4); font-size: 13px; }

@media(max-width:1100px){
  .nr-username{max-width:110px} .nr-meta{max-width:130px}
}
@media(max-width:900px){
  .nr-nav,.nr-userarea .nr-userinfo,.nr-exit{ display:none; }
  .nr-burger{ display:flex; align-items:center; }
  .nr-header{ position:relative; }
}
@media(max-width:700px){
  .nr-header{ padding: 0 14px; }
  .nr-brand span{ font-size: 16px; }
  .nr-brand img{ display: none; }
  .nr-search input{ width: 140px; }
  .nr-search input:focus{ width: 180px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════════════════════════ */
.nr-hero {
  position: relative; min-height: 58vh; max-height: 620px;
  display: flex; align-items: flex-end; padding: 0 5vw 48px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden; margin: 0 2vw;
}
.nr-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center top;
  transition: background-image .7s ease;
}
.nr-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,rgba(5,4,8,.96) 0%,rgba(5,4,8,.82) 40%,rgba(5,4,8,.25) 100%);
}
.nr-hero__content { position: relative; z-index: 2; max-width: 680px; display: flex; flex-direction: column; gap: 14px; }
.nr-hero__eyebrow {
  display: inline-block; background: linear-gradient(90deg,var(--accent),var(--accent-2));
  color: #fff; font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 999px;
  letter-spacing: 1.5px; width: max-content; box-shadow: 0 0 12px rgba(229,9,20,.4);
}
.nr-hero h1 { font-size: clamp(26px,4.2vw,48px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.nr-hero p { font-size: 15px; color: var(--text-2); line-height: 1.55; max-width: 520px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.nr-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

@media(max-width:700px){
  .nr-hero{ min-height: 46vh; padding: 0 4vw 32px; margin: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .nr-hero h1{ font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   STREAMING PLATFORMS BAR
   ═══════════════════════════════════════════════════════════════ */
.nr-streamings {
  display: flex; gap: 14px; overflow-x: auto; padding: 18px 4vw 10px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.nr-streamings::-webkit-scrollbar { display: none; }
.nr-streaming {
  flex: 0 0 auto; width: 130px; height: 78px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  scroll-snap-align: start; transition: .18s; overflow: hidden; cursor: pointer;
}
.nr-streaming:hover { background: rgba(255,255,255,.12); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.nr-streaming img { max-width: 84%; max-height: 60%; object-fit: contain; filter: brightness(.9); transition: .18s; }
.nr-streaming:hover img { filter: brightness(1.1); }

/* ═══════════════════════════════════════════════════════════════
   CONTENT CAROUSELS
   ═══════════════════════════════════════════════════════════════ */
.nr-section { padding: 18px 0 6px; }
.nr-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw 10px;
}
.nr-section-head h2 {
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(90deg,#fff,rgba(255,255,255,.7)); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nr-section-head a { font-size: 12px; font-weight: 700; color: var(--accent); transition: .16s; }
.nr-section-head a:hover { color: #fff; }

.nr-carousel {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 4vw 18px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
}
.nr-carousel::-webkit-scrollbar { height: 6px; }
.nr-carousel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

/* Poster Card */
.nr-card {
  flex: 0 0 auto; width: 150px; border-radius: var(--radius);
  background: var(--card); overflow: hidden; position: relative;
  scroll-snap-align: start; transition: var(--transition); cursor: pointer;
  border: 1px solid rgba(255,255,255,.05);
}
.nr-card:hover { transform: scale(1.06) translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(229,9,20,.15); z-index: 3; }
.nr-card__frame { display: block; width: 100%; aspect-ratio: 2/3; overflow: hidden; position: relative; background: #14141a; }
.nr-card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.nr-card:hover .nr-card__frame img { transform: scale(1.08); }
.nr-card h3 { font-size: 12px; font-weight: 600; padding: 10px 10px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.nr-card:hover h3 { color: #fff; }

.nr-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(229,9,20,.9); color: #fff; font-size: 10px; font-weight: 800;
  padding: 4px 8px; border-radius: 6px; letter-spacing: .04em; backdrop-filter: blur(4px);
}

/* Channel card (square-ish) */
.nr-card--channel { width: 130px; }
.nr-card--channel .nr-card__frame { aspect-ratio: 1/1; }

/* Progress card */
.nr-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.12); z-index: 2; }
.nr-progress span { display: block; height: 100%; background: var(--accent); border-radius: 0 2px 2px 0; }

/* ═══════════════════════════════════════════════════════════════
   TABS (Home)
   ═══════════════════════════════════════════════════════════════ */
.nr-tabs {
  display: flex; gap: 8px; padding: 10px 4vw 4px; overflow-x: auto;
}
.nr-tab {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text-2); font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: var(--transition);
}
.nr-tab.active { background: rgba(229,9,20,.14); color: #fff; border-color: rgba(229,9,20,.28); }
.nr-tab:hover:not(.active) { background: rgba(255,255,255,.08); color: #fff; }

.nr-panel { display: none; animation: fadeIn .35s ease; }
.nr-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.adm-body { background: var(--bg); font-family: 'Inter',sans-serif; }
.adm-header {
  position: sticky; top: 0; z-index: 50; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: rgba(5,4,8,.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border); box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.adm-header h1 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }

.adm-layout { display: flex; min-height: calc(100vh - 60px); }
.adm-sidebar {
  width: 260px; flex-shrink: 0; background: rgba(8,8,14,.95);
  border-right: 1px solid var(--glass-border); padding: 18px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.adm-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  color: rgba(255,255,255,.65); font-size: 14px; font-weight: 600; transition: .16s;
}
.adm-sidebar a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-sidebar a.on { background: rgba(229,9,20,.12); color: #fff; border: 1px solid rgba(229,9,20,.18); }
.adm-sidebar-divider { height: 1px; background: rgba(255,255,255,.07); margin: 6px 2px; }

.adm-main { flex: 1; padding: 28px; max-width: calc(100vw - 260px); }
@media(max-width:900px){
  .adm-sidebar{ position: fixed; left: -270px; top: 60px; bottom: 0; z-index: 40; transition: left .26s; }
  .adm-sidebar.open{ left: 0; }
  .adm-main{ max-width: 100vw; padding: 18px; }
}

/* Admin Stats */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 18px; margin-bottom: 28px; }
.adm-stat {
  background: var(--card); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 22px; transition: var(--transition);
}
.adm-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(255,255,255,.12); }
.adm-stat__label { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.adm-stat__value { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.adm-stat__change { font-size: 12px; font-weight: 600; margin-top: 6px; }
.adm-stat__change.up { color: var(--success); }
.adm-stat__change.down { color: var(--danger); }

/* Admin Cards / Tables */
.adm-card {
  background: var(--card); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 22px; margin-bottom: 20px;
}
.adm-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: #fff; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { text-align: left; padding: 12px 10px; color: var(--text-3); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; border-bottom: 1px solid var(--glass-border); }
.adm-table td { padding: 14px 10px; color: var(--text-2); border-bottom: 1px solid rgba(255,255,255,.04); }
.adm-table tr:hover td { background: rgba(255,255,255,.03); }
.adm-table td .badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.badge-green { background: rgba(46,204,113,.12); color: var(--success); }
.badge-red { background: rgba(231,76,60,.12); color: var(--danger); }
.badge-yellow { background: rgba(241,196,15,.12); color: var(--warn); }

/* Forms admin */
.adm-input {
  width: 100%; padding: 12px 14px; background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border); border-radius: 12px; color: #fff; font-size: 14px;
  outline: none; transition: var(--transition); font-family: inherit;
}
.adm-input:focus { border-color: rgba(229,9,20,.4); background: rgba(255,255,255,.07); box-shadow: 0 0 0 3px rgba(229,9,20,.08); }
.adm-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.nr-footer {
  text-align: center; padding: 32px 18px; color: rgba(255,255,255,.35); font-size: 12px; font-weight: 500;
  border-top: 1px solid var(--glass-border); margin-top: 40px;
}
.nr-footer a { color: rgba(255,255,255,.5); transition: .16s; }
.nr-footer a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
@keyframes fadeInDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:none} }

/* Loading bar */
#nprogress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); z-index: 9999; transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease; box-shadow: 0 0 8px var(--accent); display: none;
}
#nprogress-bar.loading { display: block; animation: nprogress 1.8s ease-in-out infinite; }
@keyframes nprogress { 0%{transform:scaleX(0);opacity:1} 70%{transform:scaleX(.85);opacity:1} 100%{transform:scaleX(.95);opacity:.8} }

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 12px; } .gap-3 { gap: 18px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.hidden { display: none; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   ANTI-PIRACY / PROTECTION
   ═══════════════════════════════════════════════════════════════ */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
img, video, a {
  -webkit-user-drag: none;
  user-drag: none;
}
body.devtools-blocked * { display: none !important; }
body.devtools-blocked::before {
  content: "Acesso bloqueado";
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; background: #000; color: #fff;
  font-family: Arial, sans-serif; font-size: 24px; z-index: 999999;
}

/* ═══════════════════════════════════════════════════════════════
   PLOT TOGGLE
   ═══════════════════════════════════════════════════════════════ */
.nr-plot { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nr-plot.expanded { -webkit-line-clamp: unset; display: block; }
.nr-plot-toggle {
  background: none; border: none; color: var(--accent); font-size: 13px;
  font-weight: 700; cursor: pointer; margin-top: 6px; padding: 0; display: none;
}
.nr-plot-toggle.show { display: inline-block; }

/* ═══════════════════════════════════════════════════════════════
   RATING BADGE
   ═══════════════════════════════════════════════════════════════ */
.nr-rating-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(10,10,16,.88); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,220,0,.35); color: #ffd700;
  font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 3px; letter-spacing: .02em;
}
.nr-rating-badge::before { content: '★'; font-size: 10px; }

/* ═══════════════════════════════════════════════════════════════
   RELATED CONTENT
   ═══════════════════════════════════════════════════════════════ */
.nr-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px;
}
.nr-related-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid rgba(255,255,255,.05); transition: var(--transition);
}
.nr-related-card:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 10px 28px rgba(0,0,0,.4); border-color: rgba(229,9,20,.15); }
.nr-related-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.nr-related-card__title { font-size: 12px; font-weight: 600; padding: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════════
   STREAMING HUB
   ═══════════════════════════════════════════════════════════════ */
.nr-streaming-page { min-height: 60vh; padding: 0 4vw; }
.nr-stream-hero {
  display: flex; align-items: center; gap: 28px; padding: 32px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 28px;
}
.nr-stream-hero__logo {
  width: 160px; height: 90px; background: rgba(255,255,255,.06);
  border-radius: 18px; border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; padding: 12px; flex-shrink: 0;
}
.nr-stream-hero__logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: brightness(1.1); }
.nr-stream-hero__info h1 { font-size: 28px; font-weight: 900; margin: 0 0 6px; color: #fff; }
.nr-stream-hero__info p { color: rgba(255,255,255,.55); font-size: 14px; margin: 0 0 16px; }
.nr-stream-stats { display: flex; gap: 20px; }
.nr-stream-stat {
  display: flex; flex-direction: column; align-items: center; padding: 10px 18px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; min-width: 80px;
}
.nr-stream-stat strong { font-size: 22px; font-weight: 900; color: var(--accent); }
.nr-stream-stat span { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

.nr-stream-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.nr-stream-cats-label { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; flex-shrink: 0; }
.nr-stream-cat-btn {
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: .18s; white-space: nowrap;
}
.nr-stream-cat-btn:hover, .nr-stream-cat-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.nr-stream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 36px; }
.nr-stream-card {
  position: relative; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  aspect-ratio: 2/3; display: flex; flex-direction: column; text-decoration: none; transition: .2s; cursor: pointer;
}
.nr-stream-card:hover { transform: translateY(-4px) scale(1.02); border-color: var(--accent); box-shadow: 0 12px 32px rgba(0,0,0,.5); z-index: 2; }
.nr-stream-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .2s; }
.nr-stream-card:hover img { transform: scale(1.04); }
.nr-stream-card__overlay { position: absolute; inset: auto 0 0 0; background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, transparent 100%); padding: 30px 10px 10px; }
.nr-stream-card__title { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.nr-stream-card__badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.nr-stream-empty { text-align: center; padding: 64px 20px; color: rgba(255,255,255,.35); }

.nr-stream-type-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.nr-stream-type-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: rgba(255,255,255,.65);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: .16s; font-family: inherit;
}
.nr-stream-type-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.nr-stream-type-btn.on { background: rgba(229,9,20,.14); border-color: rgba(229,9,20,.3); color: #fff; }
.nr-stream-type-count { background: rgba(255,255,255,.1); padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.nr-stream-type-btn.on .nr-stream-type-count { background: rgba(229,9,20,.2); }
.nr-stream-section[data-hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════════════════════════ */
.nr-search-page { padding: 24px 4vw; min-height: 60vh; }
.nr-search-form { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.nr-search-form input[type="search"] {
  flex: 1; min-width: 220px; padding: 12px 18px; background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border); border-radius: 14px; color: #fff; font-size: 15px; outline: none;
}
.nr-search-form input[type="search"]:focus { border-color: rgba(229,9,20,.4); background: rgba(255,255,255,.1); }
.nr-search-summary { font-size: 14px; color: var(--text-2); margin-bottom: 18px; }
.nr-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

/* ═══════════════════════════════════════════════════════════════
   EPISODE ROW (series detail enriched)
   ═══════════════════════════════════════════════════════════════ */
.nr-episode-list { display: flex; flex-direction: column; gap: 6px; }
.nr-episode-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px;
  text-decoration: none; color: #fff; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  transition: .18s; position: relative; overflow: hidden;
}
.nr-episode-row:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); transform: translateX(3px); }
.nr-episode-row.ep-watched { border-color: rgba(46,204,113,.22); background: rgba(46,204,113,.04); }
.nr-episode-row.ep-watching { border-color: rgba(var(--accent-rgb,229,9,20),.3); }
.nr-ep-badge {
  flex-shrink: 0; min-width: 44px; padding: 5px 8px; border-radius: 8px;
  background: rgba(255,255,255,.08); font-size: 11px; font-weight: 800; text-align: center; letter-spacing: .04em; color: rgba(255,255,255,.6);
}
.nr-ep-watched .nr-ep-badge { background: rgba(46,204,113,.18); color: #2ecc71; font-size: 14px; }
.nr-ep-watching .nr-ep-badge { background: rgba(229,9,20,.18); color: var(--accent); }
.nr-ep-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nr-ep-copy strong { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-ep-meta { font-size: 12px; color: rgba(255,255,255,.4); }
.nr-ep-meta-watched { color: #2ecc71; font-weight: 700; }
.nr-ep-meta-left { color: var(--accent); font-weight: 700; }

@media(max-width:700px){
  .nr-stream-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nr-stream-hero__logo { width: 120px; height: 68px; }
  .nr-stream-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nr-related-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .nr-catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   MINI PLAYER (Picture-in-Picture)
   ═══════════════════════════════════════════════════════════════ */
#nr-miniplayer { user-select: none; -webkit-user-select: none; }
#nr-miniplayer #nr-mp-header { cursor: grab; }
#nr-miniplayer #nr-mp-header:active { cursor: grabbing; }
#nr-miniplayer video::-webkit-media-controls-panel { background: linear-gradient(transparent, rgba(0,0,0,.6)) !important; }

/* ═══════════════════════════════════════════════════════════════
   BOTTOM NAV (Mobile)
   ═══════════════════════════════════════════════════════════════ */
.nr-bottom-nav{ display:none; position:fixed; bottom:0; left:0; right:0; z-index:9999; background:rgba(10,9,16,.94); backdrop-filter:blur(20px); border-top:1px solid rgba(255,255,255,.06); padding:6px 0 env safe area inset,6px 0; justify-content:space-around; align-items:center; }
.nr-bottom-nav a{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:6px 0; text-decoration:none; color:var(--text-3); font-size:10px; font-weight:600; transition:.15s; min-width:60px; }
.nr-bottom-nav a i{ font-size:20px; transition:.15s; }
.nr-bottom-nav a.on{ color:#fff; }
.nr-bottom-nav a.on i{ color:var(--accent); }
.nr-bottom-nav a:hover{ color:var(--text-2); }
@media(max-width:768px){
  .nr-bottom-nav{ display:flex; }
  body{ padding-bottom:60px; }
}

/* ═══════════════════════════════════════════════════════════════
   TV BOX FOCUS
   ═══════════════════════════════════════════════════════════════ */
.nr-card:focus, .nr-card *:focus{ outline:2px solid var(--accent); outline-offset:3px; border-radius:12px; }
.nr-hero-item:focus{ outline:2px solid var(--accent); outline-offset:3px; border-radius:16px; }
.nr-card:focus-visible, a:focus-visible, button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
@media(hover:none) and (pointer:coarse){
  .nr-card{ -webkit-tap-highlight-color:rgba(229,9,20,.3); }
  .nr-card:active{ transform:scale(.97); }
  .nr-hero-item:active{ transform:scale(.98); }
  button, .nr-btn, .btn{ min-height:44px; min-width:44px; }
  .nr-card__frame{ min-height:140px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE TOUCH IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */
@media(max-width:768px){
  .nr-carousel{ scrollbar-width:none; -ms-overflow-style:none; }
  .nr-carousel::-webkit-scrollbar{ display:none; }
  .nr-drawer{ width:280px !important; }
  .nr-card h3{ font-size:11px !important; }
  .nr-hero-content h2{ font-size:18px !important; }
  .nr-hero-content p{ font-size:12px !important; -webkit-line-clamp:2 !important; }
  .nr-hero-buttons{ gap:8px !important; }
  .nr-hero-buttons a, .nr-hero-buttons button{ padding:10px 16px !important; font-size:12px !important; min-height:44px; }
  .nr-search-box input{ font-size:16px !important; } /* Previne zoom iOS */
}

@media(max-width:480px){
  .nr-catalog-grid, .nr-stream-grid, .nr-related-grid{ grid-template-columns:repeat(2,1fr) !important; gap:8px !important; }
  .nr-grid-responsive{ grid-template-columns:repeat(2,1fr) !important; gap:8px !important; }
  .nr-card__frame{ min-height:110px; }
  .nr-rating-badge{ font-size:9px !important; padding:2px 6px !important; }
}
