﻿/* فایل CSS اضافی برای استایل‌های frontend */
/* استایل‌های اصلی در template قرار دارند */

/* ============================================
   CSS Variables برای SoundCloud Downloader
   ============================================ */
:root {
    /* Spotify Colors */
    --scd-spotify-green: #FF5500;
    --scd-spotify-green-dark: #FF6A1A;
    
    /* رنگ‌های مشترک */
    --scd-text-color: #2c3e50;
    --scd-text-secondary: #7f8c8d;
    --scd-border-color: #e0e6ed;
    --scd-bg-color: #ffffff;
    --scd-input-bg: #f8f9fa;
    --scd-shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --scd-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --scd-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --scd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* نیم‌بها - سبز */
    --scd-halfprice: #10b981;
    --scd-halfprice-dark: #059669;
    
    /* Telegram - آبی */
    --scd-telegram: #0088cc;
    --scd-telegram-dark: #0077b3;
}

/* ============================================
   Font Face - Yekan_Bakh (فقط برای حروف فارسی)
   ============================================ */
@font-face {
    font-family: 'Yekan_Bakh';
    src: local('Yekan_Bakh'), local('YekanBakh'), local('Yekan Bakh'), local('Yekan');
    font-display: swap;
    unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}

/* ============================================
   Font Face برای اعداد انگلیسی (0-9)
   ============================================ */
@font-face {
    font-family: 'Yekan_Bakh_Numbers';
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    font-display: swap;
    unicode-range: U+0030-0039;
}

@font-face {
    font-family: 'EnglishNumbers';
    src: local('Arial'), local('Helvetica'), local('Roboto'), local('sans-serif');
    font-display: swap;
    unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}

/* اعمال فونت به کل افزونه */
.scd-downloader-container {
    font-family: 'EnglishNumbers', 'Yekan_Bakh', Arial, Helvetica, Tahoma, sans-serif !important;
    font-variant-numeric: lining-nums !important;
    font-feature-settings: 'ss01' off, 'ss02' off, 'ss03' off !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* اجبار اعداد انگلیسی در تمام المان‌ها */
.scd-downloader-container * {
    font-family: 'EnglishNumbers', 'Yekan_Bakh', Arial, Helvetica, Tahoma, sans-serif !important;
    font-variant-numeric: lining-nums !important;
    font-feature-settings: 'ss01' off, 'ss02' off, 'ss03' off !important;
}

/* اجبار استفاده از Arial برای اعداد در همه جا */
.scd-downloader-container h1, 
.scd-downloader-container h2, 
.scd-downloader-container h3, 
.scd-downloader-container h4, 
.scd-downloader-container p, 
.scd-downloader-container span, 
.scd-downloader-container div,
.scd-downloader-container button,
.scd-downloader-container a,
.scd-downloader-container input {
    font-family: 'EnglishNumbers', 'Yekan_Bakh', Arial, Helvetica, sans-serif !important;
}

.scd-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: scd-spin 0.8s linear infinite;
}

@keyframes scd-spin {
    to { transform: rotate(360deg); }
}

.scd-fade-in {
    animation: scd-fade-in 0.3s ease-in;
}

@keyframes scd-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scd-pulse {
    animation: scd-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scd-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========================================
   پخش کننده اختصاصی آنلاین
======================================== */

/* Audio Player Wrapper - بدون کادر مجزا */
.scd-audio-player-wrapper {
    width: 100%;
    margin-top: 10px;
    padding: 0;
}

/* دکمه‌های کنترل - RTL Layout */
.scd-player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl; /* راست به چپ */
}

/* دکمه Play/Pause - دایره سبز با آیکون سفید */
.scd-play-pause-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #FF5500;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    padding: 0;
    order: 4; /* دکمه در سمت چپ (آخرین المان در RTL) */
    box-shadow: 0 2px 4px rgba(255, 85, 0, 0.3);
}

.scd-play-pause-btn:hover {
    transform: scale(1.1);
    background: #FF6A1A;
    box-shadow: 0 3px 8px rgba(255, 85, 0, 0.4);
}

.scd-play-pause-btn:active {
    transform: scale(1.05);
}

.scd-play-pause-btn svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
    color: #ffffff;
    transition: all 0.2s ease;
}

/* Loading Spinner */
.scd-play-pause-btn.loading {
    pointer-events: none;
}

/* مخفی کردن تمام آیکون‌ها موقع loading */
.scd-play-pause-btn.loading .scd-play-icon,
.scd-play-pause-btn.loading .scd-pause-icon {
    display: none !important;
}

