Spaces:
Running on Zero
Running on Zero
File size: 5,111 Bytes
8664e57 40650c9 1851af6 488f8b8 8664e57 488f8b8 c4e37f3 488f8b8 c4e37f3 40650c9 8664e57 488f8b8 1851af6 8664e57 488f8b8 2680b2e 488f8b8 69ca3f0 488f8b8 8664e57 488f8b8 0322299 488f8b8 40650c9 488f8b8 8664e57 2680b2e 488f8b8 69ca3f0 488f8b8 0322299 488f8b8 0322299 8664e57 2680b2e 40650c9 488f8b8 40650c9 488f8b8 0322299 40650c9 0322299 488f8b8 0322299 2680b2e 40650c9 2680b2e 69ca3f0 488f8b8 2680b2e 40650c9 488f8b8 8664e57 40650c9 69ca3f0 488f8b8 40650c9 488f8b8 40650c9 488f8b8 40650c9 488f8b8 40650c9 488f8b8 40650c9 69ca3f0 40650c9 488f8b8 c4e37f3 8664e57 488f8b8 0322299 488f8b8 0322299 40650c9 2680b2e 40650c9 488f8b8 40650c9 488f8b8 0322299 40650c9 0322299 488f8b8 40650c9 488f8b8 0322299 40650c9 488f8b8 40650c9 488f8b8 2680b2e 40650c9 488f8b8 40650c9 488f8b8 0322299 488f8b8 0322299 488f8b8 0322299 488f8b8 c4e37f3 | 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 | :root {
--bg-color: #0b0f14;
--text-primary: #ffffff;
--btn-hold: #2d3135;
--btn-end: #ea4335;
}
/* RESET EVERYTHING */
body,
html,
.gradio-container {
background-color: var(--bg-color) !important;
margin: 0 !important;
padding: 0 !important;
width: 100vw !important;
height: 100vh !important;
overflow: hidden !important;
}
/* Hide all Gradio native elements (footer, noise, logos) */
footer,
.footer,
.svelte-1t38q2d,
.icon-button,
.wrap.svelte-1t38q2d {
display: none !important;
}
/* Force our container to be a fixed overlay */
.gemini-live-container {
position: fixed !important;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: var(--bg-color);
z-index: 9999;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
/* Clean up internal Gradio wrappers */
.gemini-live-container>div {
background: transparent !important;
border: none !important;
box-shadow: none !important;
width: 100%;
}
/* --- HEADER --- */
.header-bar {
position: absolute;
top: 40px;
left: 0;
width: 100%;
display: flex;
justify-content: center;
z-index: 50;
pointer-events: none;
}
.live-indicator {
background: rgba(45, 49, 53, 0.5);
padding: 8px 16px;
border-radius: 20px;
display: flex;
align-items: center;
gap: 8px;
color: #fff;
font-size: 14px;
font-weight: 500;
backdrop-filter: blur(10px);
}
.live-icon {
width: 16px;
height: 16px;
fill: #fff;
}
/* --- TRANSCRIPT --- */
.transcript-area {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
width: 90%;
max-width: 600px;
text-align: center;
z-index: 40;
pointer-events: none;
}
.live-transcript {
font-size: 28px;
color: #fff;
line-height: 1.4;
font-family: 'Google Sans', sans-serif;
text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.transcript-history {
font-size: 16px;
color: rgba(255, 255, 255, 0.5);
margin-bottom: 20px;
}
/* --- BOTTOM VISUALIZER --- */
.visualizer-area {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 350px;
z-index: 10;
pointer-events: none;
overflow: hidden;
background: linear-gradient(to top, #1e252f 0%, transparent 100%);
}
.wave-glow {
position: absolute;
bottom: -80px;
left: 50%;
transform: translateX(-50%);
width: 150%;
height: 300px;
background: radial-gradient(50% 50% at 50% 50%, rgba(66, 133, 244, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
filter: blur(40px);
animation: pulse-wave 4s ease-in-out infinite alternate;
}
@keyframes pulse-wave {
0% {
opacity: 0.5;
transform: translateX(-50%) scale(1);
}
100% {
opacity: 0.8;
transform: translateX(-50%) scale(1.1);
}
}
/* --- CONTROLS --- */
.controls-bar {
position: absolute;
bottom: 50px;
left: 0;
width: 100%;
display: flex;
justify-content: center;
gap: 60px;
z-index: 60;
}
.control-btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
cursor: pointer;
position: relative;
width: 80px;
}
.btn-circle {
width: 72px;
height: 72px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.1s;
}
.btn-circle:active {
transform: scale(0.95);
}
.btn-hold .btn-circle {
background-color: var(--btn-hold);
}
.btn-end .btn-circle {
background-color: var(--btn-end);
}
.btn-label {
font-size: 14px;
color: rgba(255, 255, 255, 0.7);
}
.icon-hold {
width: 24px;
height: 24px;
background: #fff;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px'%3E%3Cpath d='M560-200v-560h160v560H560Zm-320 0v-560h160v560H240Z'/%3E%3C/svg%3E") no-repeat center;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px'%3E%3Cpath d='M560-200v-560h160v560H560Zm-320 0v-560h160v560H240Z'/%3E%3C/svg%3E") no-repeat center;
}
.icon-end {
width: 24px;
height: 24px;
background: #fff;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px'%3E%3Cpath d='m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z'/%3E%3C/svg%3E") no-repeat center;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px'%3E%3Cpath d='m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z'/%3E%3C/svg%3E") no-repeat center;
}
/* Audio Overlay on Hold Button */
.audio-interface {
position: absolute !important;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
opacity: 0 !important;
cursor: pointer;
z-index: 100;
} |