/* =========================================================
   TRANG CHI TIẾT TIN TỨC - dựng theo bố cục web tham chiếu.
   Chỉ áp dụng cho body.news-detail-original-page.
   Toàn bộ nền dùng asset local trong assets/image/news-detail/.
   ========================================================= */

.news-detail-original-page {
    --detail-design-w: min(1920px, 100vw);
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: #2b0702;
    color: #17120e;
}

.news-detail-original-page .site-header {
    position: absolute !important;
    top: 0 !important;
    z-index: 1100;
}

.news-detail-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    /* Chiều cao tự chạy theo nội dung bài viết, không ép 1600px nữa */
    min-height: 0;
    padding-top: min(720px, 37.5vw);
    /* Chỉ chừa khoảng vừa đủ để hiện phần cuộn giấy cuối nền */
    padding-bottom: clamp(160px, 12vw, 220px);
    background-color: #f9efc9;
    background-image:
        url("../image/news-detail/bg-detail-top.jpg"),
        url("../image/news-detail/bg-detail-ft.jpg"),
        url("../image/news-detail/bg-detail-ct.jpg");
    background-position:
        center top,
        center bottom,
        center top;
    background-repeat:
        no-repeat,
        no-repeat,
        repeat-y;
    background-size:
        min(1920px, 100vw) auto,
        min(1920px, 100vw) auto,
        min(1920px, 100vw) auto;
}

.news-detail-partner-logos {
    position: absolute;
    z-index: 20;
    top: min(108px, 6.55vw);
    left: 50%;
    width: min(190px, 12vw);
    height: auto;
    transform: translateX(-50%);
    object-fit: contain;
    pointer-events: none;
}

.news-detail-age {
    position: absolute;
    z-index: 20;
    top: min(420px, 22.1vw);
    left: max(calc(50% - 660px), 17.3vw);
    width: min(108px, 6.4vw);
    height: auto;
    pointer-events: none;
}

.news-detail-game-logo {
    position: absolute;
    z-index: 20;
    top: min(388px, 20.5vw);
    left: calc(50% + min(365px, 22vw));
    width: min(260px, 16vw);
    height: auto;
    transform: translateX(-50%);
    pointer-events: none;
}

.news-detail-band-title {
    position: absolute;
    z-index: 20;
    top: min(595px, 31vw);
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    color: #fff7e3;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(23px, 2vw, 36px);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 2px 2px rgba(74, 12, 2, .8);
    pointer-events: none;
}

.news-detail-paper {
    position: relative;
    z-index: 10;
    width: min(1060px, 63vw);
    min-height: 0;
    margin: 0 auto;
    padding: 0 min(92px, 5vw) 20px;
}

.news-detail-article h1 {
    margin: 18px 0 24px;
    color: #7f1d0c;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 1.55vw, 27px);
    line-height: 1.25;
    font-weight: 800;
}

.news-detail-article__content {
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.38;
    word-break: normal;
    overflow-wrap: anywhere;
}

.news-detail-article__content p {
    margin: 0 0 10px;
}

.news-detail-article__content p:empty {
    min-height: 8px;
}

.news-detail-article__content ul,
.news-detail-article__content ol {
    margin: 7px 0 12px 24px;
    padding: 0;
}

.news-detail-article__content ul { list-style: disc; }
.news-detail-article__content ol { list-style: decimal; }
.news-detail-article__content li { margin: 2px 0; }

.news-detail-article__content strong,
.news-detail-article__content b {
    font-weight: 800;
}

.news-detail-article__content img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 16px auto;
}

.news-detail-article__content iframe,
.news-detail-article__content video {
    display: block;
    max-width: 100% !important;
    margin: 16px auto;
}

.news-detail-article__content table {
    width: auto !important;
    max-width: 100%;
    margin: 16px auto;
    border-collapse: collapse;
}

.news-detail-article__content th,
.news-detail-article__content td {
    padding: 7px 9px;
    border: 1px solid #bca777;
}

.news-detail-article__meta {
    margin-top: 26px;
    color: #8f826a;
    font-size: 12px;
    line-height: 1.4;
}

