/* ============================================================
   nt-theme.css — NaijaTape design system (public site)
   Dark green base, green → lime → gold brand gradient with dark text on bright surfaces.
   CSS only; motion uses transform/opacity and respects prefers-reduced-motion.
   ============================================================ */

:root {
  color-scheme: dark;
  /* Surfaces */
  --bg: #07120d;
  --bg-2: #0a1812;
  --surface: #0f2019;
  --surface-2: #132a20;
  --surface-3: #1a3729;
  --border: rgba(178, 255, 214, 0.08);
  --border-strong: rgba(178, 255, 214, 0.16);
  /* Text */
  --text: #eefaf3;
  --text-2: rgba(238, 250, 243, 0.78);
  --muted: #8fb1a0;
  /* Brand */
  --accent: #12d47c;
  --accent-2: #0fb86b;
  --lime: #a6e34d;
  --gold: #ffc23d;
  --coral: #ff6b4a;
  --on-accent: #04110a;
  --grad: linear-gradient(120deg, #12d47c 0%, #a6e34d 55%, #ffc23d 100%);
  --grad-soft: linear-gradient(120deg, rgba(18, 212, 124, 0.16) 0%, rgba(166, 227, 77, 0.12) 55%, rgba(255, 194, 61, 0.14) 100%);
  --glow: 0 10px 28px rgba(18, 212, 124, 0.28);
  /* Shape & motion */
  --radius: 16px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Layout */
  --maxw: 1720px;
  --gutter: 28px;
  --header-h: 66px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 0% -8%, rgba(18, 212, 124, 0.13), transparent 62%),
    radial-gradient(900px 480px at 100% -4%, rgba(255, 194, 61, 0.08), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--lime); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(18, 212, 124, 0.35); color: #fff; }

.nt-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.nt-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nt-muted { color: var(--muted); }
.nt-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; flex: 0 0 auto; }
.nt-skip { position: absolute; left: 12px; top: -60px; z-index: 3000; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--grad); color: var(--on-accent); font-weight: 800; }
.nt-skip:focus { top: 12px; color: var(--on-accent); }
body.nt-locked { overflow: hidden; }

/* ---------- Shell ---------- */
.nt-shell { display: flex; flex-direction: column; min-height: 100vh; }
.nt-main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter) 48px; }

/* ---------- Logo ---------- */
.nt-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: 0 0 auto; }
.nt-logo:hover { color: var(--text); }
.nt-logo-mark { width: 38px; height: 38px; flex: 0 0 auto; filter: drop-shadow(0 6px 14px rgba(18, 212, 124, 0.35)); }
.nt-logo-text { font-size: 1.42rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.nt-logo-text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nt-logo--lg .nt-logo-mark { width: 52px; height: 52px; }
.nt-logo--lg .nt-logo-text { font-size: 1.9rem; }

/* ---------- Buttons ---------- */
.nt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 18px; border: 0; border-radius: 12px;
  font-weight: 800; font-size: .92rem; letter-spacing: .01em; color: var(--on-accent);
  background: var(--grad); box-shadow: var(--glow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.nt-btn:hover { color: var(--on-accent); transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 32px rgba(18, 212, 124, 0.36); }
.nt-btn:active { transform: translateY(0); }
.nt-btn--ghost { color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-strong); box-shadow: none; }
.nt-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); box-shadow: none; filter: none; }
.nt-btn--icon { width: 42px; padding: 0; }
.nt-btn--lg { min-height: 52px; padding: 14px 28px; font-size: 1.02rem; border-radius: 14px; }
.nt-btn--block { display: flex; width: auto; margin: 12px 20px 4px; }
.nt-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.05); color: var(--text);
  transition: background .2s var(--ease);
}
.nt-icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.nt-icon-btn .nt-ico { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.nt-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7, 18, 13, 0.84);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nt-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); opacity: .7; }
.nt-header-row { display: flex; align-items: center; gap: 22px; max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter); min-height: var(--header-h); }
.nt-menu-btn { display: none; }

