/* ✅ تحسين تصميم المشغل بالكامل */
.ai-audioigniter {
    background: linear-gradient(135deg, #fdf6e3, #f5e3c1); /* درجات البيج */
    padding: 2px;
    border-radius: 10px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1); /* ظل خفيف يعطي عمق */
    border: 1px solid #e0c9a0; /* إطار أنيق */
    text-align: center;
    max-width: 90%; /* تحديد عرض الصندوق */
    margin: auto; /* توسيطه في الصفحة */
    transition: all 0.3s ease-in-out; /* تأثير ناعم عند التمرير */
    font-family: 'Cairo', sans-serif;
}

/* ✅ إزالة الغلاف ليكون التصميم أنيقًا */
.ai-thumb {
    display: none !important;
}

/* ✅ ضبط العنوان ليكون في المنتصف */
.ai-track-title {
    font-size: 16px;
    font-weight: bold;
    color: #5d4037;
    text-align: center;
    margin-bottom: 5px;
    white-space: normal;
    word-wrap: break-word;
    font-family: 'Cairo', sans-serif;

}

/* ✅ تحسين شريط التحكم بالصوت */
.ai-control-wrap {
    background: #e0c9a0;
    border-radius: 5px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
     font-family: 'Cairo', sans-serif;

}

/* ✅ تحسين تصميم قائمة التشغيل */
.ai-tracklist-wrap {
    max-height: 300px;
    overflow-y: auto;
    background: transparent;
    border-radius: 5px;
}

/* ✅ إزالة البوكسات غير الضرورية وجعل الخلفية شفافة */
.ai-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #d7ccc8;
    background: transparent;
    border-radius: 5px;
    transition: 0.3s;
        font-family: 'Cairo', sans-serif;

}

.ai-track:hover {
    background: rgba(210, 180, 140, 0.3);
}

/* ✅ تحسين تصميم الأزرار */
.ai-control-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ai-copy-btn, .ai-download-btn, .ai-share-btn {
    background: rgba(90, 50, 30, 0.8);
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
        font-family: 'Cairo', sans-serif;

}

.ai-copy-btn i, .ai-download-btn i, .ai-share-btn i {
    color: white;
    font-size: 16px;
}

.ai-copy-btn:hover, .ai-download-btn:hover, .ai-share-btn:hover {
    background: rgba(90, 50, 30, 1);
}

/* ✅ إزالة الخلفية من ai-wrap */
.ai-wrap {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 5px !important;
}

/* ✅ تحسين العنوان ليظهر في الهاتف */
.ai-wrap .ai-track-name {
    display: block;
    text-align: center;
    font-size: 14px; /* حجم الخط */
    font-weight: bold;
    color: #5d4037;
    white-space: nowrap; /* يمنع النص من الانتقال إلى سطر جديد */
    overflow: hidden; /* يخفي النص الزائد */
    text-overflow: ellipsis; /* يضيف ... عند تجاوز النص */
    max-width: 90%; /* يضمن تناسب العرض */
}





/* ✅ إخفاء جميع الصور داخل المشغل */
.ai-wrap img,
.ai-track-thumb img {
    display: none !important;
}




.ai-audioigniter {
    background: #fff; /* لون خلفية فاتح */
    padding: 1px;
    border-radius: 12px; /* زوايا مستديرة */
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1); /* ظل خفيف يعطي عمق */
    border: 1px solid #e0c9a0; /* إطار أنيق */
    text-align: center;
    max-width: 90%; /* تحديد عرض الصندوق */
    margin: auto; /* توسيطه في الصفحة */
    transition: all 0.3s ease-in-out; /* تأثير ناعم عند التمرير */
        font-family: 'Cairo', sans-serif;

}

/* تأثير عند تمرير الماوس */
.ai-audioigniter:hover {
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px); /* رفع الصندوق قليلاً عند التمرير */
        font-family: 'Cairo', sans-serif;

}




.ai-track-thumb {
    display: none !important;
}




.ai-track-control-buttons {
    display: none !important;
}





.ai-wrap .ai-track:hover,
.ai-wrap .ai-track.ai-track-active {
    background-color: #fff0e4 !important;
    color: #361212 !important; /* يمكنك تعديل اللون حسب الحاجة */
}


.ai-wrap .ai-track {
    background-color: transparent !important; /* إزالة الخلفية */
}





@keyframes colorShift {
    0% { background: #fdf6e3; }  /* بيج فاتح */
    25% { background:rgb(255, 234, 234); } /* بيج متوسط */
    50% { background:rgb(255, 241, 204); } /* بيج داكن خفيف */
    75% { background:rgb(255, 252, 240); } /* بيج داكن أكثر */
    100% { background:rgb(255, 248, 217); } /* العودة إلى البيج الفاتح */
}

.ai-control-wrap {
    animation: colorShift 10s infinite alternate ease-in-out;
    border-radius: 5px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

























@media (max-width: 768px) {
    .ai-wrap .ai-track-name {
        display: block;
        text-align: center;
        font-size: 12px; /* تصغير الخط على الهاتف */
        font-weight: bold;
        color: #5d4037;
        padding: 5px 0;
        white-space: nowrap; /* منع الانتقال إلى سطر جديد */
        overflow: hidden;
        text-overflow: ellipsis; /* إظهار ... عند تجاوز الحد */
        max-width: 100%; /* التأكد من أن العنصر لا يخرج عن الشاشة */
            font-family: 'Cairo', sans-serif;

    }
}
























.ai-wrap .ai-track-title span {
    font-size: 2vw; /* حجم متناسب مع الشاشة */
    font-weight: bold;
    transition: opacity 1.5s ease;
}

/* تحسين الحجم للأجهزة الصغيرة */
@media (max-width: 768px) {
    .ai-wrap .ai-track-title span {
        font-size: 12px; /* حجم مناسب للجوال */
    }
}

/* تحسين الحجم للأجهزة الكبيرة */
@media (min-width: 1200px) {
    .ai-wrap .ai-track-title span {
        font-size: 12px; /* حجم أكبر للشاشات الكبيرة */
    }
}








.ai-track-subtitle::before {
    content: "✍🏻️ "; /* إضافة أيقونة اليد */
    font-size: 1.6em; /* تكبير حجم الرمز */
    color: #5d4037; /* لون اليد */
}

.ai-track-subtitle {
    font-size: 1.5vw; /* حجم متكيف مع الشاشة */
    font-weight: bold;
    color: #5d4037;
    text-align: center;
    transition: opacity 1.5s ease;
}

/* تحسين الحجم للأجهزة الصغيرة */
@media (max-width: 768px) {
    .ai-track-subtitle {
        font-size: 18px;
    }
}

/* تحسين الحجم للأجهزة الكبيرة */
@media (min-width: 1200px) {
    .ai-track-subtitle {
        font-size: 12px;
    }
}











/* ✅ تحسين عرض رسالة "تم النسخ ✅" فوق الزر مباشرة */
.ai-toast {
    background: rgba(0, 0, 0, 0.8); /* لون خلفية غامق */
    color: white; /* لون النص */
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px; /* تصغير الخط */
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* منع التفاعل مع الرسالة */
}


























.ai-count-btn, .ai-download-all-btn {
    background: rgba(90, 50, 30, 0.8);
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
    margin-left: 5px;
}

.ai-count-btn:hover, .ai-download-all-btn:hover {
    background: rgba(90, 50, 30, 1);
}
