
        *, *::before, *::after {
            box-sizing: border-box;
        }

        :root {
            --bg-dark: #1a1a1a;
            --wood-dark: #2d1b15;
            --wood-light: #4e342e;
            --gold: #d4af37;
            --paper: #f9f7f1;
            --text-dark: #2c2c2c;
        }

        body {
            background-color: var(--bg-dark);
            color: #fff;
            font-family: 'Inter', sans-serif;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            overscroll-behavior: none;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-dark); }
        ::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--gold); }

        /* ========================================== */
        /* UI: MOBILE FIRST DESIGN (Thiết kế ưu tiên điện thoại) */
        /* ========================================== */
        #intro-stage {
            position: fixed;
            inset: 0;
            z-index: 50;
            background: linear-gradient(to bottom, #0f0f0f, var(--wood-dark));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-evenly; /* Chia đều không gian, không bị đẩy tràn màn hình */
            transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
            padding-top: 60px; /* Né menu mobile của CafeF */
            padding-bottom: 30px; /* Tạo không gian cho chữ Tác giả */
        }

        #intro-stage.slide-up {
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
        }

        .intro-title-wrapper {
            text-align: center;
            position: relative;
            z-index: 10;
        }

        .intro-subtitle {
            color: #ccc;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            font-size: 0.9rem; /* Chữ nhỏ gọn trên mobile */
            font-weight: 700;
            margin-bottom: 0.25rem;
            position: relative;
            z-index: 11;
            line-height: 1.5;
        }

        .intro-title {
            font-family: 'Playfair Display', serif;
            font-size: 2rem; /* Vừa vặn màn hình điện thoại */
            color: white;
            line-height: 1.2;
            margin: 0;
        }

        .intro-title-highlight {
            font-family: 'Inter', sans-serif;
            font-size: 3.5rem; /* Thu nhỏ để không bị vỡ dòng trên iPhone */
            color: var(--gold);
            font-weight: 900;
            display: block;
            margin-top: 0.25rem;
            text-shadow: 0 0 20px rgba(212,175,55,0.5), 3px 3px 6px rgba(0,0,0,0.9);
            letter-spacing: 2px;
        }

        .btn-primary {
            padding: 0.75rem 2rem;
            border: 1px solid var(--gold);
            color: var(--gold);
            background-color: transparent;
            border-radius: 0.25rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.5s ease;
            margin: 0;
            margin-bottom: 1.5rem;
            z-index: 20;
        }

        .btn-primary:hover {
            background-color: var(--gold);
            color: black;
        }

        /* Phóng to UI cho PC / Tablet */
        @media (min-width: 768px) {
            #intro-stage { padding-top: 80px; padding-bottom: 2rem; justify-content: center; gap: 3vh; }
            .intro-subtitle { font-size: 2rem; letter-spacing: 0.3em; margin-bottom: 0.5rem; }
            .intro-title { font-size: 4rem; }
            .intro-title-highlight { 
                font-size: 6.5rem; 
                margin-top: 0.5rem; 
                text-shadow: 0 0 30px rgba(212,175,55,0.6), 5px 5px 10px rgba(0,0,0,0.9), inset 2px 2px 5px rgba(255,255,255,0.2);
            }
            .btn-primary { padding: 1rem 3rem; font-size: 0.875rem; margin-bottom: 0; }
        }

        .btn-back {
            position: fixed;
            top: 1.5rem;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.5s ease;
            margin: 0;
        }

        .btn-primary:hover {
            background-color: var(--gold);
            color: black;
        }

        .btn-back {
            position: fixed;
            top: 80px; /* Đã điều chỉnh: Hạ thấp nút Trở Về */
            left: 1.5rem;
            z-index: 40;
            padding: 0.5rem 1.25rem;
            border: 1px solid var(--gold);
            color: var(--gold);
            background-color: rgba(26, 26, 26, 0.9);
            backdrop-filter: blur(12px);
            border-radius: 0.25rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            font-size: 0.75rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            transition: all 0.3s ease;
        }

        .btn-back:hover {
            background-color: var(--gold);
            color: black;
        }

        .btn-back svg {
            width: 16px;
            height: 16px;
        }

        .author-info {
            position: fixed;
            bottom: 1.5rem;
            left: 1.5rem;
            z-index: 60; /* Đảm bảo nằm trên cùng */
            font-size: 0.85rem;
            color: #9ca3af;
            font-family: 'Inter', sans-serif;
            opacity: 0.9;
            transition: opacity 0.3s ease;
            pointer-events: auto;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
        }

        .author-info:hover {
            opacity: 1;
        }

        .author-info p {
            margin: 0;
            margin-bottom: 0.25rem;
        }

        .author-info .author-name {
            color: #e5e7eb;
            font-weight: 500;
        }

        .author-info a {
            color: var(--gold);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .author-info a:hover {
            color: #f3d360;
            text-decoration: underline;
        }

        /* ========================================== */
        /* KỆ SÁCH: MOBILE FIRST DESIGN */
        /* ========================================== */
        .bookshelf-container {
            position: relative;
            width: 95%; /* Mở rộng tối đa trên điện thoại */
            max-width: 1100px;
            height: 40vh; /* Hạ thấp chiều cao kệ sách trên mobile */
            display: flex;
            align-items: flex-end;
            justify-content: center;
            border-bottom: 15px solid var(--wood-light); /* Gỗ mỏng hơn */
            box-shadow: 0 15px 30px rgba(0,0,0,0.9);
            perspective: 1200px;
        }

        .book-spine {
            width: 8vw;
            min-width: 25px; /* Ép nhỏ gáy sách để 10 quyển lọt vừa màn hình iPhone nhỏ */
            max-width: 60px;
            height: 85%;
            margin: 0 2px; /* Khoảng cách sát lại */
            background: #333;
            border-radius: 3px 3px 0 0;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: inset -4px 0 10px rgba(0,0,0,0.5), inset 4px 0 5px rgba(255,255,255,0.1);
            position: relative;
            transform-origin: bottom;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: pointer;
        }

        .book-spine:hover {
            transform: translateY(-15px) rotateX(8deg);
            filter: brightness(1.2);
            box-shadow: 0 0 15px rgba(212,175,55,0.5), inset -4px 0 10px rgba(0,0,0,0.5);
            z-index: 10;
        }

        .spine-text {
            writing-mode: vertical-rl;
            text-orientation: upright;
            font-family: 'Playfair Display', serif;
            font-weight: 900;
            font-size: 0.85rem; /* Font chữ thu nhỏ cho lọt vào gáy */
            color: var(--gold);
            letter-spacing: 0px; 
            line-height: 1.1;
            text-align: center;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
            text-transform: uppercase;
            white-space: nowrap;
        }
        
        .book-spine:hover .spine-text {
            text-shadow: 1px 1px 2px rgba(0,0,0,0.9), 0 0 10px rgba(212,175,55,0.8);
        }

        /* Phóng to Kệ sách cho PC / Tablet */
        @media (min-width: 768px) {
            .bookshelf-container {
                width: 90%;
                height: 62vh;
                border-bottom: 25px solid var(--wood-light);
            }
            .book-spine {
                min-width: 42px;
                margin: 0 4px;
                border-radius: 5px 5px 0 0;
                box-shadow: inset -6px 0 15px rgba(0,0,0,0.5), inset 6px 0 5px rgba(255,255,255,0.1);
            }
            .book-spine:hover {
                transform: translateY(-20px) rotateX(8deg);
                box-shadow: 0 0 25px rgba(212,175,55,0.5), inset -6px 0 15px rgba(0,0,0,0.5);
            }
            .spine-text { font-size: 1.15rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 0 0 8px rgba(212,175,55,0.4); }
            .book-spine:hover .spine-text { text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 0 0 15px rgba(212,175,55,0.8); }
        }

        .shelf-shadow {
            position: absolute;
            bottom: -25px;
            left: -5%;
            width: 110%;
            height: 25px;
            background: rgba(0,0,0,0.6);
            filter: blur(12px);
            z-index: -1;
        }

        #library-stage {
            padding: 6rem 2rem;
            min-height: 100vh;
            background: radial-gradient(circle at top center, #2a2a2a, #0a0a0a);
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 4rem 3rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .book-cover {
            position: relative;
            background: linear-gradient(135deg, #1f1a17 0%, #2c241f 100%);
            border-radius: 4px 15px 15px 4px;
            padding: 0;
            height: 450px;
            box-shadow: 
                inset 8px 0 20px rgba(0,0,0,0.8),
                inset -2px 0 5px rgba(255,255,255,0.05),
                12px 15px 25px rgba(0,0,0,0.7),
                8px 0px 0px #e3dac9;
            cursor: pointer;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            display: flex;
            flex-direction: column;
            transform-style: preserve-3d;
        }

        .book-cover::before {
            content: '';
            position: absolute;
            left: 20px; top: 0; bottom: 0; width: 2px;
            background: rgba(0,0,0,0.3);
            box-shadow: 1px 0 1px rgba(255,255,255,0.05);
        }

        .book-cover::after {
            content: '';
            position: absolute;
            right: -8px; top: 4px; bottom: 4px; width: 8px;
            background: repeating-linear-gradient(to bottom, #e3dac9, #e3dac9 2px, #d1c7b4 2px, #d1c7b4 4px);
            border-radius: 0 4px 4px 0;
            z-index: -1;
            box-shadow: inset -2px 0 4px rgba(0,0,0,0.2);
        }
        
        .book-cover-inner {
            margin: 2rem 1.5rem 2rem 2.5rem;
            border: 1px solid rgba(212,175,55,0.2);
            border-radius: 4px;
            padding: 2.5rem 1.5rem;
            height: calc(100% - 4rem);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            background: rgba(0,0,0,0.1);
        }

        .book-cover:hover {
            transform: translateY(-15px) scale(1.02) rotateY(-5deg);
            box-shadow: 
                inset 8px 0 20px rgba(0,0,0,0.8),
                15px 25px 40px rgba(0,0,0,0.8),
                8px 0px 0px #e3dac9;
        }

        .book-teaser {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-style: italic;
            color: #f1f1f1;
            margin-bottom: 2rem;
            line-height: 1.5;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
        }

        .book-year {
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            color: var(--gold);
            letter-spacing: 4px;
            text-transform: uppercase;
            font-size: 0.85rem;
            margin-top: auto;
            border-top: 1px solid rgba(212,175,55,0.3);
            padding-top: 1.5rem;
            width: 80%;
        }

        .book-ornament {
            width: 40px; height: 2px;
            background: var(--gold);
            margin: 1.5rem auto;
            position: relative;
        }
        .book-ornament::after {
            content: '♦';
            position: absolute; top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            color: var(--gold);
            background: #231c19;
            padding: 0 5px; font-size: 0.8rem;
        }

        #emagazine-modal {
            position: fixed;
            inset: 0;
            z-index: 100;
            background-color: var(--paper);
            color: var(--text-dark);
            overflow-y: auto;
            overflow-x: hidden;
            transform: translateY(100%);
            transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
            display: block; 
            scroll-behavior: smooth;
        }

        #emagazine-modal.active {
            transform: translateY(0);
        }

        .close-btn {
            position: fixed;
            top: 80px; /* Đã điều chỉnh: Hạ thấp nút Đóng (X) để đồng bộ */
            right: 1.5rem;
            width: 50px; height: 50px;
            border-radius: 50%;
            background: rgba(255,255,255,0.9);
            border: 1px solid #ccc;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 120;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        .close-btn:hover { 
            background: #111; 
            color: #fff; 
            transform: rotate(90deg) scale(1.1); 
            border-color: #111;
        }

        #read-progress-container {
            position: fixed;
            top: 50px; /* Đã điều chỉnh: Hạ thanh tiến độ đọc xuống dưới menu CafeF */
            left: 0; right: 0;
            height: 5px;
            background: rgba(0,0,0,0.1);
            z-index: 120;
        }
        #read-progress {
            height: 100%;
            background: var(--gold);
            width: 0%;
            transition: width 0.1s;
        }

        .ui-hidden {
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
            transition: opacity 0.5s ease;
        }
        .ui-visible {
            opacity: 1 !important;
            pointer-events: auto !important;
            visibility: visible !important;
        }

        .emag-hero {
            position: relative;
            width: 100%;
            height: 80vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        /* Thẻ IMG cứng thay vì background-image để vượt qua tường lửa CMS */
        .emag-hero-img-real {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
        }

        .emag-hero-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.6); 
            z-index: 2;
        }

        .emag-hero-content {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 1000px;
            padding: 0 2rem;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .emag-year-badge {
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 600;
            color: #fff;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
            padding: 0.5rem 1.5rem;
            border: 1px solid rgba(212,175,55,0.6);
            border-radius: 50px;
            background: rgba(0,0,0,0.4);
            backdrop-filter: blur(5px);
            display: inline-block;
        }

        .emag-hero-title {
            font-family: 'Playfair Display', serif;
            font-size: 4.5rem; 
            font-weight: 700;
            line-height: 1.2;
            color: #fff;
            text-shadow: 0px 4px 15px rgba(0,0,0,0.8);
            max-width: 900px;
            word-wrap: break-word;
            margin: 0;
        }
        
        .hero-particle {
            position: absolute;
            background: rgba(255,255,255,0.5);
            border-radius: 50%;
            pointer-events: none;
            animation: float-up infinite linear;
        }

        @keyframes float-up {
            0% { transform: translateY(0) scale(1); opacity: 0; }
            50% { opacity: 1; }
            100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
        }

        @media (max-width: 768px) {
            .emag-hero-title { font-size: 2.5rem; }
            .emag-hero { height: 60vh; }
            .emag-hero-content { margin-top: 4rem; }
        }

        .emag-content-wrapper {
            max-width: 760px;
            margin: 0 auto;
            padding: 4rem 2rem 5rem 2rem;
            font-family: 'Lora', serif;
            font-size: 1.25rem;
            line-height: 1.8;
            color: #333;
            position: relative;
            z-index: 11;
            background: var(--paper);
        }

        .emag-content-wrapper > p:first-of-type::first-letter {
            float: left;
            font-family: 'Playfair Display', serif;
            font-size: 5.5rem;
            line-height: 0.8;
            padding-right: 0.75rem;
            padding-top: 0.4rem;
            color: var(--gold);
            font-weight: 900;
            text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
        }

        .emag-content-wrapper h3 {
            font-family: 'Inter', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: #111;
            margin-top: 3.5rem;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            padding-left: 1rem;
        }

        .emag-content-wrapper h3::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 4px;
            background: var(--gold);
        }

        .emag-content-wrapper p { margin-bottom: 1.5rem; }

        .emag-content-wrapper img {
            width: 100vw;
            max-width: 1000px;
            height: auto;
            position: relative;
            left: 50%;
            transform: translateX(-50%);
            margin: 3rem 0;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }
        
        .emag-content-wrapper ul {
            background: #fff;
            padding: 2rem 2rem 2rem 3rem;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            margin: 2rem 0;
        }

        .emag-content-wrapper li {
            margin-bottom: 0.75rem;
        }
        
        .emag-content-wrapper blockquote {
            font-family: 'Playfair Display', serif;
            font-size: 1.7rem;
            font-style: italic;
            color: var(--gold);
            text-align: center;
            margin: 4rem 0;
            padding: 0 2rem;
            line-height: 1.4;
            position: relative;
        }
        .emag-content-wrapper blockquote::before {
            content: '“';
            font-size: 5rem;
            color: rgba(212,175,55,0.2);
            position: absolute;
            top: -2rem; left: 50%;
            transform: translateX(-50%);
        }
    