@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --secondary: #7C3AED;
    --accent: #06B6D4;
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border-card: #E5E7EB;
    --border-hover: #CBD5E1;
    --success: #10B981;
    --warning: #F59E0B;
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #7C3AED 100%);
    --accent-gradient: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 16px 32px -4px rgba(99, 102, 241, 0.18);
    --shadow-hero: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 30px;
}

body.theme-dark {
    --bg-body: #0B0F19;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --shadow-subtle: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body.theme-light {
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --border-card: #E2E8F0;
    --border-hover: #CBD5E1;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

body.theme-sepia {
    --bg-body: #FBF0D9;
    --bg-card: #F4E4C1;
    --bg-card-hover: #EAD8B1;
    --border-card: #E0CFA6;
    --border-hover: #D0BF96;
    --text-main: #433422;
    --text-muted: #79644C;
    --shadow-subtle: 0 4px 20px -2px rgba(67, 52, 34, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.55;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ==========================================
   2026 STICKY BLUR NAVIGATION HEADER
   ========================================== */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-card);
    transition: all 0.3s ease;
}
body.theme-dark .header-sticky {
    background: rgba(11, 15, 25, 0.85);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.brand-mark {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.3rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.brand-logo:hover .brand-mark {
    transform: rotate(-5deg) scale(1.08);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.5);
}
.brand-logo-text-box {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-tagline-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-top: 2px;
}
.gradient-text-accent {
    background: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ==========================================
   MOBILE SLIDE-OUT DRAWER MENU
   ========================================== */
.mobile-menu-toggle-btn {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s ease;
}
.mobile-menu-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    max-width: 85vw;
    background: var(--bg-card);
    border-right: 1px solid var(--border-card);
    z-index: 2600;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}
.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-drawer-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.mobile-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-drawer-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}
.mobile-drawer-links a:hover, .mobile-drawer-links a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}
.mobile-drawer-links a i {
    width: 22px;
    font-size: 1.1rem;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.25s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.header-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.2rem;
    width: 300px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.header-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
    width: 350px;
}
.header-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-main);
    width: 100%;
    font-family: inherit;
    margin-left: 0.6rem;
}
.header-search-box input::placeholder {
    color: var(--text-muted);
}

.header-right-tools {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.tool-circle-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-subtle);
}
.tool-circle-btn:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.pulse-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.profile-avatar-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 0.3rem 0.75rem 0.3rem 0.3rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s ease;
}
.profile-avatar-pill:hover {
    border-color: var(--primary);
}
.profile-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================
   FLAGSHIP 2026 HERO SECTION
   ========================================== */
.hero-flagship-wrapper {
    position: relative;
    border-radius: 28px;
    background: #0F172A;
    color: #FFFFFF;
    padding: 4rem;
    overflow: hidden;
    box-shadow: var(--shadow-hero);
    margin-bottom: 4rem;
}