.nt-search {
  position: relative; flex: 1; max-width: 640px; margin-left: auto; margin-right: auto;
  display: flex; align-items: center; padding: 4px 4px 4px 42px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-strong); border-radius: 999px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.nt-search:focus-within { border-color: rgba(18, 212, 124, 0.7); box-shadow: 0 0 0 4px rgba(18, 212, 124, 0.14); background: rgba(255, 255, 255, 0.08); }
.nt-search-ico { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); }
.nt-search input { flex: 1; min-width: 0; height: 38px; background: transparent; border: 0; outline: none; padding: 0 10px 0 0; font-size: .95rem; color: var(--text); }
.nt-search input::placeholder { color: var(--muted); }
.nt-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nt-search-btn { height: 38px; padding: 0 20px; border: 0; border-radius: 999px; font-weight: 800; font-size: .88rem; color: var(--on-accent); background: var(--grad); transition: filter .2s var(--ease); }
.nt-search-btn:hover { filter: brightness(1.08); }

.nt-nav { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 10px; }
.nt-nav-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nt-nav-row::-webkit-scrollbar { display: none; }
.nt-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 15px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--text-2);
  border: 1px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.nt-nav a .nt-ico { width: 17px; height: 17px; }
.nt-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); border-color: var(--border); }
.nt-nav a.is-active { color: var(--on-accent); background: var(--grad); box-shadow: 0 6px 18px rgba(18, 212, 124, 0.28); }
.nt-nav-spacer { flex: 1 1 auto; }
.nt-nav .nt-nav-meta { font-weight: 600; font-size: .85rem; color: var(--muted); }

/* ---------- Drawer (phones/tablets) ---------- */
.nt-drawer, .nt-overlay { display: none; }

/* ---------- Page head ---------- */
.nt-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 6px 0 18px; }
.nt-pagehead-text { min-width: 0; }
.nt-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.nt-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); overflow-wrap: anywhere; }
.nt-subtitle { margin-top: 4px; font-size: .88rem; color: var(--muted); }
.nt-lead { max-width: 900px; margin: -4px 0 20px; color: var(--text-2); }
.nt-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.nt-section-title::before { content: ''; width: 5px; height: 20px; border-radius: 4px; background: var(--grad); }

/* Sort tabs */
.nt-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.nt-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; font-size: .86rem; font-weight: 700; color: var(--text-2); }
.nt-tabs a .nt-ico { width: 16px; height: 16px; }
.nt-tabs a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nt-tabs a.is-active { color: var(--on-accent); background: var(--grad); }

/* Chips & category rail */
.nt-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; max-width: 100%;
  padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--text-2);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.nt-chip .nt-ico { width: 15px; height: 15px; }
