.reading .reading-control .chapter-nav.scroll-to-fixed-fixed.scroll-up {
    visibility: visible !important;
    top: unset !important;
    bottom: 0 !important;
}

reading .reading-control .chapter-nav.scroll-to-fixed-fixed {
    background-color: rgba(255, 255, 255, .8);
}

.text-danger {
    color: red !important;
}

.text-success {
    color: #23a903 !important;
}

#comment_email,
.sort-comments {
    display: none;
}

.modal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: 700;
}

.modal .close:hover,
.modal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.dark .chapter a {
    color: #fff;
}

.dark .modal-content {
    background-color: #423e3e;
}

.h-auto,
.h-auto * {
    height: auto;
}

.h-auto {
    text-align: center;
}

.follow-link_a {
    white-space: nowrap;
    color: #d9534f;
    float: right;
}

.fa-thumbs-up:before {
    color: #c2c2c2;
}

.fa-thumbs-up.is_like:before {
    color: #3f94d5;
}

#divcaptcha {
    width: 35%;
    display: inline-block;
    margin-right: 5px;
    margin-top: 5px;
    font-size: 18px;
    border-radius: 5px;
    border: 1px solid #dcdcdc;
    float: left;
    line-height: 30px;
    text-align: center;
    font-family: Cursive;
    color: #5fa6de;
    font-weight: 700;
}

.comment-info .regenerateCaptchaBtn {
    float: left;
    width: 32px;
    line-height: 32px;
    margin-top: 5px;
    border-radius: 5px;
    background-color: #337ab7;
    border: none;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    height: 32px;
}

#cpatchaTextBox {
    width: 35%;
    display: inline-block;
    margin-right: 5px;
    margin-top: 5px;
    font-size: 16px;
    margin-left: 5px;
    line-height: 29px;
    border-radius: 5px;
    border: 1px solid #dcdcdc;
}

.comment-wrapper .comment-info button {
    border-radius: 5px;
    line-height: 18px;
}

.cpatcha-warning {
    border-color: red !important;
}

.banner-desktop.container img {
    width: 100%;
    aspect-ratio: 728/90;
}

.banner-mobile.container img {
    width: 100%;
    aspect-ratio: 385/110;
}

.join-comment {
    border-top: 2px solid #721799 !important;
    color: #555;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    cursor: pointer;
    margin-right: 2px;
    line-height: 1.42857143;
    padding: 10px 15px;
    display: block;
    position: relative;
    text-decoration: none !important;
    margin-top: 10px;
}

.banner-small-flex {
    display: flex;
    justify-content: center;
}

@media (max-width: 767px) {
    .banner-small-flex {
        flex-direction: column;
    }

    .chapter_button {
        display: none;
    }
}

.textlink_home ul li a {
    border: solid 1px #ddd;
    padding: 5px;
    white-space: nowrap;
    border-radius: 4px;
    color: #787878;
}

.textlink_home ul li {
    margin: 0;
    margin-right: 5px;
    line-height: 38px;
    list-style: none;
    display: inline-block;
}

.textlink_home ul {
    margin: 0;
    padding: 0;
}

.fb-comments-panel {
    min-height: 220px;
    padding: 18px 0;
    position: relative;
}

.fb-comments-empty {
    min-height: 160px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.fb-comments-panel.has-facebook-comments .fb-comments-empty {
    display: none;
}

@media (max-width: 767px) {
    .fb-comments-panel {
        min-height: 180px;
    }

    .fb-comments-empty {
        min-height: 130px;
        font-size: 14px;
    }
}

/* ============================================================
 * CHỐNG CLS — đặt trong stylesheet BLOCKING (áp trước first paint).
 * Slider "TOP nhà cái" (brandview main-slider) render 0px rồi tải logo/init
 * owl xong nở ~82px -> đẩy toàn bộ div.row phía dưới nhảy (CLS ~0.2).
 * Đặt sẵn chiều cao khối -> nội dung tải xong lấp đúng chỗ, không dịch layout.
 * ============================================================ */
.brandview-main-slider-container { 
    min-height: 84px; 
    height: fit-content;
}
@media (max-width: 767px) {
    .brandview-main-slider-container { min-height: 70px; }
}

/* ============================================================
 * ACCESSIBILITY — tương phản chữ đạt WCAG AA (>= 4.5:1)
 * Sửa các màu quá nhạt của theme gốc/vendor (site-wide).
 * ============================================================ */
/* "x tuần trước" (silver/#999/#ccc) -> xám đủ đậm */
.time,
.item h2 .time,
.items-slide .slide-caption .time { color: #6b6b6b !important; }
abbr { color: #6b6b6b !important; }
.dark .time,
.dark .item h2 .time,
.dark .items-slide .slide-caption .time,
.dark abbr { color: #b3b3b3 !important; }

/* Tiêu đề box sidebar (#ff9601 cam nhạt -> chữ đậm) */
.darkBox h2,
.box h2 { color: #23202e; }
.dark .darkBox h2,
.dark .box h2 { color: #ece9f3; }

/* Huy hiệu cấp thành viên (đỏ trên nền #ccc -> nền trắng + chữ đậm) */
.member { background: #fff; }
.member.level-5,
.member.level-6,
.member.level-7,
.member.level-8,
.member.level-9,
.member.level-10 { color: #c62828; border-color: #c62828; }

/* CTA "CƯỢC NGAY" của brandview (trắng trên #FF4132 -> đỏ đậm đủ contrast) */
.tf-s3-cta,
.tf-cta { background: #c62828 !important; }

/* icon-level: ảnh gốc là banner NGANG (vd 110x20 ~ 5.5:1). styles.min ép aspect-ratio:1/1
   + inline 15x15 -> méo (Best Practices: "incorrect aspect ratio"). Hiển thị đúng tỉ lệ gốc:
   cố định chiều cao, rộng auto -> khớp natural ratio, không bo tròn ảnh chữ nhật. */
.icon-level {
    aspect-ratio: auto !important;
    height: 18px;
    width: 18px;
    border-radius: 18px;
    vertical-align: middle;
}
