/* ============================================================
   Tutuza — redesign 2026 (/new)
   Self-contained: no bootstrap, no jquery.
   ============================================================ */

:root {
    --bg: #0b0d12;
    --bg-soft: #10131b;
    --surface: #161a26;
    --surface-2: #1e2333;
    --line: rgba(255, 255, 255, .07);
    --text: #eceef6;
    --muted: #9298ad;
    --accent: #ff3d7f;
    --accent-2: #8a5cff;
    --grad: linear-gradient(135deg, #ff3d7f 0%, #8a5cff 100%);
    --radius: 14px;
    --shadow: 0 14px 40px rgba(0, 0, 0, .45);
    --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.nw {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nw::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 480px;
    background:
        radial-gradient(600px 300px at 15% -10%, rgba(255, 61, 127, .14), transparent 70%),
        radial-gradient(700px 340px at 85% -10%, rgba(138, 92, 255, .13), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body.nw > * { position: relative; z-index: 1; }
/* fancybox appends .fancybox__container as a direct child of <body>, so the
   reset above would clobber its position:fixed/z-index:1050 (container renders
   inline -> grey backdrop, no image). Keep the lightbox a full-screen overlay. */
body.nw > .fancybox__container { position: fixed; z-index: 2147483647; }

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

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.02em; }

.nw-container { max-width: 1480px; margin: 0 auto; padding: 0 20px; }

/* ---------------- header ---------------- */

.nw-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(11, 13, 18, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nw-header-in {
    display: flex;
    align-items: center;
    gap: 22px;
    height: var(--header-h);
}

.nw-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.nw-logo b {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.nw-nav { display: flex; gap: 4px; flex: 1; }

.nw-nav a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    transition: color .15s, background .15s;
}

.nw-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.nw-nav a.on {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 61, 127, .22), rgba(138, 92, 255, .22));
}

/* search */
.nw-search { position: relative; margin-left: auto; }

.nw-search input {
    width: 210px;
    padding: 9px 14px 9px 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: width .2s, border-color .2s, box-shadow .2s;
}

.nw-search input::placeholder { color: var(--muted); }

.nw-search input:focus {
    width: 280px;
    border-color: rgba(255, 61, 127, .55);
    box-shadow: 0 0 0 3px rgba(255, 61, 127, .15);
}

.nw-search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    translate: 0 -50%;
    width: 16px;
    height: 16px;
    fill: var(--muted);
    pointer-events: none;
}

/* burger + mobile panel */
.nw-burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    position: relative;
}

.nw-burger span,
.nw-burger span::before,
.nw-burger span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    translate: -50% -50%;
    transition: .2s;
}

.nw-burger span::before { translate: -50% calc(-50% - 6px); }
.nw-burger span::after { translate: -50% calc(-50% + 6px); }

.nw-menu-open .nw-burger span { background: transparent; }
.nw-menu-open .nw-burger span::before { translate: -50% -50%; rotate: 45deg; }
.nw-menu-open .nw-burger span::after { translate: -50% -50%; rotate: -45deg; }

.nw-mobile {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    padding: 16px 20px 22px;
    background: rgba(11, 13, 18, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nw-menu-open .nw-mobile { display: block; }

.nw-mobile nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.nw-mobile nav a {
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 14px;
}

.nw-mobile nav a.on { background: var(--grad); border-color: transparent; }

.nw-mobile .nw-search { margin: 0; }
.nw-mobile .nw-search input, .nw-mobile .nw-search input:focus { width: 100%; }

/* ---------------- page head ---------------- */

.nw-main { padding: 26px 0 40px; min-height: 60vh; }

.nw-pagehead {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 4px 0 20px;
}

.nw-pagehead h1 { font-size: 26px; }

.nw-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.nw-intro { color: var(--muted); font-size: 14px; margin: -4px 0 14px; }

.nw-sort { margin-left: auto; display: flex; gap: 6px; }

.nw-sort a {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line);
    background: var(--surface);
}

.nw-sort a.on { color: #fff; background: var(--grad); border-color: transparent; }

/* ---------------- layouts ---------------- */

.nw-masonry { columns: 16rem auto; column-gap: 14px; }
.nw-masonry > * { break-inside: avoid; margin-bottom: 14px; }

.nw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

/* ---------------- cards ---------------- */

.nw-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease;
}

.nw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.nw-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.nw-card:hover img { transform: scale(1.045); }

.nw-card-video, .nw-grid .nw-card { aspect-ratio: 16 / 9; }

.nw-card-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.nw-card-video.nw-playing video { opacity: 1; }

.nw-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(4, 5, 9, .88));
    pointer-events: none;
}

.nw-card-title {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-card-model {
    position: absolute;
    left: 12px;
    bottom: 34px;
    z-index: 3;
    font-size: 12px;
    font-weight: 700;
    color: #ffb3cf;
}

.nw-card-model:hover { color: #fff; }

.nw-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(6, 8, 13, .72);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

.nw-badge svg { width: 11px; height: 11px; fill: currentColor; }

.nw-badge-vr { background: var(--grad); }

.nw-play {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 2;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 16, .55);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, .22);
    transition: background .2s, transform .2s;
}

.nw-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }

.nw-card:hover .nw-play { background: rgba(255, 61, 127, .85); transform: scale(1.07); }

.nw-card-video.nw-playing .nw-play { opacity: 0; }

/* model / tag cards */
.nw-grid-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
    gap: 14px;
}

.nw-people-card { aspect-ratio: 3 / 4; }

