/* =========================================
GLOBAL
========================================= */

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
    overflow-x:hidden;
    background:#f3f4f6;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    color:#111827;
}

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

a{
    text-decoration:none;
}

/* =========================================
MAIN WRAPPER
========================================= */

.nw-page-wrap{
    width:100%;
    max-width:1080px;
    margin:0 auto;
    padding:0;
}

.nw-layout{
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.nw-main-content{
    float:left;
    width:60%;
    min-width:0;
}

.nw-sidebar{
    float:left;
    width:40%;
    min-width:0;
    position:sticky;
    top:20px;
}

.nw-sidebar > *{
    width:100%;
    max-width:100%;
}

/* =========================================
SIDEBAR
========================================= */

.nw-sidebar-widget{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
    margin-bottom:20px;
    box-shadow:0 2px 10px rgba(0,0,0,0.04);
}

.nw-sidebar-title{
    font-size:18px;
    font-weight:800;
    color:#111827;
    margin-bottom:14px;
}

.nw-sidebar-list{
    list-style:none;
    padding:0;
    margin:0;
}

.nw-sidebar-list li{
    margin-bottom:10px;
}

.nw-sidebar-list li:last-child{
    margin-bottom:0;
}

.nw-sidebar-list a{
    color:#374151;
    font-size:14px;
    font-weight:700;
    transition:0.2s ease;
}

.nw-sidebar-list a:hover{
    color:#00a651;
}

/* =========================================
HEADER
========================================= */

.nw-header{
    margin-bottom:24px;
}

.nw-main-title{
    font-size:34px;
    line-height:1.2;
    font-weight:900;
    color:#0f172a;
    margin-bottom:10px;
    letter-spacing:-0.5px;
}

.nw-subtitle{
    max-width:700px;
    font-size:14px;
    line-height:1.7;
    color:#6b7280;
}

/* =========================================
HERO
========================================= */

.nw-hero-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:18px;
    margin-top:22px;
}

.nw-hero-card{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    padding:22px;
    background:#111827;
    color:#fff;
    min-height:180px;
}

.nw-hero-main{
    background:linear-gradient(
    135deg,
    #00a651 0%,
    #0f172a 100%
    );
}

.nw-live-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 14px;
    border-radius:999px;
    background:#fff;
    color:#111827;
    font-size:10px;
    font-weight:900;
    margin-bottom:18px;
}

.nw-hero-main h2{
    font-size:30px;
    line-height:1.15;
    margin:0 0 14px;
    font-weight:900;
}

.nw-hero-main p{
    font-size:14px;
    line-height:1.7;
    color:#e5e7eb;
}

.nw-mini-label{
    display:inline-block;
    margin-bottom:14px;
    font-size:10px;
    font-weight:900;
    letter-spacing:1px;
    color:#cbd5e1;
}

.nw-mini-title{
    font-size:22px;
    line-height:1.3;
    font-weight:900;
    margin-bottom:10px;
}

.nw-mini-meta{
    font-size:14px;
    color:#d1d5db;
}

/* =========================================
SECTIONS
========================================= */

.nw-section{
    margin-bottom:32px;
}

.nw-section-title{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:24px;
    font-weight:900;
    color:#111827;
    margin-bottom:18px;
}

/* =========================================
SONG CARD
========================================= */

.nw-card{
    position:relative;
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:14px;
    border-radius:18px;
    background:#fff;
    border:1px solid #e5e7eb;
    margin-bottom:14px;
    overflow:hidden;
    transition:0.25s ease;
    box-shadow:0 2px 10px rgba(0,0,0,0.03);
}

.nw-card::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    width:4px;
    height:100%;
    background:#00a651;
}

.nw-card:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(0,0,0,0.06);
}

.nw-rank{
    min-width:44px;
    font-size:28px;
    line-height:1;
    font-weight:900;
    color:#d1d5db;
}

.nw-cover{
    flex-shrink:0;
}

.nw-cover img{
    width:74px;
    height:74px;
    border-radius:14px;
    object-fit:cover;
}

.nw-content{
    flex:1;
    min-width:0;
}

.nw-song-title{
    font-size:17px;
    line-height:1.4;
    font-weight:800;
    color:#111827;
    margin-bottom:4px;
}

.nw-artist{
    font-size:13px;
    color:#6b7280;
    margin-bottom:8px;
    font-weight:600;
}

.nw-trend-reason{
    padding:10px 12px;
    border-radius:12px;
    background:#f9fafb;
    border-left:4px solid #00a651;
    font-size:12px;
    line-height:1.6;
    color:#374151;
    margin-bottom:10px;
}

.nw-song-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.nw-action-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 12px;
    border-radius:10px;
    background:#f3f4f6;
    color:#111827;
    font-size:10px;
    font-weight:800;
    transition:0.2s ease;
}

.nw-action-btn:hover{
    background:#00a651;
    color:#fff;
}

.nw-song-status-wrap{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
}

.nw-chart-move{
    padding:7px 10px;
    border-radius:999px;
    font-size:10px;
    font-weight:800;
}

.nw-up{
    background:#ecfdf3;
    color:#00a651;
}

.nw-down{
    background:#fef2f2;
    color:#dc2626;
}

.nw-new{
    background:#eff6ff;
    color:#2563eb;
}

.nw-stable{
    background:#f3f4f6;
    color:#374151;
}

.nw-tag{
    padding:8px 12px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    font-size:9px;
    font-weight:900;
}

