/* =========================================
   TARANESORA — SONGS PAGE
   CLEAN FINAL VERSION
========================================= */

html,
body {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =========================================
   PAGE
========================================= */

.songs-page {
    width: 100%;
    min-height: 100vh;
    padding: 190px 32px 100px;
    position: relative;
    z-index: 2;
    overflow-x: hidden;
}

.songs-container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
}

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

.songs-header {
    margin-bottom: 42px;
}

.songs-header h1 {
    font-size: 58px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0 0 12px;
    color: #fff;
}

.songs-header p {
    font-size: 17px;
    line-height: 1.9;
    opacity: 0.45;
    margin: 0;
    color: #fff;
}

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

.song-card {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
    border-radius: 32px;
    overflow: hidden;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,0.04),
        rgba(255,255,255,0.015)
    );

    border: 1px solid rgba(255,255,255,0.06);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 20px 70px rgba(0,0,0,0.20);

    transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.song-card:hover {
    transform: translateY(-1px);

    border-color: rgba(255,255,255,0.12);

    box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 24px 80px rgba(0,0,0,0.25);
}

.song-card.active {
    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,0.055),
        rgba(255,255,255,0.02)
    );

    border-color: rgba(255,255,255,0.12);
}

/* =========================================
   CARD HEADER — CLOSED STATE
========================================= */

.song-card-header {
    position: relative;

    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);

    align-items: center;

    gap: 18px;

    min-height: 92px;

    padding: 18px 22px;

    cursor: pointer;

    z-index: 3;

    direction: rtl;
}

/* =========================================
   CARD HEADER — ACTIVE STATE
========================================= */

.song-card.active > .song-card-header {
    grid-template-columns: 210px minmax(0, 1fr);

    min-height: 250px;

    align-items: start;

    padding: 22px;

    direction: rtl;
}

/* =========================================
   VIEW BUTTON
========================================= */

.song-open-btn {
    position: absolute;

    top: 50%;
    left: 24px;

    transform: translateY(-50%);

    height: 34px;
    min-width: 76px;

    padding: 0 16px;

    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    color: rgba(255,255,255,0.92);

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.10),
        rgba(255,255,255,0.04)
    );

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
    0 4px 18px rgba(255,255,255,0.05);

    outline: none;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;

    z-index: 20;

    transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.song-open-btn:hover,
.song-open-btn:focus,
.song-open-btn:active,
.song-card.active .song-open-btn,
.song-card.playing .song-open-btn {
    color: rgba(255,255,255,0.92);

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.10),
        rgba(255,255,255,0.04)
    );

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
    0 4px 18px rgba(255,255,255,0.05);

    outline: none;
}

/* =========================================
   COVER
========================================= */

/* حالت بسته: کاور کوچک */

.song-cover-mini {
    width: 74px;
    height: 74px;

    min-width: 74px;
    max-width: 74px;

    border-radius: 20px;

    overflow: hidden;

    flex-shrink: 0;

    position: relative;

    z-index: 5;

    transform: scale(0.96);
    opacity: 0.92;

    box-shadow:
    0 0 24px rgba(255,255,255,0.05);

    transition:
    width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    min-width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.48s ease,
    transform 0.48s ease,
    opacity 0.35s ease;
}

/* تصویر داخل کاور */

.song-cover-mini img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transform: scale(1.04);
    filter: brightness(0.92);

    transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease,
    opacity 0.45s ease;
}

/* حالت باز: کاور بزرگ */

.song-card.active > .song-card-header .song-cover-mini {
    grid-column: 1;

    width: 210px;
    height: 210px;

    min-width: 210px;
    max-width: 210px;

    border-radius: 30px;

    margin: 0;

    justify-self: start;
    align-self: start;

    transform: scale(1);
    opacity: 1;

    box-shadow:
    0 0 60px rgba(255,255,255,0.10);
}

/* تصویر در حالت باز، طبیعی و شفاف */

.song-card.active > .song-card-header .song-cover-mini img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1);
    filter: brightness(1);

    display: block;
}
 

/* =========================================
   MAIN INFO
========================================= */

.song-main-info {
    min-width: 0;

    padding-right: 0;

    position: relative;

    z-index: 4;
}

.song-card.active > .song-card-header .song-main-info {
    grid-column: 2;

    align-self: center;

    padding-right: 0;

    min-width: 0;
}

.song-main-info h2 {
    font-size: 28px;

    font-weight: 900;

    line-height: 1.1;

    letter-spacing: -1px;

    margin: 0 0 7px;

    color: #fff;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.song-subtitle {
    font-size: 13px;

    line-height: 1.8;

    opacity: 0.35;

    color: #fff;

    margin: 0;
}

/* =========================================
   META
========================================= */

.song-meta {
    position: absolute;

    left: 22px;
    bottom: 16px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    max-width: 70%;

    z-index: 6;

    transition:
    bottom 0.45s ease,
    opacity 0.3s ease;
}

.song-card.active .song-meta {
    bottom: 22px;
}

