/**
 * BooksLike Main Stylesheet
 * Consolidated from inline styles.
 * * TABLE OF CONTENTS:
 * 1. Variables & Reset (Light & Dark Themes)
 * 2. Header (Navigation)
 * 3. Footer
 * 4. Layout & Global
 * 5. Card Components (Vertical & Horizontal)
 * 6. Glass Headers (Page Titles)
 * 7. Page: Home
 * 8. Page: Single Book
 * 9. Page: Archive & Search (Filters)
 * 10. Page: Series
 * 11. Page: My Library
 * 12. Page: Login
 * 13. Utilities (Swiper, Pagination)
 * 14. Recommendation
 */

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Dimensions */
    --bl-header-h: 60px;
    --bl-radius: 6px;
    
    /* ── LIGHT THEME (Default) ── */
    --bl-primary: #ff5b5b;       
    --bl-primary-dark: #e04a4a;
    --bl-success: #10b981;       
    --bl-danger: #ef4444;        
    --bl-gold: #f59e0b;          
    
    /* Backgrounds & Surfaces */
    --bl-bg: #f3f4f6;
    --bl-surface: #ffffff;
    --bl-surface-alt: #f8fafc;
    --bl-surface-alpha: rgba(255, 255, 255, 0.85);
    
    /* Borders */
    --bl-border: #e5e7eb;
    
    /* Typography */
    --bl-text-main: #1f2937;     
    --bl-text-sub: #6b7280;      
    --bl-text-muted: #9ca3af;
    
    /* Status Messages */
    --bl-error-bg: #fef2f2;
    --bl-error-text: #991b1b;
    --bl-error-border: #fee2e2;

    /* Effects */
    --bl-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --bl-auth-gradient: radial-gradient(circle at top right, #fff1f2, transparent 40%), radial-gradient(circle at bottom left, #eff6ff, transparent 40%);
}

/* ── DARK THEME ── 
   Add data-theme="dark" to the <html> or <body> tag to activate! */
[data-theme="dark"] {
    --bl-primary: #ff5b5b;       
    --bl-primary-dark: #e04a4a;
    --bl-gold: #c9a96e; /* From Literary Theme */
    
    /* Backgrounds & Surfaces */
    --bl-bg: #0d0c0a; 
    --bl-surface: #1a1916;
    --bl-surface-alt: #131210;
    --bl-surface-alpha: rgba(26, 25, 22, 0.85);
    
    /* Borders */
    --bl-border: rgba(240, 235, 227, 0.08);
    
    /* Typography */
    --bl-text-main: #f0ebe3;     
    --bl-text-sub: rgba(240, 235, 227, 0.6);      
    --bl-text-muted: rgba(240, 235, 227, 0.45);

    /* Status Messages */
    --bl-error-bg: rgba(239, 68, 68, 0.1);
    --bl-error-text: #fca5a5;
    --bl-error-border: rgba(239, 68, 68, 0.2);

    /* Effects */
    --bl-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5);
    --bl-auth-gradient: radial-gradient(circle at top right, rgba(255, 91, 91, 0.05), transparent 40%), radial-gradient(circle at bottom left, rgba(201, 169, 110, 0.05), transparent 40%);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bl-bg);
    color: var(--bl-text-main);
    padding-top: var(--bl-header-h); /* Prevent content hiding behind sticky header */
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

/* =========================================
   2. HEADER (Navigation)
   ========================================= */
   


/* =========================================
   3. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--bl-surface);
    border-top: 1px solid var(--bl-border);
    padding: 30px 20px;
    margin-top: 60px;
    color: var(--bl-text-sub);
    font-size: 0.9rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand strong {
    color: var(--bl-text-main); font-weight: 800; letter-spacing: -0.5px;
}
.footer-brand span.highlight { color: var(--bl-primary); }
.footer-desc { opacity: 0.7; font-size: 0.85rem; }

.footer-links a {
    color: var(--bl-text-sub); font-weight: 500; font-size: 0.85rem;
}
.footer-links a:hover { color: var(--bl-primary); }

@media (max-width: 600px) {
    .site-footer { padding: 15px 20px; margin-top: 40px; }
    .footer-inner { flex-direction: row; justify-content: space-between; }
    .footer-desc { display: none; }
    .footer-brand, .footer-links a { font-size: 0.8rem; }
}

/* =========================================
   4. LAYOUT & GLOBAL
   ========================================= */
.bl-container { max-width: 1100px; margin: 0 auto; padding: 20px 10px; position: relative; z-index: 2; }
.home-container { max-width: 1100px; margin: 0 auto; padding: 20px 10px; }

/* Breadcrumbs Fix */
.bl-breadcrumbs {
    margin-bottom: 10px; 
    font-size: 0.85rem; 
    color: var(--bl-text-sub);
    display: flex; 
    gap: 5px; 
    align-items: center;

    flex-wrap: nowrap;                 
    overflow-x: auto;                  
    white-space: nowrap;               
    -webkit-overflow-scrolling: touch; 
    
    scrollbar-width: none;             
    padding-right: 15px;               
}

.bl-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.bl-breadcrumbs a {
    flex-shrink: 0;
}
.bl-breadcrumbs a:hover { color: var(--bl-primary); text-decoration: underline; }
.bl-sep { color: var(--bl-border); font-size: 0.7rem; }

/* =========================================
   5. CARD COMPONENTS
   ========================================= */
/* A. Vertical Card (Standard Grid) */

.swiper-wrapper {
    align-items: stretch;
}
.books-grid { 
    display: grid; gap: 15px; 
    grid-template-columns: repeat(6, 1fr); 
}

.swiper-slide {
    height: auto; 
    display: flex; 
}

.bl-s-card {
    background: var(--bl-surface);
    border-radius: var(--bl-radius);
    overflow: hidden;
    border: 1px solid var(--bl-border);
    transition: transform 0.2s, border-color 0.2s, background-color 0.3s;
    
    display: flex; 
    flex-direction: column; 
    width: 100%;       
    height: 100%;      
    position: relative;
}
.bl-s-card:hover { transform: translateY(-3px); border-color: var(--bl-primary); }

.bl-s-cover {
    width: 100%;
    aspect-ratio: 2 / 3.2; 
    position: relative;
    background: var(--bl-surface-alt);
    flex-shrink: 0; 
}
.bl-s-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;    
}

.bl-s-badge {
    position: absolute; top: 5px; right: 5px;
    background: var(--bl-surface-alpha); color: var(--bl-gold); border: 1px solid var(--bl-border);
    font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
    backdrop-filter: blur(3px); z-index: 2;
}
.bl-vol-badge {
    position: absolute; top: 0; left: 0;
    background: var(--bl-primary); color: #fff;
    font-size: 0.85rem; font-weight: 800; padding: 4px 10px; 
    border-bottom-right-radius: 8px; z-index: 2;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.bl-s-body {
    padding: 6px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Keeps content at the top */
}
/* 4. TITLE FIX (The "Irregular Height" Solver) */
.bl-s-title { 
    font-size: 0.9rem; 
    font-weight: 600; 
    margin: 0 0 5px 0; 
    color: var(--bl-text-main);
    
    /* Line clamp settings */
    line-height: 1.35; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;

    /* CRITICAL FIX: Reserve space for 2 lines always 
       Calculation: 0.9rem (font) * 1.35 (line-height) * 2 (lines) ≈ 2.43rem */
    min-height: 2.43rem; 
}
.bl-s-genre {
    display: inline-block; background-color: var(--bl-bg);
    color: var(--bl-text-sub); font-size: 0.7rem; font-weight: 600;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; line-height: 1;
}
.bl-s-card:hover .bl-s-genre { background-color: var(--bl-primary); color: white; }

/* Grid Responsive */
@media (max-width: 1024px) { .books-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 768px) { .books-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; font-weight: 600; } }
@media (max-width: 480px) { 
    .books-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; } 
    .bl-s-title { 
        font-size: 0.9rem; font-weight: 500;
        height: 2.2rem; max-height: 2.2rem; min-height: 2.2rem;
    } 
}

/* B. Horizontal Card (List View) */
.bl-horiz-list { display: flex; flex-direction: column; gap: 20px; }
.bl-h-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    grid-template-rows: auto auto;
    gap: 0 20px;
    background: var(--bl-surface); border-radius: 4px; overflow: hidden;
    box-shadow: var(--bl-shadow); border: 1px solid var(--bl-border);
    transition: transform 0.2s, border-color 0.2s, background-color 0.3s; 
    width: 100%; position: relative;
}
.bl-h-card:hover { transform: translateY(-3px); border-color: var(--bl-primary); }