.hero-glow-aura {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(124, 58, 237, 0.15) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.hero-glow-aura-2 {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.hero-grid-2col {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4.5rem;
    align-items: center;
}
@media (max-width: 1024px) {
    .hero-grid-2col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.hero-cover-column {
    position: relative;
    width: 100%;
}
.hero-cover-3d-box {
    position: relative;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.4s ease;
}
.hero-cover-3d-box:hover {
    transform: translateY(-8px) rotate(-1deg);
}
.hero-cover-image {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

.hero-floating-stat-card {
    position: absolute;
    bottom: -20px;
    right: -25px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.9rem 1.4rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 15;
}
.stat-icon-purple {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.25);
    color: #818CF8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hero-info-column {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.hero-badges-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.badge-pill-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}
.badge-gold {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.4);
    color: #FBBF24;
}
.badge-cyan {
    background: rgba(6, 182, 212, 0.22);
    border-color: rgba(6, 182, 212, 0.4);
    color: #38BDF8;
}

.hero-title-54px {
    font-size: 3.3rem; /* 54px */
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.2px;
    color: #FFFFFF;
}
@media (max-width: 768px) {
    .hero-title-54px {
        font-size: 2.3rem;
    }
}

.hero-author-meta {
    font-size: 0.95rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-desc-paragraph {
    color: #CBD5E1;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 720px;
}

.hero-btn-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.btn-gradient-glow {
    background: var(--primary-gradient);
    color: #FFFFFF;
    padding: 1rem 2.2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    cursor: pointer;
}
.btn-gradient-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(99, 102, 241, 0.65);
}
.btn-glass-hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 1rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.25s ease;
}
.btn-glass-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==========================================
   HERO SLIDER ACTIVE ANIMATIONS & CONTROLS
   ========================================== */
.hero-slides-track {
    position: relative;
    width: 100%;
}

.hero-slide-item {
    display: none;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide-item.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-slider-controls-row {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 20;
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--primary-gradient);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.hero-slider-arrows {
    display: flex;
    gap: 0.8rem;
    z-index: 20;
}
.slider-arrow-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.slider-arrow-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* ==========================================
   SECTION HEADERS (34px TITLE)
   ========================================== */
.section-title-34px {
    font-size: 2.1rem; /* 34px */
    font-weight: 700;
    letter-spacing: -0.7px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-subtitle-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* ==========================================
   TRENDING SECTION (PREMIUM HORIZONTAL CARDS)
   ========================================== */
.trending-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}
@media (max-width: 1200px) {
    .trending-horizontal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .trending-horizontal-grid {
        grid-template-columns: 1fr;
    }
}

.trending-card-h {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.trending-card-h:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.22);
}

.rank-badge-box {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.rank-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}
.rank-silver {
    background: linear-gradient(135deg, #94A3B8 0%, #64748B 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(148, 163, 184, 0.35);
}
.rank-bronze {
    background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}
.rank-soft {
    background: #F1F5F9;
    color: var(--text-muted);
}
body.theme-dark .rank-soft {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.trending-cover-thumb {
    width: 72px;
    height: 98px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-card);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.trending-card-h:hover .trending-cover-thumb {
    transform: scale(1.08) rotate(1deg);
}

.trending-info-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
    flex: 1;
}
.trending-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.trending-genres-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.trending-genre-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.trending-status-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
}
.trending-meta-line {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* ==========================================
   CATEGORY PILLS (SCROLLABLE ROW & GRID)
   ========================================== */
.categories-scroll-container {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding: 0.3rem 0.2rem 1rem 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
    -webkit-overflow-scrolling: touch;
}
.categories-scroll-container::-webkit-scrollbar {
    height: 5px;
}
.categories-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.categories-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 10px;
}

.cat-rounded-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
}
.cat-rounded-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.25);
}
.cat-rounded-pill.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}
.cat-rounded-pill.active i {
    color: #FFFFFF !important;
}

/* ==========================================
   COLLECTIONS GRID (4-COLUMN / 5-COLUMN)
   ========================================== */
.collection-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}
@media (max-width: 1200px) {
    .collection-grid-4col {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}
@media (max-width: 768px) {
    .collection-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}
@media (max-width: 480px) {
    .collection-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ==========================================
   DESKTOP MAIN + SIDEBAR LAYOUT
   ========================================== */
.main-with-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
    align-items: start;
}
@media (max-width: 1200px) {
    .main-with-sidebar-layout {
        grid-template-columns: 1fr;
    }
    .desktop-sidebar {
        display: none;
    }
}

.catalog-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Novel Grid (4 Columns in Main Layout) */
.novel-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}
@media (max-width: 1024px) {
    .novel-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 640px) {
    .novel-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.novel-card-luxury {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}
.novel-card-luxury:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.card-cover-wrapper {
    position: relative;
    width: 100%;
    padding-top: 138%; /* ~3:4 aspect ratio */
    overflow: hidden;
    background: #E2E8F0;
}
.card-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}
.novel-card-luxury:hover .card-cover-img {
    transform: scale(1.08);
}

.card-top-rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
    color: #FBBF24;
    padding: 0.3rem 0.7rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card-bookmark-btn-top {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}
.card-bookmark-btn-top:hover {
    background: var(--primary-gradient);
    color: #FFFFFF;
    transform: scale(1.1);
}