.nt-chip:hover { color: #fff; border-color: rgba(18, 212, 124, 0.55); background: rgba(18, 212, 124, 0.1); }
.nt-chip.is-active { color: var(--on-accent); background: var(--grad); border-color: transparent; }
.nt-chip--accent { color: var(--text); background: rgba(18, 212, 124, 0.14); border-color: rgba(18, 212, 124, 0.4); }
.nt-chip--star { color: var(--text); background: rgba(255, 194, 61, 0.13); border-color: rgba(255, 194, 61, 0.42); }
.nt-chip--star:hover { border-color: var(--gold); background: rgba(255, 194, 61, 0.2); }
.nt-chip--channel { color: var(--text); background: rgba(166, 227, 77, 0.12); border-color: rgba(166, 227, 77, 0.4); }
.nt-chip--more { color: var(--accent); }
.nt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-chips--center { justify-content: center; margin: 18px auto 30px; max-width: 900px; }
.nt-rail {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 22px; padding: 2px var(--gutter) 6px;
  overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.nt-rail::-webkit-scrollbar { display: none; }

/* ---------- Video grid & cards ---------- */
.nt-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 20px; }
.nt-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.nt-card-media {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.nt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s var(--ease); }
.nt-card-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(transparent, rgba(3, 10, 7, 0.7)); pointer-events: none; }
.nt-card:hover .nt-card-media { transform: translateY(-4px); box-shadow: var(--shadow-lift), 0 0 0 2px rgba(18, 212, 124, 0.55); border-color: transparent; }
.nt-card:hover .nt-card-media img { transform: scale(1.05); filter: saturate(1.1); }
.nt-card-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--on-accent); background: var(--grad); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: scale(.8); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nt-card-play .nt-ico { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.nt-card:hover .nt-card-play { opacity: 1; transform: scale(1); }
.nt-card-duration {
  position: absolute; right: 9px; bottom: 9px; z-index: 2; padding: 3px 8px; border-radius: 7px;
  font-size: .74rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: #fff; background: rgba(3, 10, 7, 0.78); border: 1px solid rgba(255, 255, 255, 0.12);
}
.nt-card-body { padding: 11px 2px 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nt-card-title { font-size: .96rem; font-weight: 700; line-height: 1.38; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-card-title a { color: inherit; }
.nt-card-title a:hover { color: var(--accent); }
.nt-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: .8rem; color: var(--muted); }
.nt-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.nt-card-meta .nt-ico { width: 14px; height: 14px; }

/* Compact list card ("Up next") */
.nt-card--list { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px; align-items: start; }
.nt-card--list .nt-card-media { border-radius: 12px; box-shadow: none; }
.nt-card--list:hover .nt-card-media { transform: none; box-shadow: 0 0 0 2px rgba(18, 212, 124, 0.55); }
.nt-card--list .nt-card-play { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.nt-card--list .nt-card-play .nt-ico { width: 16px; height: 16px; }
.nt-card--list .nt-card-duration { right: 6px; bottom: 6px; font-size: .7rem; padding: 2px 6px; }
.nt-card--list .nt-card-body { padding: 0; }
.nt-card--list .nt-card-title { font-size: .9rem; }

/* ---------- Tiles (categories, pornstars, channels) ---------- */
.nt-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.nt-tile {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  background: var(--grad-soft), var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nt-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.nt-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 10, 7, 0.05) 30%, rgba(3, 10, 7, 0.92) 100%); }
.nt-tile:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lift), 0 0 0 2px rgba(18, 212, 124, 0.55); }
.nt-tile:hover img { transform: scale(1.06); }
.nt-tile-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(178, 255, 214, 0.35); }
.nt-tile-ph .nt-ico { width: 42px; height: 42px; }
.nt-tile-body { position: absolute; left: 12px; right: 10px; bottom: 10px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.nt-tile-name { font-weight: 800; font-size: .96rem; line-height: 1.25; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); overflow-wrap: anywhere; }
.nt-tile-count { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: var(--on-accent); background: var(--grad); }
.nt-tile-count .nt-ico { width: 12px; height: 12px; }

/* ---------- Tag cloud ---------- */
.nt-tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.nt-tag {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.nt-tag:hover { transform: translateY(-2px); border-color: rgba(18, 212, 124, 0.55); background: var(--surface-2); }
.nt-tag-name { font-weight: 700; font-size: .88rem; color: var(--text); overflow-wrap: anywhere; }
.nt-tag-name::before { content: '#'; color: var(--accent); margin-right: 2px; }
.nt-tag-count { flex: 0 0 auto; min-width: 30px; padding: 2px 8px; border-radius: 999px; text-align: center; font-size: .74rem; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, 0.06); }

/* ---------- Watch page ---------- */
.nt-watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.nt-watch-main { min-width: 0; }
.nt-player { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border); }
.nt-player > video, .nt-player .hmp:not(.hmp-js) video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; display: block; }
.nt-watch-info { padding: 18px 2px 0; }
.nt-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 10px; font-size: .8rem; color: var(--muted); }
.nt-crumbs a { color: var(--muted); font-weight: 600; }
.nt-crumbs a:hover { color: var(--accent); }
.nt-crumbs .nt-ico { width: 13px; height: 13px; opacity: .6; }
.nt-crumbs span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.nt-watch-title { font-size: clamp(1.2rem, 1rem + .9vw, 1.65rem); font-weight: 800; line-height: 1.28; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.nt-watch-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin: 14px 0 4px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.nt-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.nt-stats li { display: inline-flex; align-items: center; gap: 7px; }
.nt-stats .nt-ico { color: var(--accent); width: 17px; height: 17px; }
.nt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nt-watch-desc { margin: 16px 0 4px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: .94rem; }
.nt-facets { display: grid; gap: 12px; margin: 18px 0 4px; }
.nt-facets > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; align-items: start; }
.nt-facets dt { display: inline-flex; align-items: center; gap: 7px; padding-top: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nt-facets dt .nt-ico { width: 15px; height: 15px; }
.nt-facets dd { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }

.nt-downloads { margin: 22px 0 6px; padding: 16px; border-radius: var(--radius); background: var(--grad-soft), var(--surface); border: 1px solid var(--border-strong); }
.nt-downloads-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 1rem; font-weight: 800; }
.nt-downloads-title .nt-ico { color: var(--accent); }
.nt-downloads-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nt-dl {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 12px;
  color: var(--text); background: rgba(3, 10, 7, 0.55); border: 1px solid var(--border-strong);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.nt-dl:hover { color: #fff; transform: translateY(-2px); border-color: var(--accent); background: rgba(18, 212, 124, 0.12); }
.nt-dl-q { min-width: 56px; padding: 6px 8px; border-radius: 8px; text-align: center; font-weight: 800; font-size: .86rem; color: var(--on-accent); background: var(--accent); }
.nt-dl--hd .nt-dl-q { background: var(--grad); }
.nt-dl-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--text-2); }

.nt-watch-side { min-width: 0; }
.nt-upnext { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px 18px; }

/* ---------- Download page ---------- */
.nt-dlpage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; max-width: 1080px; margin: 8px auto 0; padding: 22px; border-radius: 22px; background: var(--grad-soft), var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.nt-dlpage-poster { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.nt-dlpage-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.nt-dlpage-title { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.nt-link-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-2); }
.nt-link-back:hover { color: var(--accent); }
.nt-dlpage + .nt-chips { margin-top: 22px; }

/* ---------- Static / informational pages ---------- */
.nt-prose { max-width: 860px; margin: 0 auto; padding: 34px 38px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text-2); line-height: 1.75; }
.nt-prose h1, .nt-prose h2 { color: var(--text); font-weight: 800; letter-spacing: -0.015em; }
.nt-prose h1 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 6px; }
.nt-prose .nt-updated { font-size: .84rem; color: var(--muted); margin-bottom: 22px; }
.nt-prose h2 { display: flex; align-items: center; gap: 10px; margin: 28px 0 8px; font-size: 1.12rem; }
.nt-prose h2::before { content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--grad); }
.nt-prose p { margin-bottom: 12px; }
.nt-prose ul, .nt-prose ol { margin: 0 0 14px 2px; }
.nt-prose ul li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.nt-prose ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.nt-prose ol { list-style: decimal; padding-left: 22px; }
.nt-prose ol li { margin-bottom: 6px; }
.nt-prose a { color: var(--accent); font-weight: 700; }
.nt-prose a:hover { color: var(--lime); }
.nt-prose strong { color: var(--text); }
.nt-contact-card { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--border-strong); }
.nt-contact-card .nt-ico { width: 26px; height: 26px; color: var(--accent); }
.nt-contact-card strong { display: block; color: var(--text); }