.song-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 7px 12px;

    border-radius: 12px;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.04);

    font-size: 12px;

    line-height: 1;

    color: rgba(255,255,255,0.72);

    white-space: nowrap;
}

/* =========================================
   EXPANDED AREA
========================================= */

.song-expanded {
    max-height: 0;

    overflow: hidden;

    display: grid;

    grid-template-columns: minmax(0, 1fr) 230px;

    grid-template-areas:
        "lyrics player";

    gap: 34px;

    padding: 0 22px;

    position: relative;

    z-index: 2;

    direction: ltr;

    transition:
    max-height 0.45s ease,
    padding 0.45s ease;
}

.song-card.active .song-expanded {
    max-height: 900px;

    padding: 0 22px 34px;
}

.song-expanded > * {
    direction: rtl;
}

/* =========================================
   PLAYER UNDER COVER AREA
========================================= */

.song-player-area {
    grid-area: player;

    width: 210px;

    justify-self: end;
    align-self: start;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    gap: 18px;

    padding-top: 16px;

    position: relative;

    z-index: 8;
}

/* =========================================
   ISOLATED PLAY CONTROL
========================================= */

.ts-play-control {
    width: 70px !important;
    height: 70px !important;

    min-width: 70px !important;
    min-height: 70px !important;

    border-radius: 50% !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(255,255,255,0.08) !important;

    border: none !important;

    outline: none !important;

    box-shadow: none !important;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent !important;

    user-select: none;

    transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.ts-play-control:hover {
    background: rgba(255,255,255,0.13) !important;
}

.ts-play-control:focus,
.ts-play-control:active,
.ts-play-control.is-playing,
.song-card.playing .ts-play-control {
    background: rgba(255,255,255,0.08) !important;

    border: none !important;

    outline: none !important;

    box-shadow: none !important;
}

.ts-play-icon {
    width: 0;
    height: 0;

    display: block;

    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #ffffff;

    margin-left: 4px;
}

/* PAUSE ICON */

.ts-play-control.is-playing .ts-play-icon,
.song-card.playing .ts-play-icon {
    width: 18px;
    height: 22px;

    border: none;

    background:
    linear-gradient(
        90deg,
        #ffffff 0 6px,
        transparent 6px 12px,
        #ffffff 12px 18px
    );

    margin-left: 0;
}

/* =========================================
   PROGRESS
========================================= */

.song-progress-wrapper {
    width: 170px;

    height: 5px;

    border-radius: 999px;

    overflow: hidden;

    background: rgba(255,255,255,0.08);

    cursor: pointer;
}

.song-progress-bar {
    width: 0%;

    height: 100%;

    border-radius: inherit;

    background:
    linear-gradient(
        90deg,
        rgba(255,255,255,0.4),
        rgba(255,255,255,1)
    );

    transition: width 0.08s linear;
}

/* =========================================
   LYRICS — SINGLE LIVE LINE
========================================= */

.song-lyrics-area {
    grid-area: lyrics;

    width: 100%;

    min-height: 290px;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px 70px 30px 120px;

    text-align: center;
}

.lyrics-container {
    width: 100%;

    min-height: 220px;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;
}

.lyric-line {
    display: none;

    max-width: 860px;

    color: #fff;

    font-size: 34px;

    line-height: 2.05;

    font-weight: 900;

    text-align: center;

    opacity: 0;

    white-space: normal;

    word-break: normal;

    overflow-wrap: break-word;

    transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    text-shadow 0.35s ease;
}

.lyric-line.active {
    display: block;

    opacity: 1;

    transform: translateY(0);

    text-shadow:
    0 0 24px rgba(255,255,255,0.42);
}

.empty-lyrics {
    display: block;

    max-width: 460px;

    font-size: 22px;

    line-height: 2;

    opacity: 0.35;
}

/* =========================================
   LARGE DESKTOP / TV
========================================= */

@media (min-width: 1600px) {

    .songs-container {
        max-width: 1650px;
    }

    .songs-header h1 {
        font-size: 72px;
    }

    .song-card-header {
        grid-template-columns: 86px minmax(0, 1fr);
        min-height: 110px;
        padding: 24px 28px;
    }

    .song-cover-mini {
        width: 86px;
        height: 86px;

        min-width: 86px;
        max-width: 86px;

        border-radius: 24px;
    }

    .song-main-info h2 {
        font-size: 34px;
    }

    .song-card.active > .song-card-header {
        grid-template-columns: 250px minmax(0, 1fr);
        min-height: 295px;
        padding: 28px;
    }

    .song-card.active > .song-card-header .song-cover-mini {
        width: 250px;
        height: 250px;

        min-width: 250px;
        max-width: 250px;

        border-radius: 36px;
    }

    .song-expanded {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 48px;
        padding: 0 28px;
    }

    .song-card.active .song-expanded {
        padding: 0 28px 42px;
    }

    .song-player-area {
        width: 250px;
    }

    .song-progress-wrapper {
        width: 210px;
    }

    .song-lyrics-area {
        min-height: 340px;
        padding: 40px 120px 40px 160px;
    }

    .lyric-line {
        max-width: 1100px;
        font-size: 42px;
        line-height: 2;
    }
}


/* =========================================
   DESKTOP / LAPTOP
========================================= */

@media (min-width: 1367px) and (max-width: 1599px) {

    .songs-container {
        max-width: 1450px;
    }

    .song-expanded {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 34px;
    }

    .song-player-area {
        width: 210px;
    }

    .song-lyrics-area {
        min-height: 290px;
        padding: 30px 70px 30px 120px;
    }

    .lyric-line {
        max-width: 860px;
        font-size: 34px;
    }
}


/* =========================================
   IPAD / TABLET LANDSCAPE
   مثل آیپد ۱۳ اینچ افقی
========================================= */

@media (min-width: 901px) and (max-width: 1366px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .songs-page {
        width: 100%;
        max-width: 100vw;
        padding: 170px 24px 90px;
        overflow-x: hidden;
    }

    .songs-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .songs-header {
        margin-bottom: 36px;
    }

    .songs-header h1 {
        font-size: 52px;
    }

    .song-card {
        width: 100%;
        max-width: 100%;
        border-radius: 30px;
        overflow: hidden;
    }

    .song-card-header {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 18px;
        min-height: 96px;
        padding: 18px 22px;
    }

    .song-card.active > .song-card-header {
        grid-template-columns: 210px minmax(0, 1fr);
        min-height: 250px;
        padding: 22px;
    }

    .song-card.active > .song-card-header .song-cover-mini {
        width: 210px;
        height: 210px;

        min-width: 210px;
        max-width: 210px;
    }

    .song-main-info h2 {
        font-size: 28px;
    }

    .song-meta {
        max-width: calc(100% - 260px);
    }

    .song-expanded {
        grid-template-columns: minmax(0, 1fr) 220px;
        grid-template-areas:
            "lyrics player";

        gap: 28px;

        padding: 0 22px;

        max-width: 100%;
        overflow: hidden;
    }

    .song-card.active .song-expanded {
        padding: 0 22px 34px;
    }

    .song-player-area {
        width: 210px;
        justify-self: end;
        padding-top: 16px;
    }

    .song-progress-wrapper {
        width: 170px;
    }

    .song-lyrics-area {
        min-height: 300px;
        padding: 30px 70px 30px 100px;
        max-width: 100%;
        overflow: hidden;
    }

    .lyric-line {
        max-width: 760px;
        font-size: 31px;
        line-height: 2.05;
    }
}


/* =========================================
   TABLET PORTRAIT
   آیپد عمودی و تبلت‌های کوچک‌تر
========================================= */

@media (min-width: 769px) and (max-width: 900px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .songs-page {
        width: 100%;
        max-width: 100vw;
        padding: 155px 20px 80px;
        overflow-x: hidden;
    }

    .songs-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .songs-header h1 {
        font-size: 48px;
    }

    .song-card {
        width: 100%;
        max-width: 100%;
        border-radius: 28px;
        overflow: hidden;
    }

    .song-card-header {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 16px;
        min-height: 100px;
        padding: 18px;
    }

    .song-main-info h2 {
        font-size: 26px;
    }

    .song-meta {
        position: static;

        display: flex;
        flex-wrap: wrap;

        max-width: 100%;

        padding: 0 18px 18px;
        margin-top: 4px;
    }

    .song-card.active > .song-card-header {
        grid-template-columns: 190px minmax(0, 1fr);
        min-height: 230px;
        padding: 20px;
    }

    .song-card.active > .song-card-header .song-cover-mini {
        width: 190px;
        height: 190px;

        min-width: 190px;
        max-width: 190px;

        border-radius: 28px;
    }

    .song-expanded {
        grid-template-columns: minmax(0, 1fr) 190px;
        grid-template-areas:
            "lyrics player";

        gap: 22px;

        padding: 0 20px;
        overflow: hidden;
    }

    .song-card.active .song-expanded {
        padding: 0 20px 30px;
    }

    .song-player-area {
        width: 190px;
        padding-top: 10px;
    }

    .song-progress-wrapper {
        width: 155px;
    }

    .song-lyrics-area {
        min-height: 280px;
        padding: 26px 34px 26px 50px;
    }

    .lyric-line {
        max-width: 560px;
        font-size: 28px;
        line-height: 2;
    }
}


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

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .songs-page {
        width: 100%;
        max-width: 100vw;

        padding: 130px 10px 70px;

        overflow-x: hidden;
    }

    .songs-container {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }

    .songs-header {
        margin-bottom: 28px;
    }

    .songs-header h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .songs-header p {
        font-size: 14px;
    }

    .song-card {
        width: 100%;
        max-width: 100%;

        margin-bottom: 16px;

        border-radius: 26px;

        overflow: hidden;
    }

    /* ساختار کارت در موبایل */

    .song-card-header {
        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 16px;

        min-height: auto;

        padding: 14px;

        overflow: hidden;

        direction: rtl;
    }

    /* کاور */

    .song-cover-mini {
        width: 100%;
        height: 220px;

        min-width: 0;
        max-width: 100%;

        border-radius: 24px;

        order: 1;
    }

    .song-card.active > .song-card-header .song-cover-mini {
        width: 100%;
        height: 250px;

        min-width: 0;
        max-width: 100%;

        border-radius: 24px;
    }

    /* عنوان */

    .song-main-info {
        width: 100%;
        max-width: 100%;

        padding: 0 4px;

        overflow: hidden;

        order: 2;
    }

    .song-card.active > .song-card-header .song-main-info {
        width: 100%;
        max-width: 100%;

        grid-column: auto;
    }

    .song-main-info h2 {
        font-size: 28px;
        line-height: 1.45;

        margin: 0 0 6px;

        white-space: normal;

        overflow: visible;

        text-overflow: unset;

        text-align: right;
    }

    .song-subtitle {
        font-size: 13px;

        opacity: 0.35;

        text-align: right;
    }

    /* دیتیل‌ها — چیپ‌های حرفه‌ای دو ستونه */

    .song-meta {
        position: static;

        width: 100%;
        max-width: 100%;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px;

        padding: 0;

        margin: 2px 0 0;

        order: 3;

        overflow: hidden;
    }

    .song-card.active .song-meta {
        bottom: auto;
    }

    .song-meta span {
        width: 100%;
        min-width: 0;

        min-height: 34px;

        padding: 7px 8px;

        border-radius: 13px;

        display: flex;
        align-items: center;
        justify-content: center;

        background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.025)
        );

        border:
        1px solid rgba(255,255,255,0.055);

        color: rgba(255,255,255,0.70);

        font-size: 11px;
        line-height: 1.5;

        text-align: center;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    /* دکمه مشاهده */

    .song-open-btn {
        position: static;

        transform: none;

        width: fit-content;

        min-width: 94px;
        height: 34px;

        padding: 0 18px;

        margin-top: 2px;

        order: 4;

        align-self: flex-end;

        font-size: 12px;
    }

    /* بخش اکسپند */

    .song-expanded {
        display: grid;

        grid-template-columns: 1fr;

        grid-template-areas:
            "player"
            "lyrics";

        gap: 24px;

        width: 100%;
        max-width: 100%;

        padding: 0 14px;

        overflow: hidden;
    }

    .song-card.active .song-expanded {
        max-height: 1200px;

        padding: 8px 14px 28px;
    }

    /* پلیر */

    .song-player-area {
        width: 100%;

        justify-self: center;
        align-self: center;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        padding-top: 4px;

        gap: 17px;
    }

    .ts-play-control {
        width: 66px !important;
        height: 66px !important;

        min-width: 66px !important;
        min-height: 66px !important;
    }

    .song-progress-wrapper {
        width: min(260px, 78vw);
    }

    /* لیریکس */

    .song-lyrics-area {
        width: 100%;
        max-width: 100%;

        min-height: 230px;

        padding: 20px 14px;

        overflow: hidden;
    }

    .lyrics-container {
        width: 100%;
        max-width: 100%;

        min-height: 190px;
    }

    .lyric-line {
        max-width: 100%;

        font-size: 24px;

        line-height: 2;

        overflow-wrap: break-word;

        word-break: normal;
    }
}


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

