/* Modern Typography & Complete LTR Grid Alignment for Musicfa English Mode */
html[dir="ltr"],
html[dir="ltr"] body {
    direction: ltr !important;
    text-align: left !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* اعمال فونت مدرن انگلیسی روی تمام المان‌ها بدون تداخل با آیکون‌ها */
html[dir="ltr"] body *:not(.icon):not([class*="fa-"]):not(.fas):not(.far):not(.fab) {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] .extended-title h1,
html[dir="ltr"] .container-fluid .title h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: -0.02em !important;
}

/* چپ‌به‌راست کردن کامل تمام ردیف‌ها، گریدها، کارت‌ها و تیتر بخش‌ها */
html[dir="ltr"] #app,
html[dir="ltr"] #wrapper,
html[dir="ltr"] .inner,
html[dir="ltr"] .container,
html[dir="ltr"] .container-fluid,
html[dir="ltr"] .row,
html[dir="ltr"] .title,
html[dir="ltr"] .releases,
html[dir="ltr"] .features,
html[dir="ltr"] .albums,
html[dir="ltr"] .podcasts,
html[dir="ltr"] .playlists,
html[dir="ltr"] .videos,
html[dir="ltr"] .artists,
html[dir="ltr"] .card,
html[dir="ltr"] .card-img-overlay,
html[dir="ltr"] .item,
html[dir="ltr"] .item .content,
html[dir="ltr"] .item .content .information {
    direction: ltr !important;
}

/* چپ‌چین کردن واقعی تمام متون، تیترها و پاراگراف‌ها */
html[dir="ltr"] p,
html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] li,
html[dir="ltr"] label,
html[dir="ltr"] th,
html[dir="ltr"] td,
html[dir="ltr"] .content,
html[dir="ltr"] .extended-title,
html[dir="ltr"] .song-description .details,
html[dir="ltr"] .item .content .information,
html[dir="ltr"] .item .content .information h5,
html[dir="ltr"] .item .content .information .artist,
html[dir="ltr"] .list .item .description,
html[dir="ltr"] .footer {
    direction: ltr !important;
    text-align: left !important;
}

html[dir="ltr"] .item.artist,
html[dir="ltr"] .item.artist h3,
html[dir="ltr"] .legal-links-bar {
    text-align: center !important;
}

html[dir="ltr"] .navbar .search input.form-control {
    text-align: left !important;
    direction: ltr !important;
}

/* ترتیب استاندارد دکمه‌های پلیر از چپ به راست */
html[dir="ltr"] .player .caption .seek {
    direction: ltr !important;
}
html[dir="ltr"] .player .caption .controls {
    direction: ltr !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
html[dir="ltr"] .player .caption .controls .item.mute { order: 1 !important; }
html[dir="ltr"] .player .caption .controls .item.previous { order: 2 !important; }
html[dir="ltr"] .player .caption .controls .item.play,
html[dir="ltr"] .player .caption .controls .item.pause { order: 3 !important; }
html[dir="ltr"] .player .caption .controls .item.next { order: 4 !important; }
html[dir="ltr"] .player .caption .controls .item.shuffle { order: 5 !important; }
html[dir="ltr"] .player .caption .controls .item.repeat { order: 6 !important; }

/* تراز عنوان آهنگ (سمت چپ) و آیکون‌های لایک/بوکمارک/پلی‌لیست (سمت راست) */
html[dir="ltr"] .song-description,
html[dir="ltr"] .video-description,
html[dir="ltr"] .podcast-description {
    direction: ltr !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
}
html[dir="ltr"] .song-description .details,
html[dir="ltr"] .video-description .details,
html[dir="ltr"] .podcast-description .details {
    order: 1 !important;
    text-align: left !important;
    flex: 1 !important;
    min-width: 0 !important;
}
html[dir="ltr"] .song-description .details h1,
html[dir="ltr"] .song-description .details h1 a,
html[dir="ltr"] .song-description .details h1 span {
    text-align: left !important;
    direction: ltr !important;
}
html[dir="ltr"] .song-description .actions,
html[dir="ltr"] .video-description .actions,
html[dir="ltr"] .podcast-description .actions {
    order: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* ترتیب و تراز افقی دکمه‌های دانلود تلگرام و اشتراک‌گذاری */
html[dir="ltr"] .downloads {
    direction: ltr !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
}
html[dir="ltr"] .downloads .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 46px !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}
html[dir="ltr"] .downloads .btn:nth-child(1) { order: 1 !important; }
html[dir="ltr"] .downloads .btn:nth-child(2) { order: 2 !important; }
html[dir="ltr"] .downloads .btn.share { order: 3 !important; }
html[dir="ltr"] .downloads .btn .icon {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* چیدمان چپ به راست ردیف آهنگ‌های مرتبط */
html[dir="ltr"] .list .item,
html[dir="ltr"] .list .item .information {
    direction: ltr !important;
    display: flex !important;
    align-items: center !important;
}
html[dir="ltr"] .list .item .thumbnail {
    margin-right: 12px !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
}
html[dir="ltr"] .list .item .actions {
    direction: ltr !important;
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
}

/* سایدبارها در حالت انگلیسی */
html[dir="ltr"] #rightBar {
    left: 0 !important;
    right: auto !important;
    text-align: left !important;
}
html[dir="ltr"] #leftBar {
    right: 0 !important;
    left: auto !important;
    text-align: left !important;
}
html[dir="ltr"] #rightBar .nav-link,
html[dir="ltr"] #leftBar .nav-link,
html[dir="ltr"] .drawer-header {
    text-align: left !important;
}

.legal-links-bar a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12.5px;
    margin: 0 8px;
    display: inline-block;
}
.legal-links-bar a:hover {
    color: #fff;
    text-decoration: underline;
}
