From f34fc0f2a079cb859b3639746c49bd3011868efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Mon, 1 Jun 2026 08:43:16 +0300 Subject: [PATCH] refactor: replace YouTube lightbox with persistent background playback integration and vinyl animation state management --- .../front/music-productions/index.blade.php | 6 + .../front/music-productions/show.blade.php | 157 +++++++++++------- 2 files changed, 103 insertions(+), 60 deletions(-) diff --git a/resources/views/front/music-productions/index.blade.php b/resources/views/front/music-productions/index.blade.php index 93a97f5..a68cb0a 100644 --- a/resources/views/front/music-productions/index.blade.php +++ b/resources/views/front/music-productions/index.blade.php @@ -434,6 +434,10 @@ border-radius: 8px; } +.project.item:has(.player:hover) { + z-index: 9999 !important; +} + .player:hover { transform: scale(1.08) translateY(-5px); z-index: 999; @@ -490,6 +494,7 @@ background-image: radial-gradient(circle, #2c2727 10%, transparent 10%), repeating-radial-gradient(circle, #2c2727, #1e1b1b 2px, #2c2727 4px); z-index: 10; + transition: box-shadow var(--transition-time) var(--transition-method); } .player:hover .vinyl { @@ -498,6 +503,7 @@ .player:hover .vinyl__circle { animation-play-state: running; + box-shadow: 0 0 25px rgba(227, 30, 36, 0.65), 0 0 50px rgba(227, 30, 36, 0.35); } .vinyl__center { diff --git a/resources/views/front/music-productions/show.blade.php b/resources/views/front/music-productions/show.blade.php index 33263bc..b31d182 100644 --- a/resources/views/front/music-productions/show.blade.php +++ b/resources/views/front/music-productions/show.blade.php @@ -88,18 +88,10 @@ @endif - {{-- YouTube Lightbox Modal --}} + {{-- Hidden Background YouTube Player --}} @if($videoId) -
- - +
+
@endif @@ -666,62 +658,107 @@ body.lightbox-open .player { @push('scripts') @endpush