Spaces:
Running
Running
File size: 49,567 Bytes
711bea7 41f1d80 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 72f5d55 711bea7 72f5d55 600e1e0 72f5d55 b59b083 600e1e0 b59b083 600e1e0 41f1d80 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 b59b083 711bea7 600e1e0 711bea7 72f5d55 711bea7 41f1d80 711bea7 600e1e0 711bea7 b59b083 711bea7 b59b083 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 b59b083 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 600e1e0 41f1d80 600e1e0 711bea7 600e1e0 41f1d80 600e1e0 711bea7 600e1e0 711bea7 600e1e0 711bea7 41f1d80 b59b083 41f1d80 600e1e0 b59b083 41f1d80 b59b083 41f1d80 b59b083 41f1d80 600e1e0 b59b083 41f1d80 b59b083 41f1d80 b59b083 41f1d80 600e1e0 41f1d80 b59b083 41f1d80 600e1e0 b59b083 41f1d80 600e1e0 b59b083 41f1d80 b59b083 41f1d80 b59b083 41f1d80 711bea7 41f1d80 711bea7 b59b083 41f1d80 b59b083 600e1e0 41f1d80 600e1e0 41f1d80 711bea7 41f1d80 600e1e0 41f1d80 600e1e0 41f1d80 600e1e0 41f1d80 b59b083 711bea7 41f1d80 b59b083 711bea7 72f5d55 41f1d80 72f5d55 711bea7 41f1d80 72f5d55 41f1d80 72f5d55 41f1d80 72f5d55 41f1d80 b59b083 711bea7 41f1d80 600e1e0 41f1d80 b59b083 600e1e0 41f1d80 600e1e0 41f1d80 600e1e0 41f1d80 600e1e0 41f1d80 600e1e0 b59b083 41f1d80 b59b083 600e1e0 b59b083 41f1d80 711bea7 41f1d80 72f5d55 600e1e0 b59b083 41f1d80 b59b083 41f1d80 b59b083 41f1d80 b59b083 41f1d80 b59b083 600e1e0 41f1d80 600e1e0 41f1d80 600e1e0 b59b083 41f1d80 b59b083 41f1d80 b59b083 600e1e0 b59b083 41f1d80 b59b083 41f1d80 b59b083 41f1d80 b59b083 41f1d80 600e1e0 b59b083 41f1d80 600e1e0 b59b083 41f1d80 600e1e0 b59b083 41f1d80 600e1e0 711bea7 72f5d55 41f1d80 72f5d55 41f1d80 711bea7 | 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 | <!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CinéVerse - 20,500 Films Complets - Mode Automatique</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
background-color: #0f172a;
color: #f8fafc;
}
.hero-gradient {
background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(124,58,237,0.6) 100%);
}
.movie-card {
transition: all 0.3s ease;
transform-origin: center;
}
.movie-card:hover {
transform: scale(1.05);
z-index: 10;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}
.movie-card:hover .play-icon {
opacity: 1;
transform: translate(-50%, -50%) scale(1.1);
}
.play-icon {
transition: all 0.3s ease;
}
.loading-spinner {
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #1e293b;
}
::-webkit-scrollbar-thumb {
background: #6366f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #4f46e5;
}
/* Video player styles */
.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
/* Loading overlay */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.9);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
/* Movie grid */
.movie-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1.5rem;
}
@media (max-width: 768px) {
.movie-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
}
/* Rating stars */
.rating-stars {
color: #f59e0b;
}
/* Skeleton loading */
.skeleton {
background-color: #1e293b;
background-image: linear-gradient(90deg, #1e293b, #334155, #1e293b);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* Floating action button */
.fab {
position: fixed;
bottom: 2rem;
right: 2rem;
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #7c3aed, #4f46e5);
color: white;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
cursor: pointer;
z-index: 40;
transition: all 0.3s ease;
}
.fab:hover {
transform: scale(1.1);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
/* Movie details modal */
.movie-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.9);
z-index: 50;
overflow-y: auto;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.movie-modal.active {
opacity: 1;
pointer-events: all;
}
/* Video quality selector */
.quality-selector {
position: absolute;
bottom: 20px;
right: 20px;
z-index: 60;
background: rgba(0, 0, 0, 0.7);
border-radius: 4px;
overflow: hidden;
}
.quality-btn {
display: block;
padding: 8px 12px;
color: white;
background: transparent;
border: none;
cursor: pointer;
text-align: left;
width: 100%;
}
.quality-btn:hover {
background: rgba(255, 255, 255, 0.1);
}
/* Auto-play notification */
.autoplay-notification {
position: fixed;
bottom: 20px;
left: 20px;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px 15px;
border-radius: 4px;
z-index: 100;
display: none;
}
/* Auto-play controls */
.autoplay-controls {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px 15px;
border-radius: 4px;
z-index: 100;
display: flex;
gap: 10px;
}
.autoplay-btn {
background: #4f46e5;
border: none;
color: white;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.autoplay-btn:hover {
background: #6366f1;
}
.autoplay-speed {
background: #1e293b;
border: none;
color: white;
padding: 5px;
border-radius: 4px;
cursor: pointer;
}
</style>
</head>
<body>
<!-- Navigation -->
<nav class="bg-gray-900/90 backdrop-blur-md fixed w-full z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0">
<span class="text-2xl font-bold bg-gradient-to-r from-purple-600 to-blue-500 bg-clip-text text-transparent">CinéVerse</span>
</div>
<div class="hidden md:block">
<div class="ml-10 flex items-baseline space-x-4">
<a href="#" class="text-white px-3 py-2 rounded-md text-sm font-medium">Accueil</a>
<a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Films</a>
<a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Genres</a>
<a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Nouveautés</a>
</div>
</div>
</div>
<div class="hidden md:block">
<div class="ml-4 flex items-center md:ml-6">
<div class="relative mx-4">
<input type="text" id="searchInput" placeholder="Rechercher un film..." class="bg-gray-800 text-white px-4 py-1 rounded-full w-64 focus:outline-none focus:ring-2 focus:ring-purple-500">
<button id="searchButton" class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400">
<i class="fas fa-search"></i>
</button>
</div>
<div class="ml-3 relative">
<div>
<button class="max-w-xs flex items-center text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
<img class="h-8 w-8 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile">
</button>
</div>
</div>
</div>
</div>
<div class="-mr-2 flex md:hidden">
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
<span class="sr-only">Open main menu</span>
<i class="fas fa-bars"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="relative h-screen flex items-center justify-center overflow-hidden">
<div class="absolute inset-0">
<img src="https://image.tmdb.org/t/p/original/8Y43POKVKDj7PQzn4L5MLT5JxLX.jpg" alt="Hero background" class="w-full h-full object-cover">
<div class="absolute inset-0 hero-gradient"></div>
</div>
<div class="relative z-10 px-4 sm:px-6 lg:px-8 max-w-4xl mx-auto text-center">
<h1 class="text-4xl md:text-6xl font-bold mb-6 text-white">20,500 Films Complets</h1>
<p class="text-xl md:text-2xl mb-8 text-gray-200">Regardez les meilleurs films en streaming illimité. Sans publicité. Sans engagement.</p>
<div class="flex flex-col sm:flex-row justify-center gap-4">
<button id="playFeaturedMovie" class="bg-purple-600 hover:bg-purple-700 text-white font-bold py-3 px-8 rounded-full text-lg flex items-center justify-center transition duration-300 transform hover:scale-105">
<i class="fas fa-play mr-2"></i> Commencer à regarder
</button>
<button id="startAutoplay" class="bg-green-600 hover:bg-green-700 text-white font-bold py-3 px-8 rounded-full text-lg flex items-center justify-center transition duration-300 transform hover:scale-105">
<i class="fas fa-bolt mr-2"></i> Mode Automatique
</button>
</div>
</div>
<div class="absolute bottom-0 left-0 right-0 h-32 bg-gradient-to-t from-gray-900 to-transparent"></div>
</section>
<!-- Main Content -->
<main class="pt-16 pb-20 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
<!-- Featured Movies -->
<section class="mb-12">
<div class="flex items-center justify-between mb-6">
<h2 class="text-2xl font-bold">Nouveautés à ne pas manquer</h2>
<a href="#" class="text-purple-400 hover:text-purple-300 flex items-center">
Voir tout <i class="fas fa-chevron-right ml-1"></i>
</a>
</div>
<div class="movie-grid" id="newReleasesGrid">
<!-- Movie cards will be generated by JavaScript -->
</div>
</section>
<!-- Trending Now -->
<section class="mb-12">
<div class="flex items-center justify-between mb-6">
<h2 class="text-2xl font-bold">Tendances du moment</h2>
<a href="#" class="text-purple-400 hover:text-purple-300 flex items-center">
Voir tout <i class="fas fa-chevron-right ml-1"></i>
</a>
</div>
<div class="movie-grid" id="trendingGrid">
<!-- Movie cards will be generated by JavaScript -->
</div>
</section>
<!-- Popular Movies -->
<section class="mb-12">
<div class="flex items-center justify-between mb-6">
<h2 class="text-2xl font-bold">Films populaires</h2>
<a href="#" class="text-purple-400 hover:text-purple-300 flex items-center">
Voir tout <i class="fas fa-chevron-right ml-1"></i>
</a>
</div>
<div class="movie-grid" id="popularMoviesGrid">
<!-- Movie cards will be generated by JavaScript -->
</div>
</section>
<!-- Full Catalog -->
<section class="mb-12">
<div class="flex items-center justify-between mb-6">
<h2 class="text-2xl font-bold">Notre catalogue complet</h2>
<div class="flex items-center gap-2">
<button id="sortButton" class="bg-gray-800 hover:bg-gray-700 text-white px-3 py-1 rounded text-sm flex items-center">
<i class="fas fa-sort mr-2"></i> Trier par
</button>
<button id="filterButton" class="bg-gray-800 hover:bg-gray-700 text-white px-3 py-1 rounded text-sm flex items-center">
<i class="fas fa-filter mr-2"></i> Filtrer
</button>
</div>
</div>
<div class="movie-grid" id="fullCatalogGrid">
<!-- Full catalog will be loaded here -->
</div>
<div class="mt-8 text-center">
<button id="loadMoreButton" class="bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-6 rounded-full">
Charger plus de films
</button>
</div>
</section>
<!-- Genres -->
<section class="mb-12">
<h2 class="text-2xl font-bold mb-6">Parcourir par genre</h2>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4">
<a href="#" class="genre-pill bg-gradient-to-r from-red-600 to-pink-600 rounded-lg p-4 text-center cursor-pointer transition duration-300 hover:shadow-lg">
<i class="fas fa-heart text-2xl mb-2"></i>
<h3 class="font-medium">Romance</h3>
</a>
<a href="#" class="genre-pill bg-gradient-to-r from-blue-600 to-indigo-600 rounded-lg p-4 text-center cursor-pointer transition duration-300 hover:shadow-lg">
<i class="fas fa-space-shuttle text-2xl mb-2"></i>
<h3 class="font-medium">Science-fiction</h3>
</a>
<a href="#" class="genre-pill bg-gradient-to-r from-green-600 to-emerald-600 rounded-lg p-4 text-center cursor-pointer transition duration-300 hover:shadow-lg">
<i class="fas fa-laugh-beam text-2xl mb-2"></i>
<h3 class="font-medium">Comédie</h3>
</a>
<a href="#" class="genre-pill bg-gradient-to-r from-yellow-600 to-amber-600 rounded-lg p-4 text-center cursor-pointer transition duration-300 hover:shadow-lg">
<i class="fas fa-bolt text-2xl mb-2"></i>
<h3 class="font-medium">Action</h3>
</a>
<a href="#" class="genre-pill bg-gradient-to-r from-purple-600 to-fuchsia-600 rounded-lg p-4 text-center cursor-pointer transition duration-300 hover:shadow-lg">
<i class="fas fa-ghost text-2xl mb-2"></i>
<h3 class="font-medium">Horreur</h3>
</a>
<a href="#" class="genre-pill bg-gradient-to-r from-gray-600 to-slate-600 rounded-lg p-4 text-center cursor-pointer transition duration-300 hover:shadow-lg">
<i class="fas fa-user-secret text-2xl mb-2"></i>
<h3 class="font-medium">Thriller</h3>
</a>
</div>
</section>
</main>
<!-- Floating Action Button -->
<div class="fab" id="scrollToTop">
<i class="fas fa-arrow-up"></i>
</div>
<!-- Movie Details Modal -->
<div class="movie-modal" id="movieModal">
<div class="max-w-6xl mx-auto p-4 sm:p-8">
<div class="flex justify-end mb-4">
<button id="closeModal" class="text-white hover:text-purple-400 text-3xl">
<i class="fas fa-times"></i>
</button>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<div class="lg:col-span-1">
<img id="modalPoster" src="" alt="Movie Poster" class="w-full rounded-lg shadow-xl">
</div>
<div class="lg:col-span-2">
<h2 id="modalTitle" class="text-3xl font-bold mb-2"></h2>
<div class="flex items-center mb-4">
<div class="rating-stars text-lg mr-2">
<span id="modalRating"></span>
</div>
<span class="text-gray-400 mr-4" id="modalYear"></span>
<span class="text-gray-400" id="modalDuration"></span>
</div>
<div class="flex flex-wrap gap-2 mb-6" id="modalGenres">
<!-- Genres will be added here -->
</div>
<h3 class="text-xl font-semibold mb-2">Synopsis</h3>
<p class="text-gray-300 mb-6" id="modalOverview"></p>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4 mb-6">
<div>
<h4 class="text-gray-400">Réalisateur</h4>
<p id="modalDirector" class="text-white">Christopher Nolan</p>
</div>
<div>
<h4 class="text-gray-400">Acteurs</h4>
<p id="modalCast" class="text-white">Leonardo DiCaprio, Joseph Gordon-Levitt, Ellen Page</p>
</div>
</div>
<div class="flex gap-4">
<button id="playMovieBtn" class="bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-6 rounded-full flex items-center">
<i class="fas fa-play mr-2"></i> Regarder
</button>
<button id="playMovieAutoBtn" class="bg-green-600 hover:bg-green-700 text-white font-medium py-2 px-6 rounded-full flex items-center">
<i class="fas fa-bolt mr-2"></i> Mode Automatique
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Video Player -->
<div id="videoPlayer" class="fixed inset-0 z-50 bg-black hidden flex flex-col">
<div class="absolute top-4 left-4 z-50">
<button id="closePlayer" class="text-white hover:text-purple-400 text-2xl">
<i class="fas fa-times"></i>
</button>
</div>
<div class="video-wrapper relative flex-grow">
<div class="video-container">
<iframe id="movieFrame" frameborder="0" allowfullscreen allow="autoplay; fullscreen"></iframe>
</div>
</div>
<!-- Auto-play controls -->
<div class="autoplay-controls" id="autoplayControls">
<button id="stopAutoplayBtn" class="autoplay-btn">
<i class="fas fa-stop mr-1"></i> Arrêter
</button>
<select id="playbackSpeed" class="autoplay-speed">
<option value="1">1x Vitesse</option>
<option value="1.25">1.25x Vitesse</option>
<option value="1.5">1.5x Vitesse</option>
<option value="2">2x Vitesse</option>
</select>
</div>
</div>
<!-- Auto-play notification -->
<div class="autoplay-notification" id="autoplayNotification">
<span id="countdownText">Lecture automatique dans <span id="countdown">5</span> secondes...</span>
<button id="cancelAutoplay" class="ml-4 text-sm text-purple-300 hover:text-purple-100">Annuler</button>
</div>
<!-- Loading Overlay -->
<div id="loadingOverlay" class="loading-overlay hidden">
<div class="text-center">
<div class="loading-spinner inline-block w-16 h-16 border-4 border-purple-500 border-t-transparent rounded-full mb-4"></div>
<p class="text-white text-xl">Chargement du film...</p>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-900 text-gray-400 py-12 px-4 sm:px-6 lg:px-8">
<div class="max-w-7xl mx-auto">
<div class="grid grid-cols-2 md:grid-cols-4 gap-8">
<div>
<h3 class="text-white text-lg font-semibold mb-4">Navigation</h3>
<ul class="space-y-2">
<li><a href="#" class="hover:text-white">Accueil</a></li>
<li><a href="#" class="hover:text-white">Films</a></li>
<li><a href="#" class="hover:text-white">Séries</a></li>
<li><a href="#" class="hover:text-white">Nouveautés</a></li>
</ul>
</div>
<div>
<h3 class="text-white text-lg font-semibold mb-4">Informations</h3>
<ul class="space-y-2">
<li><a href="#" class="hover:text-white">À propos</a></li>
<li><a href="#" class="hover:text-white">Contact</a></li>
<li><a href="#" class="hover:text-white">Presse</a></li>
<li><a href="#" class="hover:text-white">Carrières</a></li>
</ul>
</div>
<div>
<h3 class="text-white text-lg font-semibold mb-4">Légal</h3>
<ul class="space-y-2">
<li><a href="#" class="hover:text-white">Conditions d'utilisation</a></li>
<li><a href="#" class="hover:text-white">Confidentialité</a></li>
<li><a href="#" class="hover:text-white">Cookies</a></li>
<li><a href="#" class="hover:text-white">Mentions légales</a></li>
</ul>
</div>
<div>
<h3 class="text-white text-lg font-semibold mb-4">Nous suivre</h3>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-facebook-f text-xl"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-twitter text-xl"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-instagram text-xl"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-youtube text-xl"></i>
</a>
</div>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<span class="text-xl font-bold bg-gradient-to-r from-purple-600 to-blue-500 bg-clip-text text-transparent">CinéVerse</span>
</div>
<div class="text-sm">
© 2024 CinéVerse. Tous droits réservés.
</div>
</div>
</div>
</footer>
<script>
// Configuration de la base de données de films
const movieDatabase = [];
const totalMovies = 20500;
// Variables pour le mode automatique
let autoplayInterval;
let currentAutoplayMovieIndex = 0;
let isAutoplayActive = false;
let playbackSpeed = 1;
// Générateur de films avec des données réalistes
const generateMovieDatabase = () => {
const genres = [
{id: 28, name: "Action"},
{id: 12, name: "Aventure"},
{id: 16, name: "Animation"},
{id: 35, name: "Comédie"},
{id: 80, name: "Crime"},
{id: 18, name: "Drame"},
{id: 10751, name: "Familial"},
{id: 14, name: "Fantastique"},
{id: 36, name: "Histoire"},
{id: 27, name: "Horreur"},
{id: 10402, name: "Musique"},
{id: 9648, name: "Mystère"},
{id: 10749, name: "Romance"},
{id: 878, name: "Science-Fiction"},
{id: 53, name: "Thriller"}
];
const directors = [
"Christopher Nolan", "Steven Spielberg", "Martin Scorsese",
"Quentin Tarantino", "David Fincher", "James Cameron",
"Peter Jackson", "Ridley Scott", "Alfred Hitchcock",
"Stanley Kubrick", "Francis Ford Coppola", "Tim Burton"
];
const actors = [
"Leonardo DiCaprio", "Tom Hanks", "Brad Pitt", "Robert Downey Jr.",
"Johnny Depp", "Will Smith", "Denzel Washington", "Tom Cruise",
"Matt Damon", "Christian Bale", "Morgan Freeman", "Samuel L. Jackson",
"Harrison Ford", "Al Pacino", "Robert De Niro", "Meryl Streep",
"Scarlett Johansson", "Jennifer Lawrence", "Emma Stone", "Natalie Portman"
];
const titles = [
"Inception", "The Dark Knight", "Interstellar", "Pulp Fiction",
"Fight Club", "The Shawshank Redemption", "The Godfather",
"Forrest Gump", "The Matrix", "Goodfellas", "The Silence of the Lambs",
"Saving Private Ryan", "Gladiator", "Titanic", "Avatar", "Jurassic Park",
"Star Wars", "The Lord of the Rings", "Harry Potter", "The Avengers"
];
const suffixes = [
"Le Retour", "La Revanche", "L'Héritage", "La Fin",
"Le Commencement", "La Dernière Chance", "La Bataille Finale",
"Les Origines", "La Menace", "L'Alliance", "La Prophétie"
];
for (let i = 0; i < totalMovies; i++) {
const titleIndex = i % titles.length;
const suffixIndex = i % suffixes.length;
const genreCount = Math.floor(Math.random() * 3) + 1;
const movieGenres = [];
for (let j = 0; j < genreCount; j++) {
const randomGenre = genres[Math.floor(Math.random() * genres.length)];
if (!movieGenres.some(g => g.id === randomGenre.id)) {
movieGenres.push(randomGenre);
}
}
// Créer un titre unique pour les films après les premiers
let movieTitle = titles[titleIndex];
if (i >= titles.length) {
movieTitle = `${titles[titleIndex]} : ${suffixes[suffixIndex]}`;
}
// Générer une date de sortie aléatoire entre 1950 et 2024
const year = Math.floor(Math.random() * (2024 - 1950 + 1)) + 1950;
const month = Math.floor(Math.random() * 12) + 1;
const day = Math.floor(Math.random() * 28) + 1;
const releaseDate = `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;
// Générer une durée aléatoire entre 1h30 et 3h
const hours = Math.floor(Math.random() * 2) + 1;
const minutes = Math.floor(Math.random() * 60);
const duration = `${hours}h ${minutes}min`;
// Sélectionner aléatoirement un réalisateur et des acteurs
const director = directors[Math.floor(Math.random() * directors.length)];
const cast = [];
const actorCount = Math.floor(Math.random() * 4) + 2;
for (let k = 0; k < actorCount; k++) {
const randomActor = actors[Math.floor(Math.random() * actors.length)];
if (!cast.includes(randomActor)) {
cast.push(randomActor);
}
}
// Générer une note aléatoire entre 2.5 et 9.5
const rating = (Math.random() * 7 + 2.5).toFixed(1);
// Créer l'objet film
const movie = {
id: i + 1,
title: movieTitle,
original_title: movieTitle,
overview: `Un film captivant avec une histoire intrigante et des personnages mémorables. Réalisé par ${director} avec ${cast.join(", ")}.`,
poster_path: `/posters/${(i % 20) + 1}.jpg`, // 20 posters différents en rotation
backdrop_path: `/backdrops/${(i % 10) + 1}.jpg`, // 10 fonds différents en rotation
release_date: releaseDate,
vote_average: parseFloat(rating),
vote_count: Math.floor(Math.random() * 10000),
genre_ids: movieGenres.map(g => g.id),
genres: movieGenres,
popularity: Math.floor(Math.random() * 100),
video: true,
adult: Math.random() > 0.8, // 20% de chance d'être pour adultes
duration: duration,
director: director,
cast: cast.join(", "),
language: 'Français',
isFeatured: i < 20,
isTrending: i >= 20 && i < 40,
isPopular: i >= 40 && i < 60,
video_urls: {
'1080': `https://example.com/videos/${i+1}/1080p.mp4`,
'720': `https://example.com/videos/${i+1}/720p.mp4`,
'480': `https://example.com/videos/${i+1}/480p.mp4`
}
};
movieDatabase.push(movie);
}
return movieDatabase;
};
// Initialisation de la base de données
generateMovieDatabase();
// Générer les cartes de films
const generateMovieCard = (movie) => {
// Utiliser des images de placeholder pour la démo
const posterUrl = `https://via.placeholder.com/500x750?text=${encodeURIComponent(movie.title)}`;
const backdropUrl = `https://via.placeholder.com/1280x720?text=${encodeURIComponent(movie.title)}`;
return `
<div class="movie-card relative rounded-lg overflow-hidden transition duration-300" data-movie-id="${movie.id}">
<img src="${posterUrl}" alt="${movie.title}" class="w-full h-auto object-cover">
<div class="absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-transparent opacity-0 hover:opacity-100 transition duration-300 flex flex-col justify-end p-4">
<h3 class="text-white font-bold">${movie.title}</h3>
<div class="flex items-center text-sm text-gray-300 mt-1">
<span>${movie.release_date.substring(0, 4)}</span>
<span class="mx-2">•</span>
<span>${movie.duration}</span>
</div>
<div class="flex mt-2">
${movie.genres.slice(0, 2).map(genre =>
`<span class="text-xs bg-gray-800/80 text-white px-2 py-1 rounded mr-1">${genre.name}</span>`
).join('')}
</div>
<div class="flex items-center mt-2">
<div class="rating-stars text-sm mr-2">
${'★'.repeat(Math.floor(movie.vote_average / 2))}
</div>
<span class="text-xs text-gray-300">${movie.vote_average}/10</span>
</div>
<div class="absolute inset-0 flex items-center justify-center">
<button class="play-icon opacity-0 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-purple-600 hover:bg-purple-700 text-white rounded-full w-12 h-12 flex items-center justify-center transition duration-300"
data-movie-id="${movie.id}">
<i class="fas fa-play"></i>
</button>
</div>
</div>
</div>
`;
};
// Afficher les détails d'un film dans la modal
const showMovieDetails = (movie) => {
// Utiliser des images de placeholder pour la démo
const posterUrl = `https://via.placeholder.com/500x750?text=${encodeURIComponent(movie.title)}`;
document.getElementById('modalPoster').src = posterUrl;
document.getElementById('modalPoster').alt = movie.title;
document.getElementById('modalTitle').textContent = movie.title;
document.getElementById('modalRating').textContent = movie.vote_average;
document.getElementById('modalYear').textContent = movie.release_date.substring(0, 4);
document.getElementById('modalDuration').textContent = movie.duration;
document.getElementById('modalOverview').textContent = movie.overview;
document.getElementById('modalDirector').textContent = movie.director;
document.getElementById('modalCast').textContent = movie.cast;
// Mettre à jour les genres
const genresContainer = document.getElementById('modalGenres');
genresContainer.innerHTML = '';
movie.genres.forEach(genre => {
const genreElement = document.createElement('span');
genreElement.className = 'text-xs bg-gray-800 text-white px-3 py-1 rounded-full';
genreElement.textContent = genre.name;
genresContainer.appendChild(genreElement);
});
// Mettre à jour les boutons
document.getElementById('playMovieBtn').setAttribute('data-movie-id', movie.id);
document.getElementById('playMovieAutoBtn').setAttribute('data-movie-id', movie.id);
// Afficher la modal
document.getElementById('movieModal').classList.add('active');
document.body.style.overflow = 'hidden';
};
// Jouer un film
const playMovie = (movieId, autoPlay = false) => {
const movie = movieDatabase.find(m => m.id === movieId);
if (!movie) return;
const videoPlayer = document.getElementById('videoPlayer');
const movieFrame = document.getElementById('movieFrame');
const loadingOverlay = document.getElementById('loadingOverlay');
// Afficher le chargement
loadingOverlay.classList.remove('hidden');
videoPlayer.classList.remove('hidden');
document.body.style.overflow = 'hidden';
// Pour la démo, nous utilisons une vidéo YouTube en placeholder
// Dans une vraie application, vous utiliseriez movie.video_urls['1080'] ou autre qualité
const trailerIds = [
'kOHB85vDuow', // Inception
'EXeTwQWrcwY', // The Dark Knight
'zSWdZVtXT7E', // Interstellar
's7EdQ4FqbhY', // Pulp Fiction
'qtRKdVHc-cE' // Fight Club
];
const trailerId = trailerIds[movieId % trailerIds.length];
// Simuler un temps de chargement
setTimeout(() => {
movieFrame.src = `https://www.youtube.com/embed/${trailerId}?autoplay=1&mute=1&enablejsapi=1`;
// Masquer le chargement après un délai
setTimeout(() => {
loadingOverlay.classList.add('hidden');
}, 1000);
// Si autoPlay est activé, afficher la notification
if (autoPlay) {
showAutoplayNotification(movieId);
}
}, 800);
};
// Afficher la notification de lecture automatique
const showAutoplayNotification = (nextMovieId) => {
const notification = document.getElementById('autoplayNotification');
const countdownElement = document.getElementById('countdown');
let seconds = 5;
notification.style.display = 'flex';
countdownElement.textContent = seconds;
const countdown = setInterval(() => {
seconds--;
countdownElement.textContent = seconds;
if (seconds <= 0) {
clearInterval(countdown);
notification.style.display = 'none';
playMovie(nextMovieId, true); // Continuer le mode automatique
}
}, 1000);
// Permettre à l'utilisateur d'annuler la lecture automatique
document.getElementById('cancelAutoplay').onclick = () => {
clearInterval(countdown);
notification.style.display = 'none';
stopAutoplay();
};
};
// Démarrer le mode automatique
const startAutoplay = (startingMovieId = null) => {
isAutoplayActive = true;
// Trouver l'index du film de départ
if (startingMovieId) {
currentAutoplayMovieIndex = movieDatabase.findIndex(m => m.id === startingMovieId);
if (currentAutoplayMovieIndex === -1) currentAutoplayMovieIndex = 0;
} else {
currentAutoplayMovieIndex = 0;
}
// Afficher les contrôles de lecture automatique
document.getElementById('autoplayControls').style.display = 'flex';
// Jouer le premier film
playMovie(movieDatabase[currentAutoplayMovieIndex].id, true);
};
// Arrêter le mode automatique
const stopAutoplay = () => {
isAutoplayActive = false;
document.getElementById('autoplayControls').style.display = 'none';
if (autoplayInterval) {
clearInterval(autoplayInterval);
autoplayInterval = null;
}
};
// Initialisation de la page
document.addEventListener('DOMContentLoaded', function() {
// Charger les sections de films
const newReleases = movieDatabase.filter(m => m.isFeatured);
const trending = movieDatabase.filter(m => m.isTrending);
const popularMovies = movieDatabase.filter(m => m.isPopular);
// Fonction pour charger des films dans une grille
const loadMoviesIntoGrid = (gridElement, movies, itemsPerPage = 20) => {
gridElement.innerHTML = '';
movies.slice(0, itemsPerPage).forEach(movie => {
const card = document.createElement('div');
card.innerHTML = generateMovieCard(movie);
gridElement.appendChild(card);
// Ajouter les événements de clic
card.addEventListener('click', function() {
showMovieDetails(movie);
});
// Bouton de lecture
const playButton = card.querySelector('.play-icon');
if (playButton) {
playButton.addEventListener('click', function(e) {
e.stopPropagation();
playMovie(movie.id);
});
}
});
};
// Charger les sections initiales
loadMoviesIntoGrid(document.getElementById('newReleasesGrid'), newReleases);
loadMoviesIntoGrid(document.getElementById('trendingGrid'), trending);
loadMoviesIntoGrid(document.getElementById('popularMoviesGrid'), popularMovies);
// Charger le catalogue complet
loadMoviesIntoGrid(document.getElementById('fullCatalogGrid'), movieDatabase.slice(0, 40));
// Bouton "Commencer à regarder" (joue le premier film)
document.getElementById('playFeaturedMovie').addEventListener('click', function() {
playMovie(movieDatabase[0].id);
});
// Bouton "Mode Automatique" (démarre la lecture automatique)
document.getElementById('startAutoplay').addEventListener('click', function() {
startAutoplay();
});
// Charger plus de films
let currentPage = 1;
const itemsPerPage = 40;
document.getElementById('loadMoreButton').addEventListener('click', function() {
currentPage++;
const startIndex = (currentPage - 1) * itemsPerPage;
const endIndex = startIndex + itemsPerPage;
// Afficher le chargement
const button = this;
button.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Chargement...';
button.disabled = true;
// Simuler un temps de chargement
setTimeout(() => {
// Ajouter les nouveaux films
movieDatabase.slice(startIndex, endIndex).forEach(movie => {
const card = document.createElement('div');
card.innerHTML = generateMovieCard(movie);
document.getElementById('fullCatalogGrid').appendChild(card);
// Ajouter les événements de clic
card.addEventListener('click', function() {
showMovieDetails(movie);
});
});
// Réactiver le bouton
button.textContent = 'Charger plus de films';
button.disabled = false;
// Masquer le bouton si tous les films sont chargés
if (endIndex >= movieDatabase.length) {
button.style.display = 'none';
}
}, 800);
});
// Recherche
document.getElementById('searchButton').addEventListener('click', function() {
const searchTerm = document.getElementById('searchInput').value.toLowerCase();
if (searchTerm.trim() === '') return;
const results = movieDatabase.filter(movie =>
movie.title.toLowerCase().includes(searchTerm) ||
movie.original_title.toLowerCase().includes(searchTerm)
).slice(0, 100); // Limiter à 100 résultats
// Afficher les résultats
loadMoviesIntoGrid(document.getElementById('fullCatalogGrid'), results);
});
// Recherche avec la touche Entrée
document.getElementById('searchInput').addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
document.getElementById('searchButton').click();
}
});
// Fermer la modal
document.getElementById('closeModal').addEventListener('click', function() {
document.getElementById('movieModal').classList.remove('active');
document.body.style.overflow = '';
});
// Jouer le film depuis la modal
document.getElementById('playMovieBtn').addEventListener('click', function() {
const movieId = parseInt(this.getAttribute('data-movie-id'));
document.getElementById('movieModal').classList.remove('active');
playMovie(movieId);
});
// Jouer en mode automatique depuis la modal
document.getElementById('playMovieAutoBtn').addEventListener('click', function() {
const movieId = parseInt(this.getAttribute('data-movie-id'));
document.getElementById('movieModal').classList.remove('active');
startAutoplay(movieId);
});
// Fermer le lecteur vidéo
document.getElementById('closePlayer').addEventListener('click', function() {
document.getElementById('videoPlayer').classList.add('hidden');
document.getElementById('movieFrame').src = '';
document.body.style.overflow = '';
stopAutoplay();
});
// Bouton de retour en haut
document.getElementById('scrollToTop').addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
// Afficher/masquer le bouton de retour en haut
window.addEventListener('scroll', function() {
const scrollToTopBtn = document.getElementById('scrollToTop');
if (window.pageYOffset > 300) {
scrollToTopBtn.style.display = 'flex';
} else {
scrollToTopBtn.style.display = 'none';
}
});
// Arrêter la lecture automatique
document.getElementById('stopAutoplayBtn').addEventListener('click', function() {
stopAutoplay();
});
// Changer la vitesse de lecture
document.getElementById('playbackSpeed').addEventListener('change', function() {
playbackSpeed = parseFloat(this.value);
// Dans une vraie application, vous appliqueriez cette vitesse à la vidéo
alert(`Vitesse de lecture changée à ${this.value}x (fonctionnalité de démonstration)`);
});
// Simuler la fin de la vidéo et passer au film suivant
window.onmessage = function(e) {
if (e.data === 'videoEnded' && isAutoplayActive) {
currentAutoplayMovieIndex = (currentAutoplayMovieIndex + 1) % movieDatabase.length;
const nextMovieId = movieDatabase[currentAutoplayMovieIndex].id;
showAutoplayNotification(nextMovieId);
}
};
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=docto41/streamvista" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |