/* تنسيق مشغل الفيديو في المنتجات */
.video-thumbnail-container {
    transition: all 0.3s ease;
}

.video-thumbnail-container:hover {
    transform: scale(1.02);
}

/* تنسيق الفيديو العمودي للجوال في theme_aster */
@media (max-width: 768px) {
    .product-video-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 5px !important; /* تقليل padding */
        width: 100% !important;
    }
    
    .product-video-iframe {
        width: 100% !important;
        max-width: 350px !important; /* عرض أكبر */
        height: 550px !important; /* ارتفاع أكبر */
        aspect-ratio: 9/16 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
        border: 3px solid #f8f9fa !important;
    }
}

@media (max-width: 576px) {
    .product-video-iframe {
        max-width: 300px !important; /* عرض أكبر */
        height: 480px !important; /* ارتفاع أكبر */
        border-radius: 10px !important;
    }
    
    .product-video-container {
        padding: 3px !important; /* تقليل padding */
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .product-video-iframe {
        max-width: 280px !important; /* عرض أكبر */
        height: 420px !important; /* ارتفاع أكبر */
    }
    
    .product-video-container {
        padding: 2px !important; /* تقليل padding أكثر */
        width: 100% !important;
    }
}

.video-play-overlay {
    transition: all 0.3s ease;
}

.play-button-circle {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-button-circle:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.video-player-container {
    background: #000;
    border-radius: 8px;
}

.video-player-container .btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-player-container .btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* تأثيرات إضافية للفيديو */
.video-wrapper iframe,
.video-wrapper video {
    transition: all 0.3s ease;
}

/* تحسين مظهر شارة الفيديو */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    background: rgba(220, 53, 69, 0.9) !important;
}

/* تأثير النبض لزر التشغيل */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.play-button-circle {
    animation: pulse 2s infinite;
}

.video-thumbnail-container:hover .play-button-circle {
    animation: none;
}



/* تحسين الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .play-button-circle {
        width: 50px;
        height: 50px;
    }
    
    .play-button-circle i {
        font-size: 16px;
    }
    
    .video-player-container .btn {
        width: 30px;
        height: 30px;
    }
}