/* ---------- Empty / 404 ---------- */
.nt-empty { max-width: 620px; margin: 24px auto; padding: 44px 26px; text-align: center; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.nt-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 20px; color: var(--on-accent); background: var(--grad); box-shadow: var(--glow); }
.nt-empty-ico .nt-ico { width: 30px; height: 30px; }
.nt-empty h1, .nt-empty h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.nt-empty p { color: var(--text-2); margin-bottom: 18px; }
.nt-404 { display: block; font-size: clamp(4.5rem, 3rem + 7vw, 7.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.nt-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Pagination ---------- */
.nt-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 38px 0 6px; }
.nt-pagination a, .nt-pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 15px;
  border-radius: 12px; font-weight: 800; font-size: .9rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.nt-pagination a:hover { color: #fff; border-color: rgba(18, 212, 124, 0.6); transform: translateY(-2px); }
.nt-pagination .current { color: var(--on-accent); background: var(--grad); border-color: transparent; box-shadow: var(--glow); }

/* ---------- Footer ---------- */
.nt-footer { margin-top: auto; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(10, 24, 18, 0.5), rgba(5, 13, 9, 0.96)); }
.nt-footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 38px var(--gutter) 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.nt-footer-brand p { margin-top: 12px; font-size: .88rem; color: var(--muted); max-width: 380px; }
.nt-footer-note { display: flex; align-items: center; }
.nt-footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.nt-footer-col h2 { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.nt-footer-col a { color: var(--text-2); font-size: .9rem; overflow-wrap: anywhere; }
.nt-footer-col a:hover { color: var(--accent); }
.nt-footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter) 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .8rem; color: var(--muted); }
.nt-badge-18 { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 22px; padding: 0 7px; margin-right: 8px; border-radius: 7px; font-size: .72rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff6b4a, #ff3b5c); flex: 0 0 auto; }
.nt-badge-18--lg { min-width: 52px; height: 30px; margin: 18px auto 10px; font-size: .9rem; border-radius: 9px; }

/* ---------- Mobile tab bar ---------- */
.nt-tabbar { display: none; }

/* ---------- Toast ---------- */
.nt-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 5000; padding: 11px 18px; border-radius: 12px;
  font-weight: 700; font-size: .9rem; color: var(--on-accent); background: var(--grad); box-shadow: var(--shadow-lift);
  opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Ads ---------- */
.xh-ad-slot, .nt-ad { margin: 16px 0; text-align: center; }

/* ---------- 18+ notice ---------- */
.nt-age { display: none; }
.nt-age-pending, .nt-age-pending body { overflow: hidden; }
.nt-age-pending .nt-age {
  display: flex; position: fixed; inset: 0; z-index: 100000; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(760px 480px at 50% 10%, rgba(18, 212, 124, 0.22), transparent 62%), rgba(3, 10, 7, 0.97);
}
.nt-age-box { width: 100%; max-width: 470px; text-align: center; padding: 32px 26px 26px; border-radius: 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65); }
.nt-age-box .nt-logo { justify-content: center; }
.nt-age-box .nt-badge-18 { display: flex; width: fit-content; }
.nt-age-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.nt-age-box p { font-size: .95rem; color: var(--text-2); margin-bottom: 22px; }
.nt-age-actions { display: flex; flex-direction: column; gap: 8px; }
.nt-age-actions .nt-btn { width: 100%; }
.nt-age-leave { color: var(--muted); padding: 8px; font-weight: 600; }
.nt-age-pending .nt-tabbar { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 1200px) {
  .nt-watch { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }
  .nt-watch-side { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; padding-right: 4px; }
  .nt-upnext { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (min-width: 1600px) {
  .nt-watch { grid-template-columns: minmax(0, 1fr) 440px; }
  .nt-card--list { grid-template-columns: 184px minmax(0, 1fr); }
}
@media (max-width: 1679px) { .nt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1499px) { .nt-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1279px) {
  .nt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
  .nt-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nt-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .nt-footer-brand { grid-column: 1 / -1; }
}

/* Tablet & phone: compact header, drawer, tab bar */
@media (max-width: 991px) {
  :root { --gutter: 16px; --header-h: 58px; }
  html { scroll-padding-top: 120px; }
  .nt-header-row { flex-wrap: wrap; gap: 10px 12px; padding: 8px var(--gutter) 10px; }
  .nt-menu-btn { display: inline-flex; }
  .nt-header .nt-logo { flex: 1; justify-content: center; margin-right: 42px; }
  .nt-logo-mark { width: 34px; height: 34px; }
  .nt-logo-text { font-size: 1.3rem; }
  .nt-search { order: 3; flex: 1 1 100%; max-width: none; }
  .nt-search-btn { padding: 0 16px; }
  .nt-nav { display: none; }
  .nt-main { padding: 18px var(--gutter) 104px; }
  .nt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .nt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .nt-dlpage { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 18px; }
  .nt-footer-grid { grid-template-columns: 1fr 1fr; padding: 30px var(--gutter) 18px; gap: 26px 18px; }
  .nt-footer-bottom { padding: 14px var(--gutter) 104px; }

  .nt-drawer {
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1200; width: 300px; max-width: 86vw;
    padding: 0 0 30px; overflow-y: auto; overscroll-behavior: contain; visibility: hidden;
    background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-right: 1px solid var(--border-strong);
    transform: translateX(-102%); transition: transform .3s var(--ease), visibility .3s; box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  }
  .nt-drawer.is-open { transform: translateX(0); visibility: visible; }
  .nt-drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
  .nt-drawer-head .nt-logo-mark { width: 32px; height: 32px; }
  .nt-drawer-head .nt-logo-text { font-size: 1.2rem; }
  .nt-drawer-label { padding: 16px 20px 6px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .nt-drawer-list a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--text-2); font-weight: 700; font-size: .95rem; }
  .nt-drawer-list a .nt-ico { width: 19px; height: 19px; color: var(--muted); }
  .nt-drawer-list a:hover, .nt-drawer-list a.is-active { color: #fff; background: var(--grad-soft); }
  .nt-drawer-list a.is-active .nt-ico { color: var(--accent); }
  .nt-overlay { display: block; position: fixed; inset: 0; z-index: 1100; background: rgba(2, 8, 5, 0.62); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  .nt-overlay.is-on { opacity: 1; pointer-events: auto; }

  .nt-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 1050;
    padding: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); border-radius: 20px;
    background: rgba(15, 32, 25, 0.9); border: 1px solid var(--border-strong);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  }
  .nt-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px; font-size: .68rem; font-weight: 800; color: var(--muted); }
  .nt-tabbar a .nt-ico { width: 22px; height: 22px; }
  .nt-tabbar a.is-active { color: var(--on-accent); background: var(--grad); box-shadow: 0 6px 16px rgba(18, 212, 124, 0.32); }
  .nt-toast { bottom: 96px; }
}