/* =========================================
ALBUMS
========================================= */

.nw-albums-showcase{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.nw-album-card-v2{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 3px 14px rgba(0,0,0,0.04);
    transition:0.25s ease;
}

.nw-album-card-v2:hover{
    transform:translateY(-2px);
}

.nw-album-image-wrap{
    position:relative;
    aspect-ratio:1/1;
    overflow:hidden;
}

.nw-album-image-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.nw-album-rank{
    position:absolute;
    top:12px;
    left:12px;
    width:42px;
    height:42px;
    border-radius:50%;
    background:#00a651;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    font-weight:900;
}

.nw-album-content-v2{
    padding:16px;
}

.nw-album-name-v2{
    font-size:18px;
    line-height:1.4;
    font-weight:800;
    color:#111827;
    margin-bottom:6px;
}

.nw-album-artist-v2{
    font-size:13px;
    color:#6b7280;
    margin-bottom:10px;
}

.nw-album-reason{
    background:#f9fafb;
    border-left:4px solid #00a651;
    padding:12px;
    border-radius:12px;
    font-size:12px;
    line-height:1.6;
    color:#374151;
    margin-bottom:14px;
}

.nw-album-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.nw-album-score{
    background:#00a651;
    color:#fff;
    padding:8px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.nw-album-status{
    background:#ecfdf3;
    color:#00a651;
    padding:8px 12px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
}

/* =========================================
MODALS
========================================= */

#nw-stats-modal,
#nw-fan-modal{
    position:fixed;
    inset:0;
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

#nw-stats-modal.active,
#nw-fan-modal.active{
    display:flex;
}

.nw-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.75);
}

.nw-modal-box{
    position:relative;
    background:#fff;
    width:100%;
    max-width:620px;
    border-radius:22px;
    overflow:hidden;
    z-index:10;
    max-height:90vh;
    overflow-y:auto;
}

#nw-close-modal,
#nw-close-fan-modal{
    position:absolute;
    top:14px;
    right:14px;
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:#0f172a;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    z-index:50;
}

.nw-modal-content{
    padding:20px;
}

#nw-modal-image{
    width:100%;
    border-radius:18px;
    margin-bottom:20px;
}

#nw-modal-song{
    font-size:28px;
    line-height:1.2;
    font-weight:900;
    margin-bottom:8px;
    color:#0f172a;
}

#nw-modal-artist{
    font-size:16px;
    color:#6b7280;
    margin-bottom:18px;
}

.nw-modal-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.nw-modal-stat{
    background:#f3f4f6;
    padding:18px;
    border-radius:16px;
}

.nw-modal-stat span{
    display:block;
    font-size:12px;
    color:#6b7280;
    margin-bottom:8px;
}

.nw-modal-stat strong{
    font-size:24px;
    color:#0f172a;
}

/* =========================================
FAN REACTIONS
========================================= */

.nw-fan-content{
    padding:20px;
}

.nw-fan-content h2{
    font-size:24px;
    margin-bottom:8px;
}

.nw-fan-song-name{
    font-size:16px;
    color:#6b7280;
    margin-bottom:18px;
}

.nw-fan-live-status{
    color:#00a651;
    font-size:13px;
    font-weight:700;
}

.nw-reaction-buttons{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:20px;
}

.nw-react-btn{
    border:none;
    background:#0f172a;
    color:#fff;
    padding:16px 12px;
    border-radius:16px;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    transition:0.25s ease;
}

.nw-react-btn:hover{
    background:#00a651;
}

.nw-react-btn i{
    margin-right:6px;
}

.nw-react-count{
    display:block;
    margin-top:8px;
    font-size:12px;
}

.nw-reaction-summary{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:20px;
}

.nw-summary-card{
    background:#f3f4f6;
    padding:16px;
    border-radius:16px;
}

.nw-summary-card span{
    display:block;
    color:#6b7280;
    font-size:12px;
    margin-bottom:6px;
}

.nw-summary-card strong{
    font-size:22px;
    color:#0f172a;
}

/* =========================================
TABLET
========================================= */

@media(max-width:992px){

    .nw-layout{
        display:block;
    }

    .nw-main-content,
    .nw-sidebar{
        width:100%;
    }

    .nw-sidebar{
        margin-top:20px;
        position:relative;
        top:auto;
    }

    .nw-hero-grid{
        grid-template-columns:1fr;
    }

}

/* =========================================
MOBILE
========================================= */

@media(max-width:768px){

    .nw-page-wrap{
        padding:12px;
    }

    .nw-main-title{
        font-size:28px;
    }

    .nw-subtitle{
        font-size:13px;
    }

    .nw-section-title{
        font-size:22px;
    }

    .nw-card{
        display:grid;
        grid-template-columns:72px 1fr;
        gap:12px;
        padding:12px;
        border-radius:18px;
    }

    .nw-rank{
        position:absolute;
        top:12px;
        right:12px;
        font-size:16px;
        min-width:auto;
    }

    .nw-cover img{
        width:72px;
        height:72px;
        border-radius:12px;
    }

    .nw-song-title{
        font-size:15px;
    }

    .nw-albums-showcase{
        grid-template-columns:1fr 1fr;
        gap:12px;
    }

    .nw-modal-grid{
        grid-template-columns:1fr;
    }

    .nw-modal-stat strong{
        font-size:22px;
    }

    .nw-react-btn{
        font-size:13px;
        padding:14px 10px;
    }

}