/* ---------------- shorts rail ---------------- */

.nw-rail-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 2px 0 12px;
}

.nw-rail-head h2 { font-size: 20px; }
.nw-rail-head a { color: var(--muted); font-size: 13px; font-weight: 600; }
.nw-rail-head a:hover { color: #fff; }

.nw-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-2) transparent;
}

.nw-rail .nw-card {
    flex: 0 0 138px;
    aspect-ratio: 9 / 16;
    scroll-snap-align: start;
}

/* ---------------- item page ---------------- */

.nw-player-wrap {
    background: #05060a;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.nw-player-wrap video {
    display: block;
    width: 100%;
    max-height: 78vh;
    background: #000;
    outline: none;
}

.nw-quality { display: flex; gap: 6px; margin: 0 0 14px; }

.nw-quality button {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.nw-quality button.on { background: var(--grad); color: #fff; border-color: transparent; }

.nw-item-title { font-size: 24px; margin-bottom: 10px; }

.nw-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.nw-meta span { display: inline-flex; align-items: center; gap: 6px; }
.nw-meta svg { width: 15px; height: 15px; fill: var(--muted); }

.nw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.nw-chip {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: border-color .15s, background .15s;
}

a.nw-chip:hover { border-color: rgba(255, 61, 127, .6); background: var(--surface-2); }

.nw-chip-model { border-color: rgba(255, 61, 127, .35); }
.nw-chip-model::before { content: "★ "; color: var(--accent); }

span.nw-chip { color: var(--muted); }

.nw-desc { color: var(--muted); max-width: 900px; margin-bottom: 22px; }

.nw-sec { font-size: 20px; margin: 30px 0 14px; }

/* ---------------- gallery ---------------- */

/* uniform tile grid — row-major, so photos read in sequence (CSS multicolumn
   filled top-to-bottom per column, scrambling the order of a numbered set). */
.nw-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.nw-gitem {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    cursor: zoom-in;
    transition: transform .18s, box-shadow .18s;
}

.nw-gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nw-gitem:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.nw-gitem:hover img { transform: scale(1.04); }

/* ---------------- taxonomy lines / hub ---------------- */

.nw-taxo-line { margin: 6px 0; color: var(--muted); font-size: 14px; }
.nw-taxo-line a { color: #ffb3cf; font-weight: 600; }
.nw-taxo-line a:hover { color: #fff; }

.nw-linklist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

.nw-linklist a {
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    transition: border-color .15s, background .15s;
}

.nw-linklist a:hover { border-color: rgba(255, 61, 127, .55); background: var(--surface-2); }
.nw-linklist a b { color: var(--muted); font-weight: 700; margin-left: 3px; }

/* ---------------- partners strip ---------------- */

.nw-strip { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 26px 0 18px; margin-top: 36px; }

.nw-strip h2 { font-size: 18px; margin-bottom: 14px; color: var(--muted); font-weight: 700; }

.nw-strip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-2) transparent;
}

.nw-strip-row .nw-card {
    flex: 0 0 190px;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
}

/* ---------------- pagination ---------------- */

.nw-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 34px 0 6px;
    padding: 0;
    list-style: none;
}

.nw-pager a, .nw-pager span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.nw-pager a:hover { color: #fff; border-color: rgba(255, 61, 127, .55); }

.nw-pager .on { background: var(--grad); color: #fff; border-color: transparent; }

.nw-pager .off { opacity: .38; }

/* ---------------- footer ---------------- */

.nw-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 36px 0 26px; }

.nw-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.nw-footer h4 {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.nw-footer ul { list-style: none; margin: 0; padding: 0; }
.nw-footer li { margin-bottom: 7px; }
.nw-footer a { color: var(--muted); font-size: 13.5px; }
.nw-footer a:hover { color: #fff; }

.nw-footer .nw-logo { font-size: 22px; display: inline-block; margin-bottom: 8px; }
.nw-footer p { color: var(--muted); font-size: 13px; max-width: 340px; margin: 0; }

.nw-friends { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.nw-friends ul { columns: 4 180px; column-gap: 24px; list-style: none; margin: 0; padding: 0; }
.nw-friends li { margin-bottom: 6px; break-inside: avoid; }
.nw-friends a { font-size: 12.5px; color: var(--muted); }

.nw-copy {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

/* ---------------- misc ---------------- */

.nw-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--muted);
}

.nw-empty strong { display: block; font-size: 26px; color: var(--text); margin-bottom: 8px; }

::-webkit-scrollbar { height: 8px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- responsive ---------------- */

@media (max-width: 1024px) {
    .nw-nav { display: none; }
    .nw-burger { display: block; }
    .nw-header .nw-search { display: none; }
    .nw-logo { margin-right: auto; }
}

@media (max-width: 640px) {
    .nw-container { padding: 0 12px; }
    .nw-masonry { columns: 2; column-gap: 10px; }
    .nw-masonry > * { margin-bottom: 10px; }
    .nw-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .nw-grid-people { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
    .nw-gallery { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
    .nw-pagehead h1 { font-size: 21px; }
    .nw-item-title { font-size: 19px; }
    .nw-sort { margin-left: 0; }
    .nw-footer-grid { grid-template-columns: 1fr 1fr; }
    .nw-rail .nw-card { flex-basis: 112px; }
    .nw-strip-row .nw-card { flex-basis: 150px; }
    .nw-card-title { font-size: 12px; left: 9px; right: 9px; bottom: 8px; }
    .nw-play { width: 44px; height: 44px; }
}
