/* ===================================================
   NOIZZLY – Main Stylesheet
   Colors: bg #131313 | accent #57ff8d | text #fff
   =================================================== */

@font-face {
    font-family: 'PPMonumentExtended';
    src: url('../fonts/PPMonumentExtended-Light-BF645465a264007.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'PPMonumentExtended';
    src: url('../fonts/PPMonumentExtended-LightItalic-BF645465a25b74d.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
}
@font-face {
    font-family: 'PPMonumentExtended';
    src: url('../fonts/PPMonumentExtended-Regular-BF645465a253250.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'PPMonumentExtended';
    src: url('../fonts/PPMonumentExtended-RegularItalic-BF645465a2449f3.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'PPMonumentExtended';
    src: url('../fonts/PPMonumentExtended-Black-BF645465a1e687b.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: 'PPMonumentExtended';
    src: url('../fonts/PPMonumentExtended-BlackItalic-BF645465a213d75.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}

:root {
    --nz-bg:        #131313;
    --nz-green:     #57ff8d;
    --nz-green-40:  rgba(87,255,141,0.4);
    --nz-green-15:  rgba(87,255,141,0.15);
    --nz-white:     #ffffff;
    --nz-white-60:  rgba(255,255,255,0.6);
    --nz-white-20:  rgba(255,255,255,0.2);
    --nz-card-bg:   rgba(19,19,19,0.85);
    --nz-radius:    10px;
    --nz-radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    background: var(--nz-bg);
    color: var(--nz-white);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }

.nz-accent   { color: var(--nz-green); }
.nz-muted    { color: var(--nz-white-60); }
.nz-text-300 { font-weight: 300; }
.nz-text-600 { font-weight: 600; }
.nz-text-700 { font-weight: 700; }
.nz-uppercase { text-transform: uppercase; }

/* ===== BUTTONS ===== */
.nz-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(127deg, var(--nz-green) 0%, var(--nz-green-40) 100%);
    border: none;
    border-radius: var(--nz-radius);
    color: var(--nz-white);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    backdrop-filter: blur(25px);
    white-space: nowrap;
}
.nz-btn-primary:hover { opacity: .85; color: var(--nz-white); transform: translateY(-1px); }

.nz-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(127deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.01) 100%);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--nz-radius);
    color: var(--nz-white);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s, border-color .2s;
    backdrop-filter: blur(25px);
    white-space: nowrap;
}
.nz-btn-secondary:hover { opacity: .8; color: var(--nz-white); border-color: var(--nz-green); }

/* ===== NAVIGATION ===== */
.nz-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 1000;
    background: rgba(19,19,19,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .3s;
    display: flex;
    align-items: center;
}
.nz-nav > .container { height: 100%; position: relative; }
.nz-nav.scrolled { background: rgba(19,19,19,.97); }

.nz-logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--nz-white);
    text-decoration: none;
}
.nz-logo {
    text-decoration: none;
}
/* Center only the nav logo; other .nz-logo usages stay in flow */
.nz-nav .nz-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
@media (max-width: 991px) {
    .nz-nav .nz-logo { position: static; transform: none; }
}
.nz-logo:hover .nz-logo-text { color: var(--nz-green); }

.nz-logo-img {
    height: 44px;
    width: auto;
    display: block;
    transition: opacity .2s;
}
.nz-logo:hover .nz-logo-img { opacity: .85; }

.nz-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}
.nz-menu li a {
    color: var(--nz-white-60);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color .2s;
}
.nz-menu li a:hover,
.nz-menu li a.active { color: var(--nz-white); }

.nz-hamburger {
    background: none;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    color: var(--nz-white);
    font-size: 22px;
    padding: 4px 10px;
    cursor: pointer;
}

.nz-offcanvas {
    background: rgba(13,13,13,.97);
    border-left: 1px solid rgba(255,255,255,.08);
}
.nz-mobile-menu li a {
    display: block;
    padding: 12px 0;
    color: var(--nz-white-60);
    font-size: 17px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-decoration: none;
    transition: color .2s;
}
.nz-mobile-menu li a:hover { color: var(--nz-green); }
.nz-mobile-menu-divider {
    border-top: 1px solid rgba(255,255,255,.07);
    margin: 8px 0;
}

/* Nav auth buttons */
.nz-btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 80px;
    color: rgba(255,255,255,.75);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}
.nz-btn-outline-sm:hover { border-color: #57ff8d; color: #fff; }

.nz-user-info { gap: 10px; }
.nz-user-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== COMMON PAGE WRAPPER ===== */
.nz-page { padding-top: 72px; }

/* ===== GLOW / BACKGROUND DECORATIONS ===== */
.nz-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.nz-glow-green {
    background: radial-gradient(ellipse, rgba(87,255,141,.25) 0%, transparent 70%);
}

/* ===========================
   HOME PAGE
   =========================== */

/* ----- HERO ----- */
.nz-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 330px;
    overflow: hidden;
}

/* Hero glow — background-image set via inline style in PHP (path uses BASE_PATH) */
.nz-hero-bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    z-index: 0;
}

.nz-watermark {
    position: absolute;
    font-size: clamp(120px, 20vw, 400px);
    font-weight: 700;
    /* Solid at the top, fading out toward the bottom — emerges from below */
    background: linear-gradient(180deg,
        rgba(255,255,255,.09) 0%,
        rgba(255,255,255,.055) 45%,
        transparent            100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    user-select: none;
    pointer-events: none;
    letter-spacing: -.02em;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    line-height: 1;
    z-index: 0;
}

.nz-hero-title {
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 300;
    line-height: 1.2;
    max-width: 1100px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}
.nz-hero-title .bold  { font-weight: 600; }
.nz-hero-title .green { color: var(--nz-green); font-weight: 600; }

.nz-hero-sub {
    font-size: clamp(15px, 1.5vw, 19px);
    font-weight: 300;
    color: var(--nz-white-60);
    line-height: 1.7;
    max-width: 820px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.nz-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ----- SECTION: POSITION ----- */
.nz-section-position {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-top: -120px;   /* pull up toward the hero glow */
}

.nz-position-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

.nz-position-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--nz-white-60);
}
.nz-position-body .highlight { color: var(--nz-white); font-weight: 700; }

/* ----- STATS SECTION ----- */
.nz-stats-section {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.nz-section-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

.nz-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

/* ── Stat circles — exact match to design screenshot ── */

/*
   Technique: outer wrapper carries conic-gradient "border" (2px padding).
   Inner div has the dark background.
   box-shadow creates the green glow spreading below the circle.
*/
.nz-stat-wrap {
    position: relative;
    width: 196px;
    height: 196px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 1.5px;
}

/* ── Variant A: glow at the BOTTOM (odd circles 1, 3) ── */
.nz-stat-wrap.is-down {
    background:
        conic-gradient(
            from 0deg at 50% 50%,
            transparent            0deg,
            transparent            72deg,
            rgba(87,255,141,0.35) 112deg,
            rgba(87,255,141,1)    180deg,
            rgba(87,255,141,0.35) 248deg,
            transparent           288deg,
            transparent           360deg
        ),
        linear-gradient(rgba(255,255,255,0.09), rgba(255,255,255,0.09));
    box-shadow:
        0 24px 50px -6px  rgba(87,255,141,0.60),
        0 12px 26px -8px  rgba(87,255,141,0.40);
}

/* ── Variant B: glow at the TOP (even circles 2, 4) ── */
.nz-stat-wrap.is-up {
    background:
        conic-gradient(
            from 0deg at 50% 50%,
            rgba(87,255,141,1)    0deg,
            rgba(87,255,141,0.35) 68deg,
            transparent           108deg,
            transparent           252deg,
            rgba(87,255,141,0.35) 292deg,
            rgba(87,255,141,1)    360deg
        ),
        linear-gradient(rgba(255,255,255,0.09), rgba(255,255,255,0.09));
    box-shadow:
        0 -24px 50px -6px  rgba(87,255,141,0.60),
        0 -12px 26px -8px  rgba(87,255,141,0.40);
}

.nz-stat-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Very dark, nearly flat centre */
    background: radial-gradient(circle at 50% 42%, #141414 0%, #0a0a0a 78%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nz-stat-value {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: var(--nz-white);
    line-height: 1;
    letter-spacing: -.01em;
}
.nz-stat-label {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .15em;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    margin-top: 6px;
}
.nz-stat-desc {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    margin-top: 18px;
    line-height: 1.5;
    text-align: center;
}

/* ----- TESTIMONIALS ----- */
.nz-testimonials {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.nz-testimonials::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 460px;
    background: radial-gradient(ellipse 62% 50% at 50% 50%, rgba(87,255,141,.16) 0%, transparent 62%);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.nz-testimonials .container { position: relative; z-index: 1; }

.nz-review-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--nz-radius-lg);
    padding: 32px 28px;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: border-color .3s, box-shadow .3s;
}
.nz-review-card:hover {
    border-color: var(--nz-green);
    box-shadow: 0 0 30px rgba(87,255,141,.1);
}

.nz-review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--nz-white);
    margin-bottom: 20px;
}

.nz-review-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.18);
    margin-bottom: 18px;
}

.nz-review-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.nz-review-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--nz-white-20);
    flex-shrink: 0;
    object-fit: cover;
}
.nz-review-name  { font-weight: 700; font-size: 16px; }
.nz-review-role  { font-size: 14px; color: var(--nz-white-60); }

.nz-review-score {
    border: .5px solid rgba(255,255,255,.6);
    border-radius: 4px;
    padding: 4px 10px;
    color: var(--nz-green);
    font-size: 14px;
    white-space: nowrap;
}

/* ===========================
   SEARCH / ANALYTICS PAGE
   =========================== */

.nz-search-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
}

.nz-search-title {
    font-family: 'PPMonumentExtended', sans-serif;
    font-size: clamp(26px, 5vw, 64px);
    font-weight: 200;
    text-transform: uppercase;
    line-height: 1.05;
    max-width: 1100px;
    margin: 0 auto 8px;
    letter-spacing: .06em;
}
.nz-st-thin  { font-weight: 200; }
.nz-st-bold  { font-weight: 900; color: #fff; }
.nz-st-green { font-weight: 900; color: var(--nz-green); }

.nz-title-bar {
    width: 120px;
    height: 6px;
    background: var(--nz-green);
    margin: 18px auto 24px;
    border-radius: 3px;
}

.nz-search-subtitle {
    color: var(--nz-white-60);
    font-size: 15px;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto 36px;
}

/* Search input bar */
.nz-search-wrap {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}

.nz-search-input {
    width: 100%;
    height: 58px;
    border-radius: 100px;
    border: 1.5px solid var(--nz-green);
    background: transparent;
    color: var(--nz-white);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-style: italic;
    padding: 0 60px 0 28px;
    outline: none;
    transition: box-shadow .2s;
}
.nz-search-input::placeholder { color: rgba(255,255,255,.45); }
.nz-search-input:focus { box-shadow: 0 0 20px rgba(87,255,141,.3); }

.nz-search-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nz-green);
    border: none;
    color: #111;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}
.nz-search-btn:hover { opacity: .8; }

/* Category toggle tabs */
.nz-cat-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.nz-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--nz-radius);
    border: 1px solid rgba(255,255,255,.15);
    background: transparent;
    color: var(--nz-white-60);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    backdrop-filter: blur(10px);
}
.nz-cat-btn:hover { border-color: var(--nz-green); color: var(--nz-white); }
.nz-cat-btn.active {
    background: linear-gradient(127deg, var(--nz-green) 0%, var(--nz-green-40) 100%);
    border-color: transparent;
    color: var(--nz-white);
}

/* Main glowing box container */
.nz-result-box {
    border: 1px solid var(--nz-green);
    border-radius: 32px;
    box-shadow: 0 0 50px rgba(87,255,141,.35), inset 0 0 40px rgba(87,255,141,.04);
    padding: 40px 32px;
    margin: 0 auto;
    max-width: 900px;
    position: relative;
    min-height: 300px;
    background: rgba(13,13,13,.6);
    backdrop-filter: blur(10px);
}

/* Song info panel inside box */
.nz-song-panel {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #1B1B1B;
}

.nz-song-thumbnail {
    width: 220px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 640px) {
    .nz-song-panel     { flex-direction: column; align-items: flex-start; gap: 14px; }
    .nz-thumb-wrap     { width: 100%; }
    .nz-song-thumbnail { width: 100%; height: auto; aspect-ratio: 16/9; }
}

.nz-song-title  { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.nz-song-artist { font-size: 15px; color: var(--nz-green); font-weight: 500; margin-bottom: 10px; }

.nz-song-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.nz-song-meta span {
    font-size: 13px;
    color: var(--nz-white-60);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nz-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,0,0,.15);
    border: 1px solid rgba(255,0,0,.3);
    border-radius: 6px;
    color: #ff4444;
    font-size: 13px;
    text-decoration: none;
    transition: background .2s;
}
.nz-yt-link:hover { background: rgba(255,0,0,.25); color: #ff4444; }

/* Country position list */
.nz-country-list { display: flex; flex-direction: column; gap: 8px; }

.nz-country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    transition: background .2s;
}
.nz-country-row:hover { background: rgba(255,255,255,.06); }
.nz-country-row.trending { background: rgba(87,255,141,.06); }
.nz-country-row.trending:hover { background: rgba(87,255,141,.1); }

.nz-country-left { display: flex; align-items: center; gap: 12px; }

.nz-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.nz-country-name { font-size: 15px; font-weight: 400; text-transform: uppercase; letter-spacing: .05em; }

.nz-position-badge {
    font-size: 18px;
    font-weight: 700;
    color: var(--nz-green);
    min-width: 50px;
    text-align: right;
}
.nz-position-badge.not-trending {
    font-size: 13px;
    color: rgba(255,255,255,.25);
    font-weight: 400;
}

.nz-divider-line {
    height: 1px;
    background: rgba(217,217,217,.2);
    margin: 2px 0;
}

/* Placeholder / loading */
.nz-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--nz-white-60);
}
.nz-placeholder i { font-size: 56px; color: rgba(87,255,141,.2); margin-bottom: 16px; display: block; }
.nz-placeholder p { font-size: 15px; }