.news-detail-not-found {
    min-height: 400px;
    padding: 90px 20px;
    color: #8c381b;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

/* Menu dọc bên phải, cố định khi cuộn như web tham chiếu */
.news-detail-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 55px 20px 42px;
    background: #290601;
    color: #f8e8bd;
}

.news-detail-footer__inner {
    width: min(900px, 100%);
    margin: 0 auto;
}

.news-detail-footer__product {
    display: grid;
    grid-template-columns: 150px 210px 1fr;
    gap: 28px;
    align-items: center;
}

.news-detail-footer__product > img {
    width: 130px;
    height: 130px;
    border-radius: 18px;
    object-fit: cover;
    justify-self: center;
}

.news-detail-footer__labels,
.news-detail-footer__values {
    display: grid;
    grid-template-rows: repeat(4, minmax(30px, auto));
    gap: 10px;
    font-size: 14px;
    line-height: 1.25;
}

.news-detail-footer__labels { font-weight: 700; }
.news-detail-footer__values strong { font-weight: 700; }

.news-detail-footer__social {
    margin: 38px auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: #f2d400;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 4px;
}

.news-detail-footer__social i {
    width: 2px;
    height: 20px;
    background: #d5b400;
}

.news-detail-footer__brand {
    text-align: center;
    color: #f8dc8b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 2.4vw, 44px);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 0 rgba(73,21,8,.95), 0 0 12px rgba(255,185,44,.28);
}

@media (max-width: 1250px) {
}

@media (max-width: 1050px) {
    .news-detail-paper {
        width: min(900px, 78vw);
        padding-inline: 50px;
    }
}

@media (max-width: 900px) {
    .news-detail-original-page .site-header {
        position: absolute !important;
    }

    .news-detail-stage {
        padding-top: 58vw;
        padding-bottom: 54vw;
        background-size: 1500px auto, 1500px auto, 1500px auto;
    }

    .news-detail-partner-logos,
    .news-detail-age,
    .news-detail-game-logo {
        display: none;
    }

    .news-detail-band-title {
        top: 45vw;
        font-size: clamp(20px, 5vw, 30px);
    }

    .news-detail-paper {
        width: calc(100% - 24px);
        padding: 0 18px 30px;
        background: rgba(255,249,222,.92);
        border-radius: 8px;
    }

    .news-detail-article__content { font-size: 15px; }

    .news-detail-footer__product {
        grid-template-columns: 100px 1fr;
    }
    .news-detail-footer__product > img { width: 88px; height: 88px; }
    .news-detail-footer__labels { display: none; }
    .news-detail-footer__values { font-size: 12px; }
    .news-detail-footer__social {
        gap: 12px;
        flex-wrap: wrap;
        font-size: 13px;
        letter-spacing: 2px;
    }
}

@media (max-width: 560px) {
    .news-detail-stage {
        padding-top: 72vw;
        padding-bottom: 70vw;
    }
    .news-detail-band-title { top: 55vw; }
    .news-detail-paper { width: calc(100% - 12px); padding-inline: 12px; }
    .news-detail-article h1 { font-size: 19px; }
    .news-detail-article__content { font-size: 14px; }
    .news-detail-footer { padding-inline: 14px; }
    .news-detail-footer__product { grid-template-columns: 80px 1fr; gap: 14px; }
    .news-detail-footer__product > img { width: 72px; height: 72px; }
}

/* =========================================================
   FIX: khong de rule global `main` cua trang chu chen
   mainbackground-mobile.jpg vao khung bai viet chi tiet.
   Nen giay se lay tu bg-detail-top/ct/ft cua .news-detail-stage.
   ========================================================= */
.news-detail-original-page main.news-detail-paper,
.news-detail-original-page .news-detail-paper {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-size: auto !important;
}


/* =========================================================
   FIX 09/09/2026
   - Bỏ dòng "chuyên mục" cuối bài.
   - Đưa ngày đăng lên ngay dưới tiêu đề, trước nội dung.
   - Chuẩn hóa font Unicode tiếng Việt để tránh lỗi font từ HTML Admin.
   ========================================================= */