.bl-h-cover { 
    grid-row: 1 / -1; width: 100%; height: 100%; position: relative;
    align-self: start;
}
.bl-h-img { width: 100%; height: 100%; object-fit: cover; }

.bl-h-body {
    grid-column: 2; grid-row: 1; padding: 15px 20px 5px 0;
    display: flex; flex-direction: column;
}
.bl-h-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.bl-h-title { font-size: 1.1rem; font-weight: 700; margin: 0; line-height: 1.2; color: var(--bl-text-main); }
.bl-h-rating { background: var(--bl-surface-alt); color: var(--bl-gold); font-weight: 700; font-size: 0.8rem; padding: 2px 8px; border-radius: 4px; margin-left: 10px; flex-shrink: 0; }
.bl-h-meta { font-size: 0.8rem; color: var(--bl-text-sub); margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }

/* Description Expand/Collapse */
.bl-h-desc { font-size: 0.9rem; color: var(--bl-text-sub); line-height: 1.5; margin-bottom: auto; position: relative; }
.bl-h-desc.collapsed { max-height: 5em; overflow: hidden; display: block; }
.bl-h-desc.collapsed::after { 
    content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 1.5em; 
    background: linear-gradient(to bottom, transparent, var(--bl-surface)); pointer-events: none; 
}
.bl-h-desc p:first-child { margin-top: 0; }
.bl-h-toggle { 
    font-size: 0.8rem; color: var(--bl-primary); font-weight: 600; 
    background: none; border: none; padding: 0; cursor: pointer; 
    margin-top: 5px; display: inline-block; align-self: flex-end; 
}

/* Horizontal Card Footer (Tags) */
.bl-h-footer {
    grid-column: 2; grid-row: 2; padding: 0 20px 15px 0;
    display: flex; flex-wrap: nowrap; gap: 6px; align-items: center;
    overflow: hidden; white-space: nowrap; 
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}
.bl-h-tag { flex-shrink: 0; font-size: 0.7rem; color: var(--bl-text-muted); background: var(--bl-bg); padding: 2px 8px; border-radius: 4px; }

@media (max-width: 768px) {
    .bl-h-card {
        grid-template-columns: 85px 1fr; 
        grid-template-rows: auto auto;
        gap: 12px 15px; padding: 12px;
    }
    .bl-h-cover {
        grid-row: 1; grid-column: 1; width: 85px; height: 125px; 
        border-radius: 4px; overflow: hidden;
    }
    .bl-h-body {
        grid-row: 1; grid-column: 2; padding: 0; min-height: 125px;
    }
    .bl-h-footer {
        grid-row: 2; grid-column: 1 / -1;
        margin-right: 0; margin-top: 10px; padding-top: 10px;
        border-top: 1px solid var(--bl-border);
        overflow-x: auto; padding-bottom: 2px;
        mask-image: none; -webkit-mask-image: none;
    }
}

/* =========================================
   6. GLASS HEADERS (Page Titles)
   ========================================= */
.bl-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 250px;
    background-size: cover; background-position: center;
    filter: blur(20px) brightness(0.7); opacity: 0.5; z-index: 1;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.bl-header-bg {
    position: relative; background: var(--bl-surface); border-radius: var(--bl-radius);
    overflow: hidden; margin-bottom: 20px;
    border: 1px solid var(--bl-border);
    transition: background-color 0.3s, border-color 0.3s;
}

/* Content inside header */
.bl-archive-content, .bl-header-content {
    position: relative; z-index: 2; padding: 20px 20px; width: 100%;
    display: flex; flex-direction: column; justify-content: center;
}
.bl-main-title {
    font-size: 2.5rem; font-weight: 800; color: var(--bl-text-main); margin: 5px 0 0 0;
    line-height: 1.1; letter-spacing: -1px;
}
.bl-sub-label {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase; 
    letter-spacing: 1px; color: #fff; margin-bottom: 5px;
    display: inline-block; background: var(--bl-primary); 
    padding: 4px 10px; border-radius: 4px; width: fit-content;
}
.bl-desc-box {
    font-size: 0.9rem; color: var(--bl-text-main); line-height: 1.6; backdrop-filter: blur(5px);
    padding: 5px 2px 0 0; border-radius: 6px;
}
.bl-desc-box p { margin: 0 !important; }

@media (max-width: 600px) {
    .bl-header-bg { min-height: auto; padding: 10px 0; margin-bottom:10px; }
    .bl-backdrop { mask-image: none; opacity: 0.15; }
    .bl-archive-content { padding: 8px; }
    .bl-main-title { font-size: 1.7rem; }
}

