﻿@import url('https://fonts.googleapis.com/css?family=Sedgwick+Ave&display=swap');

HTML,
BODY {
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px;
    line-height: 1.3 !important;
    width: 100%;
    overflow-x: hidden !important;
}

.fm-background-home {
    background: #000000 url(images/bg-9d-pts_new_fade.jpg) no-repeat top center;
    background-size: 100% auto;
    animation: fmBgBreathe 20s ease-in-out infinite;
}

@keyframes fmBgBreathe {
    0% {
        background-size: 100% auto, 100% auto;
        background-position: top center, top center;
    }

    50% {
        background-size: 105% auto, 105% auto;
        background-position: top center, top center;
    }

    100% {
        background-size: 100% auto, 100% auto;
        background-position: top center, top center;
    }
}

.fm-background-news {
    background: #fff url(images/bg-news.jpg) no-repeat top center;
    background-size: 100% auto;
}

.fm-background-user {
    background: #fff url(images/bg-big.jpg) no-repeat top center;
    background-size: 100% auto;
}

.fm-background-download-game {
    background: #e6e6e6 url(images/bg-download-game.jpg) no-repeat top center;
    background-size: 100% auto;
}

.fm-background-top-detail {
    background: #f8f6f7 url(images/bg-9d-top.jpg) no-repeat top center;
    background-size: 100% auto;
}

