/* استایل‌های نمایش عمومی ویدیو */

.vmp-video-container {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vmp-video-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4F46E5;
}

.vmp-video-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vmp-video-title:before {
    content: "🎬";
    font-size: 32px;
}

.vmp-video-content {
    margin-top: 30px;
}

/* دسته‌بندی ویدیو */
.vmp-video-category {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vmp-category-header {
    padding: 20px 25px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-left: 5px solid #4F46E5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vmp-category-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.vmp-category-count {
    font-size: 14px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Grid View - با specificity بالا */
.vmp-video-category .vmp-video-items.vmp-grid-view {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 20px !important;
    width: 100% !important;
}

/* برای دسکتاپ: 3 ستون */
@media (min-width: 1024px) {
    .vmp-video-category .vmp-video-items.vmp-grid-view {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
    }
}

/* برای تبلت: 2 ستون */
@media (min-width: 768px) and (max-width: 1023px) {
    .vmp-video-category .vmp-video-items.vmp-grid-view {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

.vmp-video-items {
    padding: 20px;
}

/* آیتم ویدیو - با specificity بالا */
.vmp-video-category .vmp-grid-view .vmp-video-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0;
    transition: all 0.3s ease;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    display: block !important;
}

/* در دسکتاپ */
@media (min-width: 1024px) {
    .vmp-video-category .vmp-grid-view .vmp-video-item {
        min-width: 0 !important;
        flex-shrink: 1 !important;
    }
}

.vmp-video-category .vmp-grid-view .vmp-video-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* تصویر ویدیو */
.vmp-video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

/* ارتفاع بیشتر برای دسکتاپ */
@media (min-width: 1024px) {
    .vmp-video-thumbnail {
        height: 280px !important;
    }
}

/* ارتفاع متوسط برای تبلت */
@media (min-width: 768px) and (max-width: 1023px) {
    .vmp-video-thumbnail {
        height: 240px !important;
    }
}

.vmp-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vmp-video-item:hover .vmp-video-thumbnail img {
    transform: scale(1.05);
}

.vmp-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(79, 70, 229, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
}

.vmp-video-thumbnail:hover .vmp-play-overlay {
    background: rgba(79, 70, 229, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* اطلاعات ویدیو */
.vmp-video-info {
    padding: 20px;
}

.vmp-video-episode-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.vmp-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.vmp-speaker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
}

.vmp-video-description {
    margin: 15px 0;
    line-height: 1.7;
    color: #495057;
    font-size: 14px;
}

/* پلیر ویدیو */
.vmp-video-player {
    margin: 20px 0;
    display: none;
}

.vmp-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.vmp-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.vmp-html5-player video {
    width: 100%;
    border-radius: 8px;
    outline: none;
}

/* انتخاب کیفیت */
.vmp-quality-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
}

.vmp-quality-selector span {
    font-weight: 600;
    color: #495057;
}

.vmp-quality-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.vmp-quality-btn:hover {
    background: #e9ecef;
}

.vmp-quality-btn.active {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

/* جزئیات ویدیو */
.vmp-video-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
    font-size: 14px;
    color: #6c757d;
}

.vmp-duration,
.vmp-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 6px 14px;
    border-radius: 20px;
}

/* پیام خالی */
.vmp-no-videos {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 10px;
}

/* صفحه آرشیو */
.vmp-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.vmp-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.vmp-archive-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.vmp-archive-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.vmp-filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vmp-category-filter,
.vmp-search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.vmp-search-btn {
    padding: 10px 25px;
    background: #4F46E5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.vmp-search-btn:hover {
    background: #3730a3;
}

.vmp-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.vmp-archive-video-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.vmp-archive-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.vmp-archive-thumbnail {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.vmp-archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vmp-archive-thumbnail-link {
    display: block;
    position: relative;
}

.vmp-archive-thumbnail-link:hover img {
    transform: scale(1.05);
}

.vmp-archive-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(79, 70, 229, 0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.vmp-archive-info {
    padding: 20px;
}

.vmp-archive-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.vmp-archive-title-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vmp-archive-title-link:hover {
    color: #4F46E5;
}

.vmp-archive-speaker {
    font-size: 14px;
    color: #6c757d;
    margin: 8px 0;
}

.vmp-archive-description {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin: 12px 0;
}

.vmp-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
    font-size: 13px;
}

.vmp-archive-duration,
.vmp-archive-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 15px;
    color: #6c757d;
}

.vmp-archive-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.vmp-archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
}

.vmp-page-link {
    padding: 10px 20px;
    background: #4F46E5;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.vmp-page-link:hover {
    background: #3730a3;
}

.vmp-page-info {
    font-size: 16px;
    color: #495057;
    font-weight: 500;
}

.vmp-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #6c757d;
}

/* Responsive */
@media (min-width: 1201px) {
    .vmp-archive-thumbnail {
        height: 320px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .vmp-archive-thumbnail {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .vmp-video-container {
        padding: 20px;
    }
    
    .vmp-video-title {
        font-size: 24px;
    }
    
    .vmp-grid-view {
        grid-template-columns: 1fr;
    }
    
    .vmp-video-item {
        min-width: 100%;
    }
    
    .vmp-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vmp-video-grid {
        grid-template-columns: 1fr;
    }
    
    .vmp-archive-filters {
        flex-direction: column;
    }
    
    .vmp-filter-form {
        width: 100%;
    }
    
    .vmp-category-filter,
    .vmp-search-input,
    .vmp-search-btn {
        width: 100%;
    }
    
    .vmp-archive-thumbnail {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .vmp-video-episode-title {
        font-size: 16px;
    }
    
    .vmp-archive-title {
        font-size: 28px;
    }
}