@media (max-width: 480px) {

    .songs-page {
        padding: 120px 10px 60px;
    }

    .songs-header h1 {
        font-size: 34px;
    }

    .song-card {
        border-radius: 22px;
    }

    .song-card-header {
        padding: 12px;

        gap: 14px;
    }

    .song-cover-mini {
        height: 205px;

        border-radius: 22px;
    }

    .song-card.active > .song-card-header .song-cover-mini {
        height: 225px;

        border-radius: 22px;
    }

    .song-main-info h2 {
        font-size: 25px;
    }

    .song-subtitle {
        font-size: 12px;
    }

    .song-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 7px;
    }

    .song-meta span {
        min-height: 32px;

        padding: 6px 7px;

        font-size: 10.5px;

        border-radius: 12px;
    }

    .song-open-btn {
        height: 32px;

        min-width: 88px;

        font-size: 11px;

        align-self: flex-end;
    }

    .song-card.active .song-expanded {
        padding: 8px 12px 24px;
    }

    .ts-play-control {
        width: 62px !important;
        height: 62px !important;

        min-width: 62px !important;
        min-height: 62px !important;
    }

    .song-progress-wrapper {
        width: min(230px, 78vw);
    }

    .song-lyrics-area {
        min-height: 220px;

        padding: 18px 12px;
    }

    .lyric-line {
        font-size: 21px;

        line-height: 2;
    }
}
/* =========================================
   HARD MOBILE FIX — META DETAILS INSIDE CARD
========================================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .songs-page,
    .songs-container,
    .song-card,
    .song-card-header {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .song-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* دیتیل‌ها کامل داخل کارت قفل شوند */
    .songs-page .song-card .song-meta {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;

        transform: none !important;

        width: 100% !important;
        max-width: 100% !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 8px !important;

        padding: 0 !important;
        margin: 0 !important;

        order: 3 !important;

        overflow: hidden !important;
    }

    .songs-page .song-card .song-meta span {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;

        padding: 7px 8px !important;

        border-radius: 13px !important;

        font-size: 11px !important;
        line-height: 1.5 !important;

        white-space: nowrap !important;

        overflow: hidden !important;

        text-overflow: ellipsis !important;

        text-align: center !important;

        justify-content: center !important;
    }

    /* دکمه مشاهده هم داخل کارت بماند */
    .songs-page .song-card .song-open-btn {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        transform: none !important;

        order: 4 !important;

        align-self: flex-start !important;

        margin-top: 2px !important;
    }
}
/* =========================================
   SONG TIME
========================================= */

