/* =========================================================
   NIMA ZAHEDI — ALBUM SINGLE
   Final Compact Editorial Layout
   Native AudioIgniter Integration
   ========================================================= */


/* =========================================================
   BASE
   ========================================================= */

html,
body,
body.nz-album-preview {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #080808 !important;
    color: #ededed;
}

html {
    min-height: 100%;
}

body.nz-album-preview {
    min-height: 100vh;

    overflow-x: hidden;

    direction: rtl;

    font-family: "fnum", Tahoma, Arial, sans-serif;
}

.nz-album-preview *,
.nz-album-preview *::before,
.nz-album-preview *::after {
    box-sizing: border-box;
}

.nz-album-preview a {
    color: inherit;
    text-decoration: none;
}

.nz-album-preview img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   PAGE
   ========================================================= */

.nz-album-page {
    width: min(100% - 56px, 1500px);
    min-height: 100vh;

    margin-right: auto;
    margin-left: auto;

    display: grid;

    grid-template-rows:
        62px
        minmax(0, 1fr)
        42px;

    background: #080808;
}

/* =========================================================
   HEADER
   ========================================================= */

.nz-album-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    direction: ltr;

    border-bottom: 1px solid #242424;
}

.nz-album-back {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    direction: rtl;

    font-size: 9px;
    line-height: 1;

    color: #a0a0a0;

    transition: color 0.2s ease;
}

.nz-album-back:hover {
    color: #ededed;
}

.nz-album-brand {
    display: flex;
    align-items: baseline;

    gap: 10px;

    direction: rtl;
}

.nz-album-brand strong {
    font-size: 12px;
    font-weight: 400;

    color: #e6e6e6;
}

.nz-album-brand span {
    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 6px;

    letter-spacing: 3px;

    color: #777;
}


/* =========================================================
   MAIN
   ========================================================= */

.nz-album-main {
    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-columns:
        minmax(280px, 350px)
        minmax(0, 1fr);

    align-items: center;

    gap: clamp(42px, 5vw, 76px);

    direction: ltr;

    padding: 22px 0;
}


/* =========================================================
   ARTWORK
   ========================================================= */

.nz-album-artwork {
    min-width: 0;

    direction: ltr;

    display: flex;
    flex-direction: column;
    justify-content: center;

    align-self: center;
}

.nz-album-section-label {
    width: min(100%, 350px);
    height: 22px;

    margin:
        0
        auto
        13px;

    display: flex;
    align-items: center;

    gap: 10px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;
    line-height: 1;

    letter-spacing: 3px;

    color: #747474;
}

.nz-album-section-label i {
    display: block;

    width: 24px;
    height: 1px;

    background: #393939;
}

.nz-album-cover {
    width: min(100%, 350px);

    margin-right: auto;
    margin-left: auto;

    overflow: hidden;

    border: 1px solid #2b2b2b;

    background: #111;
}

.nz-album-cover img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 1;

    object-fit: cover;
}


/* =========================================================
   CONTENT
   ========================================================= */

.nz-album-content {
    min-width: 0;

    direction: rtl;
}


/* =========================================================
   INTRO
   ========================================================= */

.nz-album-intro {
    padding-top: 1px;
    padding-bottom: 18px;
}

.nz-album-kicker {
    margin-bottom: 12px;

    display: flex;
    align-items: center;

    gap: 10px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;
    line-height: 1;

    letter-spacing: 3.4px;

    color: #777;
}

.nz-album-kicker i {
    display: block;

    width: 28px;
    height: 1px;

    background: #383838;
}

.nz-album-intro h1 {
    margin: 0;

    font-size: clamp(38px, 4vw, 60px);
    font-weight: 400;
    line-height: 1.2;

    color: #f0f0f0;
}


/* =========================================================
   META
   ========================================================= */

.nz-album-meta {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border-top: 1px solid #252525;
    border-bottom: 1px solid #252525;
}

