diff --git a/frontend.html b/frontend.html
index 282dcdf..534c79d 100644
--- a/frontend.html
+++ b/frontend.html
@@ -212,6 +212,21 @@
sessionStorage.setItem('sidebar-scroll', sidebar.scrollTop);
});
})();
+
+ // Preserve video volume and mute status between page loads
+ (function() {
+ var video = document.querySelector('video');
+ if (!video) return;
+ var saved = sessionStorage.getItem('video-volume');
+ if (saved !== null) {
+ var v = parseFloat(saved);
+ video.volume = v;
+ video.muted = v === 0;
+ }
+ video.addEventListener('volumechange', function() {
+ sessionStorage.setItem('video-volume', video.muted ? '0' : video.volume);
+ });
+ })();