		@font-face {
            font-family: Shabnam;
            src: url(font/Shabnam.ttf) format("truetype");
            font-weight: 400
        }
        * {
            font-family: 'Shabnam', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif!important;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        .container {
            background: white;
            border-radius: 20px;
            padding: 50px;
            max-width: 600px;
            width: 100%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            text-align: center;
        }
        h1 {
            color: #333;
            margin-bottom: 10px;
            font-size: 28px;
        }
        .subtitle {
            color: #666;
            margin-bottom: 30px;
            font-size: 14px;
        }
        .logo {
            font-size: 60px;
            margin-bottom: 20px;
        }
        .input-group {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        input[type="text"] {
            padding: 15px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s;
            direction: ltr;
            text-align: left;
        }
        input[type="text"]:focus {
            border-color: #667eea;
            outline: none;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
        }
        button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px;
            border-radius: 12px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
        }
        .example {
            margin-top: 20px;
            color: #888;
            font-size: 13px;
            background: #f5f5f5;
            padding: 10px;
            border-radius: 8px;
        }
        .example span {
            color: #667eea;
            font-weight: bold;
            direction: ltr;
            display: inline-block;
        }
        .error {
            color: #e74c3c;
            background: #fde8e8;
            padding: 10px;
            border-radius: 8px;
            margin-top: 15px;
            display: none;
        }
        .detected {
            margin-top: 15px;
            padding: 10px;
            border-radius: 8px;
            background: #e8f5e9;
            color: #2e7d32;
            display: none;
        }
        @media (max-width: 480px) {
            .container { padding: 30px 20px; }
            h1 { font-size: 22px; }
        }

         * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Tahoma', 'Arial', sans-serif;
            background: #f0f2f5;
            padding: 20px;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        }
        .back-btn {
            display: inline-block;
            color: #667eea;
            text-decoration: none;
            margin-bottom: 20px;
            font-weight: bold;
        }
        .back-btn:hover { text-decoration: underline; }
        .video-info {
            display: flex;
            gap: 30px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        .video-poster {
            flex: 0 0 200px;
        }
        .video-poster img {
            width: 100%;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        }
        .video-details {
            flex: 1;
        }
        .video-details h1 {
            color: #333;
            font-size: 24px;
            margin-bottom: 10px;
            line-height: 1.4;
        }
        .video-details .meta {
            color: #666;
            font-size: 14px;
            margin-bottom: 5px;
        }
        .video-details .meta span {
            display: inline-block;
            margin-left: 15px;
        }
        .video-details .description {
            margin-top: 15px;
            color: #555;
            line-height: 1.8;
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            max-height: 150px;
            overflow-y: auto;
        }
        .qualities-section {
            margin-top: 30px;
            border-top: 2px solid #f0f0f0;
            padding-top: 30px;
        }
        .qualities-section h3 {
            color: #333;
            margin-bottom: 20px;
            font-size: 20px;
        }
        .quality-list {
            display: grid;
            gap: 12px;
        }
        .quality-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f8f9fa;
            padding: 15px 20px;
            border-radius: 12px;
            transition: all 0.3s;
            border: 2px solid transparent;
        }
        .quality-item:hover {
            border-color: #667eea;
            background: #f0f2ff;
        }
        .quality-info {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }
        .quality-info .icon {
            font-size: 24px;
        }
        .quality-info .label {
            font-weight: bold;
            color: #333;
        }
        .quality-info .size {
            color: #888;
            font-size: 13px;
            background: #e9ecef;
            padding: 2px 10px;
            border-radius: 12px;
        }
        .quality-info .badge {
            font-size: 11px;
            background: #667eea;
            color: white;
            padding: 2px 10px;
            border-radius: 12px;
        }
        .download-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            display: inline-block;
            white-space: nowrap;
        }
        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }
        .download-btn.disabled {
            background: #ccc;
            cursor: not-allowed;
            pointer-events: none;
        }
        .stats {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            margin: 15px 0;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
        }
        .stats .stat {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #555;
            font-size: 14px;
        }
        .stats .stat strong {
            color: #333;
        }
        .footer {
            margin-top: 30px;
            text-align: center;
            color: #999;
            font-size: 13px;
            border-top: 1px solid #f0f0f0;
            padding-top: 20px;
        }
        .can-download-badge {
            display: inline-block;
            background: #28a745;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            margin-right: 10px;
        }
        @media (max-width: 600px) {
            .container { padding: 20px; }
            .video-info { flex-direction: column; }
            .video-poster { flex: 1; max-width: 300px; margin: 0 auto; }
            .quality-item { flex-direction: column; gap: 15px; text-align: center; }
            .quality-info { flex-direction: column; align-items: center; }
            .download-btn { width: 100%; text-align: center; }
        }

       * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Tahoma', 'Arial', sans-serif;
            background: #f0f2f5;
            padding: 20px;
        }
        .container {
            max-width: 900px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            flex-wrap: wrap;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 15px;
        }
        .header h1 {
            color: #333;
            font-size: 24px;
            margin-top: 10px;
        }
        .header .sub {
            color: #888;
            font-size: 14px;
        }
        .header .count {
            color: #888;
            font-size: 14px;
            background: #f0f2f5;
            padding: 5px 15px;
            border-radius: 20px;
        }
        .back-btn {
            color: #667eea;
            text-decoration: none;
            font-weight: bold;
        }
        .back-btn:hover { text-decoration: underline; }
        
        /* بخش دانلود همه */
        .download-all-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 25px;
            border: 2px dashed #667eea;
        }
        .download-all-section .title {
            font-weight: bold;
            font-size: 16px;
            color: #333;
            margin-bottom: 10px;
        }
        .download-all-section .desc {
            color: #666;
            font-size: 13px;
            margin-bottom: 15px;
        }
        .download-all-controls {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            align-items: center;
        }
        .download-all-controls select {
            padding: 8px 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            background: white;
            min-width: 150px;
        }
        .download-all-controls select:focus {
            border-color: #667eea;
            outline: none;
        }
        .btn-download-all {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            border: none;
            padding: 10px 30px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn-download-all:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
        }
        .btn-download-all:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        .download-progress {
            margin-top: 10px;
            display: none;
        }
        .download-progress .bar {
            width: 100%;
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }
        .download-progress .bar .fill {
            height: 100%;
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            width: 0%;
            transition: width 0.3s;
        }
        .download-progress .text {
            font-size: 13px;
            color: #666;
            margin-top: 5px;
        }
        
        .video-list {
            display: grid;
            gap: 12px;
        }
        .video-item {
            display: flex;
            gap: 15px;
            background: #f8f9fa;
            padding: 12px 15px;
            border-radius: 12px;
            transition: all 0.3s;
            border: 2px solid transparent;
            align-items: center;
        }
        .video-item:hover {
            border-color: #667eea;
            background: #f0f2ff;
        }
        .video-index {
            font-weight: bold;
            color: #999;
            font-size: 14px;
            min-width: 30px;
            text-align: center;
        }
        .video-thumb {
            flex: 0 0 80px;
        }
        .video-thumb img {
            width: 100%;
            border-radius: 6px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }
        .video-info {
            flex: 1;
            min-width: 0;
        }
        .video-info .title {
            font-weight: bold;
            color: #333;
            font-size: 15px;
            margin-bottom: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .video-info .meta {
            color: #888;
            font-size: 12px;
        }
        .video-info .meta span {
            margin-left: 12px;
        }
        .download-link {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 6px 16px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 13px;
            font-weight: bold;
            transition: transform 0.2s, box-shadow 0.2s;
            white-space: nowrap;
        }
        .download-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }
        .footer {
            margin-top: 30px;
            text-align: center;
            color: #999;
            font-size: 13px;
            border-top: 1px solid #f0f0f0;
            padding-top: 20px;
        }
        @media (max-width: 600px) {
            .container { padding: 15px; }
            .video-item { flex-wrap: wrap; gap: 10px; }
            .video-thumb { flex: 0 0 60px; }
            .video-info .title { font-size: 13px; }
            .download-link { padding: 4px 12px; font-size: 12px; }
            .header { flex-direction: column; gap: 10px; align-items: flex-start; }
            .download-all-controls { flex-direction: column; align-items: stretch; }
            .btn-download-all { justify-content: center; }
        }