
        /* CSS Custom Properties for Theme */
        :root {
            --bg-primary: #c3c3c3;
            --bg-secondary: #cccccc;
            --text-primary: #333333;
            --text-secondary: #666666;
            --accent-color: #75bb8d;
            --border-color: #e9ecef;
            --icon-color: #333333; /* default (light mode): dark gray */
            --overlay-bg: rgba(0, 0, 0, 0.8);
            --menu-bg: #ffffff;
            --menu-shadow: rgba(0, 0, 0, 0.1);
            --button-bg: rgba(255, 255, 255, 0.1);
            --button-hover: rgba(255, 255, 255, 0.2);
        }

        /* Explicit light theme (optional) - identical to :root but labelled for clarity */
        [data-theme="light"] {
            --bg-primary: #c3c3c3;
            --bg-secondary: #cccccc;
            --text-primary: #333333;
            --text-secondary: #666666;
            --accent-color: #75bb8d;
            --border-color: #e9ecef;
            --icon-color: #333333;
            --overlay-bg: rgba(0, 0, 0, 0.8);
            --menu-bg: #ffffff;
            --menu-shadow: rgba(0, 0, 0, 0.1);
            --button-bg: rgba(255, 255, 255, 0.1);
            --button-hover: rgba(255, 255, 255, 0.2);
        }

        [data-theme="dark"] {
            --bg-primary: #1a1a1a;
            --bg-secondary: #2d2d2d;
            --text-primary: #ffffff;
            --text-secondary: #cccccc;
            --accent-color: #75bb8d;
            --border-color: #404040;
            --icon-color: #ffffff; /* dark mode: white */
            --overlay-bg: rgba(0, 0, 0, 0.9);
            --menu-bg: #2d2d2d;
            --menu-shadow: rgba(0, 0, 0, 0.3);
            --button-bg: rgba(255, 255, 255, 0.1);
            --button-hover: rgba(255, 255, 255, 0.2);
        }

        /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }


        #datetime {
        font-size: 14px; 
        font-weight: bold;  
        color: #626262; 
        text-align: center; 
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            transition: color 0.15s ease, background-color 0.15s ease;
            overflow-x: hidden;
        }

        /* Top Navigation */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(65, 65, 65, 0.285);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .logo {
            height: 40px;
            width: 40px;
            background: var(--accent-color);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
        }

        .nav-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .theme-toggle {
            background: var(--button-bg);
            border: none;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.2rem;
            color: white;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .theme-toggle:hover {
            background: var(--button-hover);
            transform: scale(1.05);
        }

        .hamburger {
            background: var(--button-bg);
            border: none;
            border-radius: 8px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .hamburger:hover {
            background: var(--button-hover);
            transform: scale(1.05);
        }

        .hamburger span {
            display: block;
            width: 20px;
            height: 2px;
            background: white;
            margin: 4px 0;
            transition: all 0.3s ease;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        /* Hamburger Menu Overlay */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--overlay-bg);
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .menu-container {
            background: var(--menu-bg);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 20px 60px var(--menu-shadow);
            transform: scale(0.8);
            transition: transform 0.3s ease;
            max-width: 90vw;
            max-height: 90vh;
            overflow: auto;
        }

        .menu-overlay.active .menu-container {
            transform: scale(1);
        }

        .menu-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 1rem;
            justify-items: center;
        }

        .menu-item {
            width: 80px;
            height: 80px;
            background: var(--bg-secondary);
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid var(--border-color);
            text-align: center;
        }

        .menu-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-color: var(--accent-color);
        }

        .menu-item span {
            font-size: 1.8rem; 
            margin-bottom: 0.35rem;
            display: block;
        }

        .menu-item small {
            font-size: 0.75rem;
            color: var(--text-secondary);
            display: block;
        }

        .bottom-controls {
            position: fixed;
            bottom: 2rem;
            left: 2rem;
            right: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            z-index: 50;
            pointer-events: none;
        }
        .left-controls {
        display: flex;
        gap: 10px;
        align-items: flex-end;
    }

        .control-button {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--button-bg);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            pointer-events: auto;
            color: white;
            font-size: 1.2rem;
        }

        .control-button:hover {
            background: var(--button-hover);
            transform: scale(1.1);
        }

        /* Info Menu */
        .info-menu {
            position: absolute;
            bottom: 70px;
            left: 0;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
            pointer-events: none;          
        }
            
        

        .info-menu.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
        }


        .info-menu a {
            color: var(--icon-color);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: color 0.15s ease;
        }

        .info-menu .info-icon {
            color: var(--icon-color);
            width: 20px;
            height: 20px;
            display: block;
            transition: color 0.15s ease;
        }

        .info-menu .info-icon [stroke],
        .info-menu .info-icon [fill="currentColor"] {
            stroke: currentColor;
            fill: currentColor;
        }

        /* QR Code Modal */
        .qr-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            background: var(--menu-bg);
            border-radius: 20px;
            padding: 2rem;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 200;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 400px;
        }
        
        .qr-modal.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }
        
        .qr-modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 199;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }
        
        .qr-modal-backdrop.active {
            opacity: 1;
            visibility: visible;
        }
        
        .qr-code-placeholder {
            width: 250px;
            height: 250px;
            background: var(--bg-secondary);
            border: 2px dashed var(--border-color);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            color: var(--text-secondary);
            font-size: 3rem;
        }
        
        .qr-code-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .qr-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .qr-modal-header h3 {
            color: var(--text-primary);
            font-size: 1.5rem;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-secondary);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
        }

        .close-btn:hover {
            background: var(--bg-secondary);
        }

        .qr-code-placeholder {
            width: 200px;
            height: 200px;
            background: var(--bg-secondary);
            border: 2px dashed var(--border-color);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            color: var(--text-secondary);
            font-size: 3rem;
        }

        /* Content Section */
        .content {
            padding: 4rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .content h2 {
            font-size: 2.5rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .content p {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--text-secondary);
            text-align: center;
            max-width: 600px;
            margin: 0 auto;
        }
        
        main.content img {
            display: block;
            margin: 0;
            padding: 0;
        }
        
        main.content {
            max-width: none;
            margin: 0;
            padding: 0;
        }
        .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }
        
        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.5rem 0;
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-color);
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        .nav-links a:hover {
            color: var(--accent-color);
        }
        
        [data-theme="light"] .nav-links a {
            color: #333333;
        }

        .video-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            overflow: hidden;
            background: #000;
        }

        #player {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }

        @media (min-aspect-ratio: 16/9) {
            #player {
                width: 100vw;
                height: 56.25vw;
                min-height: 100vh;
            }
        }

        @media (max-aspect-ratio: 16/9) {
            #player {
                width: 177.78vh;
                height: 100vh;
                min-width: 100vw;
            }
        }

        .video-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: -1;
            transition: background 0.3s ease;
        }

        [data-theme="light"] .video-overlay {
            background: rgba(255, 255, 255, 0.85);
        }

        [data-theme="dark"] .video-overlay {
            background: rgba(0, 0, 0, 0.7);
        }

        body {
            position: relative;
            z-index: 1;
            overflow: hidden;
        }

        .content {
            position: relative;
            z-index: 2;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            margin: 0;
        }

        main.content {
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        }

        [data-theme="light"] main.content {
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .info-menu-item {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .info-menu-item:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
        }

        [data-theme="light"] .info-menu-item {
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .info-menu-item:hover {
            background: rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .info-menu-item svg {
            width: 22px;
            height: 22px;
            fill: white;
            transition: fill 0.3s ease;
        }

        [data-theme="light"] .info-menu-item svg {
            fill: #333333;
        }

        .control-button svg {
            width: 24px;
            height: 24px;
            fill: white;
            transition: fill 0.3s ease;
        }

        [data-theme="light"] .control-button svg {
            fill: #333333;
        }

        .theme-toggle svg {
            width: 22px;
            height: 22px;
            fill: white;
            transition: all 0.3s ease;
        }

        [data-theme="light"] .theme-toggle svg {
            fill: #333333;
        }

        .footer-container {
            position: fixed;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            z-index: 10;
            pointer-events: none;
            align-items: center;
        }

        .footer-left {
            text-align: center;
        }

        .footer-right {
            text-align: center;
        }

        .footer-container div {
            font-size: 12px;
            color: #626262;
        }

.permanent-actions {
    position: absolute;
    bottom: 0; 
    left: 68px; 
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.permanent-actions.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.info-menu-item-perm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    pointer-events: auto; 
}

.info-menu-item-perm:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

        [data-theme="light"] .info-menu-item-perm {
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        [data-theme="light"] .info-menu-item-perm:hover {
            background: rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .info-menu-item-perm svg {
            width: 22px;
            height: 22px;
            fill: white;
            transition: fill 0.3s ease;
        }

        [data-theme="light"] .info-menu-item-perm svg {
            fill: #333333;
        }
        
        
        @media (max-width: 768px) {
            .top-nav {
                padding: 1rem;
            }
            .nav-links {
                display: none;
            }
            .qr-modal {
                max-width: 280px;
                padding: 1.2rem 1rem;
                width: 85%;
            }
            
            .qr-modal-header h3 {
                font-size: 1.1rem;
                margin-bottom: 0.5rem;
            }
            
            .qr-code-placeholder {
                width: 180px; 
                height: 180px;
                padding: 0.5rem;
            }
            
            .qr-modal p {
                margin-top: 1rem !important;
                font-size: 0.75rem;
                padding: 0 0.5rem;
                line-height: 1.3;
            }
            
            .close-btn {
                width: 28px;
                height: 28px;
                font-size: 1.1rem;
            }

            .menu-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1rem;
            }

            .menu-item {
                width: 70px;
                height: 70px;
            }

            .bottom-controls {
                bottom: 1rem;
                left: 1rem;
                right: 1rem;
            }

            .control-button {
                width: 48px;
                height: 48px;
                font-size: 1rem;
            }

            .content {
                padding: 2rem 1rem;
            }

            .content h2 {
                font-size: 2rem;
            }
            .info-menu {
                bottom: 60px;
                display: flex;
                flex-direction: column; 
                gap: 0.5rem;
                width: auto;
                max-width: none; 
            }
            
            .info-menu-item-perm {
                width: 40px; 
                height: 40px;
            }
            
            .info-menu-item-perm svg {
                width: 18px;
                height: 18px;
            }
                        .footer-container {
                bottom: 6rem;
                left: 50%;
                transform: translateX(-50%);
            }
            
            .footer-container div {
                font-size: 10px;
            }
            .info-menu {
                bottom: 60px;
                display: grid;
                grid-template-columns: repeat(1, 1fr);
                gap: 0.5rem;
                width: auto;
                max-width: 180px;
            }
            
            .info-menu-item {
                width: 44px;
                height: 44px;
            }
            
            .info-menu-item svg {
                width: 18px;
                height: 18px;
            }
                .permanent-actions {
                left: 58px;
                bottom: 0; 
            }
        }
        
            @media (max-width: 480px) {
            .menu-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .menu-container {
                padding: 1.5rem;
            }

            .qr-code-placeholder {
                width: 150px;
                height: 150px;
                font-size: 2rem;
            }
        }