.song-time {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    font-size: 12px;
    font-weight: 700;

    color: rgba(255,255,255,0.55);

    line-height: 1;

    direction: ltr;

    user-select: none;
}

.song-current-time,
.song-duration-time {
    min-width: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-variant-numeric: tabular-nums;
}

.song-time-separator {
    opacity: 0.35;
}

/* =========================================
   LEFT CONTROL ROW
   مشاهده + اشتراک + شنیده‌شدن + لایک
========================================= */

/* ردیف کنترل‌ها سمت چپ کارت */

.songs-page .song-card .song-open-btn {
    position: absolute !important;

    left: 22px !important;
    top: 14px !important;
    right: auto !important;
    bottom: auto !important;

    transform: none !important;

    height: 32px !important;

    z-index: 60 !important;
}

.songs-page .song-card .song-stats {
    position: absolute !important;

    left: 112px !important;
    top: 14px !important;
    right: auto !important;
    bottom: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 8px !important;

    z-index: 60 !important;

    transform: none !important;
}

/* دکمه‌ها */

.song-like-btn,
.song-listens,
.song-share-btn {
    height: 32px;

    padding: 0 11px;

    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    color: rgba(255,255,255,0.82);

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.10),
        rgba(255,255,255,0.04)
    );

    border:
    1px solid rgba(255,255,255,0.08);

    box-shadow:
    0 4px 18px rgba(255,255,255,0.04);

    outline: none;
}

