/**
 * BooksLike Main Stylesheet
 * Consolidated from inline styles.
 * * TABLE OF CONTENTS:
 * 1. Variables & Reset
 * 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)
 */

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Dimensions */
    --bl-header-h: 60px;
    --bl-radius: 6px;
    
    /* Colors */
    --bl-primary: #ff5b5b;       
    --bl-primary-dark: #e04a4a;
    --bl-text-main: #1f2937;     
    --bl-text-sub: #6b7280;      
    --bl-bg: #f3f4f6;
    --bl-border: #e5e7eb;
    --bl-accent: #f8fafc;        
    --bl-success: #10b981;       
    --bl-danger: #ef4444;        
    --bl-gold: #f59e0b;          
    
    /* Effects */
    --bl-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

* { 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 */
}

a { text-decoration: none; color: inherit; transition: 0.2s; }

/* =========================================
   2. HEADER (Navigation)
   ========================================= */
   


/* =========================================
   3. FOOTER
   ========================================= */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--bl-bg);
    padding: 30px 20px;
    margin-top: 60px;
    color: var(--bl-text-sub);
    font-size: 0.9rem;
}
.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 */
/* Breadcrumbs Fix */
.bl-breadcrumbs {
    margin-bottom: 10px; 
    font-size: 0.85rem; 
    color: var(--bl-text-sub);
    display: flex; 
    gap: 5px; /* Increased slightly for better separation */
    align-items: center;

    /* KEY FIXES START HERE */
    flex-wrap: nowrap;                 /* Forces items to stay in one row */
    overflow-x: auto;                  /* Enables horizontal scrolling */
    white-space: nowrap;               /* Prevents text from breaking */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: none;             /* Firefox */
    padding-right: 15px;               /* Adds a little breathing room at the end */
}

/* Hide scrollbar for Chrome/Safari/Edge */
.bl-breadcrumbs::-webkit-scrollbar {
    display: none;
}

/* Prevent links from getting squished */
.bl-breadcrumbs a {
    flex-shrink: 0;
}
.bl-breadcrumbs a:hover { color: var(--bl-primary); text-decoration: underline; }
.bl-sep { color: #ccc; font-size: 0.7rem; }

/* =========================================
   5. CARD COMPONENTS
   ========================================= */
/* A. Vertical Card (Standard Grid) */

.swiper-wrapper {
    align-items: stretch; /* Forces all slides to be the same height */
}
.books-grid { 
    display: grid; gap: 15px; 
    grid-template-columns: repeat(6, 1fr); 
}


.swiper-slide {
    height: auto; /* Allows the slide to fill the wrapper height */
    display: flex; /* Makes the card inside fill the slide */
}
/* 2. CARD UPDATES */
.bl-s-card {
    background: #fff;
    border-radius: var(--bl-radius);
    overflow: hidden;
    border: 1px solid var(--bl-border);
    transition: transform 0.2s, border-color 0.2s;
    
    /* Flex settings to fill the slide */
    display: flex; 
    flex-direction: column; 
    width: 100%;       /* Ensure width fills slide */
    height: 100%;      /* Ensure height fills slide */
    position: relative;
}
.bl-s-card:hover { transform: translateY(-3px); border-color: var(--bl-primary); }

/* 3. IMAGE FIXES */
.bl-s-cover {
    width: 100%;
    /* Use a standard book ratio. 2/3 is standard, 2/3.2 is taller. */
    aspect-ratio: 2 / 3.2; 
    position: relative;
    background: #eee;
    
    /* CRITICAL: Prevents the cover from shrinking if text gets long */
    flex-shrink: 0; 
}
.bl-s-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image to fit the aspect ratio perfectly */
    display: block;    /* Removes bottom spacing glitches */
}

.bl-s-badge {
    position: absolute; top: 5px; right: 5px;
    background: rgba(229, 229, 229, 0.51); color: #ffed5c;
    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: 10px;
    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.95rem; 
    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.95rem (font) * 1.35 (line-height) * 2 (lines) ≈ 2.6rem */
    min-height: 2.6rem; 
}
.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;
        
        /* New Math: 0.8 * 1.35 * 2 = 2.16rem */
        /* We set it slightly higher (2.2rem) to be safe, but low enough to cut the 3rd line */
        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;
    /* Desktop: 130px Image | Remaining Space */
    grid-template-columns: 130px 1fr;
    grid-template-rows: auto auto;
    gap: 0 20px;
    background: #fff; border-radius: 4px; overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); border: 1px solid #eee;
    transition: transform 0.2s; 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: #fffbeb; 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: #555; 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, rgba(255,255,255,0), rgba(255,255,255,1)); pointer-events: none; 
}
/* Remove top margin from the very first paragraph */
.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: #888; background: var(--bl-bg); padding: 2px 8px; border-radius: 4px; }

/* Mobile Horizontal Card */
@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 #f0f0f0;
        overflow-x: auto; padding-bottom: 2px;
        mask-image: none; -webkit-mask-image: none;
    }
}

/* =========================================
   6. GLASS HEADERS (Page Titles)
   ========================================= */
/*.bl-header-bg {*/
/*    position: relative; background: #fff; border-radius: var(--bl-radius);*/
/*    overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.05); margin-bottom: 30px;*/
/*    min-height: 220px; display: flex; align-items: center; border: 1px solid var(--bl-border);*/
/*}*/
/*.bl-backdrop {*/
/*    position: absolute; top: 0; left: 0; width: 100%; height: 100%;*/
/*    background-size: cover; background-position: center;*/
/*    filter: blur(20px) brightness(0.6); opacity: 0.6; z-index: 1;*/
/*    mask-image: linear-gradient(to right, #fff 0%, transparent 100%);*/
/*    -webkit-mask-image: linear-gradient(to right, #fff 0%, transparent 100%);*/
/*}*/