.scd-play-pause-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: scd-spin 0.6s linear infinite;
}

/* نمایش/مخفی کردن آیکون‌ها در حالت عادی */
.scd-play-pause-btn .scd-pause-icon {
    display: none;
}

.scd-play-pause-btn.playing .scd-play-icon {
    display: none;
}

.scd-play-pause-btn.playing .scd-pause-icon {
    display: block;
}

/* زمان پخش */
.scd-current-time,
.scd-total-time {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    min-width: 38px;
    text-align: center;
}

.scd-current-time {
    order: 3; /* وسط - کنار دکمه */
}

.scd-total-time {
    order: 1; /* سمت راست */
}

/* Progress Bar Container */
.scd-progress-container {
    flex: 1;
    min-width: 0;
    order: 2; /* وسط - بین دو زمان */
}

.scd-progress-bar {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.2s ease;
    direction: ltr; /* نوار پیشرفت از چپ به راست */
}

.scd-progress-bar:hover {
    height: 7px;
}

.scd-progress-fill {
    height: 100%;
    background: #FF5500;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
    position: relative;
}

.scd-progress-fill::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #FF5500;
    border: 2px solid #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.scd-progress-bar:hover .scd-progress-fill::after {
    opacity: 1;
}

/* انیمیشن برای در حال پخش */
@keyframes scd-playing-pulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.03);
    }
}

.scd-track-item.playing .scd-track-thumbnail {
    animation: scd-playing-pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.25);
}

/* Highlight برای آهنگ در حال پخش */
.scd-track-item.playing {
    background: linear-gradient(to left, #fff7ed 0%, #ffffff 100%);
    border-color: #FF5500;
}

/* Responsive */
@media (max-width: 640px) {
    .scd-play-pause-btn {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }
    
    .scd-play-pause-btn svg {
        width: 13px;
        height: 13px;
    }
    
    .scd-play-pause-btn.loading::after {
        width: 14px;
        height: 14px;
    }
    
    .scd-current-time,
    .scd-total-time {
        font-size: 11px;
        min-width: 35px;
    }
    
    .scd-progress-bar {
        height: 4px;
    }
    
    .scd-progress-bar:hover {
        height: 6px;
    }
}

/* ============================================
   Header یکپارچه (مشابه YouTube)
   ============================================ */
.scd-unified-header {
    text-align: center;
    padding: 40px 20px 32px;
    position: relative;
    margin-bottom: 7px;
    background: transparent;
}

.scd-header-bg {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}

.scd-header-bg img {
    width: 450px;
    height: auto;
    display: block;
}

.scd-header-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.scd-header-logo picture {
    display: inline-block;
}

.scd-header-logo img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.12));
    transition: var(--scd-transition);
}

.scd-header-logo img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.18));
}

.scd-header-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--scd-text-color);
    margin: 24px 0 12px;
    padding: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.scd-header-desc {
    font-size: 16px;
    color: var(--scd-text-secondary);
    margin: 12px 0 0;
    padding: 0;
    line-height: 1.5;
}

/* ============================================
   Form یکپارچه (مشابه YouTube)
   ============================================ */
.scd-unified-form {
    background: var(--scd-bg-color);
    border: 1px solid var(--scd-border-color);
    border-radius: 12px;
    padding: 20px 15px 15px 15px;
    box-shadow: var(--scd-shadow-md);
    transition: var(--scd-transition);
    margin-bottom: 20px;
}

.scd-unified-form:hover {
    box-shadow: var(--scd-shadow-lg);
}

.scd-unified-form .scd-form-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.scd-unified-form .scd-input {
    background: var(--scd-input-bg);
    border: 2px solid var(--scd-border-color);
    border-radius: 6px !important;
    height: 52px;
    padding: 14px 18px;
    font-size: 15px;
    width: 65%;
    margin: 0 auto;
    direction: ltr;
    text-align: left !important;
    transition: var(--scd-transition);
}

.scd-unified-form .scd-input::placeholder {
    color: #a0a0a0;  /* ✅ طوسی روشن به جای طوسی تیره */
    opacity: 1;
}

.scd-unified-form .scd-input:focus {
    border-color: var(--scd-spotify-green);
    background: var(--scd-input-bg);
    box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.scd-unified-form .scd-input:hover:not(:focus) {
    border-color: #c8cdd5;
}

.scd-unified-form .scd-btn-download {
    position: relative;
    width: 65%;
    height: 52px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--scd-spotify-green) 0%, var(--scd-spotify-green-dark) 100%);
    box-shadow: var(--scd-shadow-sm);
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: var(--scd-transition);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto;
}