.song-like-btn,
.song-share-btn {
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    -webkit-tap-highlight-color: transparent;
}

.song-like-btn.liked {
    color: #fff;

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.16),
        rgba(255,255,255,0.07)
    );
}

.song-like-btn.liked .song-like-icon {
    color: #ff6b8a;
}

.song-like-btn.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.song-share-btn:hover {
    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.16),
        rgba(255,255,255,0.07)
    );
}

.song-share-btn:active {
    transform: scale(0.96);
}

.song-share-btn.is-copied {
    color: #fff;

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.08)
    );
}

.song-like-icon,
.song-listen-icon,
.song-share-icon {
    font-size: 14px;
    line-height: 1;
}

.song-like-count,
.song-listen-count,
.song-share-text {
    font-size: 12px;
    line-height: 1;
}

/* =========================================
   META ROW
   جزئیات زیر ردیف کنترل‌ها، بدون تداخل
========================================= */

.songs-page .song-card:not(.active) .song-meta {
    position: absolute !important;

    left: 22px !important;
    right: auto !important;
    bottom: 16px !important;
    top: auto !important;

    max-width: calc(100% - 430px) !important;

    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 8px !important;

    transform: none !important;
}

.songs-page .song-card.active .song-meta {
    position: absolute !important;

    left: 22px !important;
    right: auto !important;
    bottom: 22px !important;
    top: auto !important;

    max-width: calc(100% - 500px) !important;

    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 8px !important;

    transform: none !important;
}

/* =========================================
   MOBILE STATS / SHARE
========================================= */

@media (max-width: 768px) {

    .songs-page .song-card .song-open-btn {
        position: static !important;

        order: 5 !important;

        transform: none !important;

        align-self: flex-start !important;

        margin-top: 0 !important;
    }

    .songs-page .song-card .song-stats {
        position: static !important;

        order: 4 !important;

        width: 100% !important;

        display: flex !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;

        gap: 8px !important;

        margin: 0 !important;
    }

    .song-like-btn,
    .song-listens,
    .song-share-btn {
        height: 32px;

        padding: 0 11px;

        font-size: 11px;
    }

    .song-share-text {
        font-size: 11px;
    }
}
/* =========================================
   SONG TIME
========================================= */

.song-time {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    font-size: 12px;
    font-weight: 700;

    color: rgba(255,255,255,0.55);

    line-height: 1;

    direction: ltr;

    user-select: none;
}

.song-current-time,
.song-duration-time {
    min-width: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-variant-numeric: tabular-nums;
}

.song-time-separator {
    opacity: 0.35;
}