.card-content-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.card-title-18px {
    font-size: 1.05rem; /* 18px */
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-bottom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.4rem;
}
.status-pill-green {
    color: var(--success);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

/* ==========================================
   DESKTOP SIDEBAR STYLES
   ========================================== */
.sidebar-box-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 2rem;
}
.sidebar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-author-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.author-info-box {
    display: flex;
    flex-direction: column;
}
.author-name-text {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
}
.author-meta-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination-centered-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3.5rem;
}
.page-btn-rounded {
    padding: 0.7rem 1.5rem;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s ease;
}
.page-btn-rounded:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.page-btn-rounded.active-gradient {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ==========================================
   RECENT UPDATES TIMELINE
   ========================================== */
/* ==========================================
   LUXURY RECENT UPDATES TIMELINE
   ========================================== */
.timeline-updates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1200px) {
    .timeline-updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .timeline-updates-grid {
        grid-template-columns: 1fr;
    }
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1.15rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ef4444, #6366f1);
    opacity: 0.6;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.timeline-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.22);
}

.timeline-card:hover::before {
    opacity: 1;
    width: 4px;
}

.timeline-thumb-wrapper {
    position: relative;
    flex-shrink: 0;
}

.timeline-thumb-img {
    width: 62px;
    height: 85px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-card);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-card:hover .timeline-thumb-img {
    transform: scale(1.08) rotate(1deg);
}

.timeline-live-tag {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 0.08rem 0.4rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    flex: 1;
}