.scd-unified-form .scd-btn-download:hover:not(.loading) {
    background: linear-gradient(135deg, #FF6A1A 0%, #E64A00 100%);
    box-shadow: var(--scd-shadow-lg);
    transform: translateY(-2px);
}

.scd-unified-form .scd-download-text {
    display: inline-block;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.scd-unified-form .scd-btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scd-loading-spinner {
    width: 20px;
    height: 20px;
    display: none;
}

.scd-loading-spinner circle {
    stroke: white;
    stroke-linecap: round;
    animation: scd-dash 1.5s ease-in-out infinite;
}

@keyframes scd-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.scd-unified-form .scd-btn-download.loading {
    cursor: not-allowed !important;
    background: #95a5a6 !important;
}

.scd-unified-form .scd-btn-download.loading .scd-loading-spinner {
    display: block;
    animation: scd-rotate 2s linear infinite;
}

@keyframes scd-rotate {
    100% {
        transform: rotate(360deg);
    }
}

.scd-unified-text {
    text-align: center;
    font-size: 13px;
    color: var(--scd-text-secondary);
    margin: 8px 0 0;
    padding: 0;
}

/* Half Price Traffic Badge */
.scd-half-price-badge {
    background: linear-gradient(135deg, var(--scd-halfprice) 0%, var(--scd-halfprice-dark) 100%);
    border-radius: 10px;
    padding: 0;
    margin: 7px auto 0 auto;
    box-shadow: var(--scd-shadow-sm);
    transition: var(--scd-transition);
    border: 1px solid rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 65%;
}

.scd-half-price-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: scd-shine 3s infinite;
}

@keyframes scd-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.scd-half-price-badge:hover {
    box-shadow: var(--scd-shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.5);
}

.scd-half-price-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
}

.scd-half-price-text {
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Yekan Bakh', Tahoma, Arial, sans-serif;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Telegram Banner */
.scd-telegram-banner {
    background: linear-gradient(135deg, var(--scd-telegram) 0%, var(--scd-telegram-dark) 100%);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--scd-shadow-sm);
    transition: var(--scd-transition);
}

.scd-telegram-banner:hover {
    box-shadow: var(--scd-shadow-md);
    transform: translateY(-2px);
}

.scd-telegram-banner a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-decoration: none;
    color: white;
    transition: var(--scd-transition);
}

.scd-telegram-banner a:hover {
    transform: translateX(5px);
}

.scd-telegram-content {
    flex: 1;
}

.scd-telegram-content h6 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
    padding: 0;
    color: white;
    font-family: 'Yekan Bakh', Tahoma, Arial, sans-serif;
    line-height: 1.5;
}

.scd-telegram-content span {
    font-size: 13px;
    color: rgba(255,255,255,0.92);
    display: block;
    font-family: 'Yekan Bakh', Tahoma, Arial, sans-serif;
}

.scd-telegram-banner img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============================================
   📢 نوتیس 50 آهنگ + بنر تلگرام در Results
   ============================================ */

/* نوتیس اطلاع‌رسانی */
.scd-50-tracks-notice {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #f97316;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 30px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.scd-50-tracks-notice.scd-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.scd-notice-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.scd-notice-text {
    flex: 1;
    font-size: 14px;
    color: #7c2d12;
    line-height: 1.6;
    font-family: 'Yekan Bakh', Tahoma, Arial, sans-serif;
}

.scd-notice-text a {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.scd-notice-text a:hover {
    color: #c2410c;
    text-decoration: underline;
}

/* بنر تلگرام در Results */
.scd-results-telegram-banner {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s; /* تاخیر 0.2s برای انیمیشن تدریجی */
}

.scd-results-telegram-banner.scd-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* انیمیشن pulse برای نوتیس */
@keyframes scd-notice-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(249, 115, 22, 0);
    }
}

.scd-50-tracks-notice.scd-fade-in {
    animation: scd-notice-pulse 2s ease-out;
}

/* Responsive */
@media (max-width: 640px) {
    .scd-50-tracks-notice {
        padding: 14px 16px;
        gap: 12px;
        margin: 20px 0 15px 0;
    }
    
    .scd-notice-icon {
        font-size: 24px;
    }
    
    .scd-notice-text {
        font-size: 13px;
    }
    
    .scd-results-telegram-banner {
        margin: 15px 0;
    }
}

/* Responsive برای Header و Form جدید */

