/* ======================================================
   GLOBAL RESET
====================================================== */
* {
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: #0b0b0b;
    color: #fff;
}


/* ======================================================
   LAYOUT
====================================================== */
.nc-main {
    width: 100%;
}

.nc-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}


/* ======================================================
   SECTIONS
====================================================== */
.nc-section {
    margin-bottom: 30px;
}

.nc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.nc-section-title {
    font-size: 20px;
    font-weight: bold;
}

.nc-view-all {
    font-size: 14px;
    color: #1db954;
    text-decoration: none;
}


/* ======================================================
   HERO
====================================================== */
.nc-hero-title {
    font-size: 28px;
    margin-bottom: 5px;
}

.nc-hero-subtitle {
    font-size: 14px;
    opacity: 0.7;
}


/* ======================================================
   GRID (fallback)
====================================================== */
.nc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}


/* ======================================================
   CAROUSEL
====================================================== */
.nc-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nc-carousel::-webkit-scrollbar {
    display: none;
}

.nc-carousel-track {
    display: flex;
    gap: 15px;
}


/* ======================================================
   CARD
====================================================== */
.nc-card {
    min-width: 180px;
    max-width: 180px;
    flex-shrink: 0;

    background: #111;
    border-radius: 10px;
    overflow: hidden;
}

.nc-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.nc-card-body {
    padding: 8px;
}

.nc-card-title {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.nc-card-artist {
    font-size: 11px;
    color: #aaa;
}


/* ======================================================
   GLOBAL PLAYER
====================================================== */
#ncap-global-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    z-index: 9999;
}

.nc-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

/* LEFT */
.nc-player-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nc-player-art {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.nc-player-title {
    font-size: 14px;
    font-weight: bold;
}

.nc-player-artist {
    font-size: 12px;
    opacity: 0.7;
}

/* CENTER */
.nc-player-center {
    flex: 1;
    text-align: center;
}

.nc-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    margin: 0 5px;
    cursor: pointer;
}

/* PROGRESS */
.nc-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

#nc-seek {
    flex: 1;
}

/* RIGHT */
.nc-player-right {
    width: 100px;
}

#nc-volume {
    width: 100%;
}


/* ======================================================
   QUEUE PANEL
====================================================== */
.nc-queue-panel {
    position: fixed;
    right: 0;
    bottom: 80px;
    width: 320px;
    height: 420px;

    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(10px);

    overflow-y: auto;
    z-index: 9998;

    transform: translateX(100%);
    transition: transform 0.3s ease;

    border-left: 1px solid rgba(255,255,255,0.1);
}

.nc-queue-panel.active {
    transform: translateX(0);
}

.nc-queue-header {
    display: flex;
    justify-content: space-between;
    padding: 12px;
}

.nc-queue-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
}

.nc-queue-item.active {
    background: rgba(255,255,255,0.1);
}

.nc-queue-art {
    width: 45px;
    height: 45px;
    object-fit: cover;
}


/* ======================================================
   TRACK LIST
====================================================== */
.nc-track-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #222;

    flex-wrap: wrap;
}

.nc-track-title,
.nc-track-artist {
    flex: 1;
    min-width: 120px;
    word-break: break-word;
}

.nc-track-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}


/* ======================================================
   LIKE BUTTON
====================================================== */
.nc-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
    color: #aaa;
}

.nc-like-btn.liked {
    color: red;
    opacity: 1;
}


/* ======================================================
   ALBUM HEADER
====================================================== */
.nc-album-header-inner {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nc-artwork {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
}

.nc-title {
    font-size: 24px;
    word-break: break-word;
}

.nc-artist {
    opacity: 0.7;
}


/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 1024px) {
    .nc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px){

    /* GRID */
    .nc-grid {
        grid-template-columns: 1fr;
    }

    /* PLAYER */
    .nc-player {
        flex-direction: column;
        align-items: stretch;
    }

    .nc-player-left {
        justify-content: center;
        text-align: center;
    }

    .nc-controls button {
        font-size: 22px;
        margin: 0 10px;
    }

    .nc-player-right {
        display: none;
    }

    /* QUEUE MOBILE */
    .nc-queue-panel {
        width: 100%;
        height: 65%;
        bottom: 0;
        right: 0;

        border-radius: 15px 15px 0 0;

        transform: translateY(100%);
    }

    .nc-queue-panel.active {
        transform: translateY(0);
    }

    /* TRACK */
    .nc-track-row {
        flex-direction: column;
        align-items: flex-start;
    }

    /* ALBUM */
    .nc-album-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .nc-artwork {
        max-width: 200px;
    }

    /* CAROUSEL */
    .nc-carousel-track .nc-card {
        min-width: 140px;
        max-width: 140px;
    }

    .nc-card img {
        height: 140px;
    }
}
