diff --git a/resources/views/layout/video-player.blade.php b/resources/views/layout/video-player.blade.php
index c197b9d56..b5234a5b5 100644
--- a/resources/views/layout/video-player.blade.php
+++ b/resources/views/layout/video-player.blade.php
@@ -18,28 +18,85 @@ class="block bg-[#FFD700] hover:bg-[#F95C22] rounded-full p-4 duration-300">
@if ($src && Str::contains($src, ['youtube.com', 'youtu.be']))
@php
- // Extract video ID and convert to privacy-enhanced URL
preg_match('/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/', $src, $matches);
$videoId = $matches[1] ?? '';
- $privacyEnhancedUrl = "https://www.youtube-nocookie.com/embed/{$videoId}";
+ // Use privacy-enhanced YouTube URL
+ $privacyEnhancedUrl = "https://www.youtube-nocookie.com/embed/{$videoId}?rel=0&modestbranding=1";
@endphp
-
-
-
-
-
This video is hosted on YouTube. Loading it will share data with Google.
-
-
or accept marketing cookies
-
+
+
+
@else
-
-
@endpush
@endif
\ No newline at end of file