/* =========================================
   LEFT INFO BLOCK
   row 1: view + share + listens + like
   row 2: meta details
========================================= */

/* مشاهده سمت چپ ردیف اول */

.songs-page .song-card .song-open-btn,
.songs-page .song-card.active .song-open-btn,
.songs-page .song-card:not(.active) .song-open-btn {
    position: absolute !important;

    left: 22px !important;
    top: 14px !important;
    right: auto !important;
    bottom: auto !important;

    transform: none !important;

    height: 32px !important;

    z-index: 80 !important;
}

/* آمار و اشتراک کنار مشاهده */

.songs-page .song-card .song-stats,
.songs-page .song-card.active .song-stats,
.songs-page .song-card:not(.active) .song-stats {
    position: absolute !important;

    left: 112px !important;
    top: 14px !important;
    right: auto !important;
    bottom: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;

    gap: 8px !important;

    z-index: 80 !important;

    transform: none !important;
}

/* جزئیات همیشه زیر ردیف دکمه‌ها */

.songs-page .song-card .song-meta,
.songs-page .song-card.active .song-meta,
.songs-page .song-card:not(.active) .song-meta {
    position: absolute !important;

    left: 22px !important;
    top: 58px !important;
    right: auto !important;
    bottom: auto !important;

    max-width: calc(100% - 460px) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;

    gap: 8px !important;

    padding: 0 !important;
    margin: 0 !important;

    z-index: 70 !important;

    transform: none !important;

    transition: none !important;
}

/* چیپ‌ها */

.song-like-btn,
.song-listens,
.song-share-btn {
    height: 32px;

    padding: 0 11px;

    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    color: rgba(255,255,255,0.82);

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.10),
        rgba(255,255,255,0.04)
    );

    border:
    1px solid rgba(255,255,255,0.08);

    box-shadow:
    0 4px 18px rgba(255,255,255,0.04);

    outline: none;
}

.song-like-btn,
.song-share-btn {
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    -webkit-tap-highlight-color: transparent;
}

.song-like-btn.liked {
    color: #fff;

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.16),
        rgba(255,255,255,0.07)
    );
}

.song-like-btn.liked .song-like-icon {
    color: #ff6b8a;
}

.song-like-btn.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.song-share-btn:hover {
    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.16),
        rgba(255,255,255,0.07)
    );
}

.song-share-btn:active {
    transform: scale(0.96);
}

.song-share-btn.is-copied {
    color: #fff;

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.08)
    );
}

.song-like-icon,
.song-listen-icon,
.song-share-icon {
    font-size: 14px;
    line-height: 1;
}

.song-like-count,
.song-listen-count,
.song-share-text {
    font-size: 12px;
    line-height: 1;
}

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

@media (max-width: 768px) {

    .songs-page .song-card .song-open-btn,
    .songs-page .song-card.active .song-open-btn,
    .songs-page .song-card:not(.active) .song-open-btn {
        position: static !important;

        order: 5 !important;

        transform: none !important;

        align-self: flex-start !important;

        margin-top: 0 !important;
    }

    .songs-page .song-card .song-stats,
    .songs-page .song-card.active .song-stats,
    .songs-page .song-card:not(.active) .song-stats {
        position: static !important;

        order: 4 !important;

        width: 100% !important;

        display: flex !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;

        gap: 8px !important;

        margin: 0 !important;
    }

    .songs-page .song-card .song-meta,
    .songs-page .song-card.active .song-meta,
    .songs-page .song-card:not(.active) .song-meta {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        width: 100% !important;
        max-width: 100% !important;

        order: 3 !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 8px !important;

        padding: 0 !important;
        margin: 0 !important;
    }

    .song-like-btn,
    .song-listens,
    .song-share-btn {
        height: 32px;

        padding: 0 11px;

        font-size: 11px;
    }

    .song-share-text {
        font-size: 11px;
    }
}
/* =========================================
   FINAL ALIGN — META UNDER LEFT CONTROLS
========================================= */

/* ردیف اول: مشاهده + اشتراک + لایک + شنیده‌شدن */
.songs-page .song-card .song-open-btn,
.songs-page .song-card.active .song-open-btn,
.songs-page .song-card:not(.active) .song-open-btn {
    position: absolute !important;

    left: 22px !important;
    top: 14px !important;
    right: auto !important;
    bottom: auto !important;

    transform: none !important;

    z-index: 90 !important;
}

.songs-page .song-card .song-stats,
.songs-page .song-card.active .song-stats,
.songs-page .song-card:not(.active) .song-stats {
    position: absolute !important;

    left: 112px !important;
    top: 14px !important;
    right: auto !important;
    bottom: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;

    gap: 8px !important;

    transform: none !important;

    z-index: 90 !important;
}