.nz-album-meta-item {
    min-height: 66px;

    padding: 12px 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 7px;
}

.nz-album-meta-item + .nz-album-meta-item {
    border-right: 1px solid #252525;
}

.nz-album-meta-label {
    font-size: 7px;
    line-height: 1;

    color: #666;
}

.nz-album-meta-item strong {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;

    color: #d3d3d3;
}


/* =========================================================
   LISTEN
   ========================================================= */

.nz-album-listen {
    min-width: 0;

    padding-top: 18px;
}

.nz-album-listen-header {
    margin-bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    direction: ltr;
}

.nz-album-listen-header h2 {
    margin: 0;

    direction: rtl;

    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;

    color: #e7e7e7;
}

.nz-album-track-label {
    display: flex;
    align-items: center;

    gap: 10px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;
    line-height: 1;

    letter-spacing: 3px;

    color: #707070;
}

.nz-album-track-label i {
    display: block;

    width: 30px;
    height: 1px;

    background: #393939;
}


/* =========================================================
   PLAYER WRAPPER
   ========================================================= */

.nz-album-player {
    width: 100%;
    min-width: 0;

    overflow: hidden;

    background: transparent;
}


/* =========================================================
   AUDIOIGNITER ROOT
   Keep native player structure intact.
   ========================================================= */

.nz-album-player .audioigniter-root {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;

    overflow: hidden !important;

    border: 0 !important;
    outline: 0 !important;

    border-radius: 0 !important;

    background: #181818 !important;

    box-shadow: none !important;
}


/* =========================================================
   WIDTH SAFETY
   ========================================================= */

.nz-album-player,
.nz-album-player .audioigniter-root,
.nz-album-player .ai-wrap,
.nz-album-player .ai-control-wrap,
.nz-album-player .ai-control-wrap-controls,
.nz-album-player .ai-tracklist,
.nz-album-player .ai-scroll-wrap {
    max-width: 100% !important;
}


/* =========================================================
   PLAYER SURFACES
   Neutral gray / black palette.
   Native magenta accent remains untouched.
   ========================================================= */

.nz-album-player .ai-wrap {
    background: #181818 !important;
}

.nz-album-player .ai-control-wrap {
    background: #181818 !important;

    border: 0 !important;

    box-shadow: none !important;
}

.nz-album-player .ai-control-wrap-controls {
    background: #181818 !important;

    border: 0 !important;

    box-shadow: none !important;
}

.nz-album-player .ai-thumb {
    margin-right: 0 !important;
    margin-left: 0 !important;

    flex-shrink: 0;

    background: #242424 !important;

    border: 0 !important;

    box-shadow: none !important;
}


/* =========================================================
   PLAY / ARTWORK SPACING
   ========================================================= */

/*
 * Keep the native AudioIgniter structure.
 * Only create breathing room between the play control
 * and the artwork block.
 */

.nz-album-player .ai-control-wrap-controls {
    padding-top: 14px !important;
    padding-right: 24px !important;
}

.nz-album-player .ai-audio-control {
    margin-right: 0 !important;
    margin-left: 18px !important;

    transform: none !important;

    box-shadow: none !important;

    transition: none !important;
}


/* =========================================================
   PLAY HOVER
   ========================================================= */

.nz-album-player .ai-audio-control:hover,
.nz-album-player .ai-audio-control:focus,
.nz-album-player .ai-audio-control:active {
    transform: none !important;

    filter: none !important;

    box-shadow: none !important;
}


/* =========================================================
   SPINNER
   Hide only the broken visual spinner.
   Do not interfere with playback logic.
   ========================================================= */

.nz-album-player .ai-control-spinner {
    display: none !important;

    width: 0 !important;
    height: 0 !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    animation: none !important;

    visibility: hidden !important;

    pointer-events: none !important;
}


/* =========================================================
   TRACK / CURRENT TITLE
   ========================================================= */

.nz-album-player .ai-track-title,
.nz-album-player .ai-title {
    color: #e6e6e6 !important;
}

