Spaces:
Paused
Paused
File size: 78,875 Bytes
8e64a96 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 | <!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Subtitle Studio Pro</title>
<!-- لینک فونتها -->
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Lalezar&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<!-- لینک به فایل CSS -->
<link rel="stylesheet" href="/static/css/style.css">
<!-- استایلهای اختصاصی باکسها (به روز شده برای سایز جدید) -->
<style>
.box-style-preview {
background-color: #ffffff;
border-radius: 8px;
padding: 4px 8px;
display: flex;
align-items: center;
justify-content: center;
gap: 2px;
direction: rtl;
font-family: 'Vazirmatn';
font-weight: 900;
font-size: 0.75rem;
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
max-width: 100%;
overflow: hidden;
white-space: nowrap;
}
.box-word { padding: 2px 4px; border-radius: 4px; transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1); color: #d1d1d6; position: relative; z-index: 1; }
.box-word.past { color: #000000; }
.box-word.active { background-color: #1a1a1a; color: #ffffff; transform: scale(1.1); box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 2; }
/* استایل آلفا (به روز شده برای سایز جدید) */
.alpha-style-preview {
background-color: transparent; border-radius: 14px; padding: 5px; display: flex; align-items: center; justify-content: center;
gap: 2px;
direction: rtl; font-family: 'Vazirmatn'; font-weight: 900; font-size: 0.75rem; max-width: 100%; overflow: hidden; white-space: nowrap;
}
.alpha-word { padding: 2px 4px; border-radius: 8px; transition: all 0.25s; color: rgba(255, 255, 255, 0.35); background-color: transparent; position: relative; z-index: 1; }
.alpha-word.past { color: #ffffff; background-color: transparent; }
.alpha-word.active { background: linear-gradient(135deg, #7c4dff, #b388ff); color: #ffffff; transform: scale(1.1); z-index: 2; box-shadow: 0 4px 12px rgba(124, 77, 255, 0.4); }
/* --- استایل پیغام هوشمندانه هوش مصنوعی --- */
.coach-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(5px);
z-index: 9999; display: none; opacity: 0; transition: opacity 0.3s;
}
.coach-overlay.show { opacity: 1; }
.coach-tooltip {
position: fixed; left: 50%; transform: translateX(-50%);
background: linear-gradient(145deg, #1e1e2e, #161622); border: 2px solid #7C4DFF;
border-radius: 24px; padding: 25px; width: 90%; max-width: 380px; text-align: center;
box-shadow: 0 20px 50px rgba(124, 77, 255, 0.5);
animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
opacity: 0;
z-index: 10001;
}
@keyframes popIn {
0% { opacity: 0; transform: translateX(-50%) scale(0.8) translateY(20px); }
100% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}
.coach-icon {
width: 75px; height: 75px; background: linear-gradient(135deg, #FF0080, #7C4DFF);
border-radius: 50%; display: flex; align-items: center; justify-content: center;
font-size: 2.5rem; color: #fff; margin: -60px auto 15px auto;
box-shadow: 0 10px 20px rgba(124, 77, 255, 0.6); border: 4px solid #1e1e2e;
}
.coach-title { font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.coach-text { font-size: 0.95rem; color: #e2e8f0; line-height: 1.7; margin-bottom: 25px; }
.coach-btn {
background: linear-gradient(90deg, #7C4DFF, #00D7FF); border: none; padding: 15px 30px;
border-radius: 18px; color: #fff; font-size: 1.1rem; font-weight: bold; font-family: inherit;
cursor: pointer; box-shadow: 0 5px 20px rgba(0, 215, 255, 0.4); transition: transform 0.2s;
width: 100%;
}
.coach-btn:active { transform: scale(0.95); }
.coach-arrow {
position: fixed; font-size: 2.5rem; color: #00D7FF;
animation: bounceArrowDown 1.5s infinite;
filter: drop-shadow(0 0 15px rgba(0,215,255,0.9));
z-index: 10001;
}
@keyframes bounceArrowDown {
0%, 100% { transform: translateX(-50%) translateY(0); }
50% { transform: translateX(-50%) translateY(-15px); }
}
.relative-z-coach {
position: relative;
z-index: 10000 !important;
box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.8), 0 0 20px rgba(124, 77, 255, 0.8);
border-radius: 12px;
background: #2a2a2a !important;
transition: all 0.3s;
}
/* --- استایلهای دکمه + (اضافه کردن کلمه) کاملاً جدا از کلمه --- */
.add-word-btn {
display: none; /* فقط وقتی کلمه قبلیش اکتیو هست دیده میشه */
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--chip-bg); /* همرنگ پسزمینه کلمات دیگر */
color: #aaa; /* همرنگ متن کلمات دیگر */
align-items: center;
justify-content: center;
font-size: 1.1rem;
margin-right: 8px; /* ایجاد فاصله از کلمه */
cursor: pointer;
transition: transform 0.2s;
z-index: 10;
}
.add-word-btn:active {
transform: scale(0.85);
}
/* نمایش دکمه بدون انیمیشن */
.word-chip.active + .add-word-btn {
display: flex;
}
/* استایل کلمات اضافه شده دستی (زیر کلمه) */
.word-chip.manual-word {
font-size: 0.8rem;
padding: 6px 12px;
background: rgba(124, 77, 255, 0.1);
border: 1px dashed #7C4DFF;
color: #ddd;
}
.word-chip.manual-word.active {
background: var(--primary);
border: 1px solid #fff;
color: #fff;
font-weight: bold;
}
</style>
</head>
<body>
<!-- Toast -->
<div id="toastNotification" class="toast-notification">
<i class="fa-solid fa-circle-check"></i>
<span>این رنگ در حافظه رنگ ها ذخیره شد</span>
</div>
<!-- شیت انتخاب زبان زیرنویس -->
<div class="action-sheet-overlay" id="languageSheetOverlay" onclick="closeLanguageSheet()">
<div class="action-sheet lang-sheet" id="languageSheet" onclick="event.stopPropagation()">
<div class="sheet-title-main">زبان زیرنویس را انتخاب کنید</div>
<p class="lang-sheet-hint">هوش مصنوعی زیرنویس را دقیقاً به همین زبان تولید میکند</p>
<div class="lang-list" id="languageList"></div>
</div>
</div>
<!-- کارت تایید پیش از آپلود (انتخاب ویدیو + انتخاب زبان + شروع آپلود) -->
<div class="pre-upload-overlay" id="preUploadOverlay">
<div class="pre-upload-card">
<button class="pre-upload-close" onclick="cancelPreUpload()"><i class="fa-solid fa-xmark"></i></button>
<div class="pre-upload-icon"><i class="fa-solid fa-clapperboard"></i></div>
<div class="pre-upload-filename" id="preUploadFileName">video.mp4</div>
<div class="pre-upload-filesize" id="preUploadFileSize">۰ مگابایت</div>
<div class="pre-upload-lang-row">
<span class="pre-upload-lang-label"><i class="fa-solid fa-language"></i> زبان زیرنویس</span>
<button class="lang-pill" id="langPillBtn" onclick="openLanguageSheet()">
<span id="langPillFlag">🇮🇷</span> <span id="langPillLabel">فارسی</span>
<i class="fa-solid fa-chevron-down"></i>
</button>
</div>
<button class="btn-start-upload" onclick="confirmStartUpload()">
<i class="fa-solid fa-wand-magic-sparkles"></i> شروع آپلود و تولید زیرنویس
</button>
</div>
</div>
<!-- اینپوت فایل مخفی (برای آپلود) -->
<input type="file" id="fileIn" hidden accept="video/*" onchange="onVideoFileChosen()">
<!-- مدال تغییر نام (پروژه) -->
<div id="renameModal" class="modal-overlay">
<div class="modal-box">
<div class="modal-title">تغییر نام پروژه</div>
<input type="text" id="renameInput" class="input-field" placeholder="نام جدید را وارد کنید">
<div class="modal-actions">
<button class="modal-btn btn-confirm" onclick="saveRename()">ذخیره</button>
<button class="modal-btn btn-cancel" onclick="closeRenameModal()">لغو</button>
</div>
</div>
</div>
<!-- مدال اضافه کردن کلمه جدید دستی -->
<div id="addWordModal" class="modal-overlay">
<div class="modal-box">
<div class="modal-icon" style="color: #00D7FF;"><i class="fa-solid fa-keyboard"></i></div>
<div class="modal-title">اضافه کردن کلمه جدید</div>
<div class="modal-desc">کلمه جدید دقیقاً بعد از کلمه انتخاب شده اضافه میشود و زمانبندی به صورت خودکار محاسبه میگردد.</div>
<input type="text" id="newWordInput" class="input-field" placeholder="کلمه را تایپ کنید...">
<div class="modal-actions">
<button class="modal-btn btn-confirm" style="background: #00D7FF; color: #000;" onclick="confirmAddWord()">اضافه کن</button>
<button class="modal-btn btn-cancel" onclick="closeAddWordModal()">انصراف</button>
</div>
</div>
</div>
<!-- مدال تایید (عمومی) -->
<div id="confirmationModal" class="modal-overlay">
<div class="modal-box">
<div id="confirmIcon" class="modal-icon"><i class="fa-solid fa-question-circle"></i></div>
<div id="confirmTitle" class="modal-title">آیا مطمئن هستید؟</div>
<div id="confirmDesc" class="modal-desc">این عمل غیرقابل بازگشت است.</div>
<div class="modal-actions">
<button id="confirmBtn" class="modal-btn btn-confirm-action">بله</button>
<button class="modal-btn btn-cancel" onclick="closeConfirmationModal()">انصراف</button>
</div>
</div>
</div>
<!-- منوی مدیریت پروژه (پایین صفحه) -->
<div class="action-sheet-overlay" id="projectActionOverlay" onclick="closeActionSheet()">
<div class="action-sheet" id="projectActionSheet" onclick="event.stopPropagation()">
<div class="sheet-title-main">مدیریت پروژه</div>
<button class="sheet-btn" onclick="openRenameModal()">
<i class="fa-solid fa-pen"></i> تغییر نام
</button>
<button class="sheet-btn delete-btn" onclick="openDeleteConfirmation()">
<i class="fa-solid fa-trash-can"></i> حذف پروژه
</button>
</div>
</div>
<!-- صفحه خانه -->
<div id="homeScreen">
<div class="home-header">پروژههای من</div>
<div id="noProjectsPlaceholder" style="display: none;">
<div class="placeholder-icon"><i class="fa-solid fa-film"></i></div>
<div class="placeholder-text">هنوز پروژهای ساخته نشده!</div>
<p style="color:#555; font-size: 0.9rem; margin-top:10px;">برای شروع، روی دکمه "ایجاد پروژه" بزنید</p>
</div>
<div class="projects-grid" id="projectsGrid"></div>
<button class="fab-add" onclick="document.getElementById('fileIn').click()">
<i class="fa-solid fa-plus-circle"></i> انتخاب ویدیو
</button>
</div>
<!-- بخش ادیتور -->
<div id="editorScreen">
<div class="top-bar">
<button class="btn-home" onclick="goHome()">
<i class="fa-solid fa-arrow-right"></i>
</button>
<div style="font-weight:bold" id="currentProjectTitle">پروژه</div>
<button class="btn-exp" onclick="render()" style="padding: 8px 20px; font-size: 0.9rem;">خروجی نهایی <i class="fa-solid fa-chevron-left"></i></button>
</div>
<div id="workspace">
<div id="scaler">
<div id="videoContainer" onclick="togglePlay()">
<video id="vid" playsinline webkit-playsinline></video>
<div id="playOverlay"><i class="fa-solid fa-play"></i></div>
<div id="subtitleLayer"><div id="activeText" ondblclick="toggleTool('text')"></div></div>
</div>
</div>
</div>
<div class="magic-bar">
<button class="btn-ai-magic" onclick="toggleTool('magic')" id="btn-magic">
<i class="fa-solid fa-wand-magic-sparkles"></i>
<span>طراحـی هوشمـنـد AI</span>
</button>
</div>
<div class="controls-bar">
<button class="tool-btn" onclick="toggleTool('style')" id="btn-style"><i class="fa-solid fa-layer-group"></i><span>استایل</span></button>
<button class="tool-btn" onclick="toggleTool('appearance')" id="btn-appearance"><i class="fa-solid fa-palette"></i><span>ظاهر</span></button>
<button class="tool-btn" onclick="toggleTool('font')" id="btn-font"><i class="fa-solid fa-sliders"></i><span>تنظیمات</span></button>
<button class="tool-btn" onclick="toggleTool('text')" id="btn-text"><i class="fa-solid fa-pen-to-square"></i><span>متن</span></button>
</div>
<div id="toolsContainer">
<!-- ابزار هوش مصنوعی -->
<div id="section-magic" class="tool-section">
<label>توصیف کن چه استایل متحرکی میخوای بسازم:</label>
<textarea id="magicPrompt" style="min-height: 60px;" placeholder="مثال: یه استایل آبشاری با کلمات نئونی که از بالا میریزن..."></textarea>
<button class="btn-magic-action" onclick="generateAIStyle()">
<i class="fa-solid fa-sparkles"></i> بساز و اعمال کن
</button>
</div>
<!-- ابزار استایل -->
<div id="section-style" class="tool-section">
<div class="custom-style-container" id="customAccordion" onclick="toggleCustomAccordion()">
<div class="custom-header">
<div class="custom-header-title">
<i class="fa-solid fa-sliders"></i> استایل اختصاصی
</div>
<i class="fa-solid fa-chevron-down toggle-icon"></i>
</div>
<div class="custom-content" onclick="event.stopPropagation()">
<label>نوع نمایش:</label>
<div class="style-grid-2col" style="margin-bottom: 25px;">
<div class="style-card" onclick="activateCustomStyle(); setStylePreset('classic', this)" ondblclick="handleClassicDoubleClick(this)" style="background:rgba(0,0,0,0.3); min-height: 100px; aspect-ratio: auto;">
<div style="font-weight:bold; font-size:1rem; color:#fff;">ساده</div>
<div style="color:#ccc; font-size:0.8rem;">کلاسیک</div>
</div>
<div class="style-card" onclick="activateCustomStyle(); setStylePreset('progressive_write', this)" style="background:rgba(0,0,0,0.3); min-height: 100px; aspect-ratio: auto;">
<div style="font-weight:bold; font-size:1rem; color:#fff;">کلمه به کلمه</div>
<div style="color:#ccc; font-size:0.8rem;">تایپ تدریجی</div>
</div>
</div>
<div class="color-trigger-row">
<div class="color-trigger" onclick="openColorPicker('main', event)">
<span class="color-label">رنگ متن</span>
<div class="color-preview-circle" id="preview-main-btn" style="background-color:#ffffff;"></div>
</div>
<div class="color-trigger" onclick="openColorPicker('bg', event)">
<span class="color-label">رنگ حاشیه</span>
<div class="color-preview-circle" id="preview-bg-btn" style="background-color:#000000;"></div>
</div>
</div>
<div class="row" style="display:flex; gap:10px;">
<button class="btn-exp mode-btn active" onclick="activateCustomStyle(); setMode('solid')">کادر پر</button>
<button class="btn-exp mode-btn" onclick="activateCustomStyle(); setMode('transparent')">شیشهای</button>
<button class="btn-exp mode-btn" onclick="activateCustomStyle(); setMode('outline')">فقط دورخط</button>
</div>
</div>
</div>
<div style="border-top:1px solid #333; margin: 20px 0 15px 0;"></div>
<p style="color:#888; font-size:0.85rem; margin-bottom:15px;">قالبهای آماده هوشمند:</p>
<div class="style-grid">
<!-- ردیف ۱ راست: نئون آلفا -->
<div class="style-card selected" onclick="setStylePreset('alpha_gradient', this)">
<div class="alpha-style-preview demo-row" id="animPreviewAlpha">
<span class="alpha-word" data-dw="0">سلام</span>
<span class="alpha-word" data-dw="1">اینجا</span>
<span class="alpha-word" data-dw="2">آلفا</span>
<span class="alpha-word" data-dw="3">است</span>
</div>
<div class="card-info">
<div class="card-title-style">نئون آلفا</div>
</div>
</div>
<!-- ردیف ۱ چپ: موزیک پلیر -->
<div class="style-card" onclick="setStylePreset('music_player', this)">
<div class="music-style-preview" style="height: auto; width:100%; display: flex; align-items: center; justify-content: center; background: transparent;">
<div style="background: #ffffff; padding: 4px 15px; border-radius: 50px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); color: #000000; font-weight: 900; font-size: 0.7rem; font-family: 'Vazirmatn';">
<span class="demo-full">سلام اینجا آلفا است</span>
</div>
</div>
<div class="card-info">
<div class="card-title-style">موزیک پلیر</div>
</div>
</div>
<!-- ردیف ۲ راست: باکس متحرک -->
<div class="style-card" onclick="setStylePreset('instagram_box', this)">
<div class="box-style-preview demo-row" id="animPreviewBox">
<span class="box-word" data-dw="0">سلام</span>
<span class="box-word" data-dw="1">اینجا</span>
<span class="box-word" data-dw="2">آلفا</span>
<span class="box-word" data-dw="3">است</span>
</div>
<div class="card-info">
<div class="card-title-style">باکس متحرک</div>
</div>
</div>
<!-- ردیف ۲ چپ: کارائوکه رنگی -->
<div class="style-card" onclick="setStylePreset('karaoke_static', this)">
<div class="anim-box demo-row" id="animPreviewStatic">
<span class="anim-word static-anim" data-dw="0">سلام</span>
<span class="anim-word static-anim" data-dw="1">اینجا</span>
<span class="anim-word static-anim" data-dw="2">آلفا</span>
<span class="anim-word static-anim" data-dw="3">است</span>
</div>
<div class="card-info">
<div class="card-title-style">کارائوکه رنگی</div>
</div>
</div>
<!-- ردیف ۳ راست: هایلایت آبی -->
<div class="style-card" onclick="setStylePreset('auto_director', this)">
<div class="anim-box demo-row">
<span class="anim-word" data-dw="0" style="color:#00D7FF; text-shadow:0 0 10px rgba(0, 215, 255, 0.6);">سلام</span>
<span class="anim-word" data-dw-range="1-3">اینجا آلفا است</span>
</div>
<div class="card-info">
<div class="card-title-style">هایلایت آبی</div>
</div>
</div>
<!-- ردیف ۳ چپ: سفید مینیمال -->
<div class="style-card" onclick="setStylePreset('plain_white', this)">
<div class="demo-full" style="font-size:0.9rem; color:#fff; font-weight:900; white-space:nowrap;">سلام اینجا آلفا است</div>
<div class="card-info">
<div class="card-title-style">سفید مینیمال</div>
</div>
</div>
<!-- ردیف ۴: حاشیه مشکی -->
<div class="style-card" onclick="setStylePreset('white_outline', this)">
<div class="demo-full" style="font-size:0.9rem; color:#fff; font-weight:900; -webkit-text-stroke: 0.8px #000; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); white-space:nowrap;">سلام اینجا آلفا است</div>
<div class="card-info">
<div class="card-title-style">حاشیه مشکی</div>
</div>
</div>
<!-- استایل جدید: نوار ساده -->
<div class="style-card" onclick="setStylePreset('simple_bar', this)">
<div style="width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;">
<div style="width: 60%; height: 4px; background: #fff; border-radius: 2px; position: relative;">
<div style="width: 50%; height: 6px; background: #FDD835; position: absolute; top: -1px; left: 0; border-radius: 2px; box-shadow: 0 0 5px rgba(253,216,53,0.5);"></div>
</div>
<div class="demo-full" style="background: rgba(255,255,255,0.2); border-radius: 8px; padding: 4px 10px; font-size: 0.7rem; color: #fff; font-weight: bold;">
سلام اینجا آلفا است
</div>
</div>
<div class="card-info">
<div class="card-title-style">نوار ساده</div>
</div>
</div>
<!-- استایل جدید: لبههای تیره -->
<div class="style-card" onclick="setStylePreset('dark_edges', this)">
<div class="demo-full" style="
color: #fff;
font-weight: 900;
font-size: 0.75rem;
padding: 5px 12px;
border-radius: 8px;
background: linear-gradient(to left, rgba(0,0,0,0.8) 0%, transparent 50%, rgba(0,0,0,0.8) 100%), #AA00FF;
border: 1px solid rgba(255, 255, 255, 0.2);
white-space: nowrap;
">
سلام اینجا آلفا است
</div>
<div class="card-info">
<div class="card-title-style">آبی نئون</div>
</div>
</div>
<!-- استایل جدید: ابر نئونی -->
<div class="style-card" onclick="setStylePreset('blue_cloud', this)">
<div class="demo-full" style="
background: transparent; /* حذف کادر سیاه و شفافسازی پسزمینه */
padding: 6px 12px;
color: #00b4ff;
font-family: 'Sarbaz', sans-serif; /* هماهنگ کردن فونت پیشفرض به سرباز */
font-weight: 900;
font-size: 0.9rem;
-webkit-text-stroke: 0.5px #ffffff;
text-shadow: 0 0 10px rgba(0, 162, 255, 0.9);
white-space: nowrap;
">سلام اینجا آلفا است</div>
<div class="card-info">
<div class="card-title-style">ابر نئونی</div> <!-- تغییر نام به عنوان شکیلتر -->
</div>
</div>
<!-- استایل جدید: آبی دورسفید (بدون ابر) -->
<div class="style-card" onclick="setStylePreset('blue_outline', this)">
<div class="demo-full" style="
background: transparent;
padding: 6px 12px;
color: #0000FF;
font-family: 'Sarbaz', sans-serif;
font-weight: 900;
font-size: 0.9rem;
-webkit-text-stroke: 1.3px #ffffff;
paint-order: stroke fill;
-webkit-paint-order: stroke fill;
white-space: nowrap;
">سلام اینجا آلفا است</div>
<div class="card-info">
<div class="card-title-style">حاشیه سفید</div>
</div>
</div>
<!-- استایل جدید: پاپآپ فنری -->
<div class="style-card" onclick="setStylePreset('spring_popup', this)">
<div class="demo-row" style="display: flex; gap: 4px; justify-content: center; align-items: center; background: transparent; width: 100%; height: 35px; direction: rtl; font-family: 'Vazirmatn', sans-serif;">
<span data-dw="0" style="font-weight: 900; font-size: 0.75rem; color: rgba(255, 255, 255, 0.35);">سلام</span>
<span data-dw="1" style="font-weight: 900; font-size: 0.8rem; color: #ffffff;">اینجا</span>
<span data-dw="2" style="font-weight: 900; font-size: 0.75rem; color: rgba(255, 255, 255, 0.35);">آلفا</span>
<span data-dw="3" style="font-weight: 900; font-size: 0.75rem; color: rgba(255, 255, 255, 0.35);">است</span>
</div>
<div class="card-info">
<div class="card-title-style">پاپآپ فنری</div>
</div>
</div>
<!-- استایل جدید: ریزان ساده (بدون کادر) -->
<div class="style-card" onclick="setStylePreset('falling_plain', this)">
<div class="demo-row" style="display: flex; gap: 4px; justify-content: center; align-items: center; background: transparent; width: 100%; height: 35px; direction: rtl; font-family: 'Vazirmatn', sans-serif;">
<span class="fpl-anim fpl-1" data-dw="0" style="font-weight: 900; font-size: 0.75rem;">سلام</span>
<span class="fpl-anim fpl-2" data-dw="1" style="font-weight: 900; font-size: 0.75rem;">اینجا</span>
<span class="fpl-anim fpl-3" data-dw="2" style="font-weight: 900; font-size: 0.75rem;">آلفا</span>
<span class="fpl-anim fpl-4" data-dw="3" style="font-weight: 900; font-size: 0.75rem;">است</span>
</div>
<style>
.fpl-anim { display: inline-block; opacity: 0; transform: translateY(-15px); color: #fff; }
.fpl-1 { animation: fplDrop1 4s infinite; }
.fpl-2 { animation: fplDrop2 4s infinite; }
.fpl-3 { animation: fplDrop3 4s infinite; }
.fpl-4 { animation: fplDrop4 4s infinite; }
@keyframes fplDrop1 {
0% { opacity: 0; transform: translateY(-15px); color: #FFEB3B; }
10%, 20% { opacity: 1; transform: translateY(0); color: #FFEB3B; }
21%, 85% { opacity: 1; transform: translateY(0); color: #fff; }
86%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes fplDrop2 {
0%, 20% { opacity: 0; transform: translateY(-15px); color: #FFEB3B; }
30%, 40% { opacity: 1; transform: translateY(0); color: #FFEB3B; }
41%, 85% { opacity: 1; transform: translateY(0); color: #fff; }
86%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes fplDrop3 {
0%, 40% { opacity: 0; transform: translateY(-15px); color: #FFEB3B; }
50%, 60% { opacity: 1; transform: translateY(0); color: #FFEB3B; }
61%, 85% { opacity: 1; transform: translateY(0); color: #fff; }
86%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes fplDrop4 {
0%, 60% { opacity: 0; transform: translateY(-15px); color: #FFEB3B; }
70%, 85% { opacity: 1; transform: translateY(0); color: #FFEB3B; }
86%, 100% { opacity: 0; transform: translateY(0); }
}
</style>
<div class="card-info">
<div class="card-title-style">ریزان ساده</div>
</div>
</div>
<!-- استایل جدید: کلمات ریزان (نسخه با کلمه فعال) -->
<!-- استایل جدید: کلمات ریزان (نسخه با کلمه فعال) -->
<div class="style-card" onclick="setStylePreset('falling_words', this)">
<div class="demo-row" style="background-color: #F77D57; padding: 6px 14px; border-radius: 12px; direction: rtl; font-family: 'Vazirmatn'; font-weight: 900; font-size: 0.75rem; color: #fff; display: flex; gap: 4px; min-width: 100px; justify-content: center;">
<span class="fw-anim fw-1" data-dw="0">سلام</span>
<span class="fw-anim fw-2" data-dw="1">اینجا</span>
<span class="fw-anim fw-3" data-dw="2">آلفا</span>
<span class="fw-anim fw-4" data-dw="3">است</span>
</div>
<style>
.fw-anim { display: inline-block; opacity: 0; transform: translateY(-15px); color: #fff; }
.fw-1 { animation: fwDrop1 4s infinite; }
.fw-2 { animation: fwDrop2 4s infinite; }
.fw-3 { animation: fwDrop3 4s infinite; }
.fw-4 { animation: fwDrop4 4s infinite; }
@keyframes fwDrop1 {
0% { opacity: 0; transform: translateY(-15px); color: #FFEB3B; }
10%, 20% { opacity: 1; transform: translateY(0); color: #FFEB3B; }
21%, 85% { opacity: 1; transform: translateY(0); color: #fff; }
86%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes fwDrop2 {
0%, 20% { opacity: 0; transform: translateY(-15px); color: #FFEB3B; }
30%, 40% { opacity: 1; transform: translateY(0); color: #FFEB3B; }
41%, 85% { opacity: 1; transform: translateY(0); color: #fff; }
86%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes fwDrop3 {
0%, 40% { opacity: 0; transform: translateY(-15px); color: #FFEB3B; }
50%, 60% { opacity: 1; transform: translateY(0); color: #FFEB3B; }
61%, 85% { opacity: 1; transform: translateY(0); color: #fff; }
86%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes fwDrop4 {
0%, 60% { opacity: 0; transform: translateY(-15px); color: #FFEB3B; }
70%, 85% { opacity: 1; transform: translateY(0); color: #FFEB3B; }
86%, 100% { opacity: 0; transform: translateY(0); }
}
</style>
<div class="card-info">
<div class="card-title-style">کلمات ریزان</div>
</div>
</div>
<!-- استایل جدید: کادر حاشیه قرمز -->
<div class="style-card" onclick="setStylePreset('red_outline_box', this)">
<div class="demo-row" style="background-color: #F77D57; padding: 6px 14px; border-radius: 12px; direction: rtl; font-family: 'Vazirmatn'; font-weight: 900; font-size: 0.75rem; color: #fff; display: flex; gap: 4px; min-width: 100px; justify-content: center; -webkit-text-stroke: 1px #ff0000; paint-order: stroke fill;">
<span data-dw="0">سلام</span>
<span data-dw="1">اینجا</span>
<span data-dw="2">آلفا</span>
<span data-dw="3">است</span>
</div>
<div class="card-info">
<div class="card-title-style">حاشیه قرمز</div>
</div>
</div>
<!-- استایل جدید: کارائوکه ریزان (Falling Karaoke) -->
<div class="style-card" onclick="setStylePreset('falling_karaoke', this)">
<div class="demo-row" style="display: flex; gap: 2px; justify-content: center; width: 100%; direction: rtl;">
<span class="fk-prev-word fkw-1"><span class="fk-prev-text" data-dw="0">سلام</span></span>
<span class="fk-prev-word fkw-2"><span class="fk-prev-text" data-dw="1">اینجا</span></span>
<span class="fk-prev-word fkw-3"><span class="fk-prev-text" data-dw="2">آلفا</span></span>
<span class="fk-prev-word fkw-4"><span class="fk-prev-text" data-dw="3">است</span></span>
</div>
<style>
.fk-prev-word {
position: relative;
display: inline-block;
padding: 2px 5px;
border-radius: 6px;
font-weight: 900;
font-family: 'Vazirmatn', sans-serif;
font-size: 0.75rem;
color: #fff;
z-index: 1;
}
.fk-prev-word::before {
content: '';
position: absolute;
inset: 0;
background: #F77D57;
border-radius: 6px;
z-index: -1;
opacity: 0;
}
.fk-prev-text {
display: inline-block;
opacity: 0;
transform: translateY(-15px);
}
/* اتصال انیمیشنها به ترتیب */
.fkw-1 .fk-prev-text { animation: fkText1 4s infinite; }
.fkw-1::before { animation: fkBg1 4s infinite; }
.fkw-2 .fk-prev-text { animation: fkText2 4s infinite; }
.fkw-2::before { animation: fkBg2 4s infinite; }
.fkw-3 .fk-prev-text { animation: fkText3 4s infinite; }
.fkw-3::before { animation: fkBg3 4s infinite; }
.fkw-4 .fk-prev-text { animation: fkText4 4s infinite; }
.fkw-4::before { animation: fkBg4 4s infinite; }
/* انیمیشن سقوط کلمات */
@keyframes fkText1 {
0%, 5% { opacity: 0; transform: translateY(-15px); }
10%, 90% { opacity: 1; transform: translateY(0); }
95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes fkText2 {
0%, 25% { opacity: 0; transform: translateY(-15px); }
30%, 90% { opacity: 1; transform: translateY(0); }
95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes fkText3 {
0%, 50% { opacity: 0; transform: translateY(-15px); }
55%, 90% { opacity: 1; transform: translateY(0); }
95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes fkText4 {
0%, 75% { opacity: 0; transform: translateY(-15px); }
80%, 90% { opacity: 1; transform: translateY(0); }
95%, 100% { opacity: 0; transform: translateY(0); }
}
/* انیمیشن کادر پشت کلمات (حالت آمپولی) */
@keyframes fkBg1 {
0%, 5% { opacity: 0; }
10%, 25% { opacity: 1; }
30%, 100% { opacity: 0; }
}
@keyframes fkBg2 {
0%, 25% { opacity: 0; }
30%, 50% { opacity: 1; }
55%, 100% { opacity: 0; }
}
@keyframes fkBg3 {
0%, 50% { opacity: 0; }
55%, 75% { opacity: 1; }
80%, 100% { opacity: 0; }
}
@keyframes fkBg4 {
0%, 75% { opacity: 0; }
80%, 90% { opacity: 1; }
95%, 100% { opacity: 0; }
}
</style>
<div class="card-info">
<div class="card-title-style">کارائوکه ریزان</div>
</div>
</div>
<!-- ===== ۱۰ استایل آماده جدید ===== -->
<!-- حباب نرم درخشان -->
<div class="style-card" onclick="setStylePreset('soft_glow_pill', this)">
<div class="demo-row" style="display:flex; gap:6px; justify-content:center; align-items:center; direction:rtl;">
<span data-dw="0" style="font-weight:900; font-size:0.75rem; color:#fff;">سلام</span>
<span data-dw="1" style="font-weight:900; font-size:0.8rem; color:#fff; background:#7C4DFF; border-radius:999px; padding:2px 10px; box-shadow:0 0 10px #7C4DFF;">اینجا</span>
<span data-dw="2" style="font-weight:900; font-size:0.75rem; color:#fff;">آلفا</span>
</div>
<div class="card-info"><div class="card-title-style">حباب نرم درخشان</div></div>
</div>
<!-- حباب کمیک -->
<div class="style-card" onclick="setStylePreset('comic_bubble', this)">
<div class="demo-row" style="display:flex; gap:6px; justify-content:center; align-items:center; direction:rtl;">
<span data-dw="0" style="font-weight:900; font-size:0.75rem; color:#111; background:#fff; border:2.5px solid #111; border-radius:8px; padding:1px 8px;">سلام</span>
<span data-dw="1" style="font-weight:900; font-size:0.8rem; color:#fff; background:#FF3B30; border:2.5px solid #111; border-radius:8px; padding:1px 8px;">اینجا</span>
<span data-dw="2" style="font-weight:900; font-size:0.75rem; color:#111; background:#fff; border:2.5px solid #111; border-radius:8px; padding:1px 8px;">آلفا</span>
</div>
<div class="card-info"><div class="card-title-style">حباب کمیک</div></div>
</div>
<!-- هایلایت ماژیک -->
<div class="style-card" onclick="setStylePreset('handwritten_marker', this)">
<div class="demo-full" style="font-size:0.9rem; color:#fff; font-weight:900; white-space:nowrap; background:linear-gradient(180deg, transparent 55%, #7C4DFF 55%, #7C4DFF 90%, transparent 90%); padding:0 4px;">سلام اینجا آلفا است</div>
<div class="card-info"><div class="card-title-style">هایلایت ماژیک</div></div>
</div>
<!-- ضربهای بولد -->
<div class="style-card" onclick="setStylePreset('bold_caps_impact', this)">
<div class="demo-full" style="font-size:1rem; color:#fff; font-weight:900; -webkit-text-stroke:1.5px #000; white-space:nowrap;">سلام اینجا آلفا است</div>
<div class="card-info"><div class="card-title-style">ضربهای بولد</div></div>
</div>
<!-- گزارش ورزشی -->
<div class="style-card" onclick="setStylePreset('sport_lower_third', this)">
<div class="demo-row" style="display:flex; gap:2px; justify-content:center; align-items:center; direction:rtl;">
<span data-dw="0" style="font-weight:900; font-size:0.75rem; color:#fff; background:#FF3B30; padding:2px 8px;">سلام</span>
<span data-dw="1" style="font-weight:900; font-size:0.75rem; color:#fff; background:#007AFF; padding:2px 8px;">اینجا</span>
<span data-dw="2" style="font-weight:900; font-size:0.75rem; color:#fff; background:#34C759; padding:2px 8px;">آلفا</span>
</div>
<div class="card-info"><div class="card-title-style">گزارش ورزشی</div></div>
</div>
<!-- گلیچ رترو -->
<div class="style-card" onclick="setStylePreset('retro_vhs_glitch', this)">
<div class="demo-full" style="font-size:0.9rem; color:#fff; font-weight:900; white-space:nowrap; text-shadow: -2px 0 #FF003C, 2px 0 #00DCFF;">سلام اینجا آلفا است</div>
<div class="card-info"><div class="card-title-style">گلیچ رترو</div></div>
</div>
<!-- ظریف و مینیمال -->
<div class="style-card" onclick="setStylePreset('elegant_thin_serif', this)">
<div class="demo-full" style="font-size:0.9rem; color:#fff; font-weight:300; white-space:nowrap; letter-spacing:0.5px;">سلام اینجا آلفا است</div>
<div class="card-info"><div class="card-title-style">ظریف و مینیمال</div></div>
</div>
<!-- سینمایی letterbox -->
<div class="style-card" onclick="setStylePreset('cinematic_letterbox', this)">
<div class="demo-full" style="font-size:0.9rem; color:#fff; font-weight:900; white-space:nowrap; background:#000; padding:6px 14px;">سلام اینجا آلفا است</div>
<div class="card-info"><div class="card-title-style">سینمایی letterbox</div></div>
</div>
<!-- ماشینتحریر سبز -->
<div class="style-card" onclick="setStylePreset('typewriter_mono', this)">
<div class="demo-full" style="font-size:0.9rem; color:#20FF5A; font-weight:900; white-space:nowrap; font-family:monospace; background:#0a0a0a; padding:6px 14px; border:1px solid #20FF5A;">سلام اینجا آلفا است</div>
<div class="card-info"><div class="card-title-style">ماشینتحریر سبز</div></div>
</div>
<!-- گرادینت رنگی -->
<div class="style-card" onclick="setStylePreset('gradient_text', this)">
<div class="demo-full" style="font-size:0.95rem; font-weight:900; white-space:nowrap; background:linear-gradient(90deg, #00E5FF, #7C4DFF, #FF2D95); -webkit-background-clip:text; background-clip:text; color:transparent;">سلام اینجا آلفا است</div>
<div class="card-info"><div class="card-title-style">گرادینت رنگی</div></div>
</div>
</div> <!-- این تگ بسته شدنِ style-grid هست -->
</div>
<!-- ابزار ظاهر -->
<div id="section-appearance" class="tool-section">
<div class="control-group-panel">
<div class="control-group">
<div class="header-neon">
<div class="title-neon"><i class="fa-solid fa-text-height"></i><span>اندازه متن</span></div>
<div class="percent-badge" id="lbl-size">50%</div>
</div>
<div class="range-container">
<input type="range" id="fz" min="0" max="100" value="50" oninput="updateRange(this, 'lbl-size'); upd()">
</div>
</div>
<div class="control-group">
<div class="header-neon">
<div class="title-neon"><i class="fa-solid fa-arrows-left-right"></i><span>موقعیت افقی متن</span></div>
<div class="percent-badge" id="lbl-x">0%</div>
</div>
<div class="range-container">
<div class="center-marker"></div>
<input type="range" id="posX" min="-100" max="100" value="0" oninput="updateRange(this, 'lbl-x'); upd()">
</div>
</div>
<div class="control-group">
<div class="header-neon">
<div class="title-neon"><i class="fa-solid fa-arrows-up-down"></i><span>موقعیت عمودی متن</span></div>
<div class="percent-badge" id="lbl-y">20%</div>
</div>
<div class="range-container">
<input type="range" id="pos" min="0" max="100" value="20" oninput="updateRange(this, 'lbl-y'); upd()">
</div>
</div>
</div>
<div class="control-group-panel" id="boxControlsPanel">
<div class="box-preview-area">
<div id="boxPreview" class="box-preview-element">
<span>متن نمونه</span>
</div>
</div>
<div class="control-group">
<div class="header-neon">
<div class="title-neon"><i class="fa-solid fa-vector-square"></i><span>گردی کادر</span></div>
<div class="percent-badge" id="lbl-radius">16px</div>
</div>
<div class="range-container">
<input type="range" id="radius" min="1" max="50" value="16" oninput="updateRange(this, 'lbl-radius', 'px'); upd()">
</div>
</div>
<div class="control-group">
<div class="header-neon">
<div class="title-neon"><i class="fa-solid fa-arrows-left-right-to-line"></i><span>فاصله افقی</span></div>
<div class="percent-badge" id="lbl-paddingX">20px</div>
</div>
<div class="range-container">
<input type="range" id="paddingX" min="5" max="100" value="20" oninput="updateRange(this, 'lbl-paddingX', 'px'); upd()">
</div>
</div>
<div class="control-group">
<div class="header-neon">
<div class="title-neon"><i class="fa-solid fa-ruler-vertical"></i><span>فاصله عمودی</span></div>
<div class="percent-badge" id="lbl-paddingY">10px</div>
</div>
<div class="range-container">
<input type="range" id="paddingY" min="5" max="50" value="10" oninput="updateRange(this, 'lbl-paddingY', 'px'); upd()">
</div>
</div>
</div>
</div>
<!-- ابزار فونت و تنظیمات -->
<div id="section-font" class="tool-section">
<div class="sub-nav-container">
<div class="sub-nav-btn" onclick="switchSubTab('opacity', this)">انیمیشن</div>
<div class="sub-nav-btn active" onclick="switchSubTab('settings', this)">رنگ</div>
<div class="sub-nav-btn" onclick="switchSubTab('fonts', this)">فونت</div>
</div>
<!-- تب تنظیمات -->
<div id="sub-settings" class="sub-section-content active">
<div id="settingsContainerInline"></div>
<div style="text-align:center; color:#666; font-size:0.8rem; margin-top:20px;">
تنظیمات اختصاصی استایل انتخاب شده
</div>
<!-- پایان تب تنظیمات -->
</div>
<!-- تب شفافیت (بخش جدید) -->
<div id="sub-opacity" class="sub-section-content">
<div class="settings-row-toggle active">
<div class="setting-header" onclick="toggleUnreadOpacity(this)">
<div class="settings-left-part">
<div class="settings-icon-box">
<svg viewBox="0 0 24 24" fill="var(--primary)" style="width:20px; height:20px;"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>
</div>
<span class="settings-label">کم رنگ شدن کلمات جلو</span>
</div>
<div class="premium-toggle"></div>
</div>
</div>
<div style="text-align:center; color:#666; font-size:0.8rem; margin-top:15px; padding:0 10px;">
با فعال کردن این گزینه کلمات جلو کمرنگ خواهد شد.
</div>
<!-- دکمه جدید برای کمرنگ شدن جلو و عقب -->
<div id="surroundingToggleCard" class="settings-row-toggle" style="margin-top: 15px;">
<div class="setting-header" onclick="toggleSurroundingOpacity(this)">
<div class="settings-left-part">
<div class="settings-icon-box">
<svg viewBox="0 0 24 24" fill="var(--primary)" style="width:20px; height:20px;"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-2-5.5l5-3.5-5-3.5v7z"/></svg>
</div>
<span class="settings-label">کم رنگ شدن کلمات جلو و عقب</span>
</div>
<div class="premium-toggle"></div>
</div>
</div>
<div style="text-align:center; color:#666; font-size:0.8rem; margin-top:15px; padding:0 10px;">
با فعال کردن این گزینه، کلمات قبل و بعد از کلمه فعال کمرنگ میشوند.
</div>
<div id="typewriterToggleCard" class="settings-row-toggle" style="margin-top: 15px;">
<div class="setting-header" onclick="toggleTypewriter(this)">
<div class="settings-left-part">
<div class="settings-icon-box">
<svg viewBox="0 0 24 24" fill="var(--primary)" style="width:20px; height:20px;"><path d="M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z"/></svg>
</div>
<span class="settings-label">انیمیشن تایپ شدن حروف</span>
</div>
<div class="premium-toggle"></div>
</div>
</div>
<div style="text-align:center; color:#666; font-size:0.8rem; margin-top:15px; padding:0 10px;">
با فعال کردن این گزینه، کلمات آینده مخفی شده و حروف به نرمی تایپ میشوند.
</div>
</div>
<!-- تب فونت -->
<div id="sub-fonts" class="sub-section-content">
<div class="font-grid">
<button class="font-btn" style="font-family:'Lalezar'; font-size:1rem;" onclick="setFont('lalezar', this)">لاله زار</button>
<button class="font-btn ticked" style="font-family:'Pinar'; font-size:1rem;" onclick="setFont('pinar', this)">پینار</button>
<button class="font-btn" style="font-family:'Amiri'; font-weight:bold; font-size:1rem;" onclick="setFont('amiri', this)">امیری</button>
<button class="font-btn" style="font-family:'Sarbaz'; font-size:1rem;" onclick="setFont('sarbaz', this)">سرباز</button>
<button class="font-btn" style="font-family:'IranNastaliq'; font-size:1rem;" onclick="setFont('nastaliq', this)">نستعلیق</button>
<button class="font-btn" style="font-family:'VazirThin'; font-weight:100; font-size:1rem;" onclick="setFont('vazir-thin', this)">وزیر نازک</button>
<button class="font-btn" style="font-family:'MadaThin'; font-weight:200; font-size:1rem;" onclick="setFont('mada-thin', this)">مادا نازک</button>
<button class="font-btn" style="font-family:'ArefBold';" onclick="setFont('aref-bold', this)">دست نویس بولد</button>
<button class="font-btn" style="font-family:'Dastnevis'; font-size:1rem;" onclick="setFont('dastnevis', this)">دستنویس</button>
<button class="font-btn" style="font-family:'Entazar'; font-size:1rem;" onclick="setFont('entazar', this)">انتظار</button>
<button class="font-btn" style="font-family:'Kamran'; font-size:1rem;" onclick="setFont('kamran', this)">تو خالی</button>
<button class="font-btn" style="font-family:'Gharib'; font-size:1rem;" onclick="setFont('gharib', this)">غریب</button>
<button class="font-btn" style="font-family:'Vazirmatn'; font-weight:900; font-size:1rem;" onclick="setFont('vazir', this)">وزیر ضخیم</button>
<button class="font-btn" style="font-family:'Hasti'; font-size:1rem;" onclick="setFont('hasti', this)">هستی</button>
</div>
</div>
</div>
<!-- ابزار متن -->
<div id="section-text" class="tool-section" style="padding: 0;">
<div class="text-editor-ui">
<div class="toolbar-area" id="toolbar">
<div class="tool-circle" onclick="openSheet('delete')"><i class="fa-solid fa-trash-can"></i></div>
<div class="tool-circle" onclick="openColorPicker('word', event)"><i class="fa-solid fa-palette"></i></div>
<div class="tool-circle" onclick="openSheet('text')"><i class="fa-solid fa-pen"></i></div>
<div class="tool-circle" onclick="openSheet('time')"><i class="fa-regular fa-clock"></i></div>
<div class="tool-circle" id="btnSplit" onclick="toggleSplit()"><i class="fa-solid fa-level-down-alt" style="transform: rotate(90deg);"></i></div>
<!-- دکمه تنظیمات/تولید مجدد -->
<div class="tool-circle" onclick="openSheet('regenerate')"><i class="fa-solid fa-gear"></i></div>
</div>
<div class="fixed-info-bar">
<span class="global-time-text" id="globalTimeDisplay">00:00 / 00:00</span>
</div>
<div class="timeline-scroll-area" id="timelineScroll">
<div class="spacer"></div>
<div class="spacer"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Backdrop انتخاب رنگ -->
<div id="pickerBackdrop" class="picker-backdrop" onclick="closePicker()"></div>
<!-- Modal اصلی انتخاب رنگ -->
<div id="colorPickerModal" class="picker-modal">
<div class="picker-header">
<div class="picker-icon" onclick="saveAndClosePicker()"><i class="fa-solid fa-check"></i></div>
<div style="height: 5px; width: 46px; background: rgba(255,255,255,.18); border-radius: 999px;"></div>
<div class="picker-icon" onclick="closePicker()"><i class="fa-solid fa-xmark"></i></div>
</div>
<div class="picker-tabs">
<div class="picker-tab" id="tab-manual" onclick="switchTab('manual')">دستی</div>
<div class="picker-tab active" id="tab-spectrum" onclick="switchTab('spectrum')">طیف</div>
<div class="picker-tab" id="tab-grid" onclick="switchTab('grid')">گرید</div>
</div>
<!-- بخش طیف -->
<div id="view-spectrum" class="view-section active-view">
<div class="spectrum-container" id="spectrumArea">
<div class="spectrum-overlay"></div>
<div class="spectrum-handle" id="spectrumHandle"></div>
</div>
</div>
<!-- بخش گرید -->
<div id="view-grid" class="view-section">
<div class="grid-view-container" id="gridContainer"></div>
</div>
<!-- بخش دستی -->
<div id="view-manual" class="view-section">
<div class="manual-view-container">
<div class="manual-control-row">
<input type="number" id="input-r" class="manual-num-input" value="200" oninput="updateRGBFromInputs()">
<div class="manual-slider-group">
<div class="manual-label-text">قرمز</div>
<input type="range" id="slider-r" class="rgb-slider" min="0" max="255" value="200" oninput="updateRGBFromSliders()">
</div>
</div>
<div class="manual-control-row">
<input type="number" id="input-g" class="manual-num-input" value="200" oninput="updateRGBFromInputs()">
<div class="manual-slider-group">
<div class="manual-label-text">سبز</div>
<input type="range" id="slider-g" class="rgb-slider" min="0" max="255" value="200" oninput="updateRGBFromSliders()">
</div>
</div>
<div class="manual-control-row">
<input type="number" id="input-b" class="manual-num-input" value="200" oninput="updateRGBFromInputs()">
<div class="manual-slider-group">
<div class="manual-label-text">آبی</div>
<input type="range" id="slider-b" class="rgb-slider" min="0" max="255" value="200" oninput="updateRGBFromSliders()">
</div>
</div>
<div class="hex-row">
<input type="text" id="input-hex" class="hex-input" value="C8C8C8" oninput="updateFromHexInput()">
<span class="hex-label"># Hex Color</span>
</div>
</div>
</div>
<!-- اسلایدرهای سراسری -->
<div class="sliders-global-wrapper">
<div class="global-slider-row" id="brightness-row">
<div class="value-pill" title="روشنایی">
<i class="fa-solid fa-sun"></i>
<span><span id="disp-brightness">100</span>%</span>
</div>
<div class="global-slider-container">
<div class="global-label-top">روشنایی</div>
<input type="range" id="brightness-slider" class="common-slider" min="0" max="100" value="100" oninput="updateBrightness()">
</div>
</div>
<div class="global-slider-row">
<div class="value-pill" title="شفافیت">
<i class="fa-solid fa-droplet"></i>
<span><span id="disp-alpha">56</span>%</span>
</div>
<div class="global-slider-container" style="background: transparent; border:none; padding:0;">
<div class="global-label-top" style="right: 2px;">شفافیت</div>
<div class="alpha-checkered">
<input type="range" id="alpha-slider" class="common-slider" min="0" max="100" value="56" oninput="updateAlpha()">
</div>
</div>
</div>
</div>
<!-- Footer Modal -->
<div class="picker-footer">
<div class="large-preview" id="largeColorPreview"></div>
<div class="saved-colors-container" id="savedColorsContainer">
<div class="btn-save-text" onclick="saveCurrentColor()">
<i class="fa-solid fa-save"></i>
<span>ذخیره رنگ</span>
</div>
</div>
</div>
</div>
<!-- Modal Delete Color -->
<div id="deleteModal" class="delete-overlay">
<div class="delete-box">
<div id="delColorPreview" class="del-preview"></div>
<p class="del-title">آیا این رنگ حذف شود؟</p>
<div class="del-actions">
<button class="del-btn del-btn-confirm" type="button" onclick="confirmDelete()">حذف</button>
<button class="del-btn del-btn-cancel" type="button" onclick="closeDeleteModal()">انصراف</button>
</div>
</div>
</div>
<!-- شیتهای ویرایش پایین صفحه -->
<div class="bottom-sheet-overlay" id="sheetOverlay" onclick="closeAllSheets()">
<!-- ویرایش متن -->
<div class="bottom-sheet" id="sheet-text" onclick="event.stopPropagation()">
<div class="sheet-handle"></div>
<div class="sheet-title">ویرایش متن</div>
<input type="text" id="textInput" class="sheet-input">
<div class="sheet-meta-row">
<span class="time-display-text" id="textTimeDisplay">00.00 -> 00.00</span>
<button class="mini-play-btn" id="btnPreviewPlay" onclick="playPreviewWord()"><i class="fa-solid fa-play"></i></button>
</div>
<div class="sheet-actions">
<button class="action-btn btn-apply-sheet" onclick="saveText()">اعمال</button>
<button class="action-btn btn-cancel-sheet" onclick="closeAllSheets()">لغو</button>
</div>
</div>
<!-- ویرایش زمان (بازطراحی شده) -->
<div class="bottom-sheet" id="sheet-time" onclick="event.stopPropagation()">
<div class="sheet-handle"></div>
<!-- هدر: دکمه پخش و زمان -->
<div class="trimmer-header">
<button id="btnTimeSheetPlay" class="trimmer-play-btn" onclick="playPreviewWord()">
<i id="btnTimeSheetPlayIcon" class="fa-solid fa-play"></i>
</button>
<div class="trimmer-time-display">
<span id="trimStartDisp">00:03.62</span> - <span id="trimEndDisp">00:03.88</span>
</div>
</div>
<!-- بدنه: نوار برش و کلمات قبل/بعد -->
<div class="trimmer-body">
<!-- کلمه قبل -->
<div class="word-preview-side left" id="prevWordPreview">دردی</div>
<!-- نوار زمانی -->
<div class="trimmer-container" id="trimmerContainer">
<div class="timeline-strip" id="timelineStrip">
<!-- اینجا هندلها قرار میگیرند -->
<div class="trim-handle left" id="handleLeft">
<i class="fa-solid fa-chevron-left"></i>
</div>
<div class="trim-track-active" id="trackActive"></div>
<div class="trim-handle right" id="handleRight">
<i class="fa-solid fa-chevron-right"></i>
</div>
</div>
</div>
<!-- کلمه بعد -->
<div class="word-preview-side right" id="nextWordPreview">رفتی</div>
</div>
<!-- کلمه جاری (وسط) -->
<div class="trimmer-current-word" id="timeSheetWord">چه</div>
<!-- دکمههای اکشن -->
<div class="sheet-actions">
<button class="action-btn" style="background: #7C4DFF; color: #fff; font-size: 1.1rem;" onclick="confirmTimeChanges()">اعمال</button>
<button class="action-btn btn-cancel-sheet" onclick="cancelTimeChanges()" style="font-size: 1rem; background: transparent; color: #fff;">لغو</button>
</div>
</div>
<!-- حذف -->
<div class="bottom-sheet" id="sheet-delete" onclick="event.stopPropagation()">
<div class="sheet-handle"></div>
<div class="delete-icon-wrap"><i class="fa-solid fa-trash-can"></i></div>
<div class="delete-msg" id="deleteMsgText"></div>
<div class="sheet-actions">
<button class="action-btn btn-delete-sheet" onclick="confirmDeleteWord()">بله، حذف کن</button>
<button class="action-btn btn-cancel-sheet" onclick="closeAllSheets()">انصراف</button>
</div>
</div>
<!-- تنظیمات / بازتولید -->
<div class="bottom-sheet" id="sheet-regenerate" onclick="event.stopPropagation()">
<div class="sheet-handle"></div>
<!-- حالت اول: دکمه انجام -->
<div id="regen-step-start" style="width:100%; display:flex; flex-direction:column; gap:15px;">
<div class="sheet-title" style="font-size:1rem; font-weight:bold; color:#fff;">تنظیمات زیرنویس</div>
<button class="action-btn" style="background: #333; color: white;" onclick="openSheet('wordcount')">
<i class="fa-solid fa-list-ol"></i> تعداد کلمات در هر بخش
</button>
<button class="action-btn" style="background: linear-gradient(135deg, #FF4081, #7C4DFF); color: white;" onclick="preConfirmRegenerate()">
<i class="fa-solid fa-wand-magic-sparkles"></i> تولید مجدد زیرنویس
</button>
<p style="color:#666; font-size:0.8rem; text-align:center; margin:0;">
در صورت عدم رضایت، هوش مصنوعی دوباره تلاش میکند.
</p>
<button class="action-btn btn-cancel-sheet" onclick="closeAllSheets()">بستن</button>
</div>
<!-- حالت دوم: لودینگ -->
<div id="regen-step-loading" style="display:none; width:100%; flex-direction:column; align-items:center; justify-content:center; gap:20px; padding: 20px 0;">
<div class="sheet-spinner-ring"></div>
<div style="text-align:center;">
<div style="color:#fff; font-weight:bold; margin-bottom:5px;">هوش مصنوعی در حال بازنویسی...</div>
<div style="color:#888; font-size:0.85rem;">لطفاً صبر کنید...</div>
</div>
</div>
<!-- حالت سوم: موفقیت -->
<div id="regen-step-success" style="display:none; width:100%; flex-direction:column; align-items:center; justify-content:center; gap:15px; padding: 20px 0;">
<div class="success-checkmark-anim">
<i class="fa-solid fa-check"></i>
</div>
<div style="color:#00e676; font-weight:bold; font-size:1.1rem;">زیرنویس مجدد تولید شد!</div>
</div>
</div>
<!-- انتخاب تعداد کلمات -->
<div class="bottom-sheet" id="sheet-wordcount" onclick="event.stopPropagation()">
<div class="sheet-handle"></div>
<div class="sheet-title">تعداد کلمات در هر بخش</div>
<div class="word-count-grid">
<button class="wc-btn" onclick="resegmentByWordCount(1)">1</button>
<button class="wc-btn" onclick="resegmentByWordCount(2)">2</button>
<button class="wc-btn" onclick="resegmentByWordCount(3)">3</button>
<button class="wc-btn" onclick="resegmentByWordCount(4)">4</button>
<button class="wc-btn" onclick="resegmentByWordCount(5)">5</button>
<button class="wc-btn" onclick="resegmentByWordCount(6)">6</button>
<button class="wc-btn" onclick="resegmentByWordCount(7)">7</button>
<button class="wc-btn" onclick="resegmentByWordCount(8)">8</button>
<button class="wc-btn" onclick="resegmentByWordCount(9)">9</button>
<button class="wc-btn" onclick="resegmentByWordCount(10)">10</button>
</div>
<button class="action-btn btn-cancel-sheet" onclick="openSheet('regenerate')">بازگشت</button>
</div>
</div>
<!-- پیغام هوشمند هوش مصنوعی -->
<div id="aiCoachMarkOverlay" class="coach-overlay" onclick="closeAITooltip()">
<div id="coachTooltip" class="coach-tooltip" onclick="event.stopPropagation()">
<div class="coach-icon">
<i class="fa-solid fa-robot"></i>
</div>
<div class="coach-title">هوش مصنوعی کارشو انجام داد!</div>
<div class="coach-text">
متن این ویدیو توسط هوش مصنوعی تولید شده و ممکنه بعضی کلمات به خاطر لحن گفتار نیاز به اصلاح داشته باشن.<br><br>
اگه اشتباه املایی دیدی، کافیه از بخش <b style="color: #00D7FF;">«متن»</b> روی کلمه مورد نظر کلیک کنی و خیلی راحت اصلاحش کنی!
</div>
<button class="coach-btn" onclick="closeAITooltip()">متوجه شدم</button>
</div>
<!-- فلش راهنما به سمت پایین -->
<div id="coachArrow" class="coach-arrow">
<i class="fa-solid fa-arrow-down"></i>
</div>
</div>
<!-- لودینگ نئونی جدید -->
<div id="loader">
<div class="loader-wrapper">
<div class="modern-loader">
<div class="loader-ring"></div>
<div class="loader-ring"></div>
<div class="loader-ring"></div>
<div class="loader-icon">
<i class="fa-solid fa-wand-magic-sparkles"></i>
</div>
</div>
<div class="text-container">
<div class="loading-title" id="loaderTitle">در حال آماده سازی...</div>
<div class="loading-sub" id="queueStatusMsg">لطفاً صبور باشید ☘️</div>
<!-- نوار پیشرفت واقعی -->
<div id="uploadProgressContainer" style="display: none; width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; margin-top: 15px; overflow: hidden; position: relative;">
<div id="uploadProgressBar" style="width: 0%; height: 100%; background: linear-gradient(90deg, #b000ff, #0077ff); transition: width 0.2s ease;"></div>
<!-- افکت درخشش روی نوار -->
<div style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: progressGlow 1.5s infinite;"></div>
</div>
</div>
<style>
@keyframes progressGlow {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
</style>
</div>
</div>
<!-- صفحه نتیجه -->
<div id="resultScreen">
<h3 style="color:#fff; margin-bottom: 15px;">ویدیو آماده شد!</h3>
<div style="width: 90%; max-width: 400px; height: 50vh; background: #111; border-radius: 15px; overflow: hidden; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; border: 1px solid #333;">
<video id="resultVideo" controls style="max-width:100%; max-height:100%; width:100%; height:100%;"></video>
</div>
<div style="display: flex; gap: 15px;">
<a id="downloadBtn" href="#" download class="btn-exp" style="background: #00C853; text-decoration: none; display: flex; align-items: center; gap: 8px;"><i class="fa-solid fa-download"></i> دانلود</a>
<button class="btn-exp" style="background: #444;" onclick="closeResult()">بستن</button>
</div>
</div>
<!-- اسکریپت کنترل پیغام هوش مصنوعی (اصلاح شده برای قرارگیری بالای دکمه) -->
<script>
function showAITooltip() {
const overlay = document.getElementById('aiCoachMarkOverlay');
const targetBtn = document.getElementById('btn-text');
const tooltip = document.getElementById('coachTooltip');
const arrow = document.getElementById('coachArrow');
const controlsBar = document.querySelector('.controls-bar');
if (!targetBtn || !overlay || !tooltip || !arrow) return;
// بالا آوردن z-index نوار کنترل تا دکمه متن بالای لایه مشکی قرار بگیرد
if (controlsBar) controlsBar.style.zIndex = '10000';
targetBtn.classList.add('relative-z-coach');
overlay.style.display = 'block';
// محاسبه جایگاه دقیق دکمه نسبت به صفحه
const rect = targetBtn.getBoundingClientRect();
// محاسبه فاصله از پایین صفحه تا بالای دکمه متن
const distFromBottom = window.innerHeight - rect.top;
// قرار دادن پیام بالای دکمه (روی ویدیو)
tooltip.style.top = 'auto';
tooltip.style.bottom = (distFromBottom + 50) + 'px';
// قرار دادن فلش دقیقاً بالای دکمه
arrow.style.top = 'auto';
arrow.style.bottom = (distFromBottom + 10) + 'px';
arrow.style.left = (rect.left + rect.width / 2) + 'px';
setTimeout(() => { overlay.classList.add('show'); }, 10);
}
function closeAITooltip() {
const overlay = document.getElementById('aiCoachMarkOverlay');
const targetBtn = document.getElementById('btn-text');
const controlsBar = document.querySelector('.controls-bar');
if (overlay) {
overlay.classList.remove('show');
setTimeout(() => {
overlay.style.display = 'none';
// برگرداندن z-index به حالت اولیه پس از بسته شدن
if (controlsBar) controlsBar.style.zIndex = '90';
if (targetBtn) targetBtn.classList.remove('relative-z-coach');
}, 300);
}
}
</script>
<!-- اسکریپت انیمیشن باکس -->
<script>
function startBoxAnim() {
const container = document.getElementById('animPreviewBox');
if(!container) return;
const words = container.querySelectorAll('.box-word');
let index = 0;
setInterval(() => {
words.forEach((w, i) => {
w.className = 'box-word';
if (i < index) w.classList.add('past');
else if (i === index) w.classList.add('active');
});
index++; if (index > words.length) index = 0;
}, 700);
}
function startAlphaAnim() {
const container = document.getElementById('animPreviewAlpha');
if(!container) return;
const words = container.querySelectorAll('.alpha-word');
let index = 0;
setInterval(() => {
words.forEach((w, i) => {
w.className = 'alpha-word';
if (i < index) w.classList.add('past');
else if (i === index) w.classList.add('active');
});
index++; if (index > words.length) index = 0;
}, 700);
}
// اجرای انیمیشن هنگام لود
window.addEventListener('load', () => {
startBoxAnim();
startAlphaAnim();
});
</script>
<!-- بارگذاری اسکریپتها -->
<script src="/static/js/globals.js"></script>
<script src="/static/js/utils.js"></script>
<script src="/static/js/db.js"></script>
<script src="/static/js/api.js"></script>
<script src="/static/js/ui.js"></script>
<script src="/static/js/editor.js"></script>
<script src="/static/js/main.js"></script>
</body>
</html> |