/* Phones: one large poster per row */
@media (max-width: 599px) {
  .nt-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .nt-card-title { font-size: 1rem; }
  .nt-card-play { opacity: .92; transform: scale(1); width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .nt-card--list .nt-card-play { opacity: 0; }
  .nt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nt-tile-name { font-size: .86rem; }
  .nt-tile-body { left: 10px; right: 8px; bottom: 8px; }
  .nt-pagehead { align-items: flex-start; flex-direction: column; margin-bottom: 14px; }
  .nt-tabs { width: 100%; }
  .nt-tabs a { flex: 1; justify-content: center; }
  .nt-player { margin: -18px calc(var(--gutter) * -1) 0; border-radius: 0; box-shadow: none; }
  .nt-watch-bar { flex-direction: column; align-items: stretch; }
  .nt-actions .nt-btn:not(.nt-btn--icon) { flex: 1; }
  .nt-facets > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .nt-facets dt { padding-top: 0; }
  .nt-upnext { grid-template-columns: minmax(0, 1fr); }
  .nt-card--list { grid-template-columns: 148px minmax(0, 1fr); gap: 10px; }
  .nt-downloads-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-dl { padding-right: 10px; }
  .nt-prose { padding: 22px 18px; border-radius: 18px; }
  .nt-prose h1 { font-size: 1.45rem; }
  .nt-footer-grid { gap: 24px 16px; }
  .nt-pagination a, .nt-pagination span { min-width: 40px; height: 40px; padding: 0 12px; }
}
@media (max-width: 359px) {
  .nt-logo-text { font-size: 1.16rem; }
  .nt-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .nt-card--list { grid-template-columns: 120px minmax(0, 1fr); }
}

@media (hover: none) {
  .nt-card:hover .nt-card-media, .nt-tile:hover, .nt-tag:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
