/* استایل‌های اصلی کاروسل وندادکست */
.vandadcast-carousel-wrapper-elementor {
    position: relative;
    width: 100%;
    padding: 20px 0;
    direction: rtl;
}

.vandadcast-carousel-container {
    position: relative;
    margin: 0 45px;
    overflow: hidden;
}

.vandadcast-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.vandadcast-carousel-item {
    flex: 0 0 auto;
    width: calc((100% - 40px) / 3);
}

/* استایل کارت‌ها */
.vandadcast-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vandadcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* بخش تصویر */
.card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image a {
    display: block;
    height: 100%;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vandadcast-card:hover .card-img {
    transform: scale(1.05);
}

/* پلیس اوورلی */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image:hover .play-overlay {
    opacity: 1;
}

.play-overlay svg {
    width: 50px;
    height: 50px;
    color: white;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* جایگزین تصویر */
.card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-placeholder svg {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.5);
}

/* محتوای کارت */
.card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* نشانگر سری */
.series-badge {
    margin-bottom: 12px;
}

.series-badge a {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.series-badge a:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* نشانگر اپیزود */
.episode-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.season-number {
    opacity: 0.8;
    font-weight: normal;
}

/* عنوان */
.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.card-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #7c3aed;
}

/* توضیحات */
.card-excerpt {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

/* فوتر کارت */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
}

.duration-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.duration-info svg {
    width: 14px;
    height: 14px;
}

/* دکمه لینک */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.card-link:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.card-link svg {
    width: 14px;
    height: 14px;
}

/* دکمه‌های ناوبری */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: #7c3aed;
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav:hover svg {
    color: white;
}

.carousel-nav.prev {
    right: -20px;
}

.carousel-nav.next {
    left: -20px;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
    color: #4b5563;
    transition: color 0.2s ease;
}

.carousel-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-nav.disabled:hover {
    background: white;
    transform: translateY(-50%);
}

.carousel-nav.disabled:hover svg {
    color: #4b5563;
}

/* دات‌های ناوبری */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #7c3aed;
    width: 24px;
    border-radius: 4px;
}

/* پیام خالی */
.vandadcast-carousel-empty {
    text-align: center;
    padding: 50px 20px;
    background: #f9fafb;
    border-radius: 16px;
    color: #6b7280;
}

.vandadcast-carousel-empty svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    color: #9ca3af;
}

.vandadcast-carousel-empty p {
    margin: 10px 0;
}

.vandadcast-carousel-empty .small {
    font-size: 12px;
    color: #9ca3af;
}

/* واکنش‌گرا */
@media (max-width: 992px) {
    .vandadcast-carousel-item {
        width: calc((100% - 20px) / 2);
    }
    
    .vandadcast-carousel-container {
        margin: 0 35px;
    }
}

@media (max-width: 768px) {
    .vandadcast-carousel-item {
        width: 100%;
    }
    
    .vandadcast-carousel-container {
        margin: 0 30px;
    }
    
    .carousel-nav {
        width: 34px;
        height: 34px;
    }
    
    .carousel-nav.prev {
        right: -15px;
    }
    
    .carousel-nav.next {
        left: -15px;
    }
    
    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }
    
    .card-content {
        padding: 14px;
    }
    
    .card-title {
        font-size: 15px;
    }
}