/* ✅ Desktop بزرگ (>1200px) - کادر باریک‌تر */
@media (min-width: 1201px) {
    .scd-unified-form .scd-input {
        width: 130%;  /* ✅ فقط input 2 برابر در Desktop بزرگ */
    }
    
    .scd-unified-form .scd-btn-download,
    .scd-half-price-badge {
        width: 100%;
    }
}

/* ✅ Desktop متوسط (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
    .scd-unified-form .scd-input,
    .scd-unified-form .scd-btn-download,
    .scd-half-price-badge {
        width: 65%;
    }
}

/* ✅ Tablet بزرگ (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .scd-unified-form .scd-input,
    .scd-unified-form .scd-btn-download,
    .scd-half-price-badge {
        width: 75%;
    }
}

/* ✅ Tablet (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .scd-unified-form .scd-input,
    .scd-unified-form .scd-btn-download,
    .scd-half-price-badge {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .scd-unified-header {
        padding: 32px 16px 24px;
    }
    
    .scd-header-bg img {
        width: 350px;
    }
    
    .scd-header-logo img {
        width: 90px;
        height: 90px;
    }
    
    .scd-header-title {
        font-size: 28px;
    }
    
    .scd-header-desc {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .scd-unified-header {
        padding: 24px 12px 20px;
    }
    
    .scd-header-bg img {
        width: 280px;
    }
    
    .scd-header-logo img {
        width: 80px;
        height: 80px;
    }
    
    .scd-header-title {
        font-size: 24px;
    }
    
    .scd-header-desc {
        font-size: 13px;
    }
    
    .scd-unified-form .scd-input,
    .scd-half-price-badge {
        width: 100%;
    }
    
    .scd-unified-form .scd-btn-download {
        width: 70%;  /* ✅ 30% کاهش از 100% به 70% */
    }
    
    .scd-half-price-badge {
        height: 28px;
        gap: 6px;
    }
    
    .scd-half-price-icon {
        font-size: 14px;
    }
    
    .scd-half-price-text {
        font-size: 12px;
    }
}

/* ============================================
   🎯 FIX: جلوگیری از تغییر رنگ دکمه Play
   ============================================ */

/* Override تمام state های button */
.scd-play-pause-btn:focus,
.scd-play-pause-btn:focus-visible,
.scd-play-pause-btn:focus-within,
.scd-play-pause-btn:active,
.scd-play-pause-btn:visited,
.scd-play-pause-btn.playing:focus,
.scd-play-pause-btn.loading:focus {
    background: #FF5500 !important;
    background-color: #FF5500 !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
}

/* Hover state */
.scd-play-pause-btn:hover:not(.loading) {
    background: #FF6A1A !important;
    background-color: #FF6A1A !important;
}

/* حذف outline و highlight */
.scd-play-pause-btn,
.scd-play-pause-btn *,
.scd-play-pause-btn:before,
.scd-play-pause-btn:after {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
}

/* اطمینان از سفید بودن آیکون‌ها */
.scd-play-pause-btn svg,
.scd-play-pause-btn svg path,
.scd-play-pause-btn:hover svg,
.scd-play-pause-btn:focus svg,
.scd-play-pause-btn:active svg,
.scd-play-pause-btn.playing svg,
.scd-play-pause-btn.loading svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* بازگرداندن box-shadow برای دکمه */
.scd-play-pause-btn {
    box-shadow: 0 2px 4px rgba(255, 85, 0, 0.3) !important;
}

.scd-play-pause-btn:hover:not(.loading) {
    box-shadow: 0 3px 8px rgba(255, 85, 0, 0.4) !important;
}

/* Override با specificity بالا برای تم‌های وردپرس */
body .scd-downloader-container .scd-play-pause-btn,
body .scd-downloader-container .scd-play-pause-btn:hover,
body .scd-downloader-container .scd-play-pause-btn:focus,
body .scd-downloader-container .scd-play-pause-btn:active {
    background: #FF5500 !important;
    border: none !important;
    color: #ffffff !important;
}

body .scd-downloader-container .scd-play-pause-btn:hover:not(.loading) {
    background: #FF6A1A !important;
}

/* جلوگیری از تداخل با a:visited و سایر استایل‌های تم */
.scd-downloader-container button.scd-play-pause-btn:visited,
.scd-downloader-container button.scd-play-pause-btn:link,
.scd-downloader-container button.scd-play-pause-btn:-webkit-any-link {
    background: #FF5500 !important;
    color: #ffffff !important;
}

/* ============================================
   🔢 شماره‌گذاری ساده در title
   ============================================ */

