Spaces:
Running
Running
File size: 57,690 Bytes
c887af6 305204b c887af6 32d03a3 c887af6 305204b c887af6 305204b c887af6 9a6a0c8 c887af6 32d03a3 c887af6 32d03a3 f5d33cd 32d03a3 f5d33cd 32d03a3 c887af6 32d03a3 c887af6 32d03a3 c887af6 747b5b2 c887af6 994da7d c887af6 32d03a3 c887af6 fe6a4ea c887af6 32d03a3 c887af6 32d03a3 c887af6 14f1f7e c887af6 994da7d da7c69a c887af6 da7c69a c887af6 9a6a0c8 c887af6 9a6a0c8 c887af6 9a6a0c8 c887af6 9a6a0c8 c887af6 9a6a0c8 c887af6 994da7d c887af6 747b5b2 631d5ed c887af6 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Midnight Synthesis - Aurora Void - BeatFridge</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="responsive.css">
<style>
* {
font-family: 'Inter', sans-serif;
}
body {
background-color: #0a0a0a;
color: #ffffff;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
background: #2d2d2d;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #3d3d3d;
}
.glass {
background: rgba(20, 20, 20, 0.6);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-panel {
background: rgba(30, 30, 30, 0.4);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.05);
}
.neon-gradient {
background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f97316 100%);
}
.neon-text {
background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.waveform-bar {
animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
0%, 100% { height: 20%; }
50% { height: 100%; }
}
.waveform-bar:nth-child(1) { animation-delay: 0s; }
.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.track-card {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.track-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px -10px rgba(0, 212, 255, 0.15);
}
.glow-cyan {
box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.glow-orange {
box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}
.sticky-player {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 50;
}
.avatar-ring {
box-shadow: 0 0 0 4px #0a0a0a, 0 0 0 6px rgba(0, 212, 255, 0.5);
}
.comment-bubble {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.waveform-large {
background: linear-gradient(90deg, #333 0%, #333 100%);
position: relative;
}
.waveform-large::before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: var(--progress, 35%);
background: linear-gradient(90deg, #00d4ff, #7c3aed, #f97316);
}
.like-btn.active {
color: #f97316;
fill: #f97316;
}
.repost-btn.active {
color: #00d4ff;
fill: #00d4ff;
}
</style>
</head>
<body class="bg-black text-white overflow-x-hidden pb-24">
<!-- Navigation -->
<nav class="fixed top-0 left-0 right-0 z-40 glass border-b border-white/5">
<div class="max-w-[1600px] mx-auto px-6 h-16 flex items-center justify-between">
<!-- Logo -->
<div class="flex items-center gap-8">
<a href="index.html" class="flex items-center gap-2 cursor-pointer hover:opacity-80 transition">
<div class="w-8 h-8 rounded-lg flex items-center justify-center bg-white/10 border border-white/20">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-5 h-5 text-white">
<rect x="4" y="2" width="16" height="20" rx="2"/>
<line x1="4" y1="9" x2="20" y2="9"/>
<line x1="15" y1="5" x2="15" y2="7"/>
<line x1="15" y1="12" x2="15" y2="18"/>
</svg>
</div>
<span class="text-xl font-bold tracking-tight">BeatFridge</span>
</a>
<!-- Nav Links -->
<div class="hidden md:flex items-center gap-6 text-sm font-medium text-gray-400">
<a href="index.html" class="hover:text-cyan-400 transition">Home</a>
<a href="discover.html" class="hover:text-cyan-400 transition">Discover</a>
<a href="library.html" class="hover:text-cyan-400 transition">Library</a>
<a href="upload.html" class="hover:text-cyan-400 transition flex items-center gap-1">
<i data-lucide="upload-cloud" class="w-4 h-4"></i>
Upload
</a>
<a href="analytics.html" class="hover:text-orange-400 transition flex items-center gap-1">
<i data-lucide="bar-chart-2" class="w-4 h-4"></i>
Analytics
</a>
</div>
</div>
<!-- Search & Profile -->
<div class="flex items-center gap-4">
<div class="relative hidden sm:block">
<input type="text" placeholder="Search artists, tracks..."
class="w-64 bg-white/5 border border-white/10 rounded-full px-4 py-2 pl-10 text-sm focus:outline-none focus:border-cyan-500/50 focus:bg-white/10 transition">
<i data-lucide="search" class="w-4 h-4 absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"></i>
</div>
<button id="mobileMenuBtn" class="md:hidden w-10 h-10 rounded-full bg-white/5 border border-white/10 flex items-center justify-center hover:bg-white/10 transition" onclick="toggleMobileMenu()">
<i data-lucide="menu" class="w-5 h-5 text-gray-300"></i>
</button>
<button class="w-10 h-10 rounded-full bg-white/5 border border-white/10 flex items-center justify-center hover:bg-white/10 transition relative">
<i data-lucide="bell" class="w-5 h-5 text-gray-300"></i>
<span class="absolute top-2 right-2 w-2 h-2 bg-orange-500 rounded-full"></span>
</button>
<div class="w-10 h-10 rounded-full bg-gradient-to-br from-cyan-400 to-purple-600 cursor-pointer hover:scale-105 transition avatar-ring">
<img src="http://static.photos/people/200x200/42" alt="Profile" class="w-full h-full rounded-full object-cover">
</div>
</div>
</div>
</nav>
<!-- Mobile Nav Overlay -->
<div id="mobileNavOverlay" class="mobile-nav-overlay" onclick="closeMobileMenu()"></div>
<div id="mobileNavPanel" class="mobile-nav-panel">
<div class="flex items-center justify-between mb-8">
<a href="index.html" class="flex items-center gap-2 hover:opacity-80 transition">
<div class="w-8 h-8 rounded-lg flex items-center justify-center bg-white/10 border border-white/20">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-5 h-5 text-white">
<rect x="4" y="2" width="16" height="20" rx="2"/>
<line x1="4" y1="9" x2="20" y2="9"/>
<line x1="15" y1="5" x2="15" y2="7"/>
<line x1="15" y1="12" x2="15" y2="18"/>
</svg>
</div>
<span class="text-xl font-bold">BeatFridge</span>
</a>
<button onclick="closeMobileMenu()" class="w-10 h-10 rounded-full bg-white/5 border border-white/10 flex items-center justify-center hover:bg-white/10 transition">
<i data-lucide="x" class="w-5 h-5"></i>
</button>
</div>
<nav class="space-y-1">
<a href="index.html" class="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition text-gray-300 hover:text-white">
<i data-lucide="home" class="w-5 h-5"></i> Home
</a>
<a href="discover.html" class="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition text-gray-300 hover:text-white">
<i data-lucide="compass" class="w-5 h-5"></i> Discover
</a>
<a href="library.html" class="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition text-gray-300 hover:text-white">
<i data-lucide="library" class="w-5 h-5"></i> Library
</a>
<a href="upload.html" class="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition text-gray-300 hover:text-white">
<i data-lucide="upload-cloud" class="w-5 h-5"></i> Upload
</a>
<a href="analytics.html" class="flex items-center gap-3 px-4 py-3 rounded-xl hover:bg-white/5 transition text-gray-300 hover:text-white">
<i data-lucide="bar-chart-2" class="w-5 h-5"></i> Analytics
</a>
</nav>
</div>
<!-- Main Layout -->
<div class="max-w-[1600px] mx-auto pt-16 flex gap-6 px-6 min-h-screen">
<!-- Main Content -->
<main class="flex-1 min-w-0 py-6">
<!-- Track Header -->
<div class="glass-panel rounded-3xl p-6 sm:p-8 mb-6 relative overflow-hidden">
<div class="absolute inset-0 bg-gradient-to-br from-cyan-900/20 via-purple-900/20 to-orange-900/20"></div>
<div class="relative z-10 flex flex-col lg:flex-row gap-8">
<!-- Cover Art -->
<div class="w-full lg:w-80 aspect-square rounded-2xl overflow-hidden shadow-2xl flex-shrink-0">
<img src="http://static.photos/technology/600x600/5" class="w-full h-full object-cover">
</div>
<!-- Track Info -->
<div class="flex-1 flex flex-col justify-center">
<div class="flex items-center gap-3 mb-2">
<span class="px-3 py-1 rounded-full bg-cyan-500/20 text-cyan-400 text-xs font-semibold border border-cyan-500/30">TRACK</span>
<span class="px-3 py-1 rounded-full bg-white/5 border border-white/10 text-xs text-gray-400">Techno</span>
<span class="px-3 py-1 rounded-full bg-white/5 border border-white/10 text-xs text-gray-400">Ambient</span>
</div>
<h1 class="text-4xl sm:text-5xl font-bold mb-3">Midnight Synthesis</h1>
<div class="flex flex-wrap items-center gap-3 mb-6">
<div class="w-10 h-10 rounded-full overflow-hidden avatar-ring">
<img src="http://static.photos/people/200x200/77" class="w-full h-full object-cover">
</div>
<div>
<a href="artist.html" class="text-lg font-medium hover:text-cyan-400 transition">Aurora Void</a>
<p class="text-sm text-gray-500">Berlin, Germany • 3 weeks ago</p>
</div>
<button class="px-4 py-1.5 bg-white/10 hover:bg-white/20 border border-white/20 rounded-full text-sm font-medium transition" onclick="toggleFollow(this)">
Follow
</button>
<button class="px-4 py-1.5 bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-400 hover:to-red-400 text-white rounded-full text-sm font-medium transition glow-orange flex items-center gap-1" onclick="openSupportModal()">
<i data-lucide="heart-handshake" class="w-4 h-4"></i>
Support
</button>
<button data-superfan-artist="Aurora Void" data-superfan-size="small" class="px-3 py-1.5 bg-gradient-to-r from-orange-500 to-red-500 hover:from-orange-400 hover:to-red-400 text-white rounded-full text-xs font-medium transition flex items-center gap-1 bf-superfan-btn" style="box-shadow: 0 0 15px rgba(249,115,22,0.2)" onclick="BF.showSuperFanModal('Aurora Void', 'http://static.photos/people/200x200/77')">
<i data-lucide="zap" class="w-3.5 h-3.5"></i>
Super Fan
</button>
</div>
<!-- Waveform Player -->
<div class="glass rounded-2xl p-4 mb-6">
<div class="flex items-center gap-4 mb-3">
<button class="w-12 h-12 rounded-full bg-cyan-500 text-black flex items-center justify-center hover:scale-105 transition glow-cyan" onclick="togglePlay()" id="mainPlayBtn">
<i data-lucide="play" class="w-6 h-6 fill-current ml-1" id="mainPlayIcon"></i>
</button>
<div class="flex-1">
<div class="flex items-center justify-between text-xs text-gray-400 mb-2">
<span id="trackTime">0:00</span>
<span>4:08</span>
</div>
<div class="h-24 bg-white/5 rounded-lg overflow-hidden relative cursor-pointer" id="waveformContainer">
<div class="absolute inset-0 flex items-center justify-center gap-1 px-4" id="trackWaveform"></div>
<div class="absolute inset-0 bg-gradient-to-r from-cyan-500/20 to-transparent w-[35%] pointer-events-none"></div>
</div>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex flex-wrap items-center gap-3 md:gap-4">
<button class="flex items-center gap-2 text-gray-400 hover:text-orange-400 transition like-btn" onclick="toggleLike(this)">
<i data-lucide="heart" class="w-5 h-5"></i>
<span class="text-sm">1.2K</span>
</button>
<button class="flex items-center gap-2 text-gray-400 hover:text-cyan-400 transition repost-btn" onclick="toggleRepost(this)">
<i data-lucide="repeat" class="w-5 h-5"></i>
<span class="text-sm">847</span>
</button>
<button class="flex items-center gap-2 text-gray-400 hover:text-purple-400 transition" onclick="BF.showShareModal('Midnight Synthesis', 'Aurora Void', 5)">
<i data-lucide="share-2" class="w-5 h-5"></i>
<span class="text-sm hidden sm:inline">Share</span>
</button>
<button class="flex items-center gap-2 text-gray-400 hover:text-white transition">
<i data-lucide="link" class="w-5 h-5"></i>
<span class="text-sm hidden sm:inline">Copy Link</span>
</button>
<span id="trackDlBtn">${BF.renderDL(5, 'Midnight Synthesis', 'Aurora Void')}</span>
</div>
<button class="text-gray-400 hover:text-white transition">
<i data-lucide="more-horizontal" class="w-6 h-6"></i>
</button>
</div>
</div>
<!-- Description -->
<div class="text-gray-400 text-sm leading-relaxed">
<p>A journey through digital landscapes and analog dreams. This track represents the pinnacle of my exploration into the boundaries between ambient soundscapes and rhythmic techno.</p>
<p class="mt-2">Written and produced in my Berlin studio during the winter of 2024. Mastered by Robert Henke.</p>
</div>
</div>
</div>
</div>
<!-- Comments Section -->
<div class="glass-panel rounded-2xl p-6 mb-6">
<h3 class="text-lg font-semibold mb-4 flex items-center gap-2">
<i data-lucide="message-circle" class="w-5 h-5 text-cyan-400"></i>
Comments <span class="text-sm text-gray-500 font-normal">(127)</span>
</h3>
<!-- Comment Input -->
<div class="flex gap-4 mb-6">
<div class="w-10 h-10 rounded-full overflow-hidden flex-shrink-0">
<img src="http://static.photos/people/200x200/42" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<input type="text" placeholder="Write a comment..."
class="w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-sm focus:outline-none focus:border-cyan-500/50 transition">
</div>
</div>
<!-- Comments List -->
<div class="space-y-4" id="commentsList">
<div class="flex gap-4 group">
<div class="w-10 h-10 rounded-full overflow-hidden flex-shrink-0 cursor-pointer">
<img src="http://static.photos/people/200x200/50" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<div class="comment-bubble rounded-2xl p-4">
<div class="flex items-center justify-between mb-2">
<div class="flex items-center gap-2">
<span class="font-medium text-white cursor-pointer hover:text-cyan-400 transition">Deep Frequencies</span>
<span class="text-xs text-gray-500">at 2:34</span>
</div>
<span class="text-xs text-gray-600">2 hours ago</span>
</div>
<p class="text-gray-300 text-sm">The bassline on this is absolutely insane! Can't wait to play this in my next set 🔥</p>
</div>
<div class="flex items-center gap-4 mt-2 ml-4">
<button class="text-xs text-gray-500 hover:text-cyan-400 transition flex items-center gap-1">
<i data-lucide="heart" class="w-3 h-3"></i>
24
</button>
<button class="text-xs text-gray-500 hover:text-white transition">Reply</button>
</div>
</div>
</div>
<div class="flex gap-4 group">
<div class="w-10 h-10 rounded-full overflow-hidden flex-shrink-0 cursor-pointer">
<img src="http://static.photos/people/200x200/51" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<div class="comment-bubble rounded-2xl p-4">
<div class="flex items-center justify-between mb-2">
<div class="flex items-center gap-2">
<span class="font-medium text-white cursor-pointer hover:text-cyan-400 transition">Neon Prophet</span>
<span class="text-xs text-gray-500">at 1:12</span>
</div>
<span class="text-xs text-gray-600">5 hours ago</span>
</div>
<p class="text-gray-300 text-sm">This is exactly the kind of sound I've been looking for. The way you blend the pads with the kick is masterful.</p>
</div>
<div class="flex items-center gap-4 mt-2 ml-4">
<button class="text-xs text-gray-500 hover:text-cyan-400 transition flex items-center gap-1">
<i data-lucide="heart" class="w-3 h-3"></i>
18
</button>
<button class="text-xs text-gray-500 hover:text-white transition">Reply</button>
</div>
</div>
</div>
<div class="flex gap-4 group">
<div class="w-10 h-10 rounded-full overflow-hidden flex-shrink-0 cursor-pointer">
<img src="http://static.photos/people/200x200/52" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<div class="comment-bubble rounded-2xl p-4">
<div class="flex items-center justify-between mb-2">
<div class="flex items-center gap-2">
<span class="font-medium text-white cursor-pointer hover:text-cyan-400 transition">Sarah Chen</span>
</div>
<span class="text-xs text-gray-600">1 day ago</span>
</div>
<p class="text-gray-300 text-sm">Instant buy! Added to my collection immediately. Keep up the amazing work Aurora! 💜</p>
</div>
<div class="flex items-center gap-4 mt-2 ml-4">
<button class="text-xs text-gray-500 hover:text-cyan-400 transition flex items-center gap-1">
<i data-lucide="heart" class="w-3 h-3"></i>
45
</button>
<button class="text-xs text-gray-500 hover:text-white transition">Reply</button>
</div>
</div>
</div>
</div>
<button class="w-full mt-6 py-3 rounded-xl bg-white/5 hover:bg-white/10 border border-white/10 text-sm text-gray-400 transition">
Load more comments
</button>
</div>
</main>
<!-- Right Sidebar -->
<aside class="hidden xl:block w-80 flex-shrink-0 py-6">
<div class="sticky top-20 space-y-6">
<!-- Related Tracks -->
<div class="glass-panel rounded-2xl p-4">
<h3 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-4 flex items-center gap-2">
<i data-lucide="related" class="w-4 h-4"></i>
Related Tracks
</h3>
<div class="space-y-3">
<a href="track.html" class="flex items-center gap-3 group cursor-pointer">
<div class="w-14 h-14 rounded-lg overflow-hidden flex-shrink-0 relative">
<img src="http://static.photos/technology/200x200/30" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition flex items-center justify-center">
<i data-lucide="play" class="w-5 h-5 text-cyan-400"></i>
</div>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Digital Dreams</p>
<p class="text-xs text-gray-500 truncate">Aurora Void</p>
<p class="text-xs text-gray-600 mt-1">28.4K plays</p>
</div>
</a>
<a href="track.html" class="flex items-center gap-3 group cursor-pointer">
<div class="w-14 h-14 rounded-lg overflow-hidden flex-shrink-0 relative">
<img src="http://static.photos/technology/200x200/31" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition flex items-center justify-center">
<i data-lucide="play" class="w-5 h-5 text-cyan-400"></i>
</div>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Neon Horizons</p>
<p class="text-xs text-gray-500 truncate">Cyber Dreams</p>
<p class="text-xs text-gray-600 mt-1">12.5K plays</p>
</div>
</a>
<a href="track.html" class="flex items-center gap-3 group cursor-pointer">
<div class="w-14 h-14 rounded-lg overflow-hidden flex-shrink-0 relative">
<img src="http://static.photos/technology/200x200/32" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition flex items-center justify-center">
<i data-lucide="play" class="w-5 h-5 text-cyan-400"></i>
</div>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Analog Heart</p>
<p class="text-xs text-gray-500 truncate">Deep Frequencies</p>
<p class="text-xs text-gray-600 mt-1">15.3K plays</p>
</div>
</a>
<a href="track.html" class="flex items-center gap-3 group cursor-pointer">
<div class="w-14 h-14 rounded-lg overflow-hidden flex-shrink-0 relative">
<img src="http://static.photos/technology/200x200/33" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition flex items-center justify-center">
<i data-lucide="play" class="w-5 h-5 text-cyan-400"></i>
</div>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Void Walker</p>
<p class="text-xs text-gray-500 truncate">Bass Architect</p>
<p class="text-xs text-gray-600 mt-1">9.8K plays</p>
</div>
</a>
</div>
</div>
<!-- Next Up -->
<div class="glass-panel rounded-2xl p-4">
<h3 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-4 flex items-center gap-2">
<i data-lucide="list-music" class="w-4 h-4"></i>
Next Up
</h3>
<div class="space-y-2">
<div class="flex items-center gap-3 p-2 rounded-lg bg-white/5 cursor-pointer group">
<span class="text-xs text-gray-500">1</span>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Cyber Rain</p>
<p class="text-xs text-gray-500 truncate">Aurora Void</p>
</div>
<span class="text-xs text-gray-600">3:45</span>
</div>
<div class="flex items-center gap-3 p-2 rounded-lg hover:bg-white/5 cursor-pointer group">
<span class="text-xs text-gray-500">2</span>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Deep Pulse</p>
<p class="text-xs text-gray-500 truncate">Deep Frequencies</p>
</div>
<span class="text-xs text-gray-600">6:18</span>
</div>
<div class="flex items-center gap-3 p-2 rounded-lg hover:bg-white/5 cursor-pointer group">
<span class="text-xs text-gray-500">3</span>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Neon City</p>
<p class="text-xs text-gray-500 truncate">Neon Prophet</p>
</div>
<span class="text-xs text-gray-600">4:22</span>
</div>
</div>
</div>
<!-- In Playlists -->
<div class="glass-panel rounded-2xl p-4">
<h3 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-4 flex items-center gap-2">
<i data-lucide="disc" class="w-4 h-4"></i>
In Playlists
</h3>
<div class="space-y-3">
<div class="flex items-center gap-3 group cursor-pointer">
<div class="w-12 h-12 rounded-lg overflow-hidden">
<img src="http://static.photos/technology/200x200/40" class="w-full h-full object-cover">
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Midnight Drive</p>
<p class="text-xs text-gray-500 truncate">45 tracks • by NeonWave</p>
</div>
</div>
<div class="flex items-center gap-3 group cursor-pointer">
<div class="w-12 h-12 rounded-lg overflow-hidden">
<img src="http://static.photos/technology/200x200/41" class="w-full h-full object-cover">
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-white truncate group-hover:text-cyan-400 transition">Techno Bunker</p>
<p class="text-xs text-gray-500 truncate">128 tracks • by Bass Architect</p>
</div>
</div>
</div>
</div>
</div>
</aside>
</div>
<!-- Sticky Bottom Player -->
<div class="sticky-player glass border-t border-white/10 px-4 py-3">
<div class="max-w-[1600px] mx-auto flex items-center gap-4">
<!-- Track Info -->
<div class="flex items-center gap-3 w-64 flex-shrink-0">
<div class="w-14 h-14 rounded-lg overflow-hidden relative group cursor-pointer">
<img id="playerArt" src="http://static.photos/technology/200x200/5" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition flex items-center justify-center">
<i data-lucide="maximize-2" class="w-5 h-5"></i>
</div>
</div>
<div class="min-w-0 flex-1">
<p id="playerTitle" class="text-sm font-medium text-white truncate cursor-pointer hover:text-cyan-400 transition" onclick="window.location.href='track.html'">Midnight Synthesis</p>
<p id="playerArtist" class="text-xs text-gray-400 truncate cursor-pointer hover:text-cyan-400 transition" onclick="window.location.href='artist.html'">Aurora Void</p>
</div>
<button class="text-gray-400 hover:text-cyan-400 transition">
<i data-lucide="heart" class="w-5 h-5"></i>
</button>
</div>
<!-- Controls -->
<div class="flex-1 flex flex-col items-center max-w-2xl mx-auto">
<div class="flex items-center gap-6 mb-2">
<button class="text-gray-400 hover:text-white transition" onclick="toggleShuffle(this)">
<i data-lucide="shuffle" class="w-4 h-4"></i>
</button>
<button class="text-gray-300 hover:text-white transition" onclick="previousTrack()">
<i data-lucide="skip-back" class="w-5 h-5 fill-current"></i>
</button>
<button class="w-10 h-10 rounded-full bg-white text-black flex items-center justify-center hover:scale-105 transition" onclick="togglePlay()" id="playPauseBtn">
<i data-lucide="play" class="w-5 h-5 fill-current ml-0.5" id="playIcon"></i>
</button>
<button class="text-gray-300 hover:text-white transition" onclick="nextTrack()">
<i data-lucide="skip-forward" class="w-5 h-5 fill-current"></i>
</button>
<button class="text-gray-400 hover:text-white transition" onclick="toggleRepeat(this)">
<i data-lucide="repeat" class="w-4 h-4"></i>
</button>
</div>
<!-- Progress -->
<div class="w-full flex items-center gap-3">
<span class="text-xs text-gray-400 w-10 text-right" id="currentTime">1:24</span>
<div class="flex-1 h-8 flex items-center cursor-pointer group" id="progressContainer">
<div class="w-full h-1.5 bg-white/10 rounded-full overflow-hidden relative">
<div class="absolute inset-y-0 left-0 bg-gradient-to-r from-cyan-400 to-purple-500 w-[35%] rounded-full group-hover:h-2 transition-all"></div>
<div class="absolute top-1/2 -translate-y-1/2 left-[35%] w-3 h-3 bg-white rounded-full opacity-0 group-hover:opacity-100 transition shadow-lg"></div>
</div>
</div>
<span class="text-xs text-gray-400 w-10" id="duration">4:08</span>
</div>
</div>
<!-- Volume & Extra -->
<div class="flex items-center gap-3 w-64 justify-end">
<button class="text-gray-400 hover:text-white transition">
<i data-lucide="mic-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-white transition">
<i data-lucide="list-music" class="w-4 h-4"></i>
</button>
<div class="flex items-center gap-2 group">
<button class="text-gray-400 hover:text-white transition" onclick="toggleMute()">
<i data-lucide="volume-2" class="w-5 h-5" id="volumeIcon"></i>
</button>
<div class="w-24 h-1 bg-white/10 rounded-full overflow-hidden cursor-pointer">
<div class="h-full bg-cyan-400 w-[70%] rounded-full"></div>
</div>
</div>
<button class="text-gray-400 hover:text-white transition ml-2">
<i data-lucide="cast" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<script src="mobile-nav.js"></script>
<script src="app.js"></script>
<script>
BF.init('home');
lucide.createIcons();
// Global State with error handling
let isPlaying = false;
let currentTrack = {
id: 5,
title: "Midnight Synthesis",
artist: "Aurora Void",
duration: "4:08",
image: "http://static.photos/technology/600x600/5",
plays: "32.7K",
likes: 1200,
reposts: 847
};
let likedTracks = [], comments = [];
try {
likedTracks = JSON.parse(localStorage.getItem('likedTracks') || '[]');
comments = JSON.parse(localStorage.getItem('trackComments') || '[]');
} catch (e) {
console.error('Error loading track data:', e);
}
function loadGlobalState() {
try {
const savedTrack = localStorage.getItem('currentTrack');
const savedIsPlaying = localStorage.getItem('isPlaying');
const trackId = new URLSearchParams(window.location.search).get('id');
if (trackId) {
const allTracks = [
{id: 1, title: "Neon Horizons", artist: "Aurora Void", duration: "4:32", image: "http://static.photos/technology/400x400/1", plays: "12.5K", likes: 850, reposts: 420},
{id: 2, title: "Digital Rain", artist: "Aurora Void", duration: "3:45", image: "http://static.photos/technology/400x400/2", plays: "8.2K", likes: 620, reposts: 310},
{id: 3, title: "Cybernetic Dreams", artist: "Aurora Void", duration: "5:18", image: "http://static.photos/technology/400x400/3", plays: "24.1K", likes: 1500, reposts: 890},
{id: 4, title: "Analog Heart", artist: "Aurora Void", duration: "3:22", image: "http://static.photos/technology/400x400/4", plays: "15.3K", likes: 980, reposts: 560},
{id: 5, title: "Midnight Synthesis", artist: "Aurora Void", duration: "4:08", image: "http://static.photos/technology/600x600/5", plays: "32.7K", likes: 1200, reposts: 847},
{id: 6, title: "Void Walker", artist: "Aurora Void", duration: "6:14", image: "http://static.photos/technology/400x400/6", plays: "9.8K", likes: 720, reposts: 430}
];
const foundTrack = allTracks.find(t => t.id === parseInt(trackId));
if (foundTrack) currentTrack = foundTrack;
}
if (savedTrack) {
const parsed = JSON.parse(savedTrack);
if (!trackId) currentTrack = parsed;
}
if (savedIsPlaying) isPlaying = savedIsPlaying === 'true';
} catch (e) {
console.error('Error in loadGlobalState:', e);
}
updatePlayerUI();
updateLikeButton();
}
function updatePlayerUI() {
document.getElementById('playerTitle').textContent = currentTrack.title;
document.getElementById('playerArtist').textContent = currentTrack.artist;
document.getElementById('playerArt').src = currentTrack.image;
const mainIcon = document.getElementById('mainPlayIcon');
const playerIcon = document.getElementById('playIcon');
if (isPlaying) {
mainIcon.setAttribute('data-lucide', 'pause');
playerIcon.setAttribute('data-lucide', 'pause');
} else {
mainIcon.setAttribute('data-lucide', 'play');
playerIcon.setAttribute('data-lucide', 'play');
}
lucide.createIcons();
}
function saveGlobalState() {
try {
localStorage.setItem('currentTrack', JSON.stringify(currentTrack));
localStorage.setItem('isPlaying', isPlaying);
} catch (e) {
console.error('Error saving state:', e);
}
}
function addToRecentlyPlayed(track) {
let recentlyPlayed = JSON.parse(localStorage.getItem('recentlyPlayed') || '[]');
recentlyPlayed = recentlyPlayed.filter(t => t.id !== track.id);
recentlyPlayed.unshift({...track, playedAt: new Date().toISOString()});
if (recentlyPlayed.length > 50) recentlyPlayed.pop();
localStorage.setItem('recentlyPlayed', JSON.stringify(recentlyPlayed));
}
function updateLikeButton() {
const isLiked = likedTracks.find(t => t.id === currentTrack.id);
const likeBtn = document.querySelector('.like-btn');
const icon = likeBtn.querySelector('i');
const count = likeBtn.querySelector('span');
if (isLiked) {
likeBtn.classList.add('active');
icon.setAttribute('fill', '#f97316');
count.textContent = (currentTrack.likes + 1).toLocaleString();
} else {
likeBtn.classList.remove('active');
icon.setAttribute('fill', 'none');
count.textContent = currentTrack.likes.toLocaleString();
}
lucide.createIcons();
}
function togglePlay() {
isPlaying = !isPlaying;
const mainIcon = document.getElementById('mainPlayIcon');
const playerIcon = document.getElementById('playIcon');
if (isPlaying) {
mainIcon.setAttribute('data-lucide', 'pause');
playerIcon.setAttribute('data-lucide', 'pause');
} else {
mainIcon.setAttribute('data-lucide', 'play');
playerIcon.setAttribute('data-lucide', 'play');
}
lucide.createIcons();
}
function toggleFollow(btn) {
let following = JSON.parse(localStorage.getItem('following') || '[]');
const artistId = 'aurora-void';
if (btn.textContent === 'Follow') {
btn.textContent = 'Following';
btn.classList.add('bg-cyan-500/20', 'text-cyan-400', 'border-cyan-500/30');
btn.classList.remove('bg-white/10', 'text-white', 'border-white/20');
if (!following.includes(artistId)) following.push(artistId);
showToast('Following Aurora Void');
} else {
btn.textContent = 'Follow';
btn.classList.remove('bg-cyan-500/20', 'text-cyan-400', 'border-cyan-500/30');
btn.classList.add('bg-white/10', 'text-white', 'border-white/20');
following = following.filter(id => id !== artistId);
showToast('Unfollowed Aurora Void');
}
localStorage.setItem('following', JSON.stringify(following));
}
function openSupportModal() {
const modal = document.createElement('div');
modal.className = 'fixed inset-0 z-50 flex items-center justify-center';
modal.innerHTML = `
<div class="absolute inset-0 bg-black/80 backdrop-blur-sm" onclick="this.parentElement.remove()"></div>
<div class="relative bg-gray-900 border border-white/10 rounded-2xl p-6 w-full max-w-lg mx-4 premium-glow">
<div class="flex items-center justify-between mb-6">
<h3 class="text-xl font-bold">Support Aurora Void</h3>
<button onclick="this.closest('.fixed').remove()" class="text-gray-400 hover:text-white">
<i data-lucide="x" class="w-6 h-6"></i>
</button>
</div>
<div class="space-y-4 mb-6">
<div class="p-4 rounded-xl bg-gradient-to-r from-orange-500/20 to-red-500/20 border border-orange-500/30">
<h4 class="font-semibold text-orange-400 mb-2 flex items-center gap-2">
<i data-lucide="zap" class="w-4 h-4"></i>
One-time Tip
</h4>
<div class="flex gap-2 mb-3">
<button class="flex-1 py-2 rounded-lg bg-white/10 hover:bg-white/20 transition text-sm" onclick="processTip(3)">€3</button>
<button class="flex-1 py-2 rounded-lg bg-white/10 hover:bg-white/20 transition text-sm" onclick="processTip(5)">€5</button>
<button class="flex-1 py-2 rounded-lg bg-white/10 hover:bg-white/20 transition text-sm" onclick="processTip(10)">€10</button>
<button class="flex-1 py-2 rounded-lg bg-orange-500 text-black hover:bg-orange-400 transition text-sm font-semibold" onclick="processTip(20)">€20</button>
</div>
</div>
<div class="p-4 rounded-xl bg-white/5 border border-white/10">
<h4 class="font-semibold text-cyan-400 mb-2 flex items-center gap-2">
<i data-lucide="repeat" class="w-4 h-4"></i>
Monthly Subscription
</h4>
<button class="w-full p-3 rounded-lg bg-white/5 hover:bg-orange-500/20 border border-white/10 hover:border-orange-500/30 transition flex items-center justify-between mb-2" onclick="subscribe(8, 'Producer Circle')">
<div class="flex items-center gap-3">
<i data-lucide="zap" class="w-5 h-5 text-orange-400"></i>
<div class="text-left">
<p class="font-medium">Producer Circle</p>
<p class="text-xs text-gray-500">Access all exclusive tracks</p>
</div>
</div>
<span class="font-bold">€8/mo</span>
</button>
</div>
</div>
<p class="text-xs text-gray-500 text-center">Artist receives 85% • Platform fee: 15%</p>
</div>
`;
document.body.appendChild(modal);
lucide.createIcons();
}
function processTip(amount) {
const balance = parseFloat(localStorage.getItem('walletBalance') || '50');
if (balance >= amount) {
localStorage.setItem('walletBalance', (balance - amount).toString());
const transactions = JSON.parse(localStorage.getItem('transactions') || '[]');
transactions.push({
type: 'tip',
amount: amount,
artist: 'Aurora Void',
date: new Date().toISOString(),
fee: amount * 0.15
});
localStorage.setItem('transactions', JSON.stringify(transactions));
showToast(`💎 Tipped €${amount}!`);
setTimeout(() => document.querySelector('.fixed.z-50')?.remove(), 1000);
} else {
showToast('⚠️ Insufficient balance');
}
}
function subscribe(amount, tier) {
localStorage.setItem('userTier', tier);
localStorage.setItem('subscriptions', JSON.stringify(['aurora-void']));
const transactions = JSON.parse(localStorage.getItem('transactions') || '[]');
transactions.push({
type: 'subscription',
amount: amount,
artist: 'Aurora Void',
tier: tier,
date: new Date().toISOString(),
fee: amount * 0.15
});
localStorage.setItem('transactions', JSON.stringify(transactions));
showToast(`🌟 Subscribed to ${tier}!`);
setTimeout(() => {
document.querySelector('.fixed.z-50')?.remove();
window.location.reload();
}, 1000);
}
// Add comment functionality
document.querySelector('input[type="text"]').addEventListener('keypress', function(e) {
if (e.key === 'Enter' && this.value.trim()) {
const comment = {
id: Date.now(),
text: this.value.trim(),
user: 'You',
avatar: 'http://static.photos/people/200x200/42',
time: 'Just now',
likes: 0,
trackId: currentTrack.id
};
comments.push(comment);
localStorage.setItem('trackComments', JSON.stringify(comments));
this.value = '';
renderComments();
showToast('Comment posted');
}
});
function renderComments() {
const trackComments = comments.filter(c => c.trackId === currentTrack.id);
const container = document.getElementById('commentsList');
if (!container || !trackComments.length) return;
const newComment = trackComments[trackComments.length - 1];
const commentEl = document.createElement('div');
commentEl.className = 'flex gap-4 group animate-fade-in';
commentEl.innerHTML = `
<div class="w-10 h-10 rounded-full overflow-hidden flex-shrink-0 cursor-pointer">
<img src="${newComment.avatar}" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<div class="comment-bubble rounded-2xl p-4">
<div class="flex items-center justify-between mb-2">
<div class="flex items-center gap-2">
<span class="font-medium text-white cursor-pointer hover:text-cyan-400 transition">${newComment.user}</span>
</div>
<span class="text-xs text-gray-600">${newComment.time}</span>
</div>
<p class="text-gray-300 text-sm">${newComment.text}</p>
</div>
<div class="flex items-center gap-4 mt-2 ml-4">
<button class="text-xs text-gray-500 hover:text-cyan-400 transition flex items-center gap-1">
<i data-lucide="heart" class="w-3 h-3"></i>
0
</button>
<button class="text-xs text-gray-500 hover:text-white transition">Reply</button>
</div>
</div>
`;
container.insertBefore(commentEl, container.firstChild);
lucide.createIcons();
}
// Render track waveform
(function renderTrackWaveform() {
const container = document.getElementById('trackWaveform');
if (!container) return;
let bars = '';
for (let i = 0; i < 100; i++) {
const h = 30 + Math.random() * 70;
const delay = (i * 0.02);
bars += '<div class="w-1 bg-cyan-400/30 rounded-full waveform-bar" style="height: ' + h + '%; animation-delay: ' + delay + 's"></div>';
}
container.innerHTML = bars;
})();
// Load initial state
loadGlobalState();
// Check if following
const following = JSON.parse(localStorage.getItem('following') || '[]');
if (following.includes('aurora-void')) {
const followBtn = document.querySelector('.px-4.py-1\\.5');
if (followBtn) {
followBtn.textContent = 'Following';
followBtn.classList.add('bg-cyan-500/20', 'text-cyan-400', 'border-cyan-500/30');
followBtn.classList.remove('bg-white/10', 'text-white', 'border-white/20');
}
}
// Check Super Fan state
BF.updateSuperFanButtons();
if (window.lucide) lucide.createIcons();
// Show Super Fan free download label if applicable
if (BF.isSuperFanOf('Aurora Void')) {
const sfLabel = document.getElementById('trackSfFreeLabel');
if (sfLabel) sfLabel.classList.remove('hidden');
}
function toggleLike(btn) {
const isLiked = likedTracks.find(t => t.id === currentTrack.id);
const icon = btn.querySelector('i');
const countSpan = btn.querySelector('span');
if (isLiked) {
likedTracks = likedTracks.filter(t => t.id !== currentTrack.id);
btn.classList.remove('active');
icon.setAttribute('fill', 'none');
countSpan.textContent = currentTrack.likes.toLocaleString();
showToast('Removed from liked tracks');
} else {
likedTracks.push({...currentTrack, likedAt: new Date().toISOString()});
btn.classList.add('active');
icon.setAttribute('fill', '#f97316');
countSpan.textContent = (currentTrack.likes + 1).toLocaleString();
showToast('Added to liked tracks');
}
localStorage.setItem('likedTracks', JSON.stringify(likedTracks));
lucide.createIcons();
}
function showToast(message) {
const toast = document.createElement('div');
toast.className = 'fixed bottom-24 left-1/2 -translate-x-1/2 bg-cyan-500 text-black px-4 py-2 rounded-full text-sm font-medium z-50 animate-fade-in glow-cyan';
toast.textContent = message;
document.body.appendChild(toast);
setTimeout(() => {
toast.style.opacity = '0';
toast.style.transition = 'opacity 0.3s';
setTimeout(() => toast.remove(), 300);
}, 2000);
}
function toggleRepost(btn) {
btn.classList.toggle('active');
const icon = btn.querySelector('i');
if (btn.classList.contains('active')) {
icon.setAttribute('fill', '#00d4ff');
} else {
icon.setAttribute('fill', 'none');
}
}
function toggleShuffle(btn) {
btn.classList.toggle('text-cyan-400');
}
function toggleRepeat(btn) {
btn.classList.toggle('text-cyan-400');
}
let isMuted = false;
function toggleMute() {
isMuted = !isMuted;
const icon = document.getElementById('volumeIcon');
if (isMuted) {
icon.setAttribute('data-lucide', 'volume-x');
} else {
icon.setAttribute('data-lucide', 'volume-2');
}
lucide.createIcons();
}
function previousTrack() {
// Previous track logic
}
function nextTrack() {
// Next track logic
}
</script>
</body>
</html> |