/* =========================================================
   SINGLE MUSIC
   NIMA ZAHEDI
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #090807 !important;
}

body.nz-single-music {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
    background:
        radial-gradient(
            circle at 18% 45%,
            rgba(145, 83, 58, 0.06),
            transparent 30%
        ),
        #090807 !important;
    color: #eee9e3;
    font-family: "fnum", Tahoma, Arial, sans-serif;
}

body.nz-single-music * {
    box-sizing: border-box;
}

body.nz-single-music a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   PAGE
   ========================================================= */

.nz-single-music-page {
    width: 100%;
    min-height: 100vh;
    padding: 0 4vw;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
   ========================================================= */

.nz-sm-header {
    min-height: 88px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
    direction: ltr;
}

.nz-sm-brand {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nz-sm-brand-fa {
    direction: rtl;
    font-size: 18px;
    font-weight: 600;
    color: #eee9e3;
}

.nz-sm-brand-divider {
    display: block;
    width: 1px;
    height: 27px;
    background: rgba(255,255,255,.18);
}

.nz-sm-brand-en {
    font-family: "CormorantGaramond", Georgia, serif;
    font-size: 11px;
    letter-spacing: .27em;
    color: #a49c95;
}

.nz-sm-header-index {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: .22em;
    color: #80604f;
}

.nz-sm-header-index i {
    display: block;
    width: 32px;
    height: 1px;
    background: rgba(255,255,255,.16);
}

.nz-sm-back {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
    font-size: 13px;
    color: #8f8882;
    transition:
        color .2s ease,
        transform .2s ease;
}

.nz-sm-back:hover {
    color: #d7b39d;
    transform: translateX(-3px);
}


/* =========================================================
   MAIN
   ========================================================= */

.nz-sm-main {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 38px 0;
}

.nz-sm-layout {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(280px, 400px)
        minmax(0, 1fr);
    gap: clamp(50px, 7vw, 110px);
    align-items: center;
    direction: ltr;
}


/* =========================================================
   COVER
   ========================================================= */

.nz-sm-cover-column {
    direction: rtl;
}

.nz-sm-cover-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #11100f;
    border: 1px solid rgba(255,255,255,.09);
}

.nz-sm-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nz-sm-cover-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle,
            #211915,
            #0d0b0a 70%
        );
}

.nz-sm-cover-placeholder span {
    font-family: "CormorantGaramond", Georgia, serif;
    font-size: 44px;
    letter-spacing: .18em;
    color: rgba(255,255,255,.16);
}

.nz-sm-cover-number {
    position: absolute;
    left: 14px;
    bottom: 12px;
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: .18em;
    color: rgba(255,255,255,.7);
}

.nz-sm-download {
    width: 100%;
    min-height: 54px;
    margin-top: 13px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(153, 92, 65, .45);
    background: rgba(103, 59, 42, .12);
    color: #d9c9bf;
    font-size: 13px;
    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.nz-sm-download svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nz-sm-download:hover {
    background: rgba(126, 72, 51, .22);
    border-color: rgba(181, 111, 80, .72);
    color: #fff;
}


/* =========================================================
   CONTENT
   ========================================================= */

.nz-sm-content {
    min-width: 0;
    direction: rtl;
}

.nz-sm-heading {
    margin-bottom: 29px;
}

.nz-sm-eyebrow {
    display: block;
    margin-bottom: 12px;
    direction: ltr;
    text-align: right;
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: .34em;
    color: #9a624b;
}

.nz-sm-heading h1 {
    margin: 0;
    color: #f2eee9;
    font-size: clamp(36px, 4.1vw, 67px);
    font-weight: 500;
    line-height: 1.25;
}

.nz-sm-title-line {
    margin-top: 19px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nz-sm-title-line span {
    display: block;
    width: 78px;
    height: 1px;
    background: #925b44;
}

.nz-sm-title-line i {
    width: 4px;
    height: 4px;
    border: 1px solid #925b44;
    transform: rotate(45deg);
}


/* =========================================================
   META
   ========================================================= */

.nz-sm-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(255,255,255,.09);
    margin-bottom: 27px;
}

.nz-sm-meta-item {
    min-height: 78px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border-left: 1px solid rgba(255,255,255,.07);
}

.nz-sm-meta-item:last-child {
    border-left: 0;
}

.nz-sm-meta-label {
    color: #776f69;
    font-size: 10px;
}

.nz-sm-meta-item strong {
    color: #d9d2cc;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}


/* =========================================================
   PLAYER SECTION
   ========================================================= */

.nz-sm-player-section {
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.018);
}

.nz-sm-player-head {
    min-height: 66px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.nz-sm-player-head > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nz-sm-player-index {
    min-width: 30px;
    font-family: Georgia, serif;
    font-size: 10px;
    letter-spacing: .15em;
    color: #9d674f;
}

.nz-sm-player-kicker {
    display: block;
    margin-bottom: 2px;
    direction: ltr;
    text-align: right;
    font-family: Georgia, serif;
    font-size: 8px;
    letter-spacing: .26em;
    color: #7e7772;
}

.nz-sm-player-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #e9e3de;
}

.nz-sm-player-status {
    direction: ltr;
    font-family: Georgia, serif;
    font-size: 8px;
    letter-spacing: .22em;
    color: #725346;
}

.nz-sm-player {
    width: 100%;
    padding: 14px;
    overflow: hidden;
}


/* =========================================================
   AUDIOIGNITER
   Keep plugin behavior, refine visual container only.
   ========================================================= */

.nz-sm-player .ai-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: #171615 !important;
    box-shadow: none !important;
}

.nz-sm-player .ai-audio-control {
    background: #201f1e !important;
}

.nz-sm-player .ai-track {
    background: #171615 !important;
    border-color: rgba(255,255,255,.07) !important;
}

.nz-sm-player .ai-track:hover {
    background: #1d1c1b !important;
}

.nz-sm-player .ai-track-name,
.nz-sm-player .ai-track-title,
.nz-sm-player .ai-track-artist {
    color: #d8d3cf !important;
}

.nz-sm-player .ai-track-progress {
    background: rgba(255,255,255,.12) !important;
}

.nz-sm-player .ai-volume-bar {
    background: rgba(255,255,255,.13) !important;
}

/*
 * Prevent AudioIgniter spinner from creating the oversized
 * rotating rectangle seen in the old single template.
 */
.nz-sm-player .ai-control-spinner,
.nz-sm-player [class*="spinner"] {
    display: none !important;
}


/* =========================================================
   BOTTOM META
   ========================================================= */

.nz-sm-bottom-meta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 13px;
    direction: ltr;
    font-family: Georgia, serif;
    font-size: 8px;
    letter-spacing: .24em;
    color: #5f5955;
}

.nz-sm-bottom-meta i {
    width: 34px;
    height: 1px;
    background: rgba(255,255,255,.12);
}


/* =========================================================
   FOOTER
   ========================================================= */

.nz-sm-footer {
    min-height: 65px;
    border-top: 1px solid rgba(255,255,255,.09);
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    color: #625d59;
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: .12em;
}

.nz-sm-footer a {
    direction: rtl;
    font-family: "fnum", Tahoma, Arial, sans-serif;
    letter-spacing: 0;
    color: #807873;
    transition: color .2s ease;
}

.nz-sm-footer a:hover {
    color: #d4b09c;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .nz-single-music-page {
        padding: 0 28px;
    }

    .nz-sm-main {
        align-items: flex-start;
    }

    .nz-sm-layout {
        max-width: 720px;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 38px;
    }

    .nz-sm-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .nz-sm-meta-item:nth-child(2) {
        border-left: 0;
    }

    .nz-sm-meta-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .nz-single-music-page {
        padding: 0 18px;
    }

    .nz-sm-header {
        min-height: 74px;
        grid-template-columns: 1fr auto;
    }

    .nz-sm-header-index {
        display: none;
    }

    .nz-sm-brand {
        gap: 9px;
    }

    .nz-sm-brand-fa {
        font-size: 15px;
    }

    .nz-sm-brand-en {
        display: none;
    }

    .nz-sm-brand-divider {
        display: none;
    }

    .nz-sm-back {
        font-size: 11px;
    }

    .nz-sm-main {
        padding: 26px 0 34px;
    }

    .nz-sm-layout {
        display: flex;
        flex-direction: column;
        gap: 34px;
    }

    .nz-sm-cover-column,
    .nz-sm-content {
        width: 100%;
    }

    .nz-sm-cover-column {
        max-width: 440px;
        margin: 0 auto;
    }

    .nz-sm-heading {
        margin-bottom: 23px;
    }

    .nz-sm-heading h1 {
        font-size: clamp(34px, 11vw, 52px);
    }

    .nz-sm-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .nz-sm-player-head {
        min-height: 62px;
    }

    .nz-sm-player-status {
        display: none;
    }

    .nz-sm-player {
        padding: 9px;
    }

    .nz-sm-footer {
        min-height: 72px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 460px) {

    .nz-single-music-page {
        padding: 0 13px;
    }

    .nz-sm-meta {
        grid-template-columns: 1fr 1fr;
    }

    .nz-sm-meta-item {
        min-height: 70px;
        padding: 13px 11px;
    }

    .nz-sm-player-head {
        padding: 10px 12px;
    }

    .nz-sm-player-index {
        min-width: auto;
    }

    .nz-sm-bottom-meta {
        display: none;
    }

}
/* English text flow, preserving original grid and Persian styling. */
.nz-single-music-page[lang="en"] { direction:ltr; }
.nz-single-music-page[lang="en"] h1, .nz-single-music-page[lang="en"] h2, .nz-single-music-page[lang="en"] .nz-sm-content, .nz-single-music-page[lang="en"] .nz-album-content { direction:ltr; text-align:left; }
.nz-single-music-page[lang="en"] .nz-sm-meta-item, .nz-single-music-page[lang="en"] .nz-album-meta-item {direction:ltr;text-align:left;}
