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

        body {
            background-color: #000;
            color: #fff;
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        h1 {
            text-align: center;
            color: #f26822;
            margin-bottom: 20px;
            font-size: 2.5em;
        }

        .subtitle {
            text-align: center;
            color: #ccc;
            margin-bottom: 30px;
            font-style: italic;
        }

        .intro-section {
            background-color: #111;
            padding: 30px;
            border-radius: 10px;
            margin-bottom: 30px;
            border: 2px solid #f26822;
        }

        .intro-section h2 {
            color: #f26822;
            margin-bottom: 20px;
            font-size: 1.8em;
        }

        .intro-content {
            color: #ddd;
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .intro-content p {
            margin-bottom: 15px;
        }

        .search-container {
            background-color: #111;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            border: 2px solid #f26822;
        }

        .search-box {
            width: 100%;
            padding: 12px 20px;
            font-size: 1.1em;
            background-color: #222;
            color: #fff;
            border: 2px solid #f26822;
            border-radius: 5px;
        }

        .search-box:focus {
            outline: none;
            border-color: #fff;
            background-color: #333;
        }

        .stats-bar {
            background-color: #111;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 20px;
            border: 1px solid #333;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            color: #f26822;
            font-size: 1.8em;
            font-weight: bold;
        }

        .stat-label {
            color: #999;
            font-size: 0.9em;
        }

        .filters {
            background-color: #111;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
            border: 2px solid #f26822;
            transition: all 0.3s ease;
        }

        .filters.collapsed {
            max-height: 80px;
            overflow: hidden;
        }

        .filter-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            cursor: pointer;
        }

        .filter-toggle h3 {
            color: #f26822;
            margin: 0;
            font-size: 1.2em;
        }

        .toggle-icon {
            color: #f26822;
            font-size: 1.5em;
            transition: transform 0.3s ease;
        }

        .collapsed .toggle-icon {
            transform: rotate(180deg);
        }

        .filter-content {
            transition: opacity 0.3s ease;
        }

        .collapsed .filter-content {
            opacity: 0.3;
        }

        .filter-group {
            margin-bottom: 20px;
        }

        .filter-group label {
            display: block;
            color: #f26822;
            font-weight: bold;
            margin-bottom: 8px;
        }

        select, input {
            background-color: #222;
            color: #fff;
            border: 1px solid #f26822;
            padding: 8px;
            border-radius: 5px;
            margin-right: 10px;
            margin-bottom: 10px;
        }

        select:focus, input:focus {
            outline: none;
            border-color: #fff;
        }

        .filter-row {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: center;
        }

        .sort-controls {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .sort-controls label {
            color: #f26822;
            font-weight: bold;
        }

        .genre-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .genre-checkbox {
            display: flex;
            align-items: center;
            background-color: #222;
            padding: 5px 10px;
            border-radius: 5px;
            border: 1px solid #444;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .genre-checkbox:hover {
            border-color: #f26822;
        }

        .genre-checkbox.selected {
            border-color: #f26822;
            background-color: #332211;
        }

        .genre-checkbox input {
            margin: 0 5px 0 0;
            padding: 0;
        }

        .genre-logic-toggle {
            margin: 10px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .toggle-label {
            font-size: 0.9em;
            color: #ccc;
        }

        .logic-buttons {
            display: flex;
            border: 1px solid #444;
            border-radius: 5px;
            overflow: hidden;
        }

        .logic-btn {
            background-color: #222;
            color: #ccc;
            border: none;
            padding: 5px 12px;
            cursor: pointer;
            font-size: 0.85em;
            font-weight: bold;
            transition: all 0.3s ease;
            border-right: 1px solid #444;
        }

        .logic-btn:last-child {
            border-right: none;
        }

        .logic-btn:hover {
            background-color: #333;
            color: #fff;
        }

        .logic-btn.active {
            background-color: #f26822;
            color: #000;
        }

        .button-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .btn {
            background-color: #f26822;
            color: #000;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .btn:hover {
            background-color: #fff;
        }

        .btn-secondary {
            background-color: #333;
            color: #fff;
        }

        .btn-secondary:hover {
            background-color: #555;
        }

        .results-count {
            text-align: center;
            margin-bottom: 20px;
            color: #f26822;
            font-size: 1.2em;
        }

        .view-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 20px;
            gap: 15px;
        }
        
        .view-toggle {
            display: flex;
            gap: 10px;
        }

        .view-btn {
            padding: 8px 16px;
            background-color: #222;
            color: #fff;
            border: 1px solid #f26822;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .view-btn.active {
            background-color: #f26822;
            color: #000;
        }

        .books-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
        }

        .books-list {
            display: none;
        }

        .books-list.active {
            display: block;
        }

        .books-grid.inactive {
            display: none;
        }

        .book-card {
            background-color: #111;
            border: 2px solid #333;
            border-radius: 10px;
            padding: 20px;
            transition: all 0.3s ease;
            position: relative;
        }

        .book-card:hover {
            border-color: #f26822;
            transform: translateY(-5px);
        }

        .book-header {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }

        .book-cover-container {
            flex-shrink: 0;
            position: relative;
        }

        .book-cover {
            width: 80px;
            height: 120px;
            object-fit: cover;
            border-radius: 5px;
            cursor: pointer;
            transition: transform 0.3s ease;
            display: block;
        }

        .book-cover:hover {
            transform: scale(1.05);
        }

        /* Official blurb styles */
        .official-blurb-section {
            margin-top: 15px;
        }

        .blurb-toggle {
            background: none;
            border: 1px solid #f26822;
            color: #f26822;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9em;
            transition: all 0.3s ease;
            margin-bottom: 10px;
        }

        .blurb-toggle:hover {
            background-color: #f26822;
            color: #000;
        }

        .official-blurb {
            color: #ddd;
            font-size: 0.95em;
            line-height: 1.5;
            border-left: 3px solid #f26822;
            padding-left: 15px;
            margin-top: 10px;
            max-height: 200px;
            overflow-y: auto;
            transition: max-height 0.3s ease;
        }

        .official-blurb.collapsed {
            max-height: 0;
            overflow: hidden;
            padding: 0;
            margin: 0;
        }


        .no-cover {
            width: 80px;
            height: 120px;
            background-color: #333;
            border: 2px dashed #f26822;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #f26822;
            font-size: 10px;
            text-align: center;
            border-radius: 5px;
            padding: 5px;
        }

        .page-count {
            position: absolute;
            bottom: -5px;
            right: -5px;
            background-color: #f26822;
            color: #000;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 0.75em;
            font-weight: bold;
        }

        .book-info {
            flex: 1;
        }

        .book-title {
            color: #f26822;
            font-size: 1.3em;
            font-weight: bold;
            margin-bottom: 5px;
            cursor: pointer;
            text-decoration: none;
            display: block;
        }

        .book-title:hover {
            color: #fff;
        }

        .book-author {
            font-size: 1.1em;
            margin-bottom: 5px;
        }

        .book-details {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 10px;
        }

        .detail-badge {
            background-color: #f26822;
            color: #000;
            padding: 3px 8px;
            border-radius: 15px;
            font-size: 0.9em;
            font-weight: bold;
        }

        .genre-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 10px;
        }

        .genre-tag {
            background-color: #333;
            color: #fff;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.8em;
            border: 1px solid #f26822;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .genre-tag:hover {
            background-color: #f26822;
            color: #000;
        }

        .genre-tag.active-subgenre {
            background-color: #f26822;
            color: #000;
            font-weight: bold;
            border: 2px solid #fff;
        }

        .series-info {
            color: #f26822;
            font-style: italic;
            margin-bottom: 10px;
        }

        .book-blurb {
            color: #ccc;
            font-size: 0.95em;
            line-height: 1.5;
        }

        .list-item {
            background-color: #111;
            border: 1px solid #333;
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 5px;
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .list-item:hover {
            border-color: #f26822;
        }

        .list-cover {
            flex-shrink: 0;
            margin-right: 15px;
        }

        .list-cover img {
            width: 60px;
            height: 90px;
            object-fit: cover;
            border-radius: 5px;
        }

        .list-info {
            flex: 1;
        }

        .list-title {
            color: #f26822;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .list-meta {
            color: #999;
            font-size: 0.9em;
            margin-bottom: 8px;
        }

        .list-genres {
            margin-bottom: 8px;
        }

        .list-blurb {
            color: #ccc;
            font-size: 0.9em;
            line-height: 1.4;
        }

        .loading {
            text-align: center;
            padding: 50px;
            color: #f26822;
        }


        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }

            h1 {
                font-size: 2em;
            }

            .filter-row {
                flex-direction: column;
                align-items: stretch;
            }

            .books-grid {
                grid-template-columns: 1fr;
            }

            .book-header {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .book-cover, .no-cover {
                width: 120px;
                height: 180px;
            }

            .stats-bar {
                flex-direction: column;
                gap: 10px;
            }
            
        }