/* =========================================
   7. FRONT PAGE
   ========================================= */
/* Front page content CSS is handled via front-page(2).php inline styles */

/* =========================================
   8. PAGE: SINGLE BOOK
   ========================================= */
.bl-book-header {
    display: grid; grid-template-columns: 260px 1fr; 
    gap: 40px; padding: 30px; position: relative; z-index: 2;
}
.bl-cover-wrap { position: relative; width: 100%; flex-shrink: 0; }
.bl-cover-wrap img {
    width: 100%; height: auto; border-radius: var(--bl-radius);
    box-shadow: var(--bl-shadow); 
    aspect-ratio: 2/3.2; object-fit: cover; display: block;
    border: 1px solid rgba(0,0,0,0.05);
}

.bl-info-wrap { display: flex; flex-direction: column; min-width: 0; padding-top: 10px; }

.bl-series-label {
    font-size: 1rem; font-weight: 500; color: var(--bl-text-muted); 
    margin-bottom: 5px; display: block; letter-spacing: 0.5px;
}
.bl-series-label strong { color: var(--bl-primary); }

.bl-title { 
    font-size: 2.2rem; margin: 0 0 12px 0; 
    line-height: 1.2; font-weight: 800; color: var(--bl-text-main);
    letter-spacing: -0.5px;
}

.bl-meta-line {
    display: flex; flex-wrap: wrap; gap: 15px; align-items: center;
    font-size: 0.95rem; color: var(--bl-text-sub); margin-bottom: 25px;
    padding-bottom: 20px; border-bottom: 1px solid var(--bl-border);
}
.bl-meta-item { display: flex; align-items: center; gap: 6px; }

.bl-genres-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.bl-genre-pill {
    background: var(--bl-surface-alt); color: var(--bl-text-sub);
    padding: 4px 12px; border-radius: 6px; font-size: 0.8rem;
    font-weight: 600; transition: all 0.2s;
    border: 1px solid var(--bl-border);
}
.bl-genre-pill:hover { background: var(--bl-primary); color: white; border-color: var(--bl-primary); }

/* Stats Grid */
.bl-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px; margin-bottom: 30px;
}
.bl-stat-box {
    background: var(--bl-surface-alt); padding: 12px; border-radius: 8px;
    border: 1px solid var(--bl-border); text-align: center;
}
.bl-stat-val { font-size: 1.1rem; font-weight: 800; color: var(--bl-text-main); display: block; margin-bottom: 2px; }
.bl-stat-lbl { font-size: 0.75rem; text-transform: uppercase; color: var(--bl-text-muted); font-weight: 700; letter-spacing: 0.5px; }

.st-rating { color: var(--bl-gold); }
.st-ongoing { color: var(--bl-success); }
.st-completed { color: var(--bl-danger); }

/* Actions */
.bl-actions { display: flex; gap: 15px; margin-bottom: 30px; }
.bl-btn-read {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background: var(--bl-primary); color: white;
    padding: 12px 15px; border-radius: 50px;
    font-weight: 700; font-size: 1rem; 
    box-shadow: 0 4px 15px rgba(255, 91, 91, 0.25);
    transition: transform 0.2s;
}
.bl-btn-read:hover { background: var(--bl-primary-dark); transform: translateY(-2px); }

/* Library Button */
.bl-btn-lib {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--bl-surface); color: var(--bl-text-main); border: 2px solid var(--bl-border);
    padding: 0 20px; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem; cursor: pointer;
    transition: all 0.2s;
}
.bl-btn-lib:hover { border-color: var(--bl-primary); color: var(--bl-primary); }
.bl-btn-lib.active { background: var(--bl-primary); border-color: var(--bl-primary); color: white; }

