  
        :root {
            --bg-body: #ffffff;
            --bg-card: #ffffff;
            --bg-header: rgba(255, 255, 255, 0.95);
            --text-main: #0f172a;
            --text-muted: #64748b;
            --border-color: #e2e8f0;
            --accent-color: #FF4A00;
            --accent-hover: #b91c1c;
            --badge-bg: #ffffff;
            --badge-text: #ff4a00;
            --shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.04);
            --radius: 6px;
            --sidebar-width: 280px;
        }

        [data-theme="dark"] {
            --bg-body: #0b0f19;
            --bg-card: #111827;
            --bg-header: rgba(17, 24, 39, 0.95);
            --text-main: #f3f4f6;
            --text-muted: #9ca3af;
            --border-color: #1f2937;
            --accent-color: #ef4444;
            --accent-hover: #dc2626;
            --badge-bg: rgba(239, 68, 68, 0.15);
            --badge-text: #fca5a5;
            --shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.25);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.6;
            padding-bottom: 40px;
            overflow-x: hidden;
        }

        .reading-progress-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: transparent;
            z-index: 101;
        }

        .reading-progress-bar {
            height: 100%;
            background: var(--accent-color);
            width: 0%;
            transition: width 0.1s linear;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Outfit', sans-serif;
            letter-spacing: -0.02em;
            word-break: break-word;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .text-accent {
            color: var(--accent-color);
            font-weight: 700;
        }

        /* Header Navigation */
        header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--bg-header);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
            padding: 0.5rem 1rem;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
        }

        .header-icon-btn {
            background: transparent;
            border: none;
            color: var(--text-main);
            font-size: 1.1rem;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .header-icon-btn:hover {
            background: var(--border-color);
        }

        .brand-logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            justify-self: center;
            line-height: 0;
        }

        .brand-logo-img {
            height: 32px;
            width: auto;
            max-width: 160px;
            object-fit: contain;
            display: block;
            transition: transform 0.2s ease;
        }

        .brand-logo:hover .brand-logo-img {
            transform: scale(1.02);
        }

        .sidebar-logo-img {
            height: 30px;
            width: auto;
            max-width: 140px;
            object-fit: contain;
            display: block;
        } 

        .header-right-actions {
            justify-self: end;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .search-drawer {
            display: none;
            position: sticky;
            top: 52px;
            z-index: 99;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
            padding: 0.75rem 1rem;
            box-shadow: var(--shadow);
            animation: slideDown 0.25s ease-out forwards;
        }

        .search-drawer.active {
            display: block;
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .header-search-box {
            position: relative;
            max-width: 700px;
            margin: 0 auto;
            width: 100%;
        }

        .search-input-field {
            width: 100%;
            padding: 8px 14px 8px 38px;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            background: var(--bg-body);
            color: var(--text-main);
            outline: none;
            font-size: 0.85rem;
        }

        .search-icon-inside {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .suggestions-overlay {
            position: absolute;
            top: 110%;
            left: 0;
            right: 0;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            box-shadow: var(--shadow);
            z-index: 1000;
            display: none;
            overflow: hidden;
            max-height: 320px;
            overflow-y: auto;
        }

        .suggestion-item {
            padding: 8px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            border-bottom: 1px solid var(--border-color);
        }

        .suggestion-item:last-child { border-bottom: none; }
        .suggestion-item:hover { background: var(--bg-body); }

        .suggestion-thumb {
            width: 38px;
            height: 38px;
            border-radius: 4px;
            object-fit: cover;
            flex-shrink: 0;
        }

        /* Sidebar Navigation */
        .sidebar-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 200;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: -280px;
            width: var(--sidebar-width);
            height: 100%;
            background: var(--bg-card);
            z-index: 201;
            box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            transition: left 0.3s ease;
            overflow-y: auto;
        }

        .sidebar.active {
            left: 0 !important;
        }

        .sidebar-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .sidebar-close-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 1.1rem;
            cursor: pointer;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .sidebar-close-btn:hover {
            color: var(--accent-color);
            background: var(--bg-body);
        }

        .sidebar-nav-list {
            list-style: none;
            padding: 1rem 0;
            display: flex;
            flex-direction: column;
        }

        .sidebar-nav-item a {
            display: block;
            padding: 8px 1.25rem;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-muted);
            transition: all 0.2s;
        }

        .sidebar-nav-item a:hover {
            background: var(--bg-body);
            color: var(--accent-color);
            padding-left: 1.5rem;
        }

        .sidebar-footer {
            margin-top: auto;
            padding: 1.25rem;
            border-top: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .social-icons {
            display: flex;
            align-items: center;
            justify-content: space-around;
        }

        .social-icon-btn {
            color: var(--text-muted);
            font-size: 1.1rem;
            transition: color 0.2s, transform 0.2s;
        }

        .social-icon-btn:hover {
            color: var(--accent-color);
            transform: translateY(-2px);
        }

        .theme-switch-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--bg-body);
            padding: 6px 12px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
        }

        .theme-switch-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-muted);
        }

        .theme-btn {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
        }

        /* Slim Breadcrumb Navigation */
        .breadcrumb-container {
            max-width: 1320px;
            margin: 0.75rem auto 0;
            padding: 0 1rem;
        }

        .breadcrumb-nav {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.825rem;
            color: var(--text-muted);
            overflow-x: auto;
            white-space: nowrap;
            scrollbar-width: none;
        }

        .breadcrumb-nav::-webkit-scrollbar {
            display: none;
        }

        .breadcrumb-nav a {
            color: var(--text-muted);
            font-weight: 500;
            transition: color 0.2s;
        }

        .breadcrumb-nav a:hover {
            color: var(--accent-color);
        }

        .breadcrumb-separator {
            font-size: 0.65rem;
            color: var(--text-muted);
            opacity: 0.6;
        }

        .breadcrumb-current {
            color: var(--text-main);
            font-weight: 600;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

        .badge {
            background: var(--badge-bg);
            color: var(--badge-text);
            font-size: 0.725rem;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 4px;
            text-transform: uppercase;
            width: fit-content;
            border: 1px solid var(--border-color);
        }

        /* Full-Width Reader Layout */
        main.reader-container {
            max-width: 1320px;
            margin: 0.75rem auto;
            padding: 0 1rem;
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 1.25rem;
        }

        .reader-article {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 1.25rem 1.5rem;
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .article-header {
            display: flex;
            flex-direction: column;
            gap: 0.65rem;
            margin-bottom: 1.25rem;
        }

        .article-title {
            font-size: 2rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .article-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            color: var(--text-muted);
            font-size: 0.825rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 0.75rem;
            flex-wrap: wrap;
        }

        .author-box { display: flex; align-items: center; gap: 8px; }

        .author-avatar-img {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--accent-color);
        }

        .article-meta-group {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .article-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .font-sizer {
            display: flex;
            align-items: center;
            gap: 4px;
            background: var(--bg-body);
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid var(--border-color);
            font-size: 0.725rem;
            font-weight: 600;
        }

        .font-sizer button {
            background: none;
            border: none;
            color: var(--text-main);
            cursor: pointer;
            font-weight: 700;
            padding: 1px 3px;
        }

        .article-featured-media {
            width: 100%;
            max-height: 460px;
            border-radius: var(--radius);
            overflow: hidden;
            margin-bottom: 1.25rem;
            background: var(--bg-body);
        }

        .article-featured-media img {
            width: 100%;
            height: 100%;
            max-height: 460px;
            object-fit: cover;
            display: block;
        }

        .article-content {
            font-size: 1.05rem;
            line-height: 1.75;
            color: var(--text-main);
            display: flex;
            flex-direction: column;
            gap: 1rem;
            word-break: break-word;
        }

        .article-content p { margin-bottom: 0.35rem; }
        .article-content h2, .article-content h3 { margin: 1rem 0 0.4rem; line-height: 1.3; }
        .article-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 0.75rem 0; display: block; }
        .article-content blockquote {
            border-left: 4px solid var(--accent-color);
            padding: 0.75rem 1rem;
            margin: 0.85rem 0;
            background: var(--bg-body);
            border-radius: 0 6px 6px 0;
            font-style: italic;
        }

        /* Responsive Video Embeds */
        .video-responsive {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            max-width: 100%;
            margin: 1rem 0;
            border-radius: var(--radius);
        }

        .video-responsive iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        .article-share-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }

        .share-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .share-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--bg-body);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.85rem;
        }

        .share-btn:hover {
            color: var(--accent-color);
            border-color: var(--accent-color);
        }

        /* Reader Sidebar Layout */
        .reader-sidebar {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .widget-box {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 1rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }

        .widget-title {
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .widget-title::before {
            content: '';
            width: 4px;
            height: 16px;
            background-color: var(--accent-color);
            border-radius: 2px;
        }

        .related-item {
            display: flex;
            gap: 0.75rem;
            padding: 0.6rem 0;
            border-bottom: 1px solid var(--border-color);
            align-items: center;
            cursor: pointer;
        }

        .related-item:last-child {
            border-bottom: none;
        }

        .related-img {
            width: 65px;
            height: 55px;
            object-fit: cover;
            border-radius: var(--radius);
            flex-shrink: 0;
        }

        .related-text-title {
            font-size: 0.85rem;
            font-weight: 700;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Comments Engine */
        .comments-section {
            margin-top: 2rem;
            padding-top: 1.25rem;
            border-top: 1px solid var(--border-color);
        }

        .comment-input {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: var(--bg-body);
            color: var(--text-main);
            outline: none;
            font-family: inherit;
            margin-bottom: 0.75rem;
            font-size: 0.875rem;
        }

        .comment-input:focus { border-color: var(--accent-color); }

        .comment-submit-btn {
            background: var(--accent-color);
            color: #ffffff;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 700;
            cursor: pointer;
            width: 100%;
            font-size: 0.875rem;
        }

        .comment-item {
            padding: 0.85rem 0;
            border-bottom: 1px solid var(--border-color);
        }

        .comment-header {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        /* Compact Footer */
        footer {
            background: var(--bg-card);
            border-top: 1px solid var(--border-color);
            padding: 1.75rem 1rem;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.825rem;
            margin-top: 2rem;
        }

        .footer-logo-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 1rem;
        }

        .footer-logo-img {
            height: 34px;
            width: auto;
            max-width: 180px;
            object-fit: contain;
            display: block;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 14px;
            margin-bottom: 0.85rem;
            flex-wrap: wrap;
        }

        .skeleton {
            background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-body) 50%, var(--border-color) 75%);
            background-size: 200% 100%;
            animation: loading 1.4s infinite;
            border-radius: 4px;
        }

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

        .fade-in { animation: fadeIn 0.3s ease-in-out forwards; }

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

        .back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--accent-color);
            color: #fff;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            z-index: 99;
        }

        @media (max-width: 992px) {
            main.reader-container {
                grid-template-columns: 1fr;
            }
            .reader-article {
                padding: 1rem;
            }
            .article-title {
                font-size: 1.55rem;
            }
            .article-meta {
                flex-direction: column;
                align-items: flex-start;
            }
        }
    