.timeline-novel-name {
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.timeline-card:hover .timeline-novel-name {
    color: var(--primary);
}

.timeline-meta-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.timeline-chap-pill {
    font-size: 0.78rem;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.timeline-time-ago {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.timeline-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.timeline-card:hover .timeline-arrow-btn {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* ==========================================
   LUXURY FOOTER WITH NEWSLETTER
   ========================================== */
.footer-flagship {
    background: var(--bg-card);
    border-top: 1px solid var(--border-card);
    padding: 5rem 0 3rem 0;
    margin-top: 6rem;
}
.footer-newsletter-banner {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4.5rem;
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.35);
}
@media (max-width: 900px) {
    .footer-newsletter-banner {
        flex-direction: column;
        text-align: center;
    }
}
.newsletter-title {
    font-size: 2rem;
    font-weight: 800;
}
.newsletter-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 480px;
}
.newsletter-input {
    flex: 1;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-pill);
    border: none;
    outline: none;
    font-size: 0.95rem;
}
.newsletter-btn {
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.newsletter-btn:hover {
    background: #1E293B;
    transform: translateY(-2px);
}

.footer-columns-5grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}
@media (max-width: 1024px) {
    .footer-columns-5grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-social-row {
    display: flex;
    gap: 0.75rem;
}
.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #F1F5F9;
    border: 1px solid var(--border-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.25s ease;
}
body.theme-dark .footer-social-icon {
    background: rgba(255, 255, 255, 0.08);
}
.footer-social-icon:hover {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-heading-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.3rem;
    color: var(--text-main);
}
.footer-link-group {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-link-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.footer-link-group a:hover {
    color: var(--primary);
}

.footer-copyright-flex {
    border-top: 1px solid var(--border-card);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    width: 100%;
    max-width: 550px;
    box-shadow: var(--shadow-hero);
}

.hidden { display: none !important; }

/* ==========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS (320px - 768px)
   ========================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle-btn {
        display: flex !important;
    }

    .header-container {
        height: 72px !important;
        padding: 0 0.85rem !important;
        gap: 0.5rem !important;
        justify-content: space-between !important;
    }
    
    .brand-logo {
        font-size: 1.3rem !important;
        gap: 0.5rem !important;
        flex-shrink: 0 !important;
    }
    
    .brand-mark {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
        border-radius: 9px !important;
    }
    
    .nav-menu-list {
        display: none !important;
    }
    
    .header-search-box {
        width: 100% !important;
        max-width: 170px !important;
        min-width: 100px !important;
        padding: 0.4rem 0.7rem !important;
        font-size: 0.9rem !important;
        border-radius: 20px !important;
    }
    
    .header-search-box:focus-within {
        max-width: 210px !important;
        width: 100% !important;
    }
    
    .header-search-box input {
        font-size: 0.9rem !important;
        margin-left: 0.4rem !important;
    }
    
    .header-right-tools {
        gap: 0.35rem !important;
        flex-shrink: 0 !important;
    }
    
    .tool-circle-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
    }

    /* Hero Showcase Mobile */
    .hero-showcase-card {
        padding: 1.8rem 1.2rem;
        margin-top: 1rem;
        margin-bottom: 2.5rem;
        border-radius: var(--radius-lg);
    }
    
    .hero-grid-2col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-cover-container {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .hero-title-54px {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    
    .hero-author-meta, .hero-stats-row {
        justify-content: center;
    }
    
    .hero-desc-paragraph {
        font-size: 0.92rem;
        line-height: 1.6;
    }
    
    .hero-btn-group {
        justify-content: center;
        width: 100%;
    }
    
    .btn-gradient-glow, .btn-glass-hero {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.4rem;
        font-size: 0.92rem;
    }

    /* Grids Mobile */
    .collection-grid-4col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
    }
    
    .novel-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
    }
    
    .card-content-body {
        padding: 0.85rem !important;
        gap: 0.4rem !important;
    }
    
    .card-title-18px {
        font-size: 0.88rem !important;
        line-height: 1.3 !important;
    }
    
    .card-bottom-meta {
        font-size: 0.75rem !important;
    }
    
    .card-top-rating-badge {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.72rem !important;
        top: 8px !important;
        right: 8px !important;
    }
    
    .card-bookmark-btn-top {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
        top: 8px !important;
        left: 8px !important;
    }
    
    .pagination-centered-row {
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
        margin-top: 2.2rem !important;
    }
    
    .page-btn-rounded {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.82rem !important;
        border-radius: 10px !important;
    }
    
    .trending-grid-3col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-updates-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    
    .catalog-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.85rem;
    }

    /* Categories Scroll Mobile */
    .categories-scroll-container {
        padding: 0.2rem 0.1rem 0.8rem 0.1rem;
        gap: 0.6rem;
    }
    
    .cat-rounded-pill {
        padding: 0.55rem 1.1rem;
        font-size: 0.84rem;
    }

    /* Novel Details Mobile */
    .detail-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .detail-cover-box {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .detail-title-42px {
        font-size: 1.7rem;
    }
    
    .detail-meta-pills {
        justify-content: center;
    }
    
    .detail-btn-row {
        justify-content: center;
        width: 100%;
    }
    
    .chapters-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .legal-page-card {
        padding: 1.8rem 1.2rem;
        margin: 1.5rem auto 3rem;
    }

    /* Chapter Reader Room Mobile */
    .reader-sticky-toolbar {
        padding: 0.5rem 0.6rem;
        gap: 0.4rem;
    }
    
    .chapter-select-dropdown {
        max-width: 125px;
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
    
    .reader-tool-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.82rem;
    }
    
    .reader-main-container {
        padding: 1rem 0.75rem;
    }
    
    .reader-header-card {
        padding: 1.5rem 1.2rem;
    }
    
    .reader-chapter-title-heading {
        font-size: 1.4rem;
    }
    
    .reader-meta-row {
        flex-direction: column;
        gap: 0.4rem;
        align-items: flex-start;
    }
    
    .reader-content-box {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    
    .reader-bottom-nav-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-nav-large {
        width: 100%;
        justify-content: center;
    }

    /* Footer Mobile */
    .footer-columns-5grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-copyright-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================
   SINGLE PAGE APPLICATION (SPA) ENHANCEMENTS
   ========================================== */
.view-section {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}
.view-section.active {
    display: block;
    opacity: 1;
}

.loading-spinner {
    padding: 5rem 1rem;
    text-align: center;
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}

.empty-state {
    padding: 4rem 1rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-card);
    grid-column: 1 / -1;
}

/* Skeletons */
.novel-card-skeleton {
    height: 340px;
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-md);
    animation: skeletonLoading 1.5s infinite;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Novel Detail View Card */
.novel-detail-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.detail-banner-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 240px;
    background-size: cover;
    background-position: center;
    filter: blur(25px) opacity(0.25);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.detail-content-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.detail-cover-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.detail-meta-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.detail-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.genre-tag {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.detail-synopsis {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.detail-action-btns {
    display: flex;
    gap: 1rem;
}

/* Chapter Reader Container */
.reader-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-subtle);
}

.reader-breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.reader-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.reader-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card-hover);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-pill);
    margin-bottom: 2.5rem;
}
.reader-toolbar button, .reader-toolbar .toolbar-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
    text-decoration: none;
}
.reader-toolbar button:hover, .reader-toolbar .toolbar-btn:hover {
    background: rgba(99, 102, 241, 0.15);
}

.chapter-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.chapter-novel-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-card);
}

.chapter-body-content p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.reader-nav-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-card);
}

