* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-image: 
        radial-gradient(circle at 20% 50%, #8b0000 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, #ff0040 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, #4b0000 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: breathing 4s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

.loading-text {
    font-family: 'Creepster', cursive;
    font-size: 2.5rem;
    color: #ff0040;
    text-shadow: 0 0 20px #ff0040;
    margin-bottom: 2rem;
    animation: flicker 0.5s infinite, shake 0.1s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

#sub-tagline {
    color: #ff0040;
    font-size: 1rem;
    margin-top: 0.5rem;
    animation: whisper 3s ease-in-out infinite;
}

@keyframes whisper {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.7; }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background-color: #333;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0040, #8b0000);
    width: 0%;
    animation: load 3s ease-out forwards;
}

@keyframes load {
    to { width: 100%; }
}

#main-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

#logo {
    font-family: 'Nosifer', cursive;
    font-size: 4rem;
    color: #ff0040;
    text-shadow: 0 0 30px #ff0040;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.hell-mark {
    color: #8b0000;
    text-shadow: 0 0 20px #8b0000;
}

.tagline {
    color: #666;
    font-size: 1.2rem;
    margin-top: 1rem;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
}

#search-input {
    width: 500px;
    padding: 1rem;
    background-color: #1a1a1a;
    border: 2px solid #333;
    color: #e0e0e0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #ff0040;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.5);
}

#search-btn, #back-btn {
    padding: 1rem 2rem;
    background-color: #8b0000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#search-btn:hover, #back-btn:hover {
    background-color: #ff0040;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.7);
}

#results-container {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 2rem;
    margin-top: 2rem;
}

#results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.result-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #0a0a0a;
    border-left: 3px solid #8b0000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-item:hover {
    transform: translateX(10px);
    box-shadow: -5px 0 20px rgba(255, 0, 64, 0.3);
}

.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 64, 0.3), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.result-title {
    color: #ff0040;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.result-title:hover {
    text-decoration: underline;
}

.result-url {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.result-snippet {
    color: #aaa;
    line-height: 1.5;
}

#corruption-meter {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 5px;
    z-index: 100;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.meter-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.meter-bar {
    width: 200px;
    height: 10px;
    background-color: #333;
    overflow: hidden;
}

#corruption-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b0000, #ff0040);
    width: 0%;
    transition: width 0.5s ease;
}

#corruption-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

#glitch-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#glitch-canvas.active {
    opacity: 0.1;
}

.glitch-effect {
    animation: glitch 0.1s infinite, flash 0.5s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes flash {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(2) hue-rotate(180deg); }
}

body.glitch-effect {
    filter: hue-rotate(180deg) saturate(2);
}

#blood-drip {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, #ff0040, #8b0000);
    animation: drip 4s ease-in-out infinite;
}

@keyframes drip {
    0% { height: 0; opacity: 0; }
    50% { height: 50px; opacity: 1; }
    100% { height: 0; opacity: 0; }
}

#static-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.1"/></svg>');
    opacity: 0;
    pointer-events: none;
    animation: static 0.1s steps(10) infinite;
    z-index: 999;
}

@keyframes static {
    0% { opacity: 0; }
    50% { opacity: 0.3; }
    100% { opacity: 0; }
}

#face-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="100" cy="100" r="80" fill="%23000"/><circle cx="70" cy="80" r="15" fill="%23ff0040"/><circle cx="130" cy="80" r="15" fill="%23ff0040"/><path d="M 60 130 Q 100 160 140 130" stroke="%23ff0040" stroke-width="5" fill="none"/></svg>') center/contain no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 1001;
}

#blood-splatter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 40%, #8b0000 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, #ff0040 0%, transparent 30%),
        radial-gradient(ellipse at 50% 50%, #4b0000 0%, transparent 50%);
    opacity: 0;
    pointer-events: none;
    z-index: 998;
    animation: splatter 0.3s ease-out;
}

@keyframes splatter {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 0.7; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(1); }
}

#demon-eyes {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 100px;
    height: 40px;
    background: 
        radial-gradient(circle at 25% 50%, #ff0040 0%, transparent 50%),
        radial-gradient(circle at 75% 50%, #ff0040 0%, transparent 50%);
    opacity: 0;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 90%, 100% { opacity: 0; }
    95% { opacity: 1; }
}

#screamer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
    z-index: 1002;
}

#screamer-overlay.active {
    display: block;
    animation: scream 0.5s ease-out;
}

@keyframes scream {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(2); }
}

@media (max-width: 768px) {
    #search-input {
        width: 100%;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    #logo {
        font-size: 2.5rem;
    }
}