.nz-album-player .ai-track-subtitle,
.nz-album-player .ai-artist {
    color: #747474 !important;
}


/* =========================================================
   TRACKLIST
   Full list — no internal vertical scrolling.
   ========================================================= */

.nz-album-player .ai-scroll-wrap,
.nz-album-player .ai-tracklist,
.nz-album-player .ai-tracklist-wrap {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;

    overflow-y: visible !important;
    overflow-x: hidden !important;
}

.nz-album-player .ai-scroll-wrap {
    scrollbar-width: none !important;
}

.nz-album-player .ai-scroll-wrap::-webkit-scrollbar {
    display: none !important;

    width: 0 !important;
    height: 0 !important;
}

.nz-album-player .ai-tracklist {
    position: static !important;

    width: 100% !important;

    margin: 0 !important;

    border: 0 !important;

    border-radius: 0 !important;

    background: #151515 !important;

    box-shadow: none !important;
}

.nz-album-player .ai-track {
    min-height: 40px !important;

    background: #171717 !important;

    border-color: #292929 !important;
}

.nz-album-player .ai-track:hover {
    background: #1b1b1b !important;
}

.nz-album-player .ai-track + .ai-track {
    border-top-color: #292929 !important;
}


/* =========================================================
   NATIVE CONTROLS
   Preserve AudioIgniter buttons.
   ========================================================= */

.nz-album-player button {
    box-shadow: none !important;

    transform: none !important;

    transition: none !important;
}


/* =========================================================
   HORIZONTAL SCROLL PROTECTION
   ========================================================= */

.nz-album-player .audioigniter-root,
.nz-album-player .ai-wrap,
.nz-album-player .ai-control-wrap,
.nz-album-player .ai-scroll-wrap,
.nz-album-player .ai-tracklist {
    overflow-x: hidden !important;
}


/* =========================================================
   REMOVE SECOND VISUAL FRAME
   ========================================================= */

.nz-album-player > div,
.nz-album-player .audioigniter-root {
    border-radius: 0 !important;

    box-shadow: none !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

.nz-album-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    direction: ltr;

    border-top: 1px solid #242424;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 6px;
    line-height: 1;

    letter-spacing: 0.8px;

    color: #666;
}

.nz-album-footer a {
    direction: rtl;

    font-family: "fnum", Tahoma, Arial, sans-serif;

    color: #777;

    transition: color 0.2s ease;
}

.nz-album-footer a:hover {
    color: #ddd;
}


/* =========================================================
   WORDPRESS ADMIN BAR
   ========================================================= */

@media (min-width: 783px) {

    body.admin-bar.nz-album-preview {
        min-height: calc(100vh - 32px);
    }

    body.admin-bar.nz-album-preview .nz-album-page {
        min-height: calc(100vh - 32px);
    }

}


/* =========================================================
   NORMAL DESKTOP
   ========================================================= */

@media (min-width: 1101px) {

    .nz-album-cover,
    .nz-album-section-label {
        max-width: 330px;
    }

}


/* =========================================================
   SHORT DESKTOP
   ========================================================= */

@media (min-width: 901px) and (max-height: 800px) {

    .nz-album-page {
        grid-template-rows:
            52px
            minmax(0, 1fr)
            34px;
    }

    .nz-album-main {
        grid-template-columns:
            minmax(240px, 290px)
            minmax(0, 1fr);

        align-items: center;

        gap: 38px;

        padding-top: 14px;
        padding-bottom: 14px;
    }

    .nz-album-cover,
    .nz-album-section-label {
        max-width: 290px;
    }

    .nz-album-intro {
        padding-bottom: 10px;
    }

    .nz-album-kicker {
        margin-bottom: 8px;
    }

    .nz-album-intro h1 {
        font-size: clamp(32px, 3.2vw, 46px);
    }

    .nz-album-meta-item {
        min-height: 52px;

        padding-top: 8px;
        padding-bottom: 8px;
    }

    .nz-album-listen {
        padding-top: 11px;
    }

    .nz-album-listen-header {
        margin-bottom: 7px;
    }

    .nz-album-player .ai-control-wrap-controls {
        padding-top: 10px !important;
    }

    .nz-album-player .ai-track {
        min-height: 34px !important;
    }

}