/* Synopsis */
.bl-content-block { margin-bottom: 30px; }
.bl-section-head { font-size: 1.1rem; font-weight: 700; color: var(--bl-text-main); margin-bottom: 12px; display:flex; align-items:center; gap:8px; }
.bl-section-head svg { width:20px; color: var(--bl-primary); }
.bl-synopsis-text { 
    line-height: 1.7; color: var(--bl-text-sub); font-size: 0.95rem; 
    position: relative; overflow: hidden; text-align: left !important;
}
.bl-text-collapsed {
    max-height: 140px; 
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.bl-read-more-btn {
    background: none; border: none; padding: 0; margin-top: 8px;
    color: var(--bl-primary); font-weight: 600; cursor: pointer; font-size: 0.9rem;
}

/* Tag Cloud */
.bl-tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-tag {
    font-size: 0.8rem; color: var(--bl-text-sub); background: var(--bl-surface);
    border: 1px solid var(--bl-border); padding: 3px 10px; border-radius: 20px;
}

@media (max-width: 768px) {
    .bl-book-header { grid-template-columns: 1fr; gap: 20px; padding: 10px; }
    .bl-cover-wrap { width: 160px; margin: 0 auto; }
    .bl-info-wrap { text-align: center; }
    .bl-title { font-size: 1.8rem; }
    .bl-meta-line, .bl-genres-list { justify-content: center; }
}

/* =========================================
   9. PAGE: ARCHIVE & FILTERS
   ========================================= */
.adv-search-box {
    background: var(--bl-surface); border-radius: var(--bl-radius);
    border: 1px solid var(--bl-border); padding: 20px 8px; margin-bottom: 20px;
}
.adv-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.adv-title { font-weight: 700; font-size: 1.1rem; color: var(--bl-text-main); margin: 0; display:flex; align-items:center; gap:8px;}
.adv-toggle { color: var(--bl-primary); font-weight: 600; font-size: 0.9rem; }

.adv-form { display: none; margin-top: 20px; border-top: 1px solid var(--bl-border); padding-top: 20px; }
.adv-form.open { display: block; }

.filter-group { margin-bottom: 20px; position: relative; }
.filter-label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.85rem; color: var(--bl-text-sub); text-transform:uppercase; }

.genre-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
    max-height: 200px; overflow-y: auto; padding: 10px; border: 1px solid var(--bl-border); border-radius: 4px;
}
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--bl-text-main); cursor: pointer; }
.checkbox-label input { accent-color: var(--bl-primary); width: 16px; height: 16px; }

.form-select, .form-input {
    padding: 10px; border: 1px solid var(--bl-border); border-radius: 4px; 
    width: 100%; outline: none; transition: 0.2s; font-size: 0.95rem;
    background: var(--bl-surface); color: var(--bl-text-main);
}
.form-input:focus { border-color: var(--bl-primary); }
.filter-row { display: flex; gap: 20px; flex-wrap: wrap; }
.filter-col { flex: 1; min-width: 200px; }
.btn-apply {
    background: var(--bl-primary); color: #fff; border: none; padding: 12px;
    border-radius: 50px; font-weight: 700; cursor: pointer; margin-top: 20px; width: 100%;
    transition: 0.2s;
}
.btn-apply:hover { background: var(--bl-primary-dark); transform:translateY(-2px); }

/* Active Filters */
.bl-active-filters { margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bl-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bl-surface); border: 1px solid var(--bl-border);
    padding: 6px 12px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; color: var(--bl-text-main);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: 0.2s;
}
.bl-pill:hover { border-color: var(--bl-primary); color: var(--bl-primary); }
.bl-pill-remove {
    display: flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--bl-surface-alt); color: var(--bl-text-muted); font-size: 14px; line-height: 1;
    cursor: pointer; transition: 0.2s; text-decoration: none;
}
.bl-pill-remove:hover { background: var(--bl-primary); color: white; }
.bl-clear-all { font-size: 0.85rem; color: var(--bl-text-sub); text-decoration: underline; margin-left: 10px; cursor: pointer; }

/* Tag Autocomplete Dropdown */
.tag-dropdown {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--bl-surface); z-index: 100; border: 1px solid var(--bl-border); border-top: none;
    display: none; max-height: 250px; overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-radius: 0 0 4px 4px;
}
.tag-suggestion { padding: 10px; border-bottom: 1px solid var(--bl-border); cursor: pointer; }
.tag-suggestion:hover { background: var(--bl-surface-alt); color: var(--bl-primary); }

/* =========================================
   10. PAGE: SERIES
   ========================================= */
.bl-series-eyebrow {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase; 
    letter-spacing: 1.5px; color: var(--bl-primary); margin-bottom: 5px;
    display: inline-block; background: var(--bl-surface-alpha); 
    padding: 5px 12px; border-radius: 4px;
}
.bl-series-title {
    font-size: 3rem; font-weight: 800; margin: 5px 0 15px 0;
    line-height: 1; letter-spacing: -1px; text-shadow: 2px 2px 0px var(--bl-bg);
}
.bl-h-meta-row { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-bottom: 20px; }
.bl-h-item { font-size: 1rem; font-weight: 600; color: var(--bl-text-main); display: flex; align-items: center; gap: 6px; }