/* ==========================================
   2026 MOBILE OPTIMIZED DESIGN SYSTEM
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content-inner {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .brand-logo-text-box {
        font-size: 1.1rem;
    }
    .brand-tagline-text {
        display: none;
    }

    .search-input-wrapper {
        display: none; /* Hide header search on tiny screens to avoid overflow, accessible via mobile drawer */
    }

    .novel-grid-layout, .novels-grid, .grid-novels {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .novel-card {
        border-radius: var(--radius-md);
    }
    .novel-cover-container, .card-cover-wrap {
        height: 200px;
    }
    .novel-title-text, .card-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .spotlight-carousel-wrap, .spotlight-section {
        padding: 1rem 0;
    }
    .spotlight-card-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }
    .spotlight-cover-img {
        width: 140px;
        margin: 0 auto;
    }

    .detail-content-wrap {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .detail-cover-img {
        max-width: 180px;
        margin: 0 auto;
        display: block;
    }
    .detail-title {
        font-size: 1.6rem;
    }
    .detail-meta-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .detail-genre-tags {
        justify-content: center;
    }
    .detail-action-btns {
        flex-direction: column;
        width: 100%;
    }
    .detail-action-btns button, .detail-action-btns a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .reader-container {
        padding: 1.25rem 1rem;
        border-radius: var(--radius-lg);
    }
    .reader-toolbar {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .reader-toolbar::-webkit-scrollbar {
        display: none;
    }
    .chapter-heading {
        font-size: 1.5rem;
    }
    .chapter-novel-sub {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .chapter-body-content {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    .reader-nav-bottom {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 2rem;
        padding-top: 1.25rem;
    }
    .reader-nav-bottom a, .reader-nav-bottom button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .footer-content-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .novel-grid-layout, .novels-grid, .grid-novels {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    .novel-cover-container, .card-cover-wrap {
        height: 175px;
    }
    .chapter-body-content {
        font-size: 1.05rem;
        line-height: 1.75;
    }
}

/* ==========================================
   LIVE RECENT UPDATES (TIMELINE SECTION)
   ========================================== */
.timeline-updates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .timeline-updates-grid {
        grid-template-columns: 1fr;
    }
}

.timeline-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.timeline-card:hover {
    transform: translateY(-3px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(239, 68, 68, 0.15);
}

.timeline-thumb-wrapper {
    position: relative;
    width: 65px;
    height: 90px;
    min-width: 65px;
    border-radius: 10px;
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.timeline-card:hover .timeline-thumb-img {
    transform: scale(1.08);
}

.timeline-live-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-info {
    flex: 1;
    min-width: 0;
}

.timeline-novel-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.timeline-card:hover .timeline-novel-name {
    color: #EF4444;
}

.timeline-meta-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.timeline-chap-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818CF8;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
}

.timeline-time-ago {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.timeline-arrow-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.timeline-card:hover .timeline-arrow-btn {
    background: #EF4444;
    border-color: #EF4444;
    color: #FFFFFF;
    transform: translateX(3px);
}

/* =========================================
   CHAPTER READER REDESIGN 
   ========================================= */

/* Main wrapper */
main.container[style*="max-width: 1200px"] {
    max-width: 850px !important;
    padding: 8rem 1.5rem 4rem 1.5rem !important;
}

.reader-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Header Redesign */
.reader-header {
    border-bottom: 1px solid var(--border-card) !important;
    padding-bottom: 2rem !important;
    margin-bottom: 3.5rem !important;
    text-align: center !important;
}

.reader-header h1 {
    font-size: 2.75rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-top: 1rem !important;
    color: var(--text-main) !important;
}

.reader-header h2, .reader-header h2 a {
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--primary) !important;
    text-decoration: none !important;
}

/* Content Redesign - Elegance & Legibility */
.reader-content {
    font-family: 'Georgia', serif !important;
    font-size: 1.35rem !important;
    line-height: 2 !important;
    color: var(--text-main) !important;
    opacity: 0.95;
}

.reader-content p {
    margin-bottom: 2rem !important;
    text-indent: 2rem;
}

.reader-content p:first-of-type {
    text-indent: 0;
}

/* Nav Buttons Redesign */
.reader-nav {
    border: none !important;
    padding: 0 !important;
    margin: 4rem 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem;
}

.reader-nav .btn {
    border-radius: var(--radius-pill) !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    box-shadow: var(--shadow-subtle) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.reader-nav .btn:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-hover) !important;
}

.reader-nav .btn-outline {
    border-width: 2px !important;
}

@media (max-width: 768px) {
    .reader-header h1 {
        font-size: 2rem !important;
    }
    .reader-content {
        font-size: 1.15rem !important;
        line-height: 1.8 !important;
    }
    .reader-nav {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    .reader-nav .btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* ==========================================
   PREMIUM "NADI" THEME OVERRIDES (Mobile First)
   ========================================== */
   
/* 1. Deep OLED Dark Mode & Neon Accents */
body.theme-dark {
    --bg-body: #050505 !important;
    --bg-card: #0A0A0A !important;
    --border-card: rgba(255, 255, 255, 0.08) !important;
    --bg-header: rgba(5, 5, 5, 0.85) !important;
    --text-main: #FFFFFF !important;
    --text-muted: #94A3B8 !important;
    --primary: #00F0FF !important; /* Neon Cyan */
    --primary-glow: rgba(0, 240, 255, 0.4) !important;
    --accent: #B026FF !important; /* Neon Purple */
}

/* Enhancing Glassmorphism */
body.theme-dark .header-sticky,
body.theme-dark .mobile-drawer-content,
body.theme-dark .bottom-tab-bar {
    background: rgba(5, 5, 5, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 2. Micro-interactions (Snappy Button Press) */
button, .btn, .nav-link, .category-card, .trending-card-h, .novel-card-luxury {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease, border-color 0.15s ease !important;
}
button:active, .btn:active, .nav-link:active, .category-card:active, .trending-card-h:active, .novel-card-luxury:active {
    transform: scale(0.96) !important;
}

/* 3. Mobile Bottom Tab Navigation */
.bottom-tab-bar {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {


    .bottom-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-card);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    }

    body.theme-dark .bottom-tab-bar {
        background: rgba(5, 5, 5, 0.85);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    }

    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 25%;
        height: 100%;
        color: var(--text-muted);
        text-decoration: none;
        gap: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .tab-item i {
        font-size: 1.25rem;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .tab-item.active {
        color: var(--primary);
    }

    .tab-item.active i {
        transform: translateY(-2px) scale(1.1);
    }
    
    .tab-item:active {
        transform: scale(0.9);
    }

    /* 4. Horizontal Swipeable Cards on Mobile */
    .trending-horizontal-grid,
    .novel-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        gap: 1rem !important;
        padding-bottom: 1.5rem !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        margin-left: -1rem; /* Full bleed edge */
        margin-right: -1rem;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .trending-horizontal-grid::-webkit-scrollbar,
    .novel-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .trending-card-h {
        flex: 0 0 85% !important;
        scroll-snap-align: center !important;
        max-width: 320px !important;
    }
    
    .novel-card-luxury {
        flex: 0 0 45% !important;
        scroll-snap-align: start !important;
        min-width: 150px !important;
    }
    
    /* Make headers smaller and sleek */
    .section-title-34px {
        font-size: 1.5rem !important;
    }

    /* Explore Categories Mobile Scroll */
    .categories-scroll-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem !important;
        padding-bottom: 1rem !important;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .categories-scroll-container::-webkit-scrollbar {
        display: none;
    }
    .cat-rounded-pill {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    /* Footer Mobile Overrides */
    .footer-columns-5grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 1.5rem !important;
        text-align: left !important;
    }
    .footer-columns-5grid > div:first-child {
        grid-column: 1 / -1; /* Brand info takes full width */
        align-items: flex-start !important;
    }
    .footer-columns-5grid > div {
        align-items: flex-start !important;
    }
    .footer-columns-5grid p {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .footer-newsletter-banner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1.5rem !important;
        padding: 2rem 1.5rem !important;
    }
    .newsletter-form {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .newsletter-btn {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Fix section headers wrapping on mobile */
    div[style*="justify-content: space-between; align-items: flex-end"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
}

.seo-tag {
    background: var(--bg-body);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    font-size: 0.78rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.seo-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==========================================
   PREMIUM NOVEL READER UI
   ========================================== */
/* Dynamic Reader Theme Classes applied via JS to body */
body.reader-theme-dark {
    --bg-body: #050811 !important;
    --bg-card: #0B1120 !important;
    --border-card: rgba(255, 255, 255, 0.08) !important;
    --bg-header: rgba(11, 17, 32, 0.85) !important;
    --text-main: #E2E8F0 !important;
    --text-muted: #94A3B8 !important;
    --primary: #7C3AED !important; /* Premium Purple */
    --primary-glow: rgba(124, 58, 237, 0.4) !important;
}

body.reader-theme-sepia {
    --bg-body: #F4ECD8 !important;
    --bg-card: #FDF6E3 !important;
    --border-card: #E5D5B5 !important;
    --bg-header: rgba(253, 246, 227, 0.85) !important;
    --text-main: #4A3C31 !important;
    --text-muted: #826E59 !important;
    --primary: #D35400 !important;
    --primary-glow: rgba(211, 84, 0, 0.4) !important;
}

body.reader-theme-light {
    --bg-body: #F8FAFC !important;
    --bg-card: #FFFFFF !important;
    --border-card: #E2E8F0 !important;
    --bg-header: rgba(255, 255, 255, 0.85) !important;
    --text-main: #0F172A !important;
    --text-muted: #64748B !important;
    --primary: #7C3AED !important;
    --primary-glow: rgba(124, 58, 237, 0.4) !important;
}

/* Reader Container Overrides */
.reader-container {
    max-width: var(--reader-max-width, 800px) !important;
    margin: 0 auto !important;
    padding: 3rem 4rem !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease;
    animation: fadeInReader 0.6s ease-out forwards;
}

@keyframes fadeInReader {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .reader-container {
        padding: 2rem 1.5rem !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
}

.reader-header h1 {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
}

.reader-content {
    font-size: var(--reader-font-size, 1.125rem) !important;
    font-family: var(--reader-font-family, 'Inter', sans-serif) !important;
    line-height: var(--reader-line-height, 1.8) !important;
    text-align: justify !important;
}

/* Floating Progress Bar */
.reader-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}
.reader-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.1s;
}

/* Floating Action Buttons (FAB) */
.reader-fab-group {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9900;
}
.reader-fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.reader-fab:hover {
    transform: translateY(-3px);
    color: var(--primary);
    border-color: var(--primary);
}
@media (max-width: 1024px) {
    .reader-fab-group { display: none; }
}

/* Settings Modal */
.reader-settings-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}
.reader-settings-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.settings-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 1rem;
}
.settings-header-box h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}
.settings-row {
    margin-bottom: 1.5rem;
}
.settings-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.settings-btn-group {
    display: flex;
    gap: 0.5rem;
}
.settings-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-body);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}
.settings-btn:hover {
    border-color: var(--primary);
}
.settings-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Additional Sections */
.reader-extra-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
}
.reader-extra-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}
.reader-comment {
    background: var(--bg-body);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-card);
}
.reader-comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.reader-comment-user {
    font-weight: 700;
    color: var(--primary);
}

/* ==========================================================================
   2026 Luxury Reader Toolbar & Reader Custom Themes
   ========================================================================== */
.reader-toolbar-container {
    position: sticky;
    top: 75px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0.6rem 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.reader-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reader-tool-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.reader-tool-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
    color: #ffffff;
    transform: translateY(-1px);
}

.reader-select-input {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.reader-select-input option {
    background: #0f172a;
    color: #ffffff;
}

/* Reader Themes */
.reader-container.theme-dark {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.reader-container.theme-light {
    background: #ffffff !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}
.reader-container.theme-light .reader-header h1,
.reader-container.theme-light .reader-content,
.reader-container.theme-light .reader-content p {
    color: #1e293b !important;
}

.reader-container.theme-sepia {
    background: #fbf0d9 !important;
    color: #5f4b32 !important;
    border-color: #e6d7b8 !important;
}
.reader-container.theme-sepia .reader-header h1,
.reader-container.theme-sepia .reader-content,
.reader-container.theme-sepia .reader-content p {
    color: #42321e !important;
}

.reader-container.theme-oled {
    background: #000000 !important;
    color: #f1f5f9 !important;
    border-color: #222222 !important;
}
.reader-container.theme-oled .reader-header h1,
.reader-container.theme-oled .reader-content,
.reader-container.theme-oled .reader-content p {
    color: #f8fafc !important;
}

/* Key Hint Badge */
.key-hint {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-size: 0.72rem;
    font-family: monospace;
}