/* =========================================================
   MEDIUM DESKTOP
   ========================================================= */

@media (min-width: 901px) and (max-width: 1180px) {

    .nz-album-page {
        width: min(1100px, calc(100% - 40px));
    }

    .nz-album-main {
        grid-template-columns:
            minmax(250px, 310px)
            minmax(0, 1fr);

        gap: 38px;
    }

    .nz-album-cover,
    .nz-album-section-label {
        max-width: 310px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .nz-album-page {
        width: min(760px, calc(100% - 32px));

        display: flex;
        flex-direction: column;
    }

    .nz-album-header {
        min-height: 58px;
    }

    .nz-album-main {
        display: flex;
        flex-direction: column;

        gap: 26px;

        padding: 24px 0 30px;
    }

    .nz-album-artwork {
        order: 1;

        width: 100%;
    }

    .nz-album-cover,
    .nz-album-section-label {
        width: min(100%, 300px);
    }

    .nz-album-content {
        order: 2;

        width: 100%;
    }

    .nz-album-intro h1 {
        font-size: 38px;
    }

    .nz-album-footer {
        min-height: 48px;

        margin-top: auto;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .nz-album-page {
        width: calc(100% - 24px);
    }

    .nz-album-brand span {
        display: none;
    }

    .nz-album-main {
        gap: 20px;

        padding-top: 18px;
    }

    .nz-album-cover,
    .nz-album-section-label {
        max-width: 250px;
    }

    .nz-album-intro {
        padding-bottom: 14px;
    }

    .nz-album-intro h1 {
        font-size: 30px;
    }

    .nz-album-meta {
        grid-template-columns: 1fr;
    }

    .nz-album-meta-item {
        min-height: 50px;

        padding: 9px 12px;
    }

    .nz-album-meta-item + .nz-album-meta-item {
        border-top: 1px solid #252525;
        border-right: 0;
    }

    .nz-album-listen {
        padding-top: 14px;
    }

    .nz-album-listen-header {
        align-items: flex-end;
    }

    .nz-album-listen-header h2 {
        font-size: 15px;
    }

    .nz-album-track-label {
        font-size: 4px;

        letter-spacing: 2px;
    }

    .nz-album-player .ai-control-wrap-controls {
        padding-top: 10px !important;
        padding-right: 12px !important;
    }

    .nz-album-player .ai-audio-control {
        margin-left: 10px !important;
    }

    .nz-album-player .ai-track {
        min-height: 38px !important;
    }

    .nz-album-footer {
        min-height: 54px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .nz-album-page {
        width: calc(100% - 20px);
    }

    .nz-album-back {
        font-size: 8px;
    }

    .nz-album-intro h1 {
        font-size: 27px;
    }

    .nz-album-footer > span {
        display: none;
    }

    .nz-album-footer {
        justify-content: flex-end;
    }

}



/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .nz-album-preview *,
    .nz-album-preview *::before,
    .nz-album-preview *::after {
        scroll-behavior: auto !important;
    }

    .nz-album-back,
    .nz-album-footer a {
        transition: none;
    }

}
/* English text flow, preserving original grid and Persian styling. */
.nz-album-page[lang="en"] { direction:ltr; }
.nz-album-page[lang="en"] h1, .nz-album-page[lang="en"] h2, .nz-album-page[lang="en"] .nz-sm-content, .nz-album-page[lang="en"] .nz-album-content { direction:ltr; text-align:left; }
.nz-album-page[lang="en"] .nz-sm-meta-item, .nz-album-page[lang="en"] .nz-album-meta-item {direction:ltr;text-align:left;}