/* ردیف دوم: جزئیات دقیقاً زیر همان دکمه‌ها، سمت چپ */
.songs-page .song-card .song-meta,
.songs-page .song-card.active .song-meta,
.songs-page .song-card:not(.active) .song-meta {
    position: absolute !important;

    left: 22px !important;
    top: 58px !important;
    right: auto !important;
    bottom: auto !important;

    width: auto !important;
    max-width: 620px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;

    gap: 8px !important;

    padding: 0 !important;
    margin: 0 !important;

    transform: none !important;
    transition: none !important;

    z-index: 80 !important;
}
/* =========================================
   ICON STYLE — TARANESORA MINIMAL
========================================= */

.song-like-icon,
.song-listen-icon,
.song-share-icon {
    width: 16px;
    height: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    color: rgba(255,255,255,0.72);

    opacity: 0.9;
}

.song-listen-icon {
    font-size: 15px;
    transform: translateY(-1px);
}

.song-share-icon {
    font-size: 13px;
    transform: translateY(-1px);
}

.song-like-btn.liked .song-like-icon {
    color: #ff6b8a;
    opacity: 1;
}
/* =========================================
   SHARE ICON — PURE CSS, NO EMOJI
========================================= */

.song-share-icon {
    width: 13px;
    height: 13px;

    display: inline-block;

    position: relative;

    flex: 0 0 13px;

    opacity: 0.78;
}

/* خط مورب فلش */
.song-share-icon::before {
    content: '';

    position: absolute;

    width: 10px;
    height: 1.5px;

    background: rgba(255,255,255,0.78);

    left: 1px;
    top: 6px;

    transform: rotate(-45deg);

    border-radius: 999px;
}

/* نوک فلش */
.song-share-icon::after {
    content: '';

    position: absolute;

    width: 6px;
    height: 6px;

    border-top: 1.5px solid rgba(255,255,255,0.78);
    border-right: 1.5px solid rgba(255,255,255,0.78);

    right: 1px;
    top: 1px;

    border-radius: 1px;
}

.song-share-btn:hover .song-share-icon,
.song-share-btn.is-copied .song-share-icon {
    opacity: 1;
}

.song-share-btn:hover .song-share-icon::before,
.song-share-btn.is-copied .song-share-icon::before {
    background: rgba(255,255,255,0.95);
}

.song-share-btn:hover .song-share-icon::after,
.song-share-btn.is-copied .song-share-icon::after {
    border-color: rgba(255,255,255,0.95);
}
/* =========================================
   MOBILE FINAL FIX — PROFESSIONAL CARD FLOW
   موبایل نباید absolute باشد
========================================= */