.fm-background-solid-brown {
    background: #3c2415;
    background: linear-gradient(180deg, #4a2c18 0%, #2e1a0e 100%);
    min-height: 100vh;
}

.fm-btn-topcaothu {
    display: block;
    width: 100%;
    margin-bottom: 18px;
    padding: 16px 20px;
    background: rgba(90, 53, 32, 0.35);
    border: 2px solid #d2691e;
    border-radius: 8px;
    color: #ff8c00 !important;
    font-weight: bold;
    font-size: 1.3rem;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

    .fm-btn-topcaothu:hover {
        background: #6e4126;
        color: #ffb347 !important;
        text-decoration: none !important;
    }

a {
    text-decoration: none !important;
}

a {
    text-decoration: none !important;
}

.home-wrapper {
    width: 100%;
    height: auto;
}

.fm-logo-18 {
    position: absolute;
    top: 80px;
    z-index: 1;
}

.menu {
    background: url(images/bg-none-menu-home1.jpg) no-repeat center top;
    width: 100%;
    height: 100px;
    margin-bottom: 250px;
}

.fm-menu-qtv {
    margin-bottom: 100px !important;
}

.menu > .menu-wrapper {
    display: block;
    width: 960px;
    margin: 0 auto;
    position: relative;
}

.menu-wrapper .fm-logo {
    position: absolute;
    top: -6px;
    left: 373px;
    width: 220px;
}

.menu-wrapper .list-menu {
    display: block;
    list-style: none;
    margin: 0px -1px;
    padding: 0px;
}

    .menu-wrapper .list-menu li {
        float: left;
        position: relative;
        width: 160px;
        height: 73px;
        text-align: center !important;
    }

        .menu-wrapper .list-menu li:nth-child(3) {
            margin-left: 320px;
        }

        .menu-wrapper .list-menu li a {
            position: absolute;
            padding-top: 20px;
            left: 0px;
            width: 100%;
            height: 100%;
            color: #fff !important;
            font-family: 'Sedgwick Ave' !important;
            letter-spacing: 3px;
            font-weight: bold;
            font-size: 1.3rem;
        }

        .menu-wrapper .list-menu li:nth-child(1):hover,
        .menu-wrapper .list-menu li.active:nth-child(1) {
            background: url(images/bg-none-menu-item-1.png) top left no-repeat;
        }

        .menu-wrapper .list-menu li:nth-child(2):hover,
        .menu-wrapper .list-menu li.active:nth-child(2) {
            background: url(images/bg-none-menu-item-2.png) top left no-repeat;
        }

        .menu-wrapper .list-menu li:nth-child(3):hover,
        .menu-wrapper .list-menu li.active:nth-child(3) {
            background: url(images/bg-none-menu-item-3.png) top left no-repeat;
        }

        .menu-wrapper .list-menu li:nth-child(4):hover,
        .menu-wrapper .list-menu li.active:nth-child(4) {
            background: url(images/bg-none-menu-item-4.png) top left no-repeat;
        }
        /* Menu dạng ảnh (nút do bạn tự upload) - dùng chung khung vị trí có sẵn ở trên, không dùng ảnh nền sprite hover nữa */
        .menu-wrapper .list-menu-img li {
            background: none !important;
        }

        .menu-wrapper .list-menu-img li a {
        position: static;
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
         }

        .menu-wrapper .list-menu-img li a img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
        }

        /* Khối nút trang chủ mới: logo, cài đặt ngay, đăng ký/tin tức, đăng nhập nhanh, top cao thủ */
.fm-home-sidebar {
    max-width: 650px;
    margin: 0 auto;
    padding-top: 0px;
    position: relative;
    z-index: 2;
    transform: translateX(130px);/* dương = sang phải *//* âm = sang trái */
}

.fm-home-sidebar .fm-logotext {
    max-width: 100%;
    height: auto;
    margin-bottom: -10px;
    position: relative;
    transform: translate(0%, 10%); /*Số đầu tiên = trái/phải (âm = trái, dương = phải), Số thứ hai = lên/xuống (âm = lên, dương = xuống)*/
}

.fm-home-sidebar .fm-caidat-sub {
    width: 100%;
    height: auto;
    display: block;
}

.fm-home-buttons {
}

.fm-home-sidebar .fm-row-2btn {
    display: flex;
    gap: 4px;
    margin-top: 14px;
    position: relative;
    z-index: 5;
}

    .fm-home-sidebar .fm-row-2btn a {
        flex: 1;
        display: block;
    }

    .fm-home-sidebar .fm-row-2btn img {
        width: 100%;
        height: auto;
        display: block;
    }

.fm-home-sidebar .fm-quick-login-wrap {
    background: url(images/trangchu/bg-form-dangnhap.png) no-repeat top center;
    background-size: 100% auto;
    padding: 56px 14px 14px 14px;
    margin-top: 14px;
}

/* Khung đăng nhập RIÊNG cho trang Login.html - không dùng ở trang chủ,
   nên chỉnh sửa ở đây sẽ không ảnh hưởng gì đến trang chủ */
.fm-login-page-wrap {
    background: url(images/trangchu/bg-form-dangnhap.png) no-repeat top center;
    background-size: 100% auto;
    padding: 17% 14px 14px 14px;
    margin-top: -100px;
}

/* Ô nhập và nút "Đăng Nhập Nhanh" - áp dụng đồng nhất mọi kích thước màn hình,
   không còn phụ thuộc breakpoint 980px nên không bị nhảy kích cỡ nữa */
.fm-input-quick-login {
    width: 85%;
}

.fm-btn-quick-login {
    position: relative;
    right: 36px;
    background-color: transparent !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    display: block !important;
    line-height: 0 !important;
}

.fm-home-sidebar .fm-topcaothu {
    display: block;
    margin-top: -8px;
}

    .fm-home-sidebar .fm-topcaothu img {
        width: 100%;
        height: auto;
        display: block;
    }

        /* Popup thông báo Kỳ Trân Các: nền nâu, chữ cam đậm */
.ktc-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ktc-popup-box {
    background: #5a3520;
    border: 2px solid #d2691e;
    border-radius: 8px;
    padding: 30px 28px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.ktc-popup-text {
    color: #ff8c00;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 0 20px 0;
}

.ktc-popup-close {
    background: #ff8c00;
    color: #fff;
    border: none;
    padding: 8px 28px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

    .ktc-popup-close:hover {
        background: #e67600;
    }

.download-area {
    position: relative;
    top: -37px;
}

        .download-area .fm-img-download {
        width: 100% !important;
        }

        @media screen and (max-width: 980px) {
         .page > .container {
        width: 100%!important;
        padding-right: 20px!important;
        padding-left: 20px!important;
        margin-right: auto!important;
        margin-left: auto!important;
        max-width: unset!important;
    }
    .fm-carousel-inner > .carousel-item {
        height: 300px !important;
    }

    .fm-background-news .menu {
        margin-bottom: 183px !important;
    }

    .menu {
        margin-bottom: 140px !important;
    }

    .download-area {
        top: -22px !important;
    }

    .button-area {
        padding-top: 11px !important;
        background-size: 100% 140px !important;
        height: 140px !important;
    }

        .button-area .block-button {
            position: relative !important;
            left: -7px !important;
            top: 0 !important;
        }

    .social a {
        width: 110px !important;
        height: 36px !important;
        background-position: 0 -63px !important;
    }

    .social .fb-page {
        top: 0px !important;
        left: 0px !important;
    }

    .fm-bg-size-rank {
        padding-top: 60px !important;
    }

    .fm-nav-tabs {
        padding-left: 55px !important;
    }

    /*.tab-footer {*/
    /*    height: 50px !important;*/
    /*}*/

    .fm-rank-news .col-rank-1, .fm-rank-news .col-rank-2 {
        width: 10px !important;
    }

    .mw-container-news {
        max-width: 850px !important;
    }

        .mw-container-news .social {
            height: 536px !important;
        }

    .fm-detail-news .fm-content-detail-news .fm-img-content img {
        max-width: 515px !important;
    }

    .text-background {
        top: 100px!important;
        left: 180px!important;
    }

    .text-background p.fm-title-text-bg {
        font-size: 3rem!important;
    }

    .text-background p.fm-content-text-bg {
        font-size: 2.3rem!important;
    }
}

.fm-rank-news table {
    width: 95% !important;
    margin-left: 15px;
}

.button-area {
    background: url(images/bg-block-download.jpg) no-repeat center bottom;
    background-size: 100% 100%;
    height: 110px;
}

    .button-area .block-button {
        width: 100%;
        height: 60px;
        position: absolute;
        top: 170px;
        left: -10px;
        z-index: 9;
    }

        .button-area .block-button li {
            float: left;
            list-style: none !important;
        }

            .button-area .block-button li a {
                background: url(images/block-button-2.jpg) no-repeat;
                display: block;
                width: 145px;
                color: transparent;
            }

                .button-area .block-button li a:hover {
                    background: url(images/block-button-hov-2.jpg) no-repeat;
                }

                .button-area .block-button li a.btn-1 {
                    background-position: 0 0;
                    height: 58px;
                }

                .button-area .block-button li a.btn-2 {
                    background-position: -145px 0;
                    height: 58px;
                }

                .button-area .block-button li a.btn-3 {
                    background-position: 0 -58px;
                    height: 55px;
                }

                .button-area .block-button li a.btn-4 {
                    background-position: -145px -58px;
                    height: 55px;
                }

.fm-carousel-inner > .carousel-item {
    height: 370px;
}

.footer {
    background: url(images/bg-footer.jpg) no-repeat bottom center;
    width: 100%;
    height: 100px;
    color: #fff !important;
    padding: 2.2rem 0;
}

.social {
    background: url(images/bg-social.jpg) no-repeat;
    background-size: 100% 100%;
    height: 570px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

    .social a {
        display: block;
        width: 121px;
        height: 56px;
        background: url(images/btn-social.jpg) no-repeat;
        background-position: 0 -53px;
        color: transparent !important;
    }

    .social .fb-page {
        position: relative;
        top: 8px;
        left: 5px;
    }

.fb-page span,
.fb-page span iframe {
    height: 500px !important;
}

.fm-nav-tabs {
    background: transparent url(images/content-top.jpg) no-repeat center center;
    padding-left: 80px;
    background-size: 100% auto;
}

.fm-tab-content {
    background: url(images/content-loop.jpg) repeat-y left top;
    background-size: 100% auto;
}

    .fm-tab-content .tab-pane {
        padding: 11px 23px;
        color: #000 !important;
        min-height: 100px;
        height: auto;
        max-height: 350px;
        overflow-y: auto;
    }

        .fm-tab-content .tab-pane .media {
            border-bottom: 1px dashed red !important;
        }

.tab-footer {
    background: url(images/bg-sub-bot.png) no-repeat;
    height: 90px;
    background-size: 100% 100%;
    position: relative;
    top: -2px;
}

.quick-login-area {
    padding: 11px;
    background: url(images/bg-tabcontent.jpg) no-repeat center top, url(images/bg-form-dangnhap.gif) no-repeat center center;
    background-size: 100% 43px, cover;
    min-height: 150px;
    padding-bottom: 20px;
    text-align: center;
}

.fm-detail-news {
    background: rgba(74, 44, 24, 0.75);
    border: 2px solid #d2691e;
    border-radius: 8px;
    min-height: 250px;
    max-height: 800px;
    overflow-x: hidden;
    overflow-y: auto;
}

.fm-wuxia-title {
    font-family: 'Sedgwick Ave', cursive !important;
    color: #ff8c00 !important;
    font-weight: bold !important;
}

.fm-cream-text,
.fm-cream-text p,
.fm-cream-text span,
.fm-cream-text div,
.fm-cream-text li,
.fm-cream-text td,
.fm-cream-text b,
.fm-cream-text i,
.fm-cream-text strong {
    color: #fffdd0 !important;
}

.fm-relation-news {
    background: url(images/bg-tabcontent.jpg) no-repeat center top, url(images/content-loop.jpg) no-repeat center center;
    background-size: 100% 43px, cover;
    min-height: 150px;
    max-height: 300px;
}

    .fm-detail-news .fm-title-detail-news, .fm-relation-news .fm-title-relation-news {
        position: sticky;
        top: 10px;
    }

        .fm-detail-news .fm-title-detail-news label, .fm-relation-news .fm-title-relation-news label {
            color: #fff;
            font-weight: 600;
            font-size: 1.15rem !important;
        }

    .fm-detail-news .fm-content-detail-news, .fm-relation-news .fm-content-relation-news {
        margin-top: 25px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 11px;
    }

.fm-img-content img {
    max-width: 700px !important;
}

.nav-tabs .nav-link {
    color: #fff !important;
    font-weight: bold !important;
}

    .nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
        border-color: transparent !important;
    }

    .nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
        color: #bc0b26 !important;
        background: url(images/active-nav.gif) no-repeat left center, url(images/content-loop.jpg) repeat-y center center;
        background-size: 40px auto, auto auto;
        border-color: #dee2e6 #dee2e6 #fff;
        font-style: italic !important;
        padding-left: 35px !important;
    }

.button-download-news-area, .button-download-signup-area {
    width: 489px;
    height: 100px;
    background: url(images/bg-download.png) no-repeat center center;
    background-size: 100% 100%;
    position: relative;
    top: -100px;
}

    .button-download-news-area a.download-game, .button-download-signup-area a.download-game {
        background: url(images/caidat-sub.png) no-repeat;
        background-size: 100% 100%;
        position: absolute;
        top: -18px;
        left: 4px;
        width: 199px;
        height: 114px;
        z-index: 3;
        display: block;
    }

    .button-download-news-area a.quick-register {
        background: url(images/block-button-sub-s2.jpg) 0 0 no-repeat;
        position: absolute;
        top: 32px;
        left: 210px;
        width: 100px;
        height: 59px;
        z-index: 3;
        display: block;
    }

        .button-download-news-area a.quick-register:hover {
            background-position: 0 -59px;
        }

    .button-download-news-area a.nap-the {
        background: url(images/block-button-sub-s2.jpg) -100px 0 no-repeat;
        position: absolute;
        top: 32px;
        left: 310px;
        width: 100px;
        height: 59px;
        z-index: 3;
        display: block;
    }

        .button-download-news-area a.nap-the:hover {
            background-position: -100px -59px;
        }

    .button-download-signup-area a.nap-the {
        background: url(images/block-button-sub-2-s2.jpg) 0 0 no-repeat;
        position: absolute;
        top: 32px;
        left: 210px;
        width: 100px;
        height: 59px;
        z-index: 3;
        display: block;
    }

        .button-download-signup-area a.nap-the:hover {
            background-position: 0px -59px;
        }

    .button-download-signup-area a.fanpage {
        background: url(images/block-button-sub-2-s2.jpg) -100px 0 no-repeat;
        position: absolute;
        top: 32px;
        left: 310px;
        width: 100px;
        height: 59px;
        z-index: 3;
        display: block;
    }

        .button-download-signup-area a.fanpage:hover {
            background-position: -100px -59px;
        }

.fm-footer-qtv {
    position: absolute;
    bottom: 0 !important;
}

.fm-asterisk-required {
    font-size: 8px;
    position: relative;
    top: -7px;
    color: red !important;
}

.text-background {
    position: absolute;
    top: 130px;
    left: 200px;
}

    .text-background p {
        font-family: 'Sedgwick Ave' !important;
        letter-spacing: 3px;
        text-shadow: 0 0 11px #fff !important;
    }

        .text-background p.fm-title-text-bg {
            font-size: 4rem;
            color: #bc0b26 !important;
        }

        .text-background p.fm-content-text-bg {
            font-size: 3rem;
            padding-left: 30px;
        }

.download-game-guide {
    background: url(../images/btn-download.gif) no-repeat;
    background-size: 100% 100%;
    position: absolute;
    top: -28px;
    left: -16px;
    width: 244px;
    height: 139px;
    z-index: 3;
    display: block;
}

.table td, .table th {
    vertical-align: middle!important;
}

ul.pagination
{
    -ms-flex-pack: center!important;
    justify-content: center!important;
    display: -ms-flexbox;
    display: flex;
    padding: 0;
    margin: 0;
}

ul.pagination li
{
    display: inline;
}

ul.pagination li a
{
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: all .3s;
}

ul.pagination li.active
{
    background-color: #bc0b26;
}

ul.pagination li.active a {
    color: white!important;
    font-weight: bold;
}

ul.pagination li a:hover:not(.active)
{
    background-color: #ddd;
    color: black!important;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background-color: transparent !important;
}

::-webkit-scrollbar-track-piece {
    background-color: transparent !important;
}

::-webkit-scrollbar-thumb {
    height: 50px;
    background-color: #bc0b26 !important;
    opacity: 0.5;
}

/* ===== FINAL FIX SCROLL + HEADER (SAFE - NO TOUCH BUTTON) ===== */

/* fix double scroll */
.fm-detail-news {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

/* fix header overlap */
.fm-detail-news .fm-title-detail-news,
.fm-detail-news .fm-title-detail-news {
    position: sticky;
    top: 5px; /* instead of 0 */
    z-index: 20;
}

/* main scroll area */
.fm-content-detail-news {
    max-height: 650px !important;
    overflow-y: auto !important;

    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* remove gap */
.fm-content-detail-news > *:first-child {
    margin-top: 0 !important;
}

/* fix cannot scroll full */
.fm-content-detail-news {
    height: auto !important;
}

/* smooth scroll */
.fm-content-detail-news {
    scroll-behavior: smooth;
}

/* prevent content cut */
.fm-content-detail-news * {
    max-width: 100% !important;
}

/* image fix */
.fm-img-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.page {
    padding-top: 10px;
}

.fm-content-detail-news {
    padding-top: 10px !important;
}
/* ============================================================
   Hiệu ứng chuyển động khi hover/chạm vào nút và dòng tin tức
   ============================================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

.fm-caidat-sub,
.fm-row-2btn img,
.fm-topcaothu img,
.fm-btn-topcaothu,
.ktc-popup-close,
.btn-success,
.btn-primary,
.fm-btn-quick-login,
.list-menu-img li a img,
.fm-quicknav-main,
.fm-quicknav-row img,
.fm-content-detail-news .btn-dark {
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.fm-caidat-sub:hover,
.fm-row-2btn a:hover img,
.fm-topcaothu:hover img,
.fm-btn-topcaothu:hover,
.ktc-popup-close:hover,
.btn-success:hover,
.btn-primary:hover,
.fm-btn-quick-login:hover,
.list-menu-img li a:hover img,
.fm-quicknav-main:hover,
.fm-quicknav-row a:hover img,
.fm-content-detail-news .btn-dark:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    filter: brightness(1.08);
}

.fm-caidat-sub:active,
.fm-row-2btn a:active img,
.fm-topcaothu:active img,
.fm-btn-topcaothu:active,
.ktc-popup-close:active,
.btn-success:active,
.btn-primary:active,
.fm-btn-quick-login:active,
.list-menu-img li a:active img,
.fm-quicknav-main:active,
.fm-quicknav-row a:active img,
.fm-content-detail-news .btn-dark:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    filter: brightness(0.95);
}

/* Từng dòng tin tức trong danh sách Tin tức */
.fm-content-detail-news > a {
    display: block;
    border-radius: 6px;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

    .fm-content-detail-news > a:hover {
        transform: translateX(8px) scale(1.015);
        background-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }

    .fm-content-detail-news > a:active {
        transform: translateX(4px) scale(0.99);
    }

    .fm-content-detail-news > a .media img {
        transition: transform 0.18s ease;
    }

    .fm-content-detail-news > a:hover .media img {
        transform: scale(1.08);
    }
    /* ============================================================
   Ô nhập liệu (input): nền xám, chữ gõ vào màu vàng
   ============================================================ */
    .form-control {
    background-color: #663300 !important;
    color: #fffdd0 !important;
    border: 1px solid #a8527a !important;
}

    .form-control::placeholder {
        color: #d9d9d9 !important;
        opacity: 1 !important;
    }

    .form-control:focus {
        background-color: #663300 !important;
        color: #fffdd0 !important;
        border-color: #ffd700 !important;
        box-shadow: none !important;
    }

    /* Chặn Chrome tự ép nền trắng khi bấm chọn gợi ý autofill */
    .form-control:-webkit-autofill,
    .form-control:-webkit-autofill:hover,
    .form-control:-webkit-autofill:focus,
    .form-control:-webkit-autofill:active {
        -webkit-text-fill-color: #fffdd0 !important;
        -webkit-box-shadow: 0 0 0px 1000px #663300 inset !important;
        box-shadow: 0 0 0px 1000px #663300 inset !important;
        border: 1px solid #a8527a !important;
        transition: background-color 9999s ease-in-out 0s;
        caret-color: #fffdd0 !important;
    }
    /* ============================================================
   Logo về trang chủ (Top-100, Tin tức, Bài viết, Trang chủ)
   ============================================================ */
.fm-site-logo-wrap {
    text-align: center;
    padding: 18px 0 10px 0;
    position: relative;
    top: -60px;
    left: 0px;
}

.fm-site-logo-link {
    display: inline-block;
    cursor: pointer;
}

.fm-site-logo {
    transition: transform 0.25s ease;
    display: inline-block;
}

.fm-site-logo-link:hover .fm-site-logo {
    transform: scale(1.15);
}

.fm-site-logo-link:active .fm-site-logo {
    transform: scale(0.92);
}

.fm-site-logo-nav {
    max-width: 320px;
    height: auto;
}
/* ============================================================
   Thanh nhạc nền (chỉ ở trang chủ) - nút play/pause + progress bar
   To bằng đúng nút Top Cao Thủ, KHÔNG được rộng hơn cột chứa nó
   ============================================================ */
.fm-music-player {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    background: rgba(58, 36, 21, 0.25);
    border: 2px solid #d2691e;
    border-radius: 30px;
    padding: 8px 16px;
    margin-top: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.fm-music-toggle {
    background: #ff8c00;
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

    .fm-music-toggle:hover {
        background: #e67600;
        transform: scale(1.08);
    }

    .fm-music-toggle:active {
        transform: scale(0.94);
    }

.fm-music-progress-wrap {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    margin-left: 14px;
    overflow: hidden;
}

.fm-music-progress-bar {
    height: 100%;
    width: 0%;
    background: #ffd700;
    transition: width 0.2s linear;
}
/* ============================================================
   Giao diện trang chủ riêng cho MOBILE
   Toàn bộ cụm logo + nút canh giữa màn hình, bỏ các dịch chuyển
   sang trái/phải chỉ hợp với màn hình rộng (desktop)
   ============================================================ */
@media (max-width: 767px) {
    .fm-home-sidebar {
        transform: none !important;
        max-width: 94% !important;
        margin: 0 auto !important;
        padding-top: 20px !important;
    }

        .fm-home-sidebar .text-center {
            transform: none !important;
        }

    .fm-home-buttons {
        transform: none !important;
        margin-top: 14px !important;
        top: 0px !important;      /* 👉 chỉnh riêng cho mobile - âm = lên, dương = xuống */
        left: 0px !important;      /* 👉 chỉnh riêng cho mobile - âm = trái, dương = phải */
    }
}
/* ============================================================
   Cụm nút nhanh (Cài đặt ngay + 2 nút phụ) hiển thị phía trên
   ô nội dung, sát mép trái - dùng ở Top-100, Tin tức, Bài viết
   ============================================================ */
.fm-quicknav {
    max-width: 360px;
    margin: 0 0 14px 0;
    display: flex;
    align-items: stretch;
    gap: 6px;
}

    .fm-quicknav .fm-quicknav-main-link {
        display: block;
        flex: 2.1;
    }

    .fm-quicknav .fm-quicknav-main {
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
    }

    .fm-quicknav .fm-quicknav-row {
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 4px;
    }

        .fm-quicknav .fm-quicknav-row a {
            flex: 1;
            display: block;
            min-height: 0;
        }

        .fm-quicknav .fm-quicknav-row img {
            width: 100%;
            height: 100%;
            object-fit: fill;
            display: block;
        }

        .fm-page-buttons{

    position:relative;

    width:500px;
    height:300px;
}

/* ================= Cài Đặt ================= */

.btn-install{

    position:absolute;

    left:-5px;
    top:-45px;
}

/* ================= Đăng Ký ================= */

.btn-register{

    position:absolute;

    left:210px;
    top:-19px;
}

/* ================= Tin Tức ================= */

.btn-news{

    position:absolute;

    left:330px;
    top:-19px;
}

/* ================= Top Cao Thủ ================= */

.btn-top{

    position:absolute;

    left:210px;
    top:14px;
}

.fm-page-btn-install{

    width:210px;
}

.fm-page-btn-register{

    width:120px;
}

.fm-page-btn-news{

    width:120px;
}

.fm-page-btn-top{

    width:240px;
}
.fm-topnews-layout{

    position:relative;

    top:-250px;

}
#fireCanvas{

    position:fixed;

    left:0;
    top:0;

    width:100%;
    height:100%;

    pointer-events:none;

    z-index:2;
}

.fm-home-sidebar{

    position:relative;

    z-index:10;
}
/* ============================================================
   Nền thanh tiêu đề bảng (Xếp hạng/Nhân vật/...) cho các trang Top
   ============================================================ */
.fm-content-detail-news .table thead.thead-dark {
    background: url(images/content-top.jpg) no-repeat center center;
    background-size: 100% 100%;
}

.fm-content-detail-news .table thead.thead-dark th {
    background: transparent;
    border-color: #d2691e;
    color: #fff;
}
/* ============================================================
   Hiệu ứng phóng to khi chạm cho cụm nút trong _QuickButtons.cshtml
   (Cài đặt / Đăng ký / Tin tức / Top Cao Thủ)
   ============================================================ */
.fm-page-btn-install,
.fm-page-btn-register,
.fm-page-btn-news,
.fm-page-btn-top {
    display: block;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-install:hover .fm-page-btn-install,
.btn-register:hover .fm-page-btn-register,
.btn-news:hover .fm-page-btn-news,
.btn-top:hover .fm-page-btn-top {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    filter: brightness(1.08);
}

.btn-install:active .fm-page-btn-install,
.btn-register:active .fm-page-btn-register,
.btn-news:active .fm-page-btn-news,
.btn-top:active .fm-page-btn-top {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    filter: brightness(0.95);
}
/* ============================================================
   Chỉnh RIÊNG từng nút ở trang chủ - mỗi nút 1 class độc lập,
   chỉnh nút nào chỉ ảnh hưởng đúng nút đó, không đụng nút khác
   ============================================================ */

/* 1. Nút "Cài đặt ngay" */
.fm-caidat-sub-link {
    position: relative;
    top: -20px;      /* âm = lên, dương = xuống */
    left: 0px;      /* âm = trái, dương = phải */
}

/* 2. Nút "Đăng ký" */
.fm-btn-dangky-link {
    position: relative;
    top: -30px;
    left: 0px;
}

/* 3. Nút "Tin tức" */
.fm-btn-tintuc-link {
    position: relative;
    top: -30px;
    left: 0px;
}

/* 4. Khung "Đăng nhập nhanh" (2 ô nhập + nút Đăng Nhập) */
.fm-home-sidebar .fm-quick-login-wrap {
    position: relative;
    top: -92px;
    left: 15px;
    transform: scale(1.13);          /* 👉 số > 1 = to lên (ví dụ 1.2 = to thêm 20%), số < 1 = nhỏ lại (ví dụ 0.8) */
    transform-origin: center top; /* 👉 điểm neo khi phóng to/nhỏ - xem giải thích bên dưới */
}

/* 5. Nút "Top Cao Thủ" */
.fm-home-sidebar .fm-topcaothu {
    position: relative;
    top: -80px;
    left: 2px;
}

/* 6. Thanh nhạc nền */
.fm-music-player {
    position: relative;
    top: -75px;
    left: 3px;
}
/* ============================================================
   Nút Hỗ trợ (icon tai nghe) - đặt dưới thanh nhạc trang chủ
   ============================================================ */
.fm-btn-hotro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    margin-top: -50px;
    background: rgba(58, 36, 21, 0.35);
    border: 2px solid #d2691e;
    border-radius: 30px;
    color: #ff8c00 !important;
    font-weight: bold;
    font-size: 1.6rem;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    position: relative;
    top: -13px;
    left: 3px;
}

    .fm-btn-hotro:hover {
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
        filter: brightness(1.08);
        color: #ffb347 !important;
    }

    .fm-btn-hotro:active {
        transform: translateY(0) scale(0.96);
    }
    /* ============================================================
   Nút "Đăng ký tài khoản" - đồng bộ màu cam với nút "Kích hoạt" giftcode
   ============================================================ */
    .fm-btn-signup {
    background-color: #ff8c00 !important;
    border-color: #e67600 !important;
    color: #fff !important;
    }

    .fm-btn-signup:hover {
        background-color: #e67600 !important;
        border-color: #e67600 !important;
    }

    /* Popup CẢNH BÁO/LỖI: nền đỏ đậm, chữ đỏ sáng, có icon cảnh báo */
.ktc-popup-box-error {
    background: #3a1010;
    border: 2px solid #ff3b3b;
    border-radius: 8px;
    padding: 30px 28px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.ktc-popup-text-error {
    color: #ff5c5c;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 0 20px 0;
}

    .ktc-popup-text-error i {
        margin-right: 6px;
    }

.ktc-popup-close-error {
    background: #ff3b3b;
    color: #fff;
    border: none;
    padding: 8px 28px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .ktc-popup-close-error:hover {
        background: #cc2020;
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    }

    .ktc-popup-close-error:active {
        transform: translateY(0) scale(0.96);
    }

    .fm-btn-home {
    background-color: transparent;
    border: 2px solid #d2691e;
    color: #ff8c00 !important;
    font-weight: bold;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

    .fm-btn-home:hover {
        background-color: rgba(210, 105, 30, 0.25);
        color: #ffb347 !important;
        text-decoration: none !important;
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    }

    .fm-btn-home:active {
        transform: translateY(0) scale(0.96);
    }

    /* ============================================================
   5 nút hướng dẫn trên trang chủ - mỗi nút 1 class riêng,
   tự do chỉnh vị trí/kích cỡ độc lập cho desktop và mobile
   ============================================================ */
.fm-guide-links {
    position: absolute;
    right: 4%;
    top: 52%;
    width: 620px;
    height: 260px;
    z-index: 3;
}

.fm-guide-img {
    width: 100%;
    display: block;
}

.fm-guide-btn {
    position: absolute;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

    .fm-guide-btn:hover {
        transform: scale(1.06);
        filter: brightness(1.15);
    }

/* Vị trí + kích cỡ TỪNG nút - chỉnh top/left/width riêng từng cái */
.fm-guide-btn-suloi {
    top: 100px;
    left: 750px;
    width: 280px;
}

.fm-guide-btn-nangcapvukhi {
    top: 100px;
    left: 1000px;
    width: 280px;
}

.fm-guide-btn-phongan {
    top: 150px;
    left: 1100px;
    width: 280px;
}

.fm-guide-btn-quanao {
    top: 150px;
    left: 800px;
    width: 280px;
}

.fm-guide-btn-ngoaitrang {
    top: 200px;
    left: 850px;
    width: 280px;
}

/* Mobile - chỉnh riêng từng nút, không ảnh hưởng desktop */
@media (max-width: 767px) {
    .fm-guide-links {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .fm-guide-btn {
        position: static !important;
        width: 45% !important;
    }
}
/* ============================================================
   Font riêng cho tiêu đề bài viết (Tin tức chi tiết)
   ============================================================ */
.fm-article-title,
.fm-article-title .fm-wuxia-title {
    font-family: Tahoma, Geneva, sans-serif !important;
    font-weight: bold !important;
}

/* ============================================================
   Nút "Hướng Dẫn" - nằm ngay dưới nút "Hỗ trợ" trên trang chủ
   ============================================================ */
.fm-home-sidebar .fm-btn-hotro + .fm-btn-hotro {
    margin-top: 12px;
}