Spaces:
Running
Running
Update youtube.html
Browse files- youtube.html +19 -20
youtube.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
<title>Cool Breeze Ultimate</title>
|
| 7 |
<!-- Core Dependencies -->
|
| 8 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/localforage/1.10.0/localforage.min.js"></script>
|
|
@@ -86,19 +86,14 @@
|
|
| 86 |
.close-modal:hover { transform: scale(1.1) rotate(90deg); background: #d32f2f; }
|
| 87 |
.modal-header-actions { display: flex; flex-wrap: wrap; gap: clamp(5px, 2vw, 10px); margin-bottom: 15px; padding-right: clamp(30px, 8vw, 40px); align-items: center; }
|
| 88 |
.modal-header-actions .btn-action { flex: 1 1 auto; }
|
| 89 |
-
|
| 90 |
-
/* PLAYER & CUSTOM ENDSCREEN (FIXED VIEWPORT) */
|
| 91 |
#player-overlay {
|
| 92 |
display: none;
|
| 93 |
position: fixed;
|
| 94 |
-
|
| 95 |
-
left: 0;
|
| 96 |
-
width: 100vw;
|
| 97 |
-
height: 100dvh;
|
| 98 |
background: #000;
|
| 99 |
-
z-index:
|
| 100 |
-
animation: fadeIn 0.3s ease;
|
| 101 |
-
/* Removed the env() padding that was breaking your layout */
|
| 102 |
}
|
| 103 |
|
| 104 |
#close-player {
|
|
@@ -108,7 +103,7 @@
|
|
| 108 |
color: white;
|
| 109 |
font-size: clamp(25px, 6vw, 35px);
|
| 110 |
cursor: pointer;
|
| 111 |
-
z-index:
|
| 112 |
background: rgba(255,255,255,0.2);
|
| 113 |
width: clamp(40px, 10vw, 50px);
|
| 114 |
height: clamp(40px, 10vw, 50px);
|
|
@@ -120,15 +115,19 @@
|
|
| 120 |
}
|
| 121 |
#close-player:hover { background: rgba(255,50,50,0.8); transform: scale(1.1); }
|
| 122 |
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
border: none;
|
| 131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
}
|
| 133 |
#custom-endscreen { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2050; padding: 40px 20px; overflow-y: auto; text-align: center; color: white; }
|
| 134 |
#endscreen-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 20px; }
|
|
|
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
|
| 6 |
<title>Cool Breeze Ultimate</title>
|
| 7 |
<!-- Core Dependencies -->
|
| 8 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/localforage/1.10.0/localforage.min.js"></script>
|
|
|
|
| 86 |
.close-modal:hover { transform: scale(1.1) rotate(90deg); background: #d32f2f; }
|
| 87 |
.modal-header-actions { display: flex; flex-wrap: wrap; gap: clamp(5px, 2vw, 10px); margin-bottom: 15px; padding-right: clamp(30px, 8vw, 40px); align-items: center; }
|
| 88 |
.modal-header-actions .btn-action { flex: 1 1 auto; }
|
| 89 |
+
/* BULLETPROOF PLAYER OVERLAY */
|
|
|
|
| 90 |
#player-overlay {
|
| 91 |
display: none;
|
| 92 |
position: fixed;
|
| 93 |
+
/* Lock to all 4 corners */
|
| 94 |
+
top: 0; left: 0; right: 0; bottom: 0;
|
|
|
|
|
|
|
| 95 |
background: #000;
|
| 96 |
+
z-index: 9999; /* Boosted z-index to guarantee it's on top */
|
|
|
|
|
|
|
| 97 |
}
|
| 98 |
|
| 99 |
#close-player {
|
|
|
|
| 103 |
color: white;
|
| 104 |
font-size: clamp(25px, 6vw, 35px);
|
| 105 |
cursor: pointer;
|
| 106 |
+
z-index: 10000;
|
| 107 |
background: rgba(255,255,255,0.2);
|
| 108 |
width: clamp(40px, 10vw, 50px);
|
| 109 |
height: clamp(40px, 10vw, 50px);
|
|
|
|
| 115 |
}
|
| 116 |
#close-player:hover { background: rgba(255,50,50,0.8); transform: scale(1.1); }
|
| 117 |
|
| 118 |
+
/* Force BOTH the target div and the injected YouTube iframe to obey */
|
| 119 |
+
#player-target, #player-overlay iframe {
|
| 120 |
+
position: absolute !important;
|
| 121 |
+
top: 0 !important;
|
| 122 |
+
left: 0 !important;
|
| 123 |
+
width: 100% !important;
|
| 124 |
+
height: 100% !important;
|
| 125 |
+
border: none !important;
|
| 126 |
+
margin: 0 !important;
|
| 127 |
+
padding: 0 !important;
|
| 128 |
+
max-width: none !important;
|
| 129 |
+
max-height: none !important;
|
| 130 |
+
object-fit: cover !important;
|
| 131 |
}
|
| 132 |
#custom-endscreen { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2050; padding: 40px 20px; overflow-y: auto; text-align: center; color: white; }
|
| 133 |
#endscreen-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 20px; }
|