   @import url('https://fonts.googleapis.com/css2?family=Metal+Mania&family=Cinzel:wght@700&family=Rajdhani:wght@300;500;700&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Rajdhani', sans-serif;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 50%, #000000 100%);
            color: #c0c0c0;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }
        
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(ellipse at top, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 1;
        }
        
        header {
            padding: 40px 0;
            text-align: center;
            border-bottom: 3px solid #8B0000;
            box-shadow: 0 5px 20px rgba(139, 0, 0, 0.5);
            position: relative;
            background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(10,0,0,0.7) 100%);
        }
        
        h1 {
            font-family: 'Metal Mania', cursive;
            font-size: 4rem;
            color: #8B0000;
            text-shadow: 
                0 0 10px rgba(139, 0, 0, 0.8),
                0 0 20px rgba(139, 0, 0, 0.6),
                0 0 30px rgba(139, 0, 0, 0.4),
                3px 3px 0 #000,
                -3px -3px 0 #000;
            letter-spacing: 8px;
            margin-bottom: 10px;
            animation: flicker 3s infinite alternate;
        }
        
        @keyframes flicker {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.95; }
        }
        
        .subtitle {
            font-family: 'Cinzel', serif;
            font-size: 1.2rem;
            color: #c0c0c0;
            text-transform: uppercase;
            letter-spacing: 4px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        }
        
        .search-section {
            padding: 60px 0;
            text-align: center;
        }
        
        .search-container {
            max-width: 700px;
            margin: 0 auto;
            position: relative;
        }
        
        .search-title {
            font-family: 'Cinzel', serif;
            font-size: 2rem;
            color: #8B0000;
            margin-bottom: 30px;
            text-shadow: 2px 2px 8px rgba(139, 0, 0, 0.6);
            text-transform: uppercase;
            letter-spacing: 3px;
        }
        
        .search-box {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        input[type="text"] {
            flex: 1;
            padding: 18px 25px;
            font-size: 1.1rem;
            font-family: 'Rajdhani', sans-serif;
            background: rgba(0, 0, 0, 0.8);
            border: 2px solid #8B0000;
            color: #c0c0c0;
            border-radius: 0;
            outline: none;
            transition: all 0.3s ease;
            box-shadow: 
                inset 0 2px 10px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(139, 0, 0, 0.3);
        }
        
        input[type="text"]:focus {
            border-color: #ff0000;
            box-shadow: 
                inset 0 2px 10px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(255, 0, 0, 0.5);
        }
        
        input[type="text"]::placeholder {
            color: #666;
        }
        
        button {
            padding: 18px 40px;
            font-size: 1.1rem;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 700;
            background: linear-gradient(135deg, #8B0000 0%, #5a0000 100%);
            color: #fff;
            border: 2px solid #ff0000;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.3s ease;
            box-shadow: 
                0 4px 15px rgba(139, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 0, 0, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.5s, height 0.5s;
        }
        
        button:hover::before {
            width: 300px;
            height: 300px;
        }
        
        button:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 6px 25px rgba(255, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            border-color: #ff4444;
        }
        
        button:active {
            transform: translateY(0);
        }
        
        .results-section {
            padding: 40px 0;
            min-height: 400px;
        }
        
        .books-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .book-card {
            background: linear-gradient(135deg, rgba(20, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
            border: 2px solid #333;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
        }
        
        .book-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #8B0000, #ff0000, #8B0000);
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .book-card:hover::before {
            opacity: 1;
        }
        
        .book-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 15px 40px rgba(139, 0, 0, 0.6);
            border-color: #8B0000;
        }
        
        .book-card img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            margin-bottom: 15px;
            border: 1px solid #444;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        }
        
        .book-card h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.2rem;
            color: #c0c0c0;
            margin-bottom: 10px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
        }
        
        .book-card p {
            color: #888;
            font-size: 0.95rem;
        }
        
        .viewer-section {
            padding: 40px 0;
            display: none;
        }
        
        .viewer-section.active {
            display: block;
        }
        
        .viewer-container {
            background: rgba(0, 0, 0, 0.9);
            border: 3px solid #8B0000;
            padding: 30px;
            border-radius: 0;
            box-shadow: 
                0 10px 50px rgba(139, 0, 0, 0.5),
                inset 0 0 50px rgba(139, 0, 0, 0.1);
            position: relative;
        }
        
        .viewer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 2px solid #8B0000;
        }
        
        .viewer-title {
            font-family: 'Cinzel', serif;
            font-size: 1.8rem;
            color: #8B0000;
            text-shadow: 2px 2px 6px rgba(139, 0, 0, 0.6);
        }
        
        .close-viewer {
            padding: 10px 25px;
            font-size: 1rem;
        }
        
        #viewerCanvas {
            width: 100%;
            min-height: 600px;
            background: #000;
            border: 1px solid #333;
        }
        
        .loading {
            text-align: center;
            padding: 60px;
            font-size: 1.5rem;
            color: #8B0000;
            font-family: 'Cinzel', serif;
            text-shadow: 2px 2px 8px rgba(139, 0, 0, 0.6);
        }
        
        .no-results {
            text-align: center;
            padding: 60px;
            font-size: 1.3rem;
            color: #666;
        }
        
        footer {
            padding: 40px 0;
            text-align: center;
            border-top: 3px solid #8B0000;
            margin-top: 80px;
            background: rgba(0, 0, 0, 0.5);
            box-shadow: 0 -5px 20px rgba(139, 0, 0, 0.3);
        }
        
        footer p {
            color: #888;
            font-size: 1rem;
            letter-spacing: 2px;
        }
        
        .skull-divider {
            text-align: center;
            margin: 40px 0;
            font-size: 2rem;
            color: #8B0000;
            text-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
        }
        
        @media (max-width: 768px) {
            h1 {
                font-size: 2.5rem;
                letter-spacing: 4px;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .search-box {
                flex-direction: column;
            }
            
            button {
                width: 100%;
            }
            
            .books-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 20px;
            }
            
            .viewer-header {
                flex-direction: column;
                gap: 15px;
            }
        }