.scd-track-number {
    font-family: 'EnglishNumbers', Arial, sans-serif !important;
    color: #999;
    font-weight: 600;
    margin-left: 4px;
}

.scd-track-item.playing .scd-track-number {
    color: #FF5500;
}

/* ============================================
   ⏳ Skeleton Loading UI - نسخه بهبود یافته
   ============================================ */

/* Skeleton Track */
.scd-track-item.scd-skeleton {
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* Skeleton Track Header - RTL برای چیدمان صحیح */
.scd-skeleton .scd-track-header {
    direction: rtl;  /* ✅ راست به چپ برای order */
}

/* Skeleton Title - مستطیل کوتاه در جای title */
.scd-skeleton-title {
    display: inline-block;
    width: 180px;
    height: 20px;
    background: linear-gradient(270deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%); /* ✅ 270deg = چپ به راست */
    background-size: 200% 100%;
    animation: scd-skeleton-shimmer-ltr 1.5s ease-in-out infinite;
    border-radius: 4px;
    vertical-align: middle;
}

/* Skeleton thumbnail - مربع در سمت چپ */
.scd-skeleton-thumbnail {
    width: 60px;
    height: 60px;
    background: linear-gradient(270deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: scd-skeleton-shimmer-ltr 1.5s ease-in-out infinite;
    border-radius: 6px;
    flex-shrink: 0;
    order: 3;  /* ✅ در سمت چپ - مثل کاور واقعی */
}

/* Skeleton Actions Container */
.scd-skeleton .scd-track-actions {
    order: 1;  /* ✅ در سمت راست */
}

/* Skeleton Button - هم‌اندازه دکمه واقعی */
.scd-skeleton-btn {
    display: inline-block;
    width: 75px;
    height: 40px;  /* ✅ هم‌اندازه دکمه واقعی */
    background: linear-gradient(270deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: scd-skeleton-shimmer-ltr 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Skeleton Track Info Container */
.scd-skeleton .scd-track-info {
    order: 2;  /* ✅ در وسط - مثل info واقعی */
}

/* Skeleton Info Lines - کوتاه و زیر title */
.scd-skeleton-info-short {
    height: 12px;
    width: 120px;
    background: linear-gradient(270deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: scd-skeleton-shimmer-ltr 1.5s ease-in-out infinite;
    border-radius: 3px;
    margin: 4px 0;
}

.scd-skeleton-info-shorter {
    height: 12px;
    width: 90px;
    background: linear-gradient(270deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: scd-skeleton-shimmer-ltr 1.5s ease-in-out infinite;
    border-radius: 3px;
    margin: 4px 0;
}

/* Skeleton Player - مستطیل بزرگ زیر همه چیز */
.scd-skeleton-player {
    width: 100%;
    height: 28px;
    background: linear-gradient(270deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: scd-skeleton-shimmer-ltr 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-top: 10px;
}

/* ✅ انیمیشن Shimmer از چپ به راست (LTR) */
@keyframes scd-skeleton-shimmer-ltr {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* انیمیشن Loaded */
.scd-track-loaded {
    animation: scd-track-fade-in 0.4s ease-out;
}

@keyframes scd-track-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ❌ Track Error - ساده (فقط عدد + not found!)
   ============================================ */

.scd-track-item.scd-track-error {
    display: block;
    padding: 15px;
    border: 2px solid #fca5a5; /* قرمز روشن */
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    background: #fef2f2; /* قرمز خیلی روشن */
}

.scd-track-item.scd-track-error:hover {
    border-color: #f87171;
    background: #fee2e2;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

/* عنوان error - ساده */
.scd-error-title {
    font-size: 18px;
    font-weight: 600;
    color: #dc2626 !important; /* قرمز */
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: left;
}

/* شماره آهنگ در error - قرمز */
.scd-track-error .scd-track-number {
    color: #dc2626;
}

/* Responsive Error */
@media (max-width: 640px) {
    .scd-error-title {
        font-size: 16px;
    }
}

/* Responsive Skeleton */
@media (max-width: 640px) {
    .scd-skeleton-title {
        width: 140px;
        height: 18px;
    }
    
    .scd-skeleton-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .scd-skeleton-btn {
        width: 65px;
        height: 35px;  /* ✅ کمی کوچک‌تر برای موبایل */
    }
    
    .scd-skeleton-info-short {
        width: 100px;
        height: 11px;
    }
    
    .scd-skeleton-info-shorter {
        width: 75px;
        height: 11px;
    }
    
    .scd-skeleton-player {
        height: 24px;
    }
}