.bl-genre-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.bl-hdr-pill {
    font-size: 0.75rem; background: var(--bl-surface-alt); 
    padding: 4px 10px; border-radius: 20px; font-weight: 600;
    color: var(--bl-text-sub); border: 1px solid var(--bl-border); text-decoration: none;
    transition: 0.2s;
}
.bl-hdr-pill:hover { background: var(--bl-primary); color: #fff; border-color: var(--bl-primary); }

.bl-series-desc {
    max-width: 700px; font-size: 1.05rem; line-height: 1.6; color: var(--bl-text-main);
    background: var(--bl-surface-alpha); padding: 20px; border-radius: 6px;
    border-left: 4px solid var(--bl-primary); backdrop-filter: blur(4px); margin-top: 10px;
}
.bl-auth-section { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--bl-border); }
.bl-auth-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); 
    gap: 20px; align-items: start; 
}
@media (max-width: 768px) {
    .bl-series-title { font-size: 2rem; }
    .bl-auth-grid { grid-template-columns: 1fr; } 
}

/* =========================================
   12. PAGE: LOGIN
   ========================================= */
.auth-wrapper {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
    background: var(--bl-auth-gradient);
}
.auth-card {
    background: var(--bl-surface); width: 100%; max-width: 900px;
    border-radius: 12px; box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
    display: grid; grid-template-columns: 1fr 1px 1fr;
    overflow: hidden; border: 1px solid var(--bl-border);
}
.auth-section { padding: 50px 40px; }
.auth-divider { background: var(--bl-border); width: 1px; height: 100%; }

.auth-title { font-size: 1.5rem; font-weight: 800; color: var(--bl-text-main); margin-bottom: 8px; }
.auth-desc { color: var(--bl-text-sub); font-size: 0.9rem; margin-bottom: 30px; }

.bl-field { margin-bottom: 20px; }
.bl-label { 
    display: block; font-size: 0.8rem; font-weight: 700; color: var(--bl-text-main); 
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.bl-input {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--bl-border); border-radius: 8px;
    font-size: 0.95rem; transition: 0.2s; background: var(--bl-surface-alt); outline: none;
    color: var(--bl-text-main);
}
.bl-input:focus { border-color: var(--bl-primary); background: var(--bl-surface); box-shadow: 0 0 0 4px rgba(255, 91, 91, 0.1); }

.bl-btn-auth {
    width: 100%; padding: 14px; margin-top: 10px;
    background: var(--bl-text-main); color: var(--bl-bg); border: none; border-radius: 8px;
    font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 1rem;
}
.bl-btn-auth:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-red { background: var(--bl-primary); color: white; }
.btn-red:hover { background: var(--bl-primary-dark); box-shadow: 0 5px 15px rgba(255, 91, 91, 0.3); }

.error-banner {
    grid-column: 1 / -1; background: var(--bl-error-bg); color: var(--bl-error-text); 
    padding: 15px; text-align: center; border-bottom: 1px solid var(--bl-error-border);
}
@media(max-width: 768px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-divider { display: none; }
    .auth-section { padding: 30px 20px; }
}

/* =========================================
   13. UTILITIES
   ========================================= */
/* Pagination */
.pagination { margin-top: 50px; text-align: center; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers {
    display: flex; align-items: center; justify-content: center; height: 40px; min-width: 40px;
    background: var(--bl-surface); border: 1px solid var(--bl-border); border-radius: 4px; color: var(--bl-text-sub); font-weight:600;
}
.pagination .page-numbers.current { background: var(--bl-primary); color: #fff; border-color: var(--bl-primary); }

/* Swiper Overrides */
.swiper-container { padding-bottom: 40px !important; overflow: hidden; }
.swiper-slide { height: auto; display: flex; margin-right: 5px !important;}
.swiper-slide .bl-s-card { width: 100%; }
.swiper-pagination-bullet-active { background-color: var(--bl-primary) !important; }

/* Series Swiper */
.bl-series-swiper { padding-bottom: 40px; }

/* =========================================
   14. Recommendation
   ========================================= */
.bl-rec-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 30px 5px 5px 0px;
    color: var(--bl-text-main);
}