        /* استایل‌های کلی */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Vazirmatn, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
            font-family: Vazirmatn, sans-serif;
            direction: rtl;
        }
        
        .main-container {
            display: flex;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1rem;
            gap: 2rem;
        }
        
        .content-area {
            flex: 1;
            min-width: 0;
        }
        
        .sidebar {
            width: 300px;
            flex-shrink: 0;
        }
        
        .left-sidebar {
            width: 250px;
            flex-shrink: 0;
        }
        
        /* هدر */
        .video-header {
            background: linear-gradient(135deg, #1a73e8 0%, #6c5ce7 100%);
            color: white;
            padding: 1rem 0;
            margin-bottom: 2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1rem;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
        }
        
        .logo a {
            color: white;
            text-decoration: none;
        }
        
        .logo span {
            color: #ffde59;
        }
        
        .header-container nav a {
            background: rgba(255, 255, 255, 0.2);
            padding: 0.5rem 1rem;
            border-radius: 4px;
            transition: background 0.3s;
        }
        
        .header-container nav a:hover {
            background: rgba(255, 255, 255, 0.3);
        }
        
        /* سایدبار */
        .sidebar-widget {
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 2rem;
        }
        
        .widget-title {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #1a73e8;
            color: #333;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .category-list {
            list-style: none;
        }
        
        .category-item {
            margin-bottom: 0.8rem;
        }
        
        .category-link {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #333;
            text-decoration: none;
            padding: 0.8rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
            border: 1px solid #e9ecef;
        }
        
        .category-link:hover {
            background: linear-gradient(90deg, #e8f0fe 0%, #ffffff 100%);
            color: #1a73e8;
            transform: translateX(-5px);
            box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
        }
        
        .category-count {
            background: #1a73e8;
            color: white;
            padding: 0.3rem 0.7rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            min-width: 30px;
            text-align: center;
        }
        
        /* ویدئو پلیر */
        .video-wrapper {
            position: relative;
            width: 100%;
            background: #000;
            height: 450px;
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        .custom-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            border-top-color: #8E2DE2;
            animation: spin 1s linear infinite;
            display: none;
        }
        
        @keyframes spin {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }
        
        .error-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #ff5252;
            background: rgba(0, 0, 0, 0.7);
            padding: 15px 25px;
            border-radius: 8px;
            text-align: center;
            display: none;
        }
        
        /* کنترل‌های ویدئو */
        .controls {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            padding: 12px 15px;
            background: rgba(0, 0, 0, 0.9);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 10;
            position: absolute;
            bottom: 0;
            width: 100%;
            transition: opacity 0.3s ease;
        }
        
        .controls button {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            cursor: pointer;
            padding: 10px;
            font-size: 16px;
            margin: 0 5px;
            transition: all 0.2s;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .controls button:hover {
            background: rgba(142, 45, 226, 0.8);
            transform: scale(1.1);
        }
        
        .time {
            font-size: 14px;
            margin: 0 10px;
            color: #ddd;
            min-width: 40px;
            text-align: center;
        }
        
        .progress-container {
            flex-grow: 1;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            cursor: pointer;
            margin: 0 15px;
            position: relative;
            direction: ltr;
        }
        
        .progress-filled {
            height: 100%;
            width: 0%;
            background: #8E2DE2;
            border-radius: 10px;
            position: relative;
        }
        
        .volume-container {
            display: flex;
            align-items: center;
            margin: 0 10px;
        }
        
        .volume-slider {
            width: 80px;
            height: 6px;
            -webkit-appearance: none;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            outline: none;
            direction: ltr;
        }
        
        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: #8E2DE2;
            cursor: pointer;
        }
        
        .playback-speed {
            position: relative;
        }
        
        .speed-menu {
            position: absolute;
            bottom: 100%;
            right: 0;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 5px;
            padding: 10px;
            width: 100px;
            display: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .speed-menu.show {
            display: block;
        }
        
        .speed-option {
            padding: 8px 10px;
            color: white;
            cursor: pointer;
            text-align: center;
            border-radius: 3px;
        }
        
        .speed-option:hover {
            background: rgba(142, 45, 226, 0.3);
        }
        
        .control-group {
            display: flex;
            align-items: center;
        }
        
        /* اطلاعات ویدئو */
        .video-info {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 2rem;
        }
        
        .video-title {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: #333;
            line-height: 1.4;
        }
        
        .video-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            color: #666;
            font-size: 0.95rem;
        }
        
        .video-description {
            margin-bottom: 1.5rem;
            line-height: 1.8;
            color: #444;
        }
        
        /* باکس‌های اطلاعات */
        .info-boxes {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            justify-content: center;
            margin-bottom: 2rem;
        }
        
        .info-box {
            flex: 1;
            min-width: 300px;
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .info-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }
        
        .category-box {
            border-top: 5px solid #3498db;
        }
        
        .genre-box {
            border-top: 5px solid #e74c3c;
        }
        
        .box-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .box-header i {
            font-size: 24px;
            margin-left: 10px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: white;
        }
        
        .category-box .box-header i {
            background: #3498db;
        }
        
        .genre-box .box-header i {
            background: #e74c3c;
        }
        
        .box-header h3 {
            font-size: 20px;
            color: #2c3e50;
        }
        
        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .category-tag, .genre-tag {
            padding: 8px 15px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .category-tag {
            background: #eaf6ff;
            color: #2980b9;
            border: 1px solid #3498db;
        }
        
        .category-tag:hover {
            background: #3498db;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
        }
        
        .genre-tag {
            background: #ffebee;
            color: #c0392b;
            border: 1px solid #e74c3c;
        }
        
        .genre-tag:hover {
            background: #e74c3c;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
        }
        
        .no-content {
            text-align: center;
            color: #7f8c8d;
            font-style: italic;
            padding: 10px 0;
        }
        
        /* اشتراک‌گذاری */
        .share-title {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 24px;
            position: relative;
            padding-bottom: 15px;
            margin-top: 20px;
        }
        
        .share-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: linear-gradient(to right, #9b59b6, #f1c40f);
            border-radius: 2px;
        }
        
        .share-description {
            text-align: center;
            color: #7f8c8d;
            margin-bottom: 30px;
            font-size: 16px;
            line-height: 1.6;
            padding: 0 10px;
        }
        
        .share-buttons {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }
        
        .share-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 25px;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            min-width: 140px;
        }
        
        .share-btn svg {
            margin-left: 8px;
            width: 20px;
            height: 20px;
        }
        
        .share-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        }
        
        .share-btn:active {
            transform: translateY(0);
        }
        
        .share-whatsapp {
            background: linear-gradient(to right, #25D366, #128C7E);
            color: white;
        }
        
        .share-whatsapp:hover {
            background: linear-gradient(to right, #128C7E, #25D366);
        }
        
        .share-telegram {
            background: linear-gradient(to right, #0088cc, #2AABEE);
            color: white;
        }
        
        .share-telegram:hover {
            background: linear-gradient(to right, #2AABEE, #0088cc);
        }
        
        .share-twitter {
            background: linear-gradient(to right, #1DA1F2, #0d8bd9);
            color: white;
        }
        
        .share-twitter:hover {
            background: linear-gradient(to right, #0d8bd9, #1DA1F2);
        }
        
        .share-link {
            background: linear-gradient(to right, #9b59b6, #8e44ad);
            color: white;
        }
        
        .share-link:hover {
            background: linear-gradient(to right, #8e44ad, #9b59b6);
        }
        
        .copy-message {
            text-align: center;
            margin-top: 15px;
            font-size: 14px;
            color: #27ae60;
            opacity: 0;
            transition: opacity 0.3s ease;
            height: 20px;
        }
        
        .copy-message.show {
            opacity: 1;
        }
        
        /* بخش دانلود */
        .download-section {
            margin-top: 30px;
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
        }
        
        .download-title-section {
            margin: 25px 0;
        }
        
        .format-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 15px;
        }
        
        .download-section a {
            display: inline-block;
            padding: 10px 18px;
            background: linear-gradient(135deg, #2ecc71, #27ae60);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s;
            white-space: nowrap;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .download-section a:hover {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
        }
        
        /* ویدئوهای مرتبط */
        .related-section {
            background: white;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #1a73e8;
            color: #333;
        }
        
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .video-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        }
        
/* استایل تامبنیل */
.thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.9);
}

.thumbnail:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

.thumbnail:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* استایل دیریشن (زمان ویدئو) */
.duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* افکت hover برای دیریشن */
.thumbnail:hover .duration {
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(142, 45, 226, 0.3);
}

/* لینک تامبنیل */
.thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

/* افکت overlay روی hover */
.thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(142, 45, 226, 0.1) 0%, rgba(74, 0, 224, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.thumbnail:hover::before {
    opacity: 1;
}

/* آیکون پلی روی hover */
.thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(142, 45, 226, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.thumbnail:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .thumbnail {
        height: 140px;
        border-radius: 10px;
    }
    
    .duration {
        bottom: 8px;
        right: 8px;
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .thumbnail::after {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        height: 120px;
    }
    
    .duration {
        bottom: 6px;
        right: 6px;
        padding: 0.2rem 0.5rem;
    }
}
        
        .video-card:hover .thumbnail img {
            transform: scale(1.05);
        }
        
        .duration {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        .video-info-small {
            padding: 1rem;
        }
        
        
        .video-title-small {
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 1rem;
            height: 2.5rem;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .video-title-small a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .video-title-small a:hover {
            color: #1a73e8;
        }
        
        .video-meta-small {
            display: flex;
            justify-content: space-between;
            color: #666;
            font-size: 0.85rem;
        }
/* Footer Styles */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 5%;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: white;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a73e8;
  display: inline-block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #bdc3c7;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #1a73e8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #1a73e8;
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #95a5a6;
}

/* رسپانسیو برای تبلت */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* رسپانسیو برای موبایل */
@media (max-width: 480px) {
  footer {
    padding: 2rem 5%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-section {
    padding: 1rem 0;
  }
  
  .footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .footer-links {
    padding: 0;
  }
  
  .footer-links li {
    margin-bottom: 0.8rem;
  }
  
  .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
  }
  
  .footer-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
  }
  
  .social-links {
    justify-content: center;
    gap: 0.8rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
  }
  
  .social-links a:hover {
    background: #1a73e8;
    transform: scale(1.1);
  }
  
  .copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
  }
  
  .copyright p {
    margin: 0;
  }
}        
        /* رسپانسیو */
        @media (max-width: 1200px) {
            .main-container {
                flex-wrap: wrap;
            }
            
            .left-sidebar {
                width: 100%;
                order: 3;
            }
            
            .content-area {
                order: 1;
                width: 100%;
            }
            
            .sidebar {
                width: 100%;
                order: 2;
            }
        }
        
        @media (max-width: 768px) {
            .video-title {
                font-size: 1.4rem;
            }
            
            .video-meta {
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .video-grid {
                grid-template-columns: 1fr;
            }
            
            .share-buttons {
                flex-direction: column;
            }
            
            .controls {
                padding: 10px;
                flex-wrap: wrap;
            }
            
            .progress {
                order: 1;
                width: 100%;
                margin-top: 10px;
            }
            
            .volume-slider {
                width: 60px;
            }
            
            .time {
                font-size: 12px;
            }
            
            .header-container {
                flex-direction: column;
                gap: 1rem;
            }
        }
        .container {
            width: 100%;
            max-width: 800px;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }
        
        .video-title {
            padding: 20px;
            text-align: center;
            font-size: 24px;
            font-weight: 600;
            color: #2c3e50;
            border-bottom: 2px solid #3498db;
            background: linear-gradient(to right, #f8f9fa, #ffffff);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .video-title:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
            border-bottom: 2px solid #2980b9;
        }
 /* کد CSS برای عنوان ویدیو */
.video-title {
  display: inline-block;
  padding: 22px 25px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  text-decoration: none;
              width: 100%;

}

.video-title:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-bottom: 2px solid #2980b9;
  color: #2c3e50;
  text-decoration: none;
}       
        .video-wrapper {
            position: relative;
            width: 100%;
            background: #000;
            height: 450px;
            overflow: hidden;
        }
        
        .custom-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        /* مناطق کلیک */
        .click-area {
            position: absolute;
            top: 0;
            height: 70%;
            width: 30%;
            z-index: 5;
            cursor: pointer;
        }
        
        .left-click-area {
            left: 0;
        }
        
        .right-click-area {
            right: 0;
        }
        
        /* افکت هنگام کلیک */
        .click-feedback {
            position: absolute;
            width: 60px;
            height: 60px;
            background: rgba(142, 45, 226, 0.7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
            font-weight: bold;
            pointer-events: none;
            z-index: 6;
            animation: fadeOut 0.8s forwards;
        }
        
        @keyframes fadeOut {
            from { opacity: 1; transform: scale(0.8); }
            to { opacity: 0; transform: scale(1.5); }
        }
        
        .loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            border-top-color: #8E2DE2;
            animation: spin 1s linear infinite;
            display: none;
        }
        
        @keyframes spin {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }
        
        .error-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #ff5252;
            background: rgba(0, 0, 0, 0.7);
            padding: 15px 25px;
            border-radius: 8px;
            text-align: center;
            display: none;
        }
        
        /* کنترل‌ها - بخش اصلی تصحیح */
        .controls {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            padding: 12px 15px;
            background: rgba(0, 0, 0, 0.9);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 10;
            position: absolute;
            bottom: 0;
            width: 100%;
            transition: opacity 0.3s ease;
        }
        
        .controls button {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            cursor: pointer;
            padding: 10px;
            font-size: 16px;
            margin: 0 5px;
            transition: all 0.2s;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .controls button:hover {
            background: rgba(142, 45, 226, 0.8);
            transform: scale(1.1);
        }
        
        .time {
            font-size: 14px;
            margin: 0 10px;
            color: #ddd;
            min-width: 40px;
            text-align: center;
        }
        
        .progress-container {
            flex-grow: 1;
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            cursor: pointer;
            margin: 0 15px;
            position: relative;
        }
        
        .progress-filled {
            height: 100%;
            width: 0%;
            background: #8E2DE2;
            border-radius: 10px;
            position: relative;
        }
        
        .progress-container {
            direction: ltr;
        }

        .volume-container {
            display: flex;
            align-items: center;
            margin: 0 10px;
        }
        
        .volume-slider {
            width: 80px;
            height: 6px;
            -webkit-appearance: none;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            outline: none;
        }
        
        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: #8E2DE2;
            cursor: pointer;
        }
        
        .volume-slider {
            direction: ltr;
        }
        
        .playback-speed {
            position: relative;
        }
        
        .controls {
            flex-direction: row;
            justify-content: space-between;
        }
        
        .speed-menu {
            position: absolute;
            bottom: 100%;
            right: 0;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 5px;
            padding: 10px;
            width: 100px;
            display: none;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .speed-menu.show {
            display: block;
        }
        
        .speed-option {
            padding: 8px 10px;
            color: white;
            cursor: pointer;
            text-align: center;
            border-radius: 3px;
        }
        
        .speed-option:hover {
            background: rgba(142, 45, 226, 0.3);
        }
        
        .quality-indicator {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.7);
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 12px;
            z-index: 10;
        }
        
        .control-group {
            display: flex;
            align-items: center;
        }
        
        @media (max-width: 768px) {
            .video-wrapper {
                height: 350px;
            }
            
            .controls {
                padding: 8px 10px;
            }
            
            .controls button {
                padding: 6px;
                font-size: 14px;
                width: 35px;
                height: 35px;
            }
            
            .volume-slider {
                width: 60px;
            }
            
            .time {
                font-size: 12px;
                margin: 0 5px;
            }
        }
        
        @media (max-width: 480px) {
            .video-wrapper {
                height: 300px;
            }
            
            .volume-container {
                display: none;
            }
            
            .time {
                margin: 0 3px;
            }
            
            .progress-container {
                margin: 0 10px;
            }
        }
        
        .instructions {
            margin-top: 20px;
            background: rgba(0, 0, 0, 0.5);
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            max-width: 800px;
        }
        
        .instructions h3 {
            color: #8E2DE2;
            margin-bottom: 10px;
        }
                .info-boxes {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            justify-content: center;
        }
        
        .info-box {
            flex: 1;
            min-width: 300px;
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .info-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }
        
        .category-box {
            border-top: 5px solid #3498db;
        }
        
        .genre-box {
            border-top: 5px solid #e74c3c;
        }
        
        .box-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .box-header i {
            font-size: 24px;
            margin-left: 10px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: white;
        }
        
        .category-box .box-header i {
            background: #3498db;
        }
        
        .genre-box .box-header i {
            background: #e74c3c;
        }
        
        .box-header h3 {
            font-size: 20px;
            color: #2c3e50;
        }
        
        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .category-tag, .genre-tag {
            padding: 8px 15px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .category-tag {
            background: #eaf6ff;
            color: #2980b9;
            border: 1px solid #3498db;
        }
        
        .category-tag:hover {
            background: #3498db;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
        }
        
        .genre-tag {
            background: #ffebee;
            color: #c0392b;
            border: 1px solid #e74c3c;
        }
        
        .genre-tag:hover {
            background: #e74c3c;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
        }
        
        .no-content {
            text-align: center;
            color: #7f8c8d;
            font-style: italic;
            padding: 10px 0;
        }
        
        @media (max-width: 768px) {
            .info-boxes {
                flex-direction: column;
            }
            
            .info-box {
                min-width: 100%;
            }
        }
         .share-title {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 15px; /* کاهش فاصله از پایین */
            font-size: 24px; /* کاهش سایز فونت */
            position: relative;
            padding-bottom: 15px;
            margin-top: 20px; /* افزودن فاصله از بالا */
        }
        
        .share-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px; /* کاهش عرض خط */
            height: 3px; /* کاهش ارتفاع خط */
            background: linear-gradient(to right, #9b59b6, #f1c40f);
            border-radius: 2px;
        }
        
        .share-description {
            text-align: center;
            color: #7f8c8d;
            margin-bottom: 30px; /* افزایش فاصله از پایین */
            font-size: 16px;
            line-height: 1.6;
            padding: 0 10px;
        }
        
        .share-buttons {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }
        
        .share-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 25px;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            min-width: 140px;
        }
        
        .share-btn svg {
            margin-left: 8px;
            width: 20px;
            height: 20px;
        }
        
        .share-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        }
        
        .share-btn:active {
            transform: translateY(0);
        }
        
        .share-whatsapp {
            background: linear-gradient(to right, #25D366, #128C7E);
            color: white;
        }
        
        .share-whatsapp:hover {
            background: linear-gradient(to right, #128C7E, #25D366);
        }
        
        .share-telegram {
            background: linear-gradient(to right, #0088cc, #2AABEE);
            color: white;
        }
        
        .share-telegram:hover {
            background: linear-gradient(to right, #2AABEE, #0088cc);
        }
        
        .share-twitter {
            background: linear-gradient(to right, #1DA1F2, #0d8bd9);
            color: white;
        }
        
        .share-twitter:hover {
            background: linear-gradient(to right, #0d8bd9, #1DA1F2);
        }
        
        .share-link {
            background: linear-gradient(to right, #9b59b6, #8e44ad);
            color: white;
        }
        
        .share-link:hover {
            background: linear-gradient(to right, #8e44ad, #9b59b6);
        }
        
        .copy-message {
            text-align: center;
            margin-top: 15px;
            font-size: 14px;
            color: #27ae60;
            opacity: 0;
            transition: opacity 0.3s ease;
            height: 20px;
        }
        
        .copy-message.show {
            opacity: 1;
        }
        
        @media (max-width: 768px) {
            .share-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .share-btn {
                width: 100%;
                max-width: 250px;
            }
        }
        /* به فایل style.css اضافه کنید */
.main-container {
    align-items: flex-start; /* برای flexbox */
}
/* غیرفعال کردن موقت همه استایل‌های مشکل‌ساز */
.sidebar, .left-sidebar {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    height: auto !important;
}

/* بازنویسی کامل استایل سایدبارها */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    order: 2;
}
    .content-section {
        margin-top: 40px;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }
    /* ======== بخش نظرات ======== */
    .comments-section {
        margin-top: 40px;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }

    .comment-error {
        background: #ffebee;
        color: #c62828;
        padding: 10px;
        border-radius: 4px;
        margin-bottom: 20px;
        border: 1px solid #ef9a9a;
    }

    .comment-success {
        background: #e8f5e9;
        color: #2e7d32;
        padding: 10px;
        border-radius: 4px;
        margin-bottom: 20px;
        border: 1px solid #a5d6a7;
    }

    .comment-form-container {
        background: white;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 30px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .comment-form h3 {
        margin-top: 0;
        color: #333;
        border-bottom: 2px solid #4CAF50;
        padding-bottom: 10px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: Vazirmatn, sans-serif;
        font-size: 14px;
        box-sizing: border-box;
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    .submit-comment-btn {
        background: #4CAF50;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 4px;
        cursor: pointer;
        font-family: Vazirmatn, sans-serif;
        font-size: 16px;
        transition: background 0.3s;
    }

    .submit-comment-btn:hover {
        background: #388E3C;
    }

    .reply-notice {
        background: #e3f2fd;
        padding: 10px;
        border-radius: 4px;
        margin-bottom: 15px;
        border: 1px solid #bbdefb;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #cancelReply {
        background: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 3px;
        cursor: pointer;
        font-size: 12px;
    }

    .comments-list {
        margin-top: 20px;
    }

    .comment {
        display: flex;
        margin-bottom: 20px;
        padding: 15px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .admin-comment {
        border-right: 4px solid #4CAF50;
        background: #f1f8e9;
    }

    .comment-avatar {
        margin-left: 15px;
    }

    .comment-avatar img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }

    .comment-content {
        flex: 1;
    }

    .comment-header {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .comment-author {
        font-weight: bold;
        color: #333;
        margin-left: 10px;
    }

    .admin-badge {
        background: #4CAF50;
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        margin-left: 10px;
    }

    .comment-time {
        color: #757575;
        font-size: 12px;
    }

    .comment-text {
        color: #424242;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .comment-actions {
        display: flex;
    }

    .reply-btn {
        background: none;
        border: none;
        color: #2196F3;
        cursor: pointer;
        font-size: 13px;
        padding: 5px 10px;
        border-radius: 3px;
    }

    .reply-btn:hover {
        background: #e3f2fd;
    }

    .comment-replies {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed #e0e0e0;
    }

    .no-comments {
        text-align: center;
        padding: 30px;
        color: #757575;
        background: white;
        border-radius: 8px;
        border: 1px dashed #ddd;
    }

    /* رسپانسیو بخش نظرات */
    @media (max-width: 768px) {
        .comment {
            flex-direction: column;
        }
        
        .comment-avatar {
            margin-left: 0;
            margin-bottom: 10px;
            text-align: center;
        }
        
        .comment-header {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .comment-author,
        .admin-badge,
        .comment-time {
            margin: 5px 0;
        }
    }
    .exit-fullscreen {
    display: none; /* مخفی در حالت عادی */
}

.video-wrapper.fullscreen .exit-fullscreen {
    display: flex; /* نمایش در حالت تمام صفحه */
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.video-wrapper.fullscreen .exit-fullscreen:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.left-sidebar {
    width: 250px;
    flex-shrink: 0;
    order: 1;
}

.content-area {
    flex: 1;
    min-width: 0;
    order: 2;
}

/* بازنویسی رسپانسیو */
@media (max-width: 1200px) {
    .main-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .sidebar, .left-sidebar {
        width: 100%;
        order: 3;
    }
     
    .content-area {
        width: 100%;
        order: 1;
    }
}

/* رفع مشکل اسکرول در موبایل */
@media (max-width: 768px) {
    .video-wrapper {
        height: 300px; /* کاهش ارتفاع ویدئو */
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .info-box {
        min-width: 100%;
        margin-bottom: 1rem;
    } 
}

/* مدیریت محتوای داخل سایدبار */
.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    max-height: none;
    overflow: visible;
}
    /* ======== video-cover کامل ======== */
    .video-cover {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 50;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        cursor: pointer;
    }
    
    .video-cover.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .video-cover::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
        z-index: -1;
    }
    
    .play-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(255, 64, 129, 0.85);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        position: relative;
        z-index: 2;
    }
    
    .play-icon i {
        color: #fff;
        font-size: 32px;
        margin-left: 5px;
        transition: transform 0.2s ease;
    }
    
    .play-icon:hover {
        transform: scale(1.1);
        background: rgba(255, 64, 129, 1);
        box-shadow: 0 8px 20px rgba(255, 64, 129, 0.4);
    }
    
    .play-icon:hover i {
        transform: scale(1.1);
    }
    
    .video-title-overlay {
        position: absolute;
        bottom: 20px;
        right: 20px;
        left: 20px;
        color: white;
        text-align: center;
        z-index: 2;
    }
    
    .video-title-overlay h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    }
    
    .video-duration {
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.9rem;
        display: inline-block;
    }
    
    .loading-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 60;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .loading-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* رسپانسیو برای video-cover */
    @media (max-width: 768px) {
        .play-icon {
            width: 60px;
            height: 60px;
        }
        
        .play-icon i {
            font-size: 24px;
        }
        
        .video-title-overlay h3 {
            font-size: 1.2rem;
        }
        
        .video-duration {
            font-size: 0.8rem;
        }
    }
    
    @media (max-width: 480px) {
        .play-icon {
            width: 50px;
            height: 50px;
        }
        
        .play-icon i {
            font-size: 20px;
        }
        
        .video-title-overlay {
            bottom: 10px;
            right: 10px;
            left: 10px;
        }
        
        .video-title-overlay h3 {
            font-size: 1rem;
        }
    }
