.mdv-obf-line {
    position: relative;
    white-space: pre-wrap;
}
.mdv-obf-line::before {
    content: attr(data-mdv-1);
}
.mdv-obf-line::after {
    content: attr(data-mdv-2);
}
.mdv-chapter-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    color: #64748b;
    font-size: 0.98rem;
}
.mdv-chapter-load-error {
    max-width: 620px;
    margin: 28px auto;
    padding: 16px 18px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    color: #1f2937;
}
.mdv-chapter-load-error-title {
    margin-bottom: 6px;
    font-weight: 700;
    color: #dc2626;
}
.mdv-chapter-load-error-text {
    color: #64748b;
    line-height: 1.55;
}
.mdv-chapter-load-error-retry {
    margin-top: 12px;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: #d04c58;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.mdv-chapter-load-error-retry:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}
body.dark-mode .mdv-chapter-load-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.3);
    color: #e5e7eb;
}
body.dark-mode .mdv-chapter-load-error-title {
    color: #f87171;
}
body.dark-mode .mdv-chapter-load-error-text {
    color: #94a3b8;
}
#noi_dung_truyen.mdv-chapter-protect {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent;
}
#noi_dung_truyen.mdv-chapter-protect > p.mdv-import-paragraph {
    margin: 0 0 1.15em;
}
@media (hover: none) and (pointer: coarse) {
    #noi_dung_truyen.mdv-chapter-protect {
        position: relative;
    }
    #noi_dung_truyen.mdv-chapter-protect::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background: 0 0;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        touch-action: pan-y;
    }
    #noi_dung_truyen.mdv-chapter-protect > * {
        position: relative;
        z-index: 1;
    }
}
#noi_dung_truyen.mdv-capture-blur {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
#noi_dung_truyen.mdv-capture-blur > * {
    filter: blur(14px);
}
#noi_dung_truyen.mdv-capture-blur::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(248, 250, 252, 0.55);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    pointer-events: none;
}
body.dark-mode #noi_dung_truyen.mdv-capture-blur::before {
    background: rgba(11, 11, 11, 0.55);
}
.mdv-reader-watermark {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0.02;
    color: transparent;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.paragraph-break {
    min-height: 1em;
    margin-bottom: 0.5em;
}

/* === Login required card === */
.mdv-chapter-login-card {
    max-width: 480px;
    margin: 32px auto;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #f4c6ca;
    border-radius: 14px;
    background: #fff2f4;
    color: #3f2629;
}
.mdv-chapter-login-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(208, 76, 88, 0.12);
    color: #d04c58;
    font-size: 22px;
}
.mdv-chapter-login-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #3f2629;
}
.mdv-chapter-login-desc {
    margin: 0 0 18px;
    color: #846367;
    font-size: 0.96rem;
    line-height: 1.55;
}
.mdv-chapter-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #d04c58;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.mdv-chapter-login-btn:hover {
    background: #b83b47;
    color: #fff;
}
body.dark-mode .mdv-chapter-login-card {
    background: #373a40;
    border-color: rgba(242, 154, 163, 0.35);
    color: #eeeeee;
}
body.dark-mode .mdv-chapter-login-icon {
    background: rgba(242, 154, 163, 0.16);
    color: #f29aa3;
}
body.dark-mode .mdv-chapter-login-title {
    color: #eeeeee;
}
body.dark-mode .mdv-chapter-login-desc {
    color: #c9c9c9;
}