.news-detail-article,
.news-detail-article h1,
.news-detail-article__date,
.news-detail-article__content,
.news-detail-article__content * {
    font-family: Tahoma, Arial, "Helvetica Neue", sans-serif !important;
}

.news-detail-article__date {
    margin: 0 0 26px;
    color: #33271d;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    text-align: left;
}

/* Dòng meta cũ nếu còn bị cache/HTML cũ thì ẩn tuyệt đối. */
.news-detail-article__meta {
    display: none !important;
}


/* =========================================================
   FIX 09/09/2026 - vị trí ngày đăng theo mẫu
   Đặt ngày đăng ở góc trên bên phải khung giấy, phía trên tiêu đề.
   ========================================================= */
.news-detail-article {
    position: relative;
}

.news-detail-article__date {
    position: absolute !important;
    top: -34px !important;
    right: 0 !important;
    margin: 0 !important;
    text-align: right !important;
    white-space: nowrap;
    color: #5a4634 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
}

@media (max-width: 768px) {
    .news-detail-article__date {
        top: -24px !important;
        right: 0 !important;
        font-size: 12px !important;
    }
}


/* =========================================================
   DETAIL HEADER CLEANUP v6
   - Loai bo partner logos / 18+ / logo game noi trong hero
   - Khong hien dropdown social Fanpage/Group/TikTok/Youtube
   - Can giua 5 muc menu vao dung trong thanh do
   ========================================================= */
.news-detail-original-page .news-detail-partner-logos,
.news-detail-original-page .news-detail-age,
.news-detail-original-page .news-detail-game-logo,
.news-detail-original-page .site-nav__submenu,
.news-detail-original-page .news-detail-footer__social {
    display: none !important;
}

.news-detail-original-page .site-header {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 112px !important;
}

.news-detail-original-page .site-header__inner {
    width: min(880px, calc(100% - 80px)) !important;
    height: 64px !important;
    margin: 38px auto 0 !important;
    display: flex !important;
    align-items: center !important;
}

.news-detail-original-page .site-nav {
    height: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.news-detail-original-page .site-nav__list {
    height: 100% !important;
    align-items: stretch !important;
}

.news-detail-original-page .site-nav__list > li {
    height: 100% !important;
    display: block !important;
}

.news-detail-original-page .site-nav__link {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 9px !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.news-detail-original-page .site-nav__link span {
    position: static !important;
    display: inline-flex !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
}

/* Khong cho hover lam muc menu nhay ra ngoai khung do. */
.news-detail-original-page .site-nav__link:hover,
.news-detail-original-page .site-nav__link:focus-visible {
    transform: none !important;
}

@media (max-width: 900px) {
    .news-detail-original-page .site-header {
        height: 82px !important;
    }
    .news-detail-original-page .site-header__inner {
        width: calc(100% - 24px) !important;
        height: 56px !important;
        margin-top: 14px !important;
    }
}


/* =========================================================
   KINH BUT CUOI BAI VIET v8 - FIX TRAN KHUNG
   Anh luon nam gon trong chieu rong noi dung bai viet.
   ========================================================= */
.news-detail-article__signature {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 48px auto 10px !important;
    padding: 0 !important;
    text-align: center !important;
    clear: both !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.news-detail-article__signature img {
    display: block !important;
    width: 100% !important;
    max-width: 920px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
}

@media (max-width: 1024px) {
    .news-detail-article__signature img {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .news-detail-article__signature {
        margin-top: 32px !important;
    }
    .news-detail-article__signature img {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* =========================================================
   FIX v9 - BO KHOANG TRONG DU THUA CUOI BAI
   Nguyên nhân cũ: .news-detail-stage bị ép min-height:1600px
   và padding-bottom tới 30.625vw nên bài ngắn vẫn kéo giấy rất dài.
   Giờ chiều cao bám theo nội dung thực tế.
   ========================================================= */
.news-detail-original-page .news-detail-stage {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: clamp(160px, 12vw, 220px) !important;
}

.news-detail-original-page .news-detail-paper {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 20px !important;
}

.news-detail-original-page .news-detail-article__signature {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .news-detail-original-page .news-detail-stage {
        padding-bottom: 110px !important;
    }
}