.nz-spinner {
    display: block;
    margin: 0 auto;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(87,255,141,.2);
    border-top-color: var(--nz-green);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== FOOTER ===== */
.nz-footer {
    background: #131313 !important;
    border-top: 1px solid #373737;
    margin-top: 80px;
    position: relative;
    z-index: 999;
}
.nz-footer-divider { height: 1px; background: rgba(255,255,255,.07); }

.nz-footer-heading {
    font-size: 17px;
    font-weight: 600;
    color: var(--nz-white);
    margin-bottom: 16px;
    text-transform: capitalize;
}

.nz-footer-tagline {
    font-size: 13px;
    color: var(--nz-white-60);
    line-height: 1.6;
}
.nz-footer-copy { font-size: 13px; color: rgba(255,255,255,.35); margin-top: 12px; }

.nz-footer-links {
    list-style: none;
    padding: 0; margin: 0;
}
.nz-footer-links li { margin-bottom: 8px; }
.nz-footer-links a {
    color: var(--nz-white-60);
    text-decoration: none;
    font-size: 15px;
    transition: color .2s;
}
.nz-footer-links a:hover { color: var(--nz-green); }

.nz-footer-contact { list-style: none; padding: 0; margin: 0; }
.nz-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--nz-white-60);
    font-size: 15px;
}
.nz-footer-contact i { font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.nz-footer-contact a { color: var(--nz-white-60); text-decoration: none; }
.nz-footer-contact a:hover { color: var(--nz-green); }

.nz-footer-label { color: var(--nz-white-60); font-size: 14px; margin-bottom: 8px; }

.nz-newsletter-input {
    height: 46px;
    border-radius: var(--nz-radius);
    border: 1.5px solid rgba(255,255,255,.22);
    background: transparent;
    color: var(--nz-white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 0 16px;
    outline: none;
    min-width: 0;
    transition: border-color .2s;
}
.nz-newsletter-input:focus { border-color: var(--nz-green); }
.nz-newsletter-input::placeholder { color: var(--nz-white-60); }

.nz-social-icons { display: flex; gap: 10px; }
.nz-social-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(127deg, var(--nz-green) 0%, var(--nz-green-40) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 20px;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
}
.nz-social-btn:hover { opacity: .85; transform: translateY(-2px); color: #111; }

.nz-partner-strip {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.35);
    font-size: 13px;
}

/* ===== SECTION SEPARATOR ===== */
.nz-section-sep {
    border: none;
    border-top: 1px solid rgba(255,255,255,.07);
    margin: 0;
}

/* ===== ALERT MESSAGES ===== */
.nz-alert-success {
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(87,255,141,.12);
    border: 1px solid rgba(87,255,141,.3);
    color: var(--nz-green);
    font-size: 14px;
}
.nz-alert-error {
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255,80,80,.1);
    border: 1px solid rgba(255,80,80,.3);
    color: #ff6b6b;
    font-size: 14px;
}

/* ===== SONG PICKER ===== */
.nz-picker-list { display: flex; flex-direction: column; }

.nz-pick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s;
}
.nz-pick-card:hover { background: rgba(255,255,255,.05); }

/* Highlight the top-ranked result */
.nz-pick-card--top {
    background: rgba(87,255,141,.06);
    border: 1px solid rgba(87,255,141,.18);
    border-radius: 10px;
}
.nz-pick-card--top:hover { background: rgba(87,255,141,.1); }

.nz-pick-thumb {
    width: 72px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.08);
}
.nz-pick-thumb--empty {
    background: rgba(255,255,255,.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
    font-size: 22px;
}

.nz-pick-info { flex: 1; min-width: 0; }

.nz-pick-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.nz-pick-channel {
    font-size: 13px;
    color: var(--nz-green);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nz-pick-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: rgba(255,255,255,.4);
}
.nz-pick-meta span { display: flex; align-items: center; gap: 4px; }

.nz-pick-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.3);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}
.nz-pick-card--top .nz-pick-btn { color: var(--nz-green); }
.nz-pick-card:hover .nz-pick-btn { color: var(--nz-white); background: rgba(87,255,141,.1); }

/* "Nije ova pesma?" — small discrete link at bottom */
.nz-wrong-song-wrap {
    text-align: center;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.nz-wrong-song-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.25);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    transition: color .2s;
}
.nz-wrong-song-btn:hover { color: rgba(255,255,255,.6); }

/* Picker: slightly smaller cards (secondary UI) */
.nz-pick-card { padding: 12px 10px; }
.nz-pick-thumb { width: 64px; height: 48px; }

/* Country list section labels */
.nz-list-label {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--nz-bg); }
::-webkit-scrollbar-thumb { background: rgba(87,255,141,.3); border-radius: 3px; }

/* ----- REVIEWS SLIDER ----- */
.nz-reviews-slider { position: relative; overflow: hidden; }
.nz-reviews-track {
    display: flex;
    gap: 24px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 12px;
    align-items: stretch;
}
.nz-reviews-track::-webkit-scrollbar { display: none; }
.nz-reviews-slide {
    flex: 1 1 0;
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
}
.nz-reviews-slide .nz-review-card { flex: 1; }
.nz-reviews-dots { display: none; justify-content: center; gap: 8px; margin-top: 20px; }
.nz-reviews-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.2); border: none; cursor: pointer; padding: 0;
    transition: background .25s, width .25s, border-radius .25s;
}
.nz-reviews-dot.active { background: #57ff8d; width: 22px; border-radius: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .nz-hero { padding: 80px 20px 100px; }
    .nz-result-box { padding: 28px 20px; }
}

