/* --- Terminal Hardware Layer --- */
        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-track { background: #000; }
        ::-webkit-scrollbar-thumb { background: #222; border: 1px solid #444; }

        /* High-Density Scanlines + Flicker */
        body::before {
            content: " ";
            display: block;
            position: fixed;
            top: 0; left: 0; bottom: 0; right: 0;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%), 
                        linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
            z-index: 9999;
            background-size: 100% 2px, 2px 100%;
            pointer-events: none;
            animation: monitor-flicker 0.15s infinite;
            opacity: 0.9;
        }

        /* Moving Tuning Bar */
        body::after {
            content: "";
            position: fixed;
            top: -100%;
            left: 0;
            width: 100%;
            height: 3px;
            background: rgba(255, 255, 255, 0.07);
            z-index: 10000;
            pointer-events: none;
            animation: scanline-move 10s linear infinite;
        }

        @keyframes monitor-flicker {
            0% { opacity: 0.95; }
            50% { opacity: 0.75; }
            100% { opacity: 0.95; }
        }

        @keyframes scanline-move {
            0% { top: -5%; }
            100% { top: 105%; }
        }

        /* --- Content Styles --- */
        body {
            color: #e0e0e0;
            font-family: 'Courier New', Courier, monospace;
            background: url('/img/wp.webp') fixed;
            background-size: cover;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
            margin: 0;
            padding: 0;
        }

        /* Film Grain Static Overlay */
        .grain-overlay {
            content: "";
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
            opacity: 0.05;
            pointer-events: none;
            z-index: 10;
        }

        body::after {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* Creates a subtle 'static' film grain */
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
            opacity: 0.05;
            pointer-events: none;
            z-index: 10;
        }

        .log-wrapper {
            width: 700px;
            padding: 20px;
            margin-top: 50px;
            margin-bottom: 50px;
            box-sizing: border-box;
            background-color: rgba(30, 30, 30, 0.7);
            backdrop-filter: blur(2px);
            border: 1px solid #444;
            z-index: 20;
            position: relative;
        }

        .log-header { text-align: left; margin-bottom: 20px; border-bottom: 1px dashed #666; padding-bottom: 15px; }
        .log-header h1 { margin: 0; font-size: 1.5em; color: #eee; }
        .log-entry { margin-bottom: 20px; padding: 15px; background-color: rgba(45, 45, 45, 0.6); border: 1px solid #555; }
        .entry-info { font-size: 0.8em; color: #888; margin-bottom: 8px; display: flex; justify-content: space-between; border-bottom: 1px dotted #666; padding-bottom: 5px; }
        .entry-id { color: #ccc; font-weight: bold; }
        .entry-content { line-height: 1.6; color: #c0c0c0; }
        .entry-content img { max-width: 100%; height: auto; display: block; margin: 15px auto; border: 1px solid #444; }
        .back-link { display: inline-block; margin-top: 10px; font-size: 0.9em; text-decoration: none; color: #999; }
        .back-link:hover { color: #ccc; }
        
        /* Replies Section */
        .thread-replies { margin-top: 30px; padding-top: 15px; border-top: 1px dashed #666; color: #999; }
        .thread-replies h2 { color: #f0f0f0; margin-top: 0; margin-bottom: 15px; }
        .reply-post { background-color: rgba(55, 55, 55, 0.5); border-color: #666; margin-left: 20px; margin-bottom: 15px; }
        .thread-replies hr { border: none; border-top: 1px solid #555; margin: 20px 0; }

        .system-footer { position: fixed; bottom: 10px; left: 10px; font-size: 8px; color: #333; letter-spacing: 2px; z-index: 1001; pointer-events: none; }

        a, a:link, a:visited, a:active {
            color: #999 !important; /* Your preferred gray */
            text-decoration: none;  /* Removes the underline if you don't want it */
            transition: color 0.3s ease;
        }

        /* Make it slightly brighter when you hover over it */
        a:hover {
            color: #ccc !important;
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
        }