@media (max-width: 768px) {

    .songs-page .song-card {
        overflow: hidden !important;
    }

    .songs-page .song-card .song-card-header,
    .songs-page .song-card.active .song-card-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        gap: 14px !important;

        padding: 14px !important;

        min-height: auto !important;

        position: relative !important;

        overflow: hidden !important;
    }

    /* کاور همیشه اول و کامل */
    .songs-page .song-card .song-cover-mini,
    .songs-page .song-card.active .song-cover-mini,
    .songs-page .song-card.active > .song-card-header .song-cover-mini {
        order: 1 !important;

        position: relative !important;

        width: 100% !important;
        height: 230px !important;

        min-width: 0 !important;
        max-width: 100% !important;

        border-radius: 24px !important;

        margin: 0 !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        transform: none !important;
    }

    /* عنوان زیر کاور */
    .songs-page .song-card .song-main-info,
    .songs-page .song-card.active .song-main-info,
    .songs-page .song-card.active > .song-card-header .song-main-info {
        order: 2 !important;

        width: 100% !important;
        max-width: 100% !important;

        position: relative !important;

        padding: 0 4px !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        transform: none !important;
    }

    .songs-page .song-card .song-main-info h2 {
        font-size: 28px !important;
        line-height: 1.45 !important;

        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;

        text-align: right !important;
    }

    .songs-page .song-card .song-subtitle {
        text-align: right !important;
    }

    /* ردیف اکشن‌ها: مشاهده، اشتراک، شنیده‌شدن، لایک */
    .songs-page .song-card .song-open-btn,
    .songs-page .song-card.active .song-open-btn,
    .songs-page .song-card:not(.active) .song-open-btn {
        order: 3 !important;

        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        transform: none !important;

        width: fit-content !important;

        align-self: flex-start !important;

        margin: 0 !important;

        z-index: 5 !important;
    }

    .songs-page .song-card .song-stats,
    .songs-page .song-card.active .song-stats,
    .songs-page .song-card:not(.active) .song-stats {
        order: 4 !important;

        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        width: 100% !important;
        max-width: 100% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;

        gap: 8px !important;

        margin: 0 !important;

        transform: none !important;

        z-index: 5 !important;
    }

    /* جزئیات زیر اکشن‌ها، مرتب و دو ستونه */
    .songs-page .song-card .song-meta,
    .songs-page .song-card.active .song-meta,
    .songs-page .song-card:not(.active) .song-meta {
        order: 5 !important;

        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        width: 100% !important;
        max-width: 100% !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 8px !important;

        padding: 0 !important;
        margin: 0 !important;

        transform: none !important;

        z-index: 5 !important;
    }

    .songs-page .song-card .song-meta span {
        width: 100% !important;
        min-width: 0 !important;

        justify-content: center !important;
        text-align: center !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;

        font-size: 11px !important;
        line-height: 1.5 !important;
    }
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 480px) {

    .songs-page .song-card .song-cover-mini,
    .songs-page .song-card.active .song-cover-mini,
    .songs-page .song-card.active > .song-card-header .song-cover-mini {
        height: 215px !important;
    }

    .songs-page .song-card .song-main-info h2 {
        font-size: 25px !important;
    }

    .songs-page .song-card .song-meta {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================
   MOBILE ACTION BAR — CLEAN EQUAL 4 BUTTONS
========================================= */

@media (max-width: 768px) {

    /* کارت موبایل با گرید مرتب */
    .songs-page .song-card .song-card-header,
    .songs-page .song-card.active .song-card-header {
        display: grid !important;

        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

        column-gap: 8px !important;
        row-gap: 14px !important;

        align-items: center !important;

        direction: ltr !important;
    }

    /* کاور */
    .songs-page .song-card .song-cover-mini,
    .songs-page .song-card.active .song-cover-mini,
    .songs-page .song-card.active > .song-card-header .song-cover-mini {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }

    /* عنوان */
    .songs-page .song-card .song-main-info,
    .songs-page .song-card.active .song-main-info,
    .songs-page .song-card.active > .song-card-header .song-main-info {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;

        direction: rtl !important;
    }

    /*
       نکته مهم:
       song-stats خودش حذف ظاهری می‌شود
       تا دکمه‌های داخلش مثل آیتم‌های مستقیم گرید رفتار کنند
    */
    .songs-page .song-card .song-stats,
    .songs-page .song-card.active .song-stats,
    .songs-page .song-card:not(.active) .song-stats {
        display: contents !important;

        position: static !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        width: auto !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;
    }

    /* اشتراک — ستون اول */
    .songs-page .song-card .song-share-btn {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    /* شنیده‌شدن — ستون دوم */
    .songs-page .song-card .song-listens {
        grid-column: 2 !important;
        grid-row: 3 !important;
    }

    /* قلب — ستون سوم */
    .songs-page .song-card .song-like-btn {
        grid-column: 3 !important;
        grid-row: 3 !important;
    }

    /* مشاهده — ستون چهارم */
    .songs-page .song-card .song-open-btn,
    .songs-page .song-card.active .song-open-btn,
    .songs-page .song-card:not(.active) .song-open-btn {
        grid-column: 4 !important;
        grid-row: 3 !important;

        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        transform: none !important;

        width: 100% !important;
        min-width: 0 !important;
        height: 38px !important;

        margin: 0 !important;
        padding: 0 8px !important;

        justify-self: stretch !important;
        align-self: center !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-color: rgba(218,188,133,0.34) !important;

        background:
        linear-gradient(
            180deg,
            rgba(218,188,133,0.16),
            rgba(255,255,255,0.045)
        ) !important;

        box-shadow:
        0 0 18px rgba(218,188,133,0.08),
        inset 0 1px 0 rgba(255,255,255,0.08) !important;

        direction: rtl !important;
    }

    /* همه دکمه‌های ردیف اکشن هم‌قد و هم‌عرض شوند */
    .songs-page .song-card .song-share-btn,
    .songs-page .song-card .song-listens,
    .songs-page .song-card .song-like-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 38px !important;

        padding: 0 8px !important;

        justify-self: stretch !important;
        align-self: center !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 5px !important;

        font-size: 12px !important;

        white-space: nowrap !important;

        overflow: hidden !important;
    }

    .songs-page .song-card .song-share-text,
    .songs-page .song-card .song-like-count,
    .songs-page .song-card .song-listen-count {
        font-size: 12px !important;
        line-height: 1 !important;
    }

    .songs-page .song-card .song-share-icon,
    .songs-page .song-card .song-like-icon,
    .songs-page .song-card .song-listen-icon {
        flex: 0 0 auto !important;
    }

    /* جزئیات زیر ردیف اکشن‌ها */
    .songs-page .song-card .song-meta,
    .songs-page .song-card.active .song-meta,
    .songs-page .song-card:not(.active) .song-meta {
        grid-column: 1 / -1 !important;
        grid-row: 4 !important;

        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        width: 100% !important;
        max-width: 100% !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        gap: 8px !important;

        margin: 0 !important;
        padding: 0 !important;

        direction: rtl !important;

        transform: none !important;
    }
}
.song-open-btn {
    text-decoration: none !important;
}

.song-open-btn:visited {
    color: rgba(255,255,255,0.92) !important;
}
/* =========================================
   MICRO ANIMATION — LIKE HEART
========================================= */

.song-like-btn.liked .song-like-icon {
    animation:
    tsHeartBeat 0.42s ease;
}

@keyframes tsHeartBeat {

    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.35);
    }

    65% {
        transform: scale(0.92);
    }

    100% {
        transform: scale(1);
    }
}