@media (max-width: 767px) {
    /* Hero */
    .nz-hero { padding: 72px 16px 64px; }
    .nz-hero-title { font-size: clamp(28px, 8vw, 44px); margin-bottom: 20px; }
    .nz-hero-sub { font-size: 14px; margin-bottom: 28px; }
    .nz-hero-btns { gap: 10px; }

    /* Position section: cancel the desktop pull-up */
    .nz-section-position { margin-top: 0; padding: 48px 0 40px; }
    .nz-position-title { font-size: clamp(22px, 6vw, 32px); }
    .nz-position-body { font-size: 14px; }

    /* Stats */
    .nz-stats-section { padding: 48px 0; }
    .nz-stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .nz-stat-wrap { width: min(196px, 100%); height: auto; aspect-ratio: 1; }
    .nz-stat-value { font-size: clamp(24px, 9vw, 44px); }
    .nz-stat-desc { font-size: 13px; }

    /* Testimonials slider: one card at a time */
    .nz-reviews-slide { flex: 0 0 100%; min-width: 100%; }
    .nz-reviews-track { gap: 0; padding-bottom: 8px; }
    .nz-reviews-dots { display: flex; }
    .nz-reviews-slider { padding: 0 4px; }

    /* Testimonials extra breathing room */
    .nz-testimonials { padding: 48px 0 56px; }

    /* CTA section */
    .nz-cta-section { padding: 48px 16px !important; }
}

@media (max-width: 575px) {
    .nz-search-hero   { padding: 72px 14px 32px; }
    .nz-search-title  { font-size: clamp(22px, 6vw, 40px); letter-spacing: .03em; }
    .nz-search-subtitle { font-size: 13px; margin-bottom: 24px; }
    .nz-title-bar     { margin: 12px auto 18px; }
    .nz-result-box    { border-radius: 18px; padding: 18px 14px; }
    .nz-song-panel    { flex-direction: column; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; }
}

/* ===================================================
   PRETRAGA – NEW SEARCH FORM (Figma redesign)
=================================================== */

.nz-search-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 28px;
}
.nz-search-row1 {
    display: flex;
    gap: 10px;
    align-items: center;
}
.nz-search-row1 .nz-field-green { flex: 1; min-width: 0; }
.nz-search-row2 { display: flex; width: 90%; margin: 0 auto; }
.nz-search-row2 .nz-field-grey { flex: 1; min-width: 0; }

.nz-field-green {
    height: 48px;
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.22);
    border-radius: 80px;
    padding: 0 18px;
    color: #fff;
    font-family: var(--nz-font);
    font-size: 14px;
    outline: none;
    transition: border-color .2s, background .2s, opacity .2s;
}
.nz-field-green::placeholder { color: rgba(255,255,255,.35); }
.nz-field-green:hover  { border-color: #57ff8d; }
.nz-field-green:focus  { border-color: #57ff8d; background: rgba(87,255,141,.05); }

.nz-field-grey {
    height: 48px;
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.22);
    border-radius: 80px;
    padding: 0 18px;
    color: #fff;
    font-family: var(--nz-font);
    font-size: 14px;
    outline: none;
    transition: border-color .2s, background .2s, opacity .2s;
    width: 100%;
}
.nz-field-grey::placeholder { color: rgba(255,255,255,.25); }
.nz-field-grey:hover { border-color: #57ff8d; }
.nz-field-grey:focus { border-color: #57ff8d; background: rgba(87,255,141,.04); }

/* Field locked state — dimmed, no interaction */
.nz-field-locked {
    opacity: 0.25 !important;
    border-color: rgba(255,255,255,.08) !important;
    background: rgba(255,255,255,.02) !important;
    cursor: pointer !important;
}
.nz-field-locked:hover { border-color: rgba(255,255,255,.18) !important; }

/* Field active mode — green border */
.nz-field-active { border-color: #57ff8d !important; background: rgba(87,255,141,.04) !important; }

.nz-search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    background: #57ff8d;
    border: none;
    border-radius: 80px;
    color: #131313;
    font-family: var(--nz-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s, transform .1s;
}
.nz-search-submit:hover  { opacity: .88; }
.nz-search-submit:active { transform: scale(.97); }
.nz-search-submit i { font-size: 15px; }

.nz-countries-label {
    font-size: 11px;
    color: rgba(255,255,255,.3);
    text-align: center;
    margin: 20px auto 0;
    max-width: 620px;
    line-height: 1.5;
}

/* ===================================================
   PRETRAGA – RESULT SECTION
=================================================== */

.nz-result-section { padding: 0 16px 32px; }

.nz-song-thumbnail {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}
.nz-song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nz-song-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.nz-song-artist { font-size: 13px; color: rgba(255,255,255,.5); }
.nz-song-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.nz-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ff0000;
    border-radius: 80px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.nz-yt-link:hover { opacity: .85; color: #fff; }
.nz-yt-link i { font-size: 14px; }
.nz-wrong-song-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 80px;
    color: rgba(255,255,255,.55);
    font-family: var(--nz-font);
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.nz-wrong-song-btn:hover { border-color: rgba(255,255,255,.5); color: #fff; }

.nz-trend-summary {
    font-size: 14px;
    color: #57ff8d;
    font-weight: 500;
    margin-bottom: 14px;
}
.nz-trend-summary strong { font-weight: 700; }

.nz-list-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-bottom: 8px;
}

.nz-country-list { display: flex; flex-direction: column; }

.nz-country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}
.nz-country-left { display: flex; align-items: center; gap: 12px; }
.nz-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.nz-country-name { font-size: 14px; font-weight: 500; color: #fff; letter-spacing: .01em; }
.nz-position-num { display: flex; align-items: baseline; gap: 1px; }
.nz-pos-hash { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.4); }
.nz-pos-val  { font-size: 18px; font-weight: 700; color: #57ff8d; line-height: 1; }

.nz-divider-line { height: 1px; background: rgba(255,255,255,.07); margin: 0; }

.nz-share-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    margin-top: 18px;
    /* border-top: 1px solid rgba(255,255,255,.08); */
}
.nz-share-label { font-size: 12px; color: rgba(255,255,255,.35); white-space: nowrap; }
.nz-share-btns  { display: flex; gap: 8px; }
.nz-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: opacity .2s;
    color: #fff;
}
.nz-share-btn:hover { opacity: .8; color: #fff; }
.nz-share-fb { background: #1877f2; }
.nz-share-tw { background: #000; }
.nz-share-wa { background: #25d366; }

.nz-picker-list { display: flex; flex-direction: column; }
.nz-pick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}
.nz-pick-card--top .nz-pick-title { color: #57ff8d; }
.nz-pick-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.nz-pick-thumb--empty {
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
    font-size: 22px;
}
.nz-pick-info { flex: 1; min-width: 0; }
.nz-pick-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.nz-pick-channel { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 2px; }
.nz-pick-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: rgba(255,255,255,.3);
    margin-top: 4px;
}
.nz-pick-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #57ff8d;
    border: none;
    color: #131313;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .2s;
}
.nz-pick-btn:hover { opacity: .85; }

/* ===================================================
   PRETRAGA – HOW IT WORKS
=================================================== */

.nz-hiw-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0 32px;
}
.nz-hiw-socials {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.nz-hiw-tagline {
    font-size: 15px;
    color: rgba(255,255,255,.35);
    margin: 0;
    letter-spacing: .01em;
}

.nz-howitworks {
    padding: 24px 16px 60px;
}
.nz-how-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 32px 24px;
    height: 100%;
    transition: border-color .2s, background .2s;
}
.nz-how-card--active {
    background: rgba(87,255,141,.07);
    border-color: rgba(87,255,141,.25);
}
.nz-how-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(87,255,141,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #57ff8d;
    margin: 0 auto 18px;
}
.nz-how-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.nz-how-text  { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.65; margin: 0; }

/* ── Mobile: search form + results ── */
@media (max-width: 600px) {
    /* Search form */
    .nz-search-box    { gap: 8px; margin-bottom: 20px; }
    .nz-search-row1   { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
    .nz-search-row1 .nz-field-green { width: 100%; flex: none; }
    .nz-search-row2   { width: 100%; margin: 0; }
    .nz-search-submit { width: 100%; justify-content: center; }

    /* Category tabs — wrap so they never spill */
    .nz-cat-tabs { flex-wrap: wrap; gap: 8px; }
    .nz-cat-btn  { flex: 1; min-width: 130px; justify-content: center; }

    /* Thumbnail full width when stacked */
    .nz-song-thumbnail { width: 100%; height: auto; aspect-ratio: 16/9; }
    .nz-thumb-wrap     { width: 100%; }

    /* Country rows — guard long names like "Bosna i Hercegovina" */
    .nz-country-row  { padding: 10px 10px; gap: 6px; }
    .nz-country-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 140px;
    }

    /* Share section — full width, centered */
    .nz-share-section   { flex-direction: column; align-items: stretch; gap: 10px; }
    .nz-share-main-btn  { width: 100%; justify-content: center; }

    /* Result box — no horizontal overflow */
    .nz-result-box { overflow-x: hidden; }

    /* Song info actions wrap cleanly */
    .nz-song-actions { gap: 8px; }
    .nz-yt-link      { align-self: flex-start; font-size: 12px; }
}

/* ── Very small screens (iPhone SE, 320-375px) ── */
@media (max-width: 400px) {
    .nz-search-hero  { padding: 68px 12px 28px; }
    .nz-result-box   { padding: 16px 12px; border-radius: 14px; }
    .nz-country-row  { padding: 9px 8px; }
    .nz-country-name { max-width: 110px; font-size: 13px; }
    .nz-pos-val      { font-size: 16px; }
    .nz-cat-btn      { font-size: 12px; padding: 8px 12px; }
    .nz-field-green,
    .nz-field-grey   { height: 44px; font-size: 13px; }
    .nz-search-submit { height: 44px; font-size: 13px; }
}


/* ===================================================
   PRETRAGA – FIGMA REDESIGN OVERRIDES
=================================================== */

/* Song title → uppercase */
.nz-song-title {
    text-transform: uppercase;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
}

/* Artist name → green */
.nz-song-artist { color: #57ff8d !important; }

/* YouTube button — dark bg, red border, red YT icon, white text */
.nz-yt-link {
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start;
    width: auto !important;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(0,0,0,.5) !important;
    border: 1px solid rgba(255,0,0,.55) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.nz-yt-link:hover { background: rgba(255,0,0,.18) !important; border-color: rgba(255,0,0,.9) !important; color: #fff !important; }
.nz-yt-icon { width: 18px; height: 18px; color: #ff0000; flex-shrink: 0; }

/* "Nije ova pesma?" — plain text link style */
.nz-wrong-song-link {
    display: block;
    margin-top: 8px;
    background: transparent;
    border: none;
    padding: 0;
    color: rgba(255,255,255,.4);
    font-family: var(--nz-font);
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: color .15s;
}
.nz-wrong-song-link:hover { color: rgba(255,255,255,.75); }

/* Trend summary — centered */
.nz-trend-summary {
    text-align: center !important;
    font-size: 15px !important;
    padding: 18px 0 16px !important;
    /* border-bottom: 1px solid rgba(255,255,255,.07); */
    margin-bottom: 16px !important;
}

/* Country list → gap between items */
.nz-country-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* 8px gap + 2px divider + 8px gap between cards via ::after */
.nz-country-row {
    position: relative !important;
    margin-bottom: 18px !important;
}
.nz-country-row:last-child { margin-bottom: 0 !important; }
.nz-country-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2D2D2D;
}

/* Country row → dark card */
.nz-country-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 20px !important;
    background: #131D17 !important;
    border: none !important;
    border-radius: 14px !important;
}
.nz-country-row:last-child { border-bottom: none !important; }

/* Country name → uppercase */
.nz-country-name {
    text-transform: uppercase;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .04em;
}

/* Position number block */
.nz-position-num { display: flex !important; align-items: center !important; gap: 0 !important; }
.nz-pos-hash {
    font-family: 'PPMonumentExtended', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: rgba(255,255,255,.35);
    line-height: 1;
}
.nz-pos-val {
    font-family: 'PPMonumentExtended', sans-serif;
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    line-height: 1;
}

/* Position change indicators — fixed width keeps column straight */
.nz-pos-change {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    line-height: 1;
    min-width: 26px;
}
.nz-pos-up      { color: #fff; }
.nz-pos-down    { color: #fff; }
.nz-pos-up   i  { color: #57ff8d; }
.nz-pos-down i  { color: #ff5757; }
.nz-pos-neutral { color: rgba(255,255,255,.3); font-size: 11px; }
.nz-pos-change i { font-size: 9px; }

/* Share section → centered */
.nz-share-section {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    /* border-top: 1px solid rgba(255,255,255,.07) !important; */
    padding-top: 20px !important;
    margin-top: 20px !important;
    gap: 0 !important;
}

/* Share main button */
.nz-share-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    color: rgba(255,255,255,.55);
    font-family: var(--nz-font);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s;
}
.nz-share-main-btn:hover { color: #fff; }
.nz-share-main-btn i { font-size: 16px; }
.nz-share-arrow {
    color: var(--nz-green);
    display: inline-block;
    transform: scaleX(-1);   /* flip reply arrow → points right like a forward/share arrow */
}

/* Share buttons (fallback) */
.nz-share-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ── Thumbnail wrapper with N-letter decorations ── */
.nz-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    width: 260px;
    /* extra space so N letters and rotation don't clip */
    padding: 10px 14px 10px 14px;
}

.nz-song-thumbnail {
    position: relative !important;
    z-index: 1;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transform: rotate(-4deg);
    clip-path: polygon(
        0% 0%,
        calc(100% - 22px) 0%,
        100% 22px,
        100% 100%,
        22px 100%,
        0% calc(100% - 22px)
    );
}

.nz-thumb-n {
    position: absolute;
    z-index: 0;
    width: 73px;
    height: auto;
    pointer-events: none;
    opacity: .88;
}

.nz-thumb-n--tl {
    top: 6px;
    left: 4px;
    transform: rotate(-18deg);
}

.nz-thumb-n--br {
    bottom: 6px;
    right: 4px;
    transform: rotate(162deg);
}

@media (max-width: 640px) {
    .nz-thumb-wrap { width: 100%; padding: 12px; }
}

/* ===================================================
   LEGAL PAGES (Uslovi korišćenja, Politika privatnosti…)
=================================================== */

.nz-legal-page {
    padding: 100px 0 80px;
    min-height: 80vh;
}

.nz-legal-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px;
}

.nz-legal-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.nz-legal-updated {
    font-size: 12px;
    color: rgba(255,255,255,.35);
    margin-bottom: 40px;
}

.nz-legal-wrap h2 {
    font-size: 15px;
    font-weight: 600;
    color: #57ff8d;
    margin-top: 36px;
    margin-bottom: 10px;
    letter-spacing: .02em;
}

.nz-legal-wrap p,
.nz-legal-wrap li,
.nz-legal-wrap address {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,.72);
    margin-bottom: 10px;
}

.nz-legal-wrap ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.nz-legal-wrap li { margin-bottom: 6px; }

.nz-legal-wrap address {
    font-style: normal;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 12px;
}

.nz-legal-wrap address a {
    color: #57ff8d;
    text-decoration: none;
}
.nz-legal-wrap address a:hover { text-decoration: underline; }

.nz-legal-wrap strong { color: rgba(255,255,255,.9); }

.nz-legal-table-wrap {
    overflow-x: auto;
    margin: 14px 0 20px;
    border-radius: 12px;
}

.nz-legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: rgba(255,255,255,.72);
}

.nz-legal-table th {
    background: rgba(87,255,141,.08);
    color: #57ff8d;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid rgba(87,255,141,.2);
}

.nz-legal-table td {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    line-height: 1.6;
    vertical-align: top;
}

.nz-legal-table tbody tr:last-child td { border-bottom: none; }
.nz-legal-table tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ─────────────────────────────────────────────────────────────────────────────
   STORY SHARE MODAL
───────────────────────────────────────────────────────────────────────────── */

.nz-story-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;    /* prevent any overflow leaking from large canvas inside */
}
.nz-story-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nz-story-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-height: 95vh;
    overflow-x: hidden;  /* the 1080px canvas inside preview-inner must not scroll */
    overflow-y: auto;
}
.nz-story-close {
    position: absolute;
    top: -46px;
    right: -4px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.nz-story-close:hover { background: rgba(255,255,255,.2); }

.nz-story-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.4);
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Preview container – clips the scaled-down 1080×1920 canvas element */
.nz-story-preview-wrap {
    width: 324px;
    height: 576px;
    overflow: hidden;
    border-radius: 14px;
    position: relative;   /* establishes containing block for absolute children */
    flex-shrink: 0;
    background: #131313;
    box-shadow: 0 0 0 1px rgba(87,255,141,.18), 0 20px 60px rgba(0,0,0,.6);
}
/* Canvas sits at top-left corner, scaled 0.3× so it appears 324×576 */
.nz-story-preview-inner {
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(0.3);
    transform-origin: top left;
    pointer-events: none;
    /* Keep it in its own stacking context so overflow: hidden clips it */
    will-change: transform;
}
/* Loading spinner centered absolutely */
.nz-story-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Two-button action row */
.nz-story-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}
.nz-story-actions .nz-btn-primary,
.nz-story-actions .nz-btn-secondary {
    flex: 1;
    max-width: 172px;
    justify-content: center;
    text-align: center;
}

/* Secondary (outline) button */
.nz-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    color: rgba(255,255,255,.75);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s, color .2s;
}
.nz-btn-secondary:hover {
    border-color: rgba(255,255,255,.5);
    color: #fff;
}

/* The canvas element itself (1080 × 1920 px) */
.nz-story-preview-inner canvas {
    display: block;
    width: 1080px !important;
    height: 1920px !important;
}

/* ── Unused HTML-story classes kept for reference, not used in new approach ─ */
.ss-canvas {
    width: 1080px;
    height: 1920px;
    background: #131313;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* ===== LANGUAGE SWITCHER ===== */
.nz-lang-switch { position: relative; }
.nz-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    padding: 6px 12px;
    color: var(--nz-white);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.nz-lang-btn:hover { border-color: var(--nz-green); background: rgba(255,255,255,.09); }
.nz-lang-btn::after { display: none; }
.nz-lang-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; display: block; }
.nz-lang-code { letter-spacing: .02em; }
.nz-lang-menu {
    background: #161616;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 6px;
    min-width: 150px;
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.nz-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.75);
    font-size: 13.5px;
    transition: background .12s, color .12s;
}
.nz-lang-item:hover, .nz-lang-item:focus { background: rgba(255,255,255,.08); color: var(--nz-white); }
.nz-lang-item.active { color: var(--nz-green); background: rgba(87,255,141,.08); }

.nz-lang-mobile-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.75);
    font-size: 13px;
    text-decoration: none;
}
.nz-lang-mobile-opt.active { color: var(--nz-green); border-color: var(--nz-green); background: rgba(87,255,141,.08); }