.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: #fff; border-radius: var(--bl-radius);
        overflow: hidden; margin-bottom: 20px;
        border: 1px solid var(--bl-border);
}
    
/*.bl-no-img-bg {*/
/*    background: radial-gradient(circle at 10% 20%, rgb(255, 197, 118) 0%, rgb(254, 70, 165) 90%); opacity: 0.2;*/
/*}*/

/* 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: #111; 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: #333; 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
   ========================================= */
   
   
.sss-head {
    font-family: Open Sans; font-size: 15px; font-weight: 400; letter-spacing: -0.3px; color: Var(--bl-text-sub);
}

.hero-minimal {
    text-align: center; margin-bottom: 50px; padding: 50px 20px;
    background: #fff; border-radius: var(--bl-radius);
    border: 1px solid var(--bl-border);
}
.hero-title { 
    font-size: 1.6rem; font-weight: 800; color: var(--bl-text-main); margin-bottom: 20px; 
}
.search-wrapper { position: relative; max-width: 600px; margin: 0 auto; }
.search-input {
    width: 100%; padding: 15px 25px; 
    border: 2px solid #eee; border-radius: 50px;
    font-size: 1rem; outline: none; transition: 0.2s;
}
.search-input:focus { border-color: var(--bl-primary); }
/*.search-results {*/
/*    position: absolute; top: 110%; left: 0; width: 100%;*/
/*    background: #fff; z-index: 100; border-radius: 4px; border: 1px solid #eee;*/
/*    display: none; text-align: left;*/
/*}*/



.search-results {
    position: absolute; left: 0; width: 100%;
    background: #fff; z-index: 100; border-radius: 4px; border: 1px solid #eee;
     text-align: left;
}
/*.sec-head {*/
/*    display: flex; align-items: center; justify-content: space-between;*/
/*    margin-bottom: 20px; border-bottom: 2px solid var(--bl-border); padding-bottom: 10px;*/
/*}*/


.sec-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 10px;
}
.sec-title { font-size: 1.4rem; font-weight: 800; margin: 0; color: var(--bl-text-main); }
.sec-link { font-size: 0.9rem; font-weight: 600; color: var(--bl-text-sub); }

/* =========================================
   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: 0 10px 20px rgba(0,0,0,0.15); 
    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: #888; 
    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: #111;
    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 #eee;
}
.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: #f1f5f9; 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 #e2e8f0;
}
.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: #f8fafc; padding: 12px; border-radius: 8px;
    border: 1px solid #f1f5f9; text-align: center;
}
.bl-stat-val { font-size: 1.1rem; font-weight: 800; color: #111; display: block; margin-bottom: 2px; }
.bl-stat-lbl { font-size: 0.75rem; text-transform: uppercase; color: #888; 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: #fff; color: #555; border: 2px solid #eee;
    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: #111; 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: #4b5563; 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: #555; background: white;
    border: 1px solid #e5e7eb; 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: #fff; 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 #f3f4f6; 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: #555; 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 #eee; border-radius: 4px;
}
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: #555; cursor: pointer; }
.checkbox-label input { accent-color: var(--bl-primary); width: 16px; height: 16px; }

.form-select, .form-input {
    padding: 10px; border: 1px solid #ddd; border-radius: 4px; 
    width: 100%; outline: none; transition: 0.2s; font-size: 0.95rem;
}
.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: #fff; border: 1px solid #e5e7eb;
    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: #f3f4f6; color: #888; 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: #fff; z-index: 100; border: 1px solid #ddd; 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 #eee; cursor: pointer; }
.tag-suggestion:hover { background: #f9f9f9; 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: rgba(255,255,255,0.95); 
    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 #fff;
}
.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: #333; 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: rgba(255,255,255,0.6); 
    padding: 4px 10px; border-radius: 20px; font-weight: 600;
    color: #444; border: 1px solid rgba(0,0,0,0.1); 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: #222;
    background: rgba(255,255,255,0.8); 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 #e5e7eb; }
.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: radial-gradient(circle at top right, #fff1f2, transparent 40%),
                radial-gradient(circle at bottom left, #eff6ff, transparent 40%);
}
.auth-card {
    background: #fff; 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 #fff;
}
.auth-section { padding: 50px 40px; }
.auth-divider { background: #f0f0f0; width: 1px; height: 100%; }

.auth-title { font-size: 1.5rem; font-weight: 800; color: #1f2937; margin-bottom: 8px; }
.auth-desc { color: #6b7280; font-size: 0.9rem; margin-bottom: 30px; }

.bl-field { margin-bottom: 20px; }
.bl-label { 
    display: block; font-size: 0.8rem; font-weight: 700; color: #374151; 
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.bl-input {
    width: 100%; padding: 12px 16px;
    border: 2px solid #e5e7eb; border-radius: 8px;
    font-size: 0.95rem; transition: 0.2s; background: #f9fafb; outline: none;
}
.bl-input:focus { border-color: #ff5b5b; background: #fff; box-shadow: 0 0 0 4px rgba(255, 91, 91, 0.1); }

.bl-btn-auth {
    width: 100%; padding: 14px; margin-top: 10px;
    background: #1f2937; color: #fff; 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: #ff5b5b; }
.btn-red:hover { background: #e04a4a; box-shadow: 0 5px 15px rgba(255, 91, 91, 0.3); }

.error-banner {
    grid-column: 1 / -1; background: #fef2f2; color: #991b1b; 
    padding: 15px; text-align: center; border-bottom: 1px solid #fee2e2;
}
@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: #fff; border: 1px solid #e5e7eb; border-radius: 4px; color: #555; 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. Recomendation
   ========================================= */
   
   
   
.bl-rec-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 30px 5px 5px 0px;
} 
