/**
 * Tan Vo Lam Theme - Sections & Blocks Stylesheet
 * File CSS chuyên biệt dùng để viết style cho các khối/section trên các trang
 *
 * @package tanvolam
 */

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.site {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* ==========================================================================
   1. COMMON SECTION UTILITIES & TYPOGRAPHY
   ========================================================================== */
.tvl-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.tvl-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Tiêu đề các khối/section (Chỉ áp dụng font Yeseva One cho tiêu đề section) */
.tvl-sec-heading,
.tvl-section-title {
    font-family: var(--tvl-font-title, 'Yeseva One', serif);
}

/* ==========================================================================
   DẢI BACKGROUND CHUNG CHO 2 KHỐI: TIN TỨC & BẢNG XẾP HẠNG
   Sử dụng ảnh toàn cảnh 2-sec-bg.jpg (1920 x 1840) trải dài xuyên suốt
   ========================================================================== */
.tvl-dual-sec-wrap {
    position: relative;
    width: 100%;
    background-color: #f1f2ec;
    background-image: url('../images/2-sec-bg.jpg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    overflow: hidden;
}

/* Dải gradient mờ khâu nối êm dịu ở chân wrapper sang khối Thập Đại Môn Phái */
.tvl-dual-sec-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: clamp(60px, 6vw, 120px);
    background: linear-gradient(to bottom, rgba(240, 242, 235, 0) 0%, #ecece7 100%);
    pointer-events: none;
    z-index: 4;
}

/* ==========================================================================
   2. KHỐI TIN TỨC & SỰ KIỆN (News & Events Section)
   ========================================================================== */
.tvl-news-section {
    position: relative;
    width: 100%;
    background: transparent !important;
    background-image: none !important;
    min-height: auto;
    padding-top: 173px;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 120px;
}

.tvl-news-section::after {
    display: none !important;
}

.tvl-news-container {
    width: 100%;
    max-width: 1260px;
    padding: 0 24px;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}
.tvl-leaderboard-container .tvl-sec-title-wrap {
    margin-bottom: 10px;
}
/* Tiêu đề có rồng watermark nền và 2 cánh trang trí đối xứng */
.tvl-sec-title-wrap {
    position: relative;
    text-align: center;
    margin-bottom: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tvl-sec-dragon-bg {
    position: absolute;
    top: -88px;
    left: 50%;
    transform: translateX(-50%);
    width: 265px;
    height: auto;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

.tvl-sec-dragon-bg img {
    width: 100%;
    height: auto;
    display: block;
}

.tvl-sec-title-row {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.tvl-title-decor {
    width: 165px;
    max-width: 22vw;
    height: auto;
    display: block;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.tvl-sec-heading {
    text-align: center;
    font-family: "Yeseva One", serif;
    font-size: clamp(38px, 2.7vw, 48px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    background: linear-gradient(180deg, #375A62 0%, #678086 78.38%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    margin: 0;
    padding: 0 4px;
    white-space: nowrap;
}

/* Khối nội dung 2 cột: Banner bên trái + Tin tức bên phải */
.tvl-news-grid {
    display: grid;
    grid-template-columns: 46% 54%;
    gap: 32px;
    align-items: center;
}

.tvl-news-banner-col {
    width: 100%;
}

.tvl-news-banner-card {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 4px;
    line-height: 0;
    text-decoration: none;
    /* box-shadow: 0 10px 28px rgba(35, 45, 55, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08); */
    transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.35s ease;
}

.tvl-news-banner-card:hover {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 16px 36px rgba(35, 45, 55, 0.24), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tvl-news-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
    transition: filter 0.35s ease;
}

.tvl-news-banner-card:hover .tvl-news-banner-img {
    filter: brightness(1.05);
}

.tvl-news-content-col {
    width: 100%;
    min-width: 0;
}

/* Header Tabs: Tin tức / Sự kiện / Hướng dẫn & Nút xem thêm (+) */
.tvl-news-tabs-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid rgba(84, 98, 136, 0.30);
    margin-bottom: 6px;
    padding-bottom: 0;
}

.tvl-news-tabs-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.tvl-tab-btn {
    background: transparent;
    border: none;
    padding: 6px 2px 10px;
    margin: 0;
    color: #334168;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
    position: relative;
    transition: opacity 0.25s ease, color 0.25s ease;
    user-select: none;
    opacity: 0.65;
}

.tvl-tab-btn:hover,
.tvl-tab-btn.is-active {
    opacity: 1;
    color: #334168;
}

.tvl-tab-btn.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #334168;
    border-radius: 2px 2px 0 0;
}

.tvl-news-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(84, 98, 136, 0.40);
    border-radius: 3px;
    color: #546288;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    box-sizing: border-box;
}

.tvl-news-more-btn:hover {
    border-color: #334168;
    color: #334168;
    background-color: rgba(51, 65, 104, 0.08);
    transform: scale(1.08);
}

/* Danh sách tin tức theo tab */
.tvl-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

.tvl-news-list.is-active {
    display: block;
    animation: tvlNewsFadeIn 0.3s ease-out;
}

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

.tvl-news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(84, 98, 136, 0.30);
    transition: background-color 0.2s ease;
}

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

.tvl-news-link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    flex: 1 0 0;
    overflow: hidden;
    color: #334168;
    text-overflow: ellipsis;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 19.5px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tvl-news-cat {
    color: inherit;
    font-weight: inherit;
    display: inline;
}

.tvl-news-sep {
    color: inherit;
    display: inline;
    margin: 0 4px;
}

.tvl-news-title {
    color: inherit;
    display: inline;
}

.tvl-news-date {
    color: var(--Text-01, #546288);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 19.5px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    flex-shrink: 0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.tvl-news-item:hover .tvl-news-link {
    color: #b3391b;
}

.tvl-news-item:hover .tvl-news-date {
    color: #334168;
}

/* Các phần tử độc quyền của giao diện mobile, ẩn trên desktop */
.tvl-news-mob-more-wrap,
.tvl-news-mob-divider,
.tvl-news-bamboo-decor {
    display: none;
}

/* ==========================================================================
   3. RESPONSIVE CHO KHỐI TIN TỨC TRÊN MOBILE & TABLET (Theo thiết kế Mobile 390px)
   Sử dụng 4 ảnh nền riêng cho 4 khối trên mobile: 1.png, 2.png, 3.png, 4.png
   ========================================================================== */
@media screen and (max-width: 860px) {
    .tvl-dual-sec-wrap {
        background: transparent !important;
        background-image: none !important;
        overflow: visible;
    }

    .tvl-dual-sec-wrap::after,
    .s8-sects-section::before,
    .s8-sects-section::after {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .tvl-news-section {
        min-height: auto;
        padding: 60px 15px 30px 15px;
        background-color: #f1f2ec !important;
        background-image: url('../images/1.png') !important;
        background-repeat: no-repeat !important;
        background-position: center top !important;
        background-size: 100% 100% !important;
        display: block;
        position: relative;
        z-index: 20;
        overflow: visible;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        scroll-margin-top: 60px;
    }

    .tvl-news-section::after {
        display: none;
    }

    .tvl-news-container {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 0;
        position: relative;
        z-index: 5;
        box-sizing: border-box;
    }

    /* Tiêu đề TIN TỨC & SỰ KIỆN */
    .tvl-sec-title-wrap {
        position: relative;
        text-align: center;
        padding-top: 38px;
        margin-bottom: 46px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .tvl-sec-dragon-bg {
        width: 108px;
        top: 0;
        opacity: 0.9;
    }

    .tvl-sec-title-row {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 2px;
    }

    .tvl-title-decor {
        width: 70px;
        max-width: 19vw;
        height: auto;
        flex-shrink: 1;
    }

    .tvl-sec-heading {
        font-size: 22px;
        letter-spacing: 0.2px;
        padding: 0 2px;
    }

    /* Ẩn hoàn toàn cột Banner trên mobile theo đúng thiết kế */
    .tvl-news-grid {
        display: block;
        width: 100%;
    }

    .tvl-news-banner-col {
        display: none !important;
    }

    .tvl-news-content-col {
        width: 100%;
        display: block;
    }

    /* Thanh Tabs Bar: Tin tức, Sự kiện, Hướng dẫn */
    .tvl-news-tabs-bar {
        border-bottom: 1px solid rgba(84, 98, 136, 0.35);
        margin-bottom: 6px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        width: 100%;
    }

    .tvl-news-tabs-nav {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .tvl-tab-btn {
        flex: 1;
        text-align: center;
        font-size: 18px;
        font-weight: 500;
        padding: 6px 2px 10px;
        color: #334168;
        opacity: 0.85;
        white-space: nowrap;
    }

    .tvl-tab-btn.is-active {
        color: #263354;
        font-weight: 700;
        opacity: 1;
    }

    .tvl-tab-btn.is-active::after {
        height: 3.5px;
        background-color: #263354;
        border-radius: 0;
        bottom: -1.5px;
        left: 6px;
        right: 6px;
    }

    /* Ẩn nút dấu cộng (+) ở đầu tab trên mobile */
    .tvl-news-tabs-bar .tvl-news-more-btn {
        display: none !important;
    }

    /* Danh sách bài viết */
    .tvl-news-list {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    /* Ẩn danh mục và gạch đứng trên mobile theo đúng thiết kế */
    .tvl-news-cat,
    .tvl-news-sep {
        display: none !important;
    }

    .tvl-news-item {
        padding: 13px 0;
        border-bottom: 1px solid rgba(84, 98, 136, 0.28);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

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

    .tvl-news-link {
        font-size: 15px;
        color: #334168;
        font-weight: 400;
        line-height: 1.4;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-decoration: none;
        display: block;
    }

    .tvl-news-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
    }

    .tvl-news-date {
        font-size: 15px;
        color: #546288;
        font-weight: 400;
        flex: 0 0 auto;
        white-space: nowrap;
        margin-left: 8px;
    }

    /* Nút "Xem thêm >" căn giữa (119x40px, nền #9e9078) */
    .tvl-news-mob-more-wrap {
        display: flex;
        justify-content: center;
        margin-top: 18px;
        margin-bottom: 26px;
    }

    .tvl-news-mob-more-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 119px;
        height: 40px;
        background-color: #9e9078;
        color: #ffffff;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 500;
        padding: 0;
        border-radius: 2px;
        text-decoration: none;
        box-shadow: none;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .tvl-news-mob-more-btn:hover {
        background-color: #8b7d65;
        color: #ffffff;
        transform: translateY(-1px);
    }

    .tvl-more-chevron {
        display: block;
        stroke: #ffffff;
        margin-left: 0;
    }

    /* Đường kẻ hoa văn vàng chia cách đáy khối */
    .tvl-news-mob-divider {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0;
        line-height: 0;
    }

    .tvl-mob-divider-img {
        width: 245px;
        max-width: 68%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    /* Họa tiết lá trúc bên phải (la1.png: 176x376 -> hiển thị 88x188px) */
    .tvl-news-bamboo-decor {
        display: block;
        position: absolute;
        right: 0;
        bottom: -24px;
        width: 88px;
        height: auto;
        pointer-events: none;
        z-index: 6;
        opacity: 1;
        line-height: 0;
    }

    .tvl-news-bamboo-decor img {
        width: 100%;
        height: auto;
        display: block;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .tvl-news-section {
        padding: 80px 24px;
    }
    .tvl-news-grid {
        grid-template-columns: 45% 55%;
        gap: 24px;
    }
}

/* ==========================================================================
   4. GIGANTIC FOOTER STYLES (Chân trang dùng font Inter chuẩn thiết kế)
   ========================================================================== */
.tvl-footer,
.tvl-footer * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.tvl-footer {
    position: relative;
    width: 100%;
    background-color: #000000;
    color: var(--Grays-White, #FFF);
    padding: 38px 24px;
    box-sizing: border-box;
    z-index: 10;
}

.tvl-footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    box-sizing: border-box;
}

/* Logo Gigantic bên trái */
.tvl-footer-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tvl-footer-logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.tvl-footer-logo-link:hover {
    opacity: 0.85;
}

.tvl-footer-logo {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Khối thông tin bên phải */
.tvl-footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.tvl-footer-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tvl-footer-title {
    color: var(--Grays-White, #FFF);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 26px; /* 144.444% */
    margin: 0 0 2px 0;
}

.tvl-footer-line {
    color: var(--Grays-White, #FFF);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 26px; /* 144.444% */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tvl-footer-line a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.tvl-footer-line a:hover {
    color: #ffffff;
    opacity: 0.85;
    text-decoration: underline;
}

.tvl-f-sep {
    color: var(--Grays-White, #FFF);
    opacity: 0.6;
    margin: 0 4px;
    user-select: none;
    font-weight: 300;
}

/* Responsive cho Footer */
@media screen and (max-width: 900px) {
    .tvl-footer-title {
        font-size: 16px;
        line-height: 24px;
    }
    .tvl-footer-line {
        font-size: 15px;
        line-height: 23px;
    }
}

@media screen and (max-width: 768px) {
    .tvl-footer {
        padding: 30px 16px;
    }
    .tvl-footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .tvl-footer-logo {
        width: 130px;
    }
    .tvl-footer-title {
        font-size: 15px;
        line-height: 22px;
    }
    .tvl-footer-line {
        font-size: 14px;
        line-height: 22px;
        gap: 6px;
    }
}

@media screen and (max-width: 480px) {
    .tvl-footer-title {
        font-size: 14px;
        line-height: 20px;
    }
    .tvl-footer-line {
        font-size: 13px;
        line-height: 20px;
    }
}

/* ==========================================================================
   5. KHỐI BẢNG XẾP HẠNG (Leaderboard Section)
   ========================================================================== */
.tvl-leaderboard-section {
    position: relative;
    width: 100%;
    background: transparent !important;
    background-image: none !important;
    min-height: auto;
    padding-top: 173px;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 120px;
}

.tvl-leaderboard-section::after {
    display: none !important;
}

.tvl-leaderboard-container {
    width: 100%;
    max-width: 1280px;
    padding: 0 24px;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* Laptop Wrapper */
.tvl-lb-laptop-wrap {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

/* Screen Box: thiết lập aspect-ratio chuẩn theo ảnh maytinh.png (1671 x 1004) */
.tvl-lb-screen-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1671 / 1004;
}

.tvl-lb-laptop-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    pointer-events: none;
    z-index: 1;
}

/* Thanh Tabs & Server Selector nằm ngay trên mép viền trên màn hình máy tính */
.tvl-lb-tabs-bar {
    position: absolute;
    top: 2.7%;
    left: 8.2%;
    right: 8.2%;
    height: 5.6%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 5;
}

.tvl-lb-tabs-nav {
    display: inline-flex;
    align-items: flex-end;
    gap: clamp(4px, 0.6vw, 8px);
    height: 100%;
}

.tvl-lb-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    aspect-ratio: 844 / 176;
    padding: 0 10px;
    border: none;
    background: url('../images/btn-bg-defaul.png') no-repeat center center / 100% 100%;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease, filter 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

.tvl-lb-tab:hover {
    transform: translateY(-2px);
    filter: brightness(1.08) drop-shadow(0 2px 8px rgba(255, 215, 100, 0.4));
}

.tvl-lb-tab.is-active {
    background-image: url('../images/btn-bg-active.png');
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.tvl-lb-tab-text {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.05vw, 15px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
    white-space: nowrap;
    background: linear-gradient(180deg, #FFFDF7 0%, #EBC890 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.tvl-lb-tab.is-active .tvl-lb-tab-text {
    background: linear-gradient(180deg, #FFFFFF 0%, #FDEAC4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(60, 35, 5, 0.45));
}

/* Nút Chọn Server */
.tvl-lb-server-selector {
    position: relative;
    height: 100%;
    display: inline-flex;
    align-items: flex-end;
}

.tvl-lb-server-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    aspect-ratio: 844 / 176;
    padding: 0 clamp(8px, 0.9vw, 13px) 0 clamp(12px, 1.3vw, 18px);
    border: none;
    background: url('../images/btn-bg-defaul.png') no-repeat center center / 100% 100%;
    cursor: pointer;
    line-height: 1;
    box-shadow: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    user-select: none;
    box-sizing: border-box;
    overflow: hidden;
}

.tvl-lb-server-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08) drop-shadow(0 2px 8px rgba(68, 128, 142, 0.4));
}

.tvl-lb-server-btn-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.02vw, 14.5px);
    font-weight: 500;
    color: #f1f6f8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 4px;
    pointer-events: none;
}

.tvl-lb-server-arrow-circle {
    width: clamp(20px, 1.8vw, 26px);
    height: clamp(20px, 1.8vw, 26px);
    border-radius: 50%;
    background-color: #2c555e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    pointer-events: none;
}

.tvl-lb-server-btn[aria-expanded="true"] .tvl-lb-server-arrow-circle {
    transform: rotate(180deg);
}

.tvl-lb-server-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 220px;
    width: max-content;
    max-width: 300px;
    background: #ffffff;
    border: 1px solid #7bc1cf;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 30;
    overflow: hidden;
    padding: 4px 0;
    animation: tvlServerFadeIn 0.2s ease;
}

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

.tvl-lb-server-option {
    display: block;
    width: 100%;
    padding: 9px 16px;
    text-align: left;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #334168;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tvl-lb-server-option:hover,
.tvl-lb-server-option.is-selected {
    background-color: #f0f6f8;
    color: #2f6571;
    font-weight: 600;
}

/* Vùng hiển thị bảng nội dung khớp trong màn hình máy tính */
.tvl-lb-table-viewport {
    position: absolute;
    top: 7.8%;
    left: 4.85%;
    right: 5.45%;
    bottom: 3.4%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.tvl-lb-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
}

.tvl-lb-table-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.tvl-lb-mob-filters,
.tvl-lb-mob-divider {
    display: none;
}

/* Tiêu đề cột */
.tvl-lb-thead {
    height: 9.8%;
    min-height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    border-bottom: none;
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.25vw, 15px);
    font-weight: 700;
    color: #334168;
    user-select: none;
    padding: 0 3.2%;
    box-sizing: border-box;
}

.tvl-lb-th,
.tvl-lb-td {
    box-sizing: border-box;
}

.tvl-lb-col-rank {
    width: 14%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tvl-lb-col-name {
    width: 34%;
    text-align: left;
    padding-left: clamp(10px, 2vw, 24px);
    padding-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tvl-lb-col-extra {
    width: 26%;
    text-align: left;
    padding-left: 8px;
    padding-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tvl-lb-col-score {
    width: 26%;
    text-align: left;
    padding-left: 8px;
    padding-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Panels */
.tvl-lb-panels {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tvl-lb-panel {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 4px 3.2% 10px 3.2%;
    box-sizing: border-box;
}

.tvl-lb-panel.is-active {
    display: flex;
}

/* Hàng trong bảng: Co giãn tự động theo chiều cao màn hình máy tính */
.tvl-lb-row {
    flex: 1 1 0;
    height: auto;
    min-height: 38px;
    max-height: 48px;
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(84, 98, 136, 0.12);
    font-family: 'Inter', sans-serif;
    font-size: clamp(11px, 1.05vw, 14.5px);
    color: #4e5d79;
    font-weight: 500;
    transition: background-color 0.18s ease;
    box-sizing: border-box;
}

.tvl-lb-row:last-child {
    border-bottom: none;
}

.tvl-lb-row:hover {
    background-color: rgba(67, 82, 120, 0.05);
}

/* Highlight màu và chiều cao nổi bật cho Top 1, 2, 3 chuẩn mockup */
.tvl-lb-row.is-top-3 {
    flex: 1.2 1 0;
    height: auto;
    min-height: 44px;
    max-height: 56px;
    font-size: clamp(12px, 1.2vw, 16px);
}

.tvl-lb-row-1,
.tvl-lb-row-2,
.tvl-lb-row-3,
.tvl-lb-row.is-top-3 {
    background: linear-gradient(90deg, rgba(254, 243, 219, 0.85) 0%, rgba(255, 250, 240, 0.45) 100%);
}

.tvl-lb-row.is-top-3 .tvl-lb-name-text,
.tvl-lb-row.is-top-3 .tvl-lb-extra-text,
.tvl-lb-row.is-top-3 .tvl-lb-score-text {
    color: #9e6819;
    font-weight: 700;
}

/* Huy hiệu hạng (ảnh 1.png -> 10.png) */
.tvl-lb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.tvl-lb-rank-img {
    display: block;
    width: clamp(24px, 2.2vw, 30px);
    height: clamp(24px, 2.2vw, 30px);
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
    transition: transform 0.22s ease, filter 0.22s ease;
    user-select: none;
    pointer-events: none;
}

/* Top 1, 2, 3 lớn hơn và nổi bật hơn */
.tvl-lb-badge-1 .tvl-lb-rank-img,
.tvl-lb-badge-2 .tvl-lb-rank-img,
.tvl-lb-badge-3 .tvl-lb-rank-img {
    width: clamp(28px, 2.6vw, 36px);
    height: clamp(28px, 2.6vw, 36px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
}

.tvl-lb-row:hover .tvl-lb-rank-img {
    transform: scale(1.12);
}

.tvl-lb-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(18px, 2vw, 26px);
    height: clamp(18px, 2vw, 26px);
    border-radius: 50%;
    background: #e6edf2;
    color: #4a5c78;
    font-size: clamp(10px, 1.1vw, 13px);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border: 1px solid #c8d9e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Phân trang (1 2 3 ... 10 >>) định vị tuyệt đối ở dải đáy laptop */
.tvl-lb-pagination {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 0.45vw, 6px);
    user-select: none;
    box-sizing: border-box;
    margin: 0;
    z-index: 10;
}

.tvl-lb-page {
    width: clamp(18px, 2.1vw, 25px);
    height: clamp(18px, 2.1vw, 25px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(84, 98, 136, 0.22);
    border: none;
    border-radius: 2px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: clamp(9.5px, 1.05vw, 13px);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: all 0.18s ease;
}

.tvl-lb-page:hover {
    background-color: #3b5266;
    color: #ffffff;
    transform: translateY(-1px);
}

.tvl-lb-page.is-active {
    background-color: #4c5b7f;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(35, 45, 65, 0.25);
}

.tvl-lb-page.tvl-lb-prev,
.tvl-lb-page.tvl-lb-next {
    background: transparent;
    color: #4c5b7f;
    font-size: clamp(13px, 1.4vw, 17px);
    font-weight: 700;
    width: auto;
    padding: 0 4px;
}
.tvl-lb-page.tvl-lb-prev:hover {
    background: transparent;
    color: #233454;
    transform: translateX(-2px);
}
.tvl-lb-page.tvl-lb-next:hover {
    background: transparent;
    color: #233454;
    transform: translateX(2px);
}

/* Chiếc quạt (quat.png) đè lên góc dưới phải laptop */
.tvl-lb-fan-decor {
    position: absolute;
    right: -21.5%;
    bottom: -29.8%;
    width: 42.1%;
    max-width: none;
    z-index: 10;
    pointer-events: none;
}

.tvl-lb-fan-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.tvl-lb-laptop-wrap:hover .tvl-lb-fan-img {
    transform: rotate(-1.5deg) scale(1.02);
}

/* Responsive cho khối Bảng Xếp Hạng (Mobile Layout chuẩn thiết kế 390x808 - Nền 2.png) */
@media screen and (max-width: 860px) {
    .tvl-leaderboard-section {
        min-height: auto;
        height: auto;
        padding: 30px 15px 30px;
        scroll-margin-top: 60px;
        background-color: #fcf7f5 !important;
        background-image: url('../images/2.png') !important;
        background-repeat: no-repeat !important;
        background-position: center top !important;
        background-size: 100% 100% !important;
        position: relative;
        z-index: 15;
        box-sizing: border-box;
        overflow: hidden;
    }

    .tvl-leaderboard-section::after {
        display: none;
    }

    .tvl-leaderboard-container {
        max-width: 440px;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    /* Tiêu đề & Rồng nền đồng bộ với khối Tin Tức */
    .tvl-leaderboard-container .tvl-sec-title-wrap {
        position: relative;
        padding-top: 38px;
        margin-bottom: 34px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .tvl-leaderboard-section .tvl-sec-dragon-bg {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 108px;
        opacity: 0.9;
        pointer-events: none;
    }

    .tvl-leaderboard-section .tvl-sec-title-row {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 2px;
        z-index: 2;
    }

    .tvl-leaderboard-section .tvl-title-decor {
        width: 70px;
        max-width: 19vw;
        height: auto;
        flex-shrink: 1;
    }

    .tvl-leaderboard-section .tvl-sec-heading {
        font-size: 22px;
        letter-spacing: 0.2px;
        padding: 0 2px;
    }

    /* Thanh bộ lọc 2 nút: Chọn server & Chọn TOP */
    .tvl-lb-mob-filters {
        display: flex !important;
        justify-content: center;
        gap: 6px;
        width: 100%;
        max-width: 316px;
        margin: 0 auto 18px auto;
        position: relative;
        z-index: 30;
        box-sizing: border-box;
    }

    .tvl-lb-mob-select-wrap {
        flex: 1 1 0%;
        min-width: 0;
        max-width: calc(50% - 3px);
        position: relative;
    }

    .tvl-lb-mob-filter-btn {
        width: 100%;
        min-width: 0;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px 0 12px;
        background: url('../images/btn-bg-defaul.png') no-repeat center center / 100% 100%;
        border: none;
        border-radius: 4px;
        box-shadow: none;
        filter: drop-shadow(0 2px 6px rgba(18, 48, 56, 0.18));
        cursor: pointer;
        box-sizing: border-box;
        overflow: hidden;
        transition: all 0.2s ease;
    }

    .tvl-lb-mob-filter-btn:active {
        transform: scale(0.98);
    }

    .tvl-lb-mob-btn-text {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.1px;
    }

    .tvl-lb-mob-arrow-circle {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: #1a444c;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        flex-shrink: 0;
        margin-left: 6px;
        transition: transform 0.25s ease;
    }

    .tvl-lb-mob-filter-btn[aria-expanded="true"] .tvl-lb-mob-arrow-circle {
        transform: rotate(180deg);
    }

    .tvl-lb-mob-dropdown-menu {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        min-width: 100%;
        width: max-content;
        max-width: 260px;
        background: #ffffff;
        border: 1px solid #7bc1cf;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        z-index: 50;
        overflow: hidden;
        padding: 6px 0;
        max-height: 280px;
        overflow-y: auto;
        animation: tvlServerFadeIn 0.2s ease;
    }

    .tvl-lb-mob-top-wrap .tvl-lb-mob-dropdown-menu {
        left: auto;
        right: 0;
    }

    .tvl-lb-mob-option {
        display: block;
        width: 100%;
        padding: 10px 18px;
        text-align: left;
        background: transparent;
        border: none;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: #334168;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .tvl-lb-mob-option:hover,
    .tvl-lb-mob-option.is-selected {
        background-color: #f0f6f8;
        color: #2f6571;
        font-weight: 600;
    }

    /* Ẩn hoàn toàn khung laptop, quạt decor và thanh tabs ngang trên mobile */
    .tvl-lb-laptop-bg,
    .tvl-lb-fan-decor,
    .tvl-lb-tabs-bar {
        display: none !important;
    }

    /* Ẩn các trang từ 7-10 trên mobile khi mới tải */
    .tvl-lb-desktop-page {
        display: none !important;
    }

    /* Reset các khối bao bọc */
    .tvl-lb-laptop-wrap {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .tvl-lb-screen-box {
        width: 100%;
        aspect-ratio: auto;
        position: static;
        display: block;
    }

    .tvl-lb-table-viewport {
        position: static;
        inset: auto;
        width: 100%;
        height: auto;
        display: block;
        overflow: visible;
        padding: 0;
    }

    /* Card trắng mờ viền bo tròn đổ bóng chuẩn thiết kế + hỗ trợ cuộn ngang khi nội dung dài */
    .tvl-lb-card {
        width: 100%;
        height: auto;
        max-height: none;
        flex: none;
        display: block;
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        padding: 10px 10px 6px 10px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    /* Bảng tự động co giãn theo nội dung dài nhất để cuộn ngang không mất chữ */
    .tvl-lb-table-inner {
        display: table;
        min-width: 100%;
        width: max-content;
        height: auto;
        border-collapse: collapse;
    }

    /* Tiêu đề cột */
    .tvl-lb-thead {
        display: table-row;
        height: 44px;
        background-color: #eef1f6;
        padding: 0;
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: #485973;
        border-bottom: none;
        box-sizing: border-box;
    }

    .tvl-lb-thead .tvl-lb-th {
        display: table-cell;
        vertical-align: middle;
        white-space: nowrap;
        padding: 0 10px;
    }

    .tvl-lb-thead .tvl-lb-col-rank {
        width: 52px;
        text-align: center;
        padding: 0 6px;
    }

    .tvl-lb-thead .tvl-lb-col-name {
        text-align: left;
        padding: 0 10px;
    }

    .tvl-lb-thead .tvl-lb-col-extra {
        text-align: left;
        padding: 0 10px;
    }

    .tvl-lb-thead .tvl-lb-col-score {
        text-align: left;
        padding: 0 10px;
    }

    /* Danh sách bảng */
    .tvl-lb-panels {
        display: contents;
        position: static;
        width: auto;
        height: auto;
    }

    .tvl-lb-panel {
        position: static;
        inset: auto;
        width: auto;
        height: auto;
        padding: 0;
        display: none !important;
    }

    .tvl-lb-panel.is-active {
        display: table-row-group !important;
    }

    /* Hàng dữ liệu: dòng 4-10 cao 40px không viền, top 1-3 cao 50px nền vàng có viền mảnh */
    .tvl-lb-row {
        display: table-row;
        height: 40px;
        padding: 0;
        border-bottom: none;
        box-sizing: border-box;
    }

    .tvl-lb-row.is-top-3 {
        height: 50px;
    }

    .tvl-lb-row .tvl-lb-td {
        display: table-cell;
        vertical-align: middle;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        padding: 0 10px;
    }

    .tvl-lb-row .tvl-lb-col-rank {
        width: 52px;
        text-align: center;
        padding: 0 6px;
    }

    .tvl-lb-row .tvl-lb-col-name {
        text-align: left;
        padding: 0 10px;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .tvl-lb-row .tvl-lb-col-extra {
        text-align: left;
        padding: 0 10px;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .tvl-lb-row .tvl-lb-col-score {
        text-align: left;
        padding: 0 10px;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .tvl-lb-name-text,
    .tvl-lb-extra-text {
        font-family: 'Inter', sans-serif;
        font-size: 13.5px;
        font-weight: 500;
        color: #485973;
        white-space: nowrap;
    }

    .tvl-lb-score-text {
        font-family: 'Inter', sans-serif;
        font-size: 13.5px;
        font-weight: 500;
        color: #485973;
        white-space: nowrap;
    }

    /* Highlight màu sắc cho Top 1, 2, 3 chuẩn thiết kế */
    .tvl-lb-row-1,
    .tvl-lb-row-2,
    .tvl-lb-row-3,
    .tvl-lb-row.is-top-3 {
        background: linear-gradient(90deg, rgba(246, 234, 207, 0.88) 0%, rgba(251, 245, 232, 0.58) 100%);
    }

    .tvl-lb-row.is-top-3 .tvl-lb-td {
        border-bottom: 1px solid rgba(220, 206, 178, 0.65);
    }

    .tvl-lb-row.is-top-3 .tvl-lb-name-text,
    .tvl-lb-row.is-top-3 .tvl-lb-extra-text,
    .tvl-lb-row.is-top-3 .tvl-lb-score-text {
        color: #b17b24;
        font-weight: 700;
        font-size: 14px;
    }

    /* Kích thước huy hiệu */
    .tvl-lb-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .tvl-lb-rank-img {
        width: 28px;
        height: 28px;
    }

    .tvl-lb-badge-1 .tvl-lb-rank-img,
    .tvl-lb-badge-2 .tvl-lb-rank-img,
    .tvl-lb-badge-3 .tvl-lb-rank-img {
        width: 36px;
        height: 36px;
    }

    /* Phân trang (1 2 3 4 5 6 >>) nằm ngoài card */
    .tvl-lb-pagination {
        position: static;
        height: auto;
        margin-top: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .tvl-lb-page {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: #c5ced6;
        border: none;
        border-radius: 2px;
        color: #ffffff;
        font-family: 'Inter', sans-serif;
        font-size: 13.5px;
        font-weight: 600;
        box-shadow: none;
        cursor: pointer;
        padding: 0;
    }

    .tvl-lb-page.is-active {
        background-color: #445675;
        color: #ffffff;
        font-weight: 700;
    }

    .tvl-lb-page.tvl-lb-next,
    .tvl-lb-page.tvl-lb-prev {
        background: transparent;
        color: #445675;
        font-size: 20px;
        font-weight: 700;
        width: 28px;
        height: 32px;
    }

    /* Hoa văn divider cuối section */
    .tvl-lb-mob-divider {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-top: 22px;
        margin-bottom: 0;
        width: 100%;
        line-height: 0;
    }

    .tvl-lb-divider-img {
        display: block;
        width: 245px;
        max-width: 68%;
        height: auto;
        object-fit: contain;
    }
}

/* ==========================================================================
   4. KHỐI THẬP ĐẠI MÔN PHÁI (10 SECTS SECTION)
   ========================================================================== */
.s8-sects-section {
    position: relative;
    width: 100%;
    background-color: #140405;
    overflow: hidden;
    z-index: 18;
    scroll-margin-top: 75px;
}

/* Ẩn các phần tử mobile trên màn hình máy tính */
.s8-mob-bamboo-bg,
.s8-mob-play-btn,
.s8-mob-nav-bar,
.s8-mob-info-wrap,
.s8-mob-divider {
    display: none;
}

/* 1. Header Banner */
.s8-sects-header {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    background-color: #ecece7;
    /* height: 275px; */
}

.s8-sects-header-bg {
    width: 100%;
    height: 275px;
    object-fit: cover;
    object-position: center top;
    display: block;
    user-select: none;
    pointer-events: none;
}

.s8-sects-header-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    padding: 0 16px;
}

.s8-sects-title {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s8-sects-title-img {
    width: clamp(260px, 36vw, 540px);
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.s8-sects-title-wrap {
    margin-bottom: 0;
}

/* 2. Main Stage */
.s8-sects-stage {
    position: relative;
    width: 100%;
    height: clamp(610px, 38.5vw, 680px);
    overflow: visible;
    background-color: #181315;
    z-index: 5;
}

/* Lớp nền ảnh núi non + chân dung góc phải */
.s8-sects-bg-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.s8-sects-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

/* Lớp nền mũi tên giấy xé bên trái (bg_trai.png: chuẩn thiết kế 1258x654) */
.s8-sects-left-polygon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: clamp(520px, 65.52vw, 1258px);
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.s8-sects-polygon-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: left center;
    display: block;
}

/* Lớp nhân vật đứng ở trung tâm (nv.png) - Vượt nhẹ lên mép trên ~32px */
.s8-sects-hero-wrap {
    position: absolute;
    bottom: 52px;
    left: 53.5%;
    transform: translateX(-37%);
    width: clamp(360px, 28.5vw, 515px);
    height: calc(100% - 52px + 32px);
    z-index: 6;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.s8-sects-hero-img {
    height: 100%;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.65));
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

/* Container nội dung thông tin môn phái */
.s8-sects-container {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    height: 100%;
    padding: clamp(14px, 1vw, 22px) clamp(24px, 2.8vw, 48px) 68px;
    z-index: 7;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
}

.s8-sect-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: clamp(395px, 28vw, 460px);
    width: 100%;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.35s ease;
    will-change: transform, opacity;
}

/* Video Preview Card - Co giãn theo tỷ lệ 440/235 (chuẩn 440x235 trên màn 1920px) */
.s8-sect-video-card {
    position: relative;
    width: clamp(390px, 26vw, 460px);
    max-width: 100%;
    aspect-ratio: 440 / 235;
    height: auto;
    border: 2px solid rgba(225, 218, 205, 0.95);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    background-color: #1a120e;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    outline: none;
    margin-bottom: clamp(3px, 0.35vw, 6px);
}

.s8-sect-video-card:hover,
.s8-sect-video-card:focus-visible {
    transform: translateY(-2px) scale(1.02);
    border-color: #dfb26b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.s8-sect-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    object-fit: contain;
}

.s8-sect-video-card:hover .s8-sect-video-thumb {
    transform: scale(1.06);
}

.s8-sect-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(30px, 2.3vw, 44px);
    height: clamp(30px, 2.3vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.s8-play-ripple {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: s8PlayPulse 2.4s ease-out infinite;
}

.s8-play-icon {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    transition: transform 0.25s ease;
}

.s8-sect-video-card:hover .s8-play-icon {
    transform: scale(1.12);
}

@keyframes s8PlayPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}

/* Sect Heading */
.s8-sect-name {
    color: var(--Text-01, #546288);
    font-family: "Yeseva One", serif;
    font-size: clamp(38px, 2.8vw, 52px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    margin: 8px 0 10px 0;
    text-shadow: none;
}

/* Attributes Blocks */
.s8-sect-block {
    margin-bottom: 12px;
    max-width: clamp(390px, 25vw, 445px);
}

/* Badge hình ảnh Ngũ hành & Hướng phát triển */
.s8-sect-badge-wrap {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    margin-bottom: 6px;
    user-select: none;
}

.s8-sect-badge-img {
    display: block;
    height: clamp(33px, 2.4vw, 39px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.16));
}

.s8-sect-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.s8-sword-icon {
    width: 16px;
    height: 32px;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.s8-ribbon-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 25px;
    padding: 0 28px 0 12px;
    background: linear-gradient(90deg, #745f40 0%, #8f7d5c 55%, rgba(158, 145, 118, 0.55) 80%, rgba(200, 195, 180, 0) 100%);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 30%, calc(100% - 10px) 85%, calc(100% - 22px) 100%, 0 100%);
}

.s8-ribbon-title {
    font-family: var(--tvl-font-title, 'Yeseva One', serif);
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.s8-sect-desc {
    margin: 0;
    padding-left: 16px;
    max-width: 100%;
    box-sizing: border-box;
    color: var(--Text-01, #546288);
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 1.1vw, 17px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.48;
}

.s8-sect-builds-list {
    padding-left: 16px;
    max-width: 100%;
    box-sizing: border-box;
}
.s8-mob-build-item {
    margin-bottom: 8px;
    margin-top: 0;
    font-size: 14px;
    color: var(--Text-01, #546288);
}
.s8-mob-build-item strong {
    font-size: 16px;
    font-weight: bold;
}
.s8-mob-build-item span{
    color: var(--Text-01, #546288);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}

.s8-sect-build-item {
    margin: 4px 0;
    color: var(--Text-01, #546288);
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 1.1vw, 17px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.48;
}

.s8-sect-build-item strong {
    color: var(--Text-01, #546288);
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 1.1vw, 17px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.48;
}

.s8-sect-build-item span {
    color: var(--Text-01, #546288);
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 1.1vw, 17px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.48;
}

/* 3. Bottom Tabs Bar */
.s8-sects-tabs-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: rgba(33, 44, 52, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(110, 145, 165, 0.35);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

.s8-sects-tabs-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 0.8vw, 12px);
    width: 100%;
    max-width: 1440px;
    padding: 6px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.s8-sects-tabs-track::-webkit-scrollbar {
    display: none;
}

.s8-sect-tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(82px, 7.6vw, 118px);
    height: 36px;
    padding: 0 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9bb3c2;
    font-family: inherit;
    font-size: clamp(11.5px, 0.9vw, 13.5px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    outline: none;
    transition: color 0.25s ease;
    user-select: none;
}

.s8-tab-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.s8-tab-frame path {
    fill: rgba(28, 40, 50, 0.75);
    stroke: #4f6d7f;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    transition: fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
}

.s8-tab-text {
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease;
}

.s8-sect-tab-btn:hover {
    color: #ffffff;
}

.s8-sect-tab-btn:hover .s8-tab-frame path {
    fill: rgba(38, 56, 70, 0.95);
    stroke: #7bb5cc;
}

.s8-sect-tab-btn.is-active {
    color: #ffffff;
    font-weight: 700;
}

.s8-sect-tab-btn.is-active .s8-tab-frame path {
    fill: #3b8896;
    stroke: #6fe5f8;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px rgba(111, 229, 248, 0.65));
}

.s8-sect-tab-btn:focus-visible {
    outline: 2px solid #6fe5f8;
    outline-offset: 2px;
}

/* Screen-reader utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   HIỆU ỨNG CHUYỂN MÔN PHÁI (Smooth Cross-fade Transition)
   ========================================================================== */

.s8-sects-stage.s8-is-transitioning .s8-sects-bg-img {
    opacity: 0.25;
    transform: scale(1.02);
}

.s8-sects-stage.s8-is-transitioning .s8-sects-hero-img {
    opacity: 0.2;
    transform: scale(0.97) translateX(12px);
}

.s8-sects-stage.s8-is-transitioning .s8-sect-info-panel {
    opacity: 0.2;
    transform: translateX(-10px);
}

/* 4. Video Popup Modal */
.s8-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.s8-video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.s8-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.s8-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: #0b0707;
    border: 1px solid rgba(223, 178, 107, 0.4);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
    z-index: 2;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.s8-video-modal.is-open .s8-video-modal-content {
    transform: scale(1);
}

.s8-video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 15, 18, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    line-height: 0;
    cursor: pointer;
    border-radius: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.s8-video-modal-close svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.s8-video-modal-close:hover {
    background: #b82c14;
    border-color: rgba(255, 220, 160, 0.75);
    transform: rotate(90deg) scale(1.08);
}

.s8-video-modal-player-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
}

.s8-video-modal-player-wrap video,
.s8-video-modal-player-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.s8-video-modal-player-wrap video {
    object-fit: cover;
}

/* Responsive Thập Đại Môn Phái */
@media screen and (max-width: 1024px) {
    .s8-sects-stage {
        height: clamp(580px, 56vw, 650px);
    }
    .s8-sects-container {
        padding: 20px 24px 64px;
    }
    .s8-sect-info-panel {
        max-width: 350px;
    }
    .s8-sect-block {
        max-width: 340px;
        margin-bottom: 10px;
    }
    .s8-sect-video-card {
        width: 320px;
        height: auto;
        aspect-ratio: 440 / 235;
        margin-bottom: 4px;
    }
    .s8-sect-name {
        font-size: 32px;
        margin: 6px 0 8px;
    }
    .s8-sect-desc,
    .s8-sect-build-item,
    .s8-sect-build-item strong,
    .s8-sect-build-item span {
        font-size: 14px;
        line-height: 1.45;
    }
    .s8-sects-hero-wrap {
        left: 55%;
        transform: translateX(-35%);
        width: clamp(260px, 28vw, 340px);
        bottom: 52px;
        height: calc(100% - 52px);
    }
    .s8-sects-left-polygon {
        width: 58%;
        max-width: 620px;
    }
    .s8-sects-bg-img {
        object-position: 85% center;
        opacity: 0.85;
    }
    .s8-sects-tabs-track {
        justify-content: flex-start;
        padding: 6px 16px;
    }
}

/* Responsive cho Khối Thập Đại Môn Phái (Mobile Layout chuẩn mockup - Nền 3.png) */
@media screen and (max-width: 860px) {
    .s8-sects-section {
        position: relative;
        width: 100%;
        background-color: #f0f2eb !important;
        background-image: url('../images/3.png') !important;
        background-repeat: no-repeat !important;
        background-position: center top !important;
        background-size: 100% 100% !important;
        padding: 30px 15px 30px;
        scroll-margin-top: 60px;
        box-sizing: border-box;
        overflow: hidden;
        z-index: 18;
    }

    /* Họa tiết lá trúc bên trái (la2.png: 174x216 -> hiển thị 87x108px sát mép trái màn hình) */
    .s8-mob-bamboo-bg {
        display: block !important;
        position: absolute;
        top: -4px;
        left: -15px;
        width: 87px;
        height: auto;
        pointer-events: none;
        z-index: 2;
        opacity: 1;
        line-height: 0;
    }

    .s8-mob-bamboo-bg img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Ẩn dải banner đen trên cùng của desktop */
    .s8-sects-header {
        position: relative;
        width: 100%;
        background: transparent;
        line-height: normal;
        overflow: visible;
        margin-bottom: 12px;
    }

    .s8-sects-header-bg {
        display: none !important;
    }

    .s8-sects-header-content {
        position: static;
        display: block;
        padding: 0;
        pointer-events: auto;
    }

    .s8-sects-title-wrap {
        position: relative;
        text-align: center;
        padding-top: 38px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .s8-sects-section .tvl-sec-dragon-bg {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 108px;
        opacity: 0.9;
        pointer-events: none;
    }

    .s8-sects-section .tvl-sec-title-row {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 2px;
        z-index: 2;
    }

    .s8-sects-section .tvl-title-decor {
        width: 70px;
        max-width: 19vw;
        height: auto;
        flex-shrink: 1;
    }

    .s8-sects-section .tvl-sec-heading {
        font-size: 22px;
        letter-spacing: 0.2px;
        padding: 0 2px;
        margin: 0;
    }

    /* Stage chính trên mobile */
    .s8-sects-stage {
        position: relative;
        width: 100%;
        height: auto;
        min-height: unset;
        background: transparent;
        overflow: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    /* Ẩn toàn bộ các lớp nền và card desktop */
    .s8-sects-bg-art,
    .s8-sects-left-polygon,
    .s8-sects-container,
    .s8-sects-tabs-bar {
        display: none !important;
    }

    /* Khung nhân vật đứng giữa (chiều cao ~386px chuẩn thiết kế 390px) */
    .s8-sects-hero-wrap {
        position: relative;
        inset: auto;
        transform: none;
        width: min(350px, 92vw);
        height: 386px;
        margin: 8px auto 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        z-index: 3;
        pointer-events: auto;
    }

    .s8-sects-hero-img {
        height: 100%;
        max-height: 100%;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: bottom center;
        filter: drop-shadow(0 10px 24px rgba(25, 35, 45, 0.22));
        transition: opacity 0.3s ease, transform 0.35s ease;
    }

    /* Nút Video Play tròn nổi cạnh nhân vật chuẩn thiết kế (44x44px) */
    .s8-mob-play-btn {
        display: flex !important;
        position: absolute;
        top: 6.5%;
        right: 14%;
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        cursor: pointer;
        z-index: 10;
        padding: 0;
        align-items: center;
        justify-content: center;
        transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
        outline: none;
    }

    .s8-mob-play-btn:active {
        transform: scale(0.92);
    }

    .s8-mob-play-svg {
        width: 100%;
        height: 100%;
        display: block;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
    }

    /* Thanh điều hướng môn phái: < ... CÁI BANG ... > */
    .s8-mob-nav-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 320px;
        margin: 18px auto 20px;
        z-index: 4;
        box-sizing: border-box;
        padding: 0;
    }

    .s8-mob-nav-btn {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background-color: #22535d;
        border: none;
        box-shadow: 0 0 0 3.5px #cdd8dc, 0 3px 10px rgba(20, 50, 60, 0.2);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        cursor: pointer;
        transition: transform 0.18s ease, background-color 0.18s ease;
        flex-shrink: 0;
        padding: 0;
    }

    .s8-mob-nav-btn:active {
        transform: scale(0.9);
        background-color: #1e454f;
    }

    .s8-mob-nav-line {
        flex: 1;
        max-width: 54px;
        height: 0;
        border-bottom: 1.5px dotted #8fa7b3;
        margin: 0 10px;
    }

    .s8-mob-sect-name {
        font-family: 'Yeseva One', Georgia, serif;
        font-size: 28px;
        font-weight: 400;
        letter-spacing: 0.5px;
        color: #4b6282;
        margin: 0;
        text-transform: uppercase;
        white-space: nowrap;
        user-select: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    /* Khung thông tin Ngũ hành & Hướng phát triển */
    .s8-mob-info-wrap {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
        z-index: 4;
    }

    .s8-mob-info-block {
        margin-bottom: 14px;
    }

    .s8-mob-info-block:last-child {
        margin-bottom: 0;
    }

    .s8-mob-block-head {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }

    .s8-mob-diamond-icon {
        color: #4b6282;
        font-size: 12px;
        line-height: 1;
    }

    .s8-mob-block-title {
        font-family: 'Inter', sans-serif;
        font-size: 14.5px;
        font-weight: 700;
        color: #4b6282;
    }

    .s8-mob-desc {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        line-height: 1.5;
        color: #546680;
        margin: 0;
        transition: opacity 0.25s ease;
    }

    .s8-mob-builds-list {
        display: flex;
        flex-direction: column;
        gap: 3px;
        transition: opacity 0.25s ease;
    }

    .s8-mob-build-item,
    .s8-mob-builds-list p,
    .s8-mob-builds-list .s8-sect-build-item {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        line-height: 1.5;
        color: #546680;
        margin: 0;
    }

    .s8-mob-build-item strong,
    .s8-mob-builds-list p strong,
    .s8-mob-builds-list .s8-sect-build-item strong {
        color: #3f5370;
        font-weight: 700;
    }

    /* Họa tiết hoa văn divider cuối section */
    .s8-mob-divider {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-top: 22px;
        margin-bottom: 0;
        width: 100%;
        line-height: 0;
    }

    .s8-mob-divider-img {
        display: block;
        width: 245px;
        max-width: 68%;
        height: auto;
        object-fit: contain;
        opacity: 1;
    }
}

/* ==========================================================================
   6. KHỐI TÍNH NĂNG ĐẶC SẮC & MẠNG XÃ HỘI (Features & Social Section)
   ========================================================================== */
.tvl-features-section {
    position: relative;
    width: 100%;
    background-color: #f1f3ed;
    background-image: url('../images/section/end_bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    padding-top: 143px;
    padding-bottom: 90px;
    scroll-margin-top: 85px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 12;
    height: auto;
}

.tvl-features-container {
    max-width: 1280px;
    padding: 0 24px;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 6.1 Tiêu đề khối Tính Năng Đặc Sắc */
.tvl-features-title-wrap {
    margin-bottom: clamp(28px, 2.5vw, 42px);
}

/* 6.2 Carousel Stage: Nút Prev + Viewport + Nút Next */
.tvl-features-carousel-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
}

.tvl-fslider-arrow {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.25s ease;
    flex-shrink: 0;
    user-select: none;
}

.tvl-fslider-arrow img {
    width: 155px;
    height: auto;
    max-width: 18vw;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.tvl-fslider-prev {
    margin-right: -10px;
}

.tvl-fslider-next {
    margin-left: -10px;
}

.tvl-fslider-arrow:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 10px rgba(49, 80, 93, 0.35));
}

.tvl-fslider-arrow:active {
    transform: scale(0.96);
}

/* 6.3 Viewport & Slides Track */
.tvl-features-viewport {
    position: relative;
    width: 100%;
    max-width: 70vw;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
}

.tvl-features-track {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tvl-features-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: scale(0.96);
    display: flex;
    justify-content: center;
    align-items: center;
}

.tvl-features-slide-item.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.tvl-features-card-link {
    display: block;
    width: 100%;
    position: relative;
    text-decoration: none;
    user-select: none;
    -webkit-user-drag: none;
}

.tvl-features-slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.14));
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.tvl-features-card-link:hover .tvl-features-slide-img {
    transform: translateY(-4px) scale(1.015);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.22));
}

/* Animations chuyển slide */
@keyframes tvlSlideInRight {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes tvlSlideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-30px) scale(0.96);
    }
}

@keyframes tvlSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes tvlSlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(30px) scale(0.96);
    }
}

.tvl-features-slide-item.slide-in-right {
    animation: tvlSlideInRight 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.tvl-features-slide-item.slide-out-left {
    animation: tvlSlideOutLeft 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.tvl-features-slide-item.slide-in-left {
    animation: tvlSlideInLeft 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.tvl-features-slide-item.slide-out-right {
    animation: tvlSlideOutRight 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 6.4 Pagination Dots (5 chấm tròn) */
.tvl-features-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
}

.tvl-fdot {
    width: 8.5px;
    height: 8.5px;
    border-radius: 50%;
    background-color: #6a838e;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.tvl-fdot.is-active {
    background-color: #2b4956;
    transform: scale(1.22);
    box-shadow: 0 0 6px rgba(43, 73, 86, 0.5);
}

.tvl-fdot:hover {
    background-color: #3b6375;
}

/* 6.4.1 Thanh điều hướng Mobile & lá trúc đáy khối (Ẩn trên Desktop) */
.tvl-mob-features-nav-bar,
.tvl-features-bamboo-decor {
    display: none;
}

/* 6.5 Golden Ornamental Divider */
.tvl-features-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 26px auto 34px;
    line-height: 0;
    text-align: center;
}

.tvl-features-divider-img {
    width: 225px;
    max-width: 50%;
    height: auto;
    display: inline-block;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

/* 6.6 Social Links Frame (bg-social.png) */
.tvl-features-social-card {
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    background-image: url('../images/section/bg-social.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
    padding: 74px 40px 26px 40px;
}

.tvl-social-items-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 44px;
}

.tvl-social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 4px 6px;
    outline: none;
}

.tvl-social-icon-wrapper {
    width: 142px;
    height: 142px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tvl-social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.tvl-social-label {
    margin-top: 10px;
    font-family: var(--tvl-font-title, 'Yeseva One', serif);
    font-size: 17px;
    font-weight: 700;
    color: #31505d;
    text-align: center;
    white-space: nowrap;
    transition: color 0.25s ease, transform 0.25s ease;
}

.tvl-social-item:hover {
    transform: translateY(-6px);
}

.tvl-social-item:hover .tvl-social-icon-img {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(49, 80, 93, 0.3));
}

.tvl-social-item:hover .tvl-social-label {
    color: #17323e;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.tvl-social-item:focus,
.tvl-social-item:focus-visible {
    outline: none;
}

/* 6.7 Responsive cho Khối Tính Năng & Mạng Xã Hội (Mobile Layout chuẩn mockup - Nền 4.png) */
@media screen and (max-width: 860px) {
    .tvl-features-section {
        position: relative;
        width: 100%;
        background-color: #f1f3ed !important;
        background-image: url('../images/4.png') !important;
        background-repeat: no-repeat !important;
        background-position: center bottom !important;
        background-size: 100% 100% !important;
        padding: 30px 15px 88px;
        scroll-margin-top: 60px;
        box-sizing: border-box;
        overflow: hidden;
        z-index: 12;
    }

    .tvl-features-container {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 0;
        position: relative;
        z-index: 2;
    }

    /* Họa tiết lá trúc góc dưới bên trái (la3.png: 252x212 -> hiển thị 126x106px) */
    .tvl-features-bamboo-decor {
        display: block !important;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 126px;
        height: auto;
        pointer-events: none;
        z-index: 5;
        opacity: 1;
        line-height: 0;
    }

    .tvl-features-bamboo-decor img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Tiêu đề khối */
    .tvl-features-title-wrap {
        position: relative;
        text-align: center;
        padding-top: 38px;
        margin: 0 auto 14px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .tvl-features-section .tvl-sec-dragon-bg {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 108px;
        opacity: 0.9;
        pointer-events: none;
    }

    .tvl-features-section .tvl-sec-title-row {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 2px;
        z-index: 2;
    }

    .tvl-features-section .tvl-title-decor {
        width: 70px;
        max-width: 19vw;
        height: auto;
        flex-shrink: 1;
    }

    .tvl-features-section .tvl-sec-heading {
        font-size: 22px;
        letter-spacing: 0.2px;
        padding: 0 2px;
        margin: 0;
    }

    /* Carousel Stage */
    .tvl-features-carousel-stage {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Ẩn hai nút mũi tên brush lớn hai bên card của desktop */
    .tvl-fslider-arrow {
        display: none !important;
    }

    /* Viewport hiển thị card (rộng ~370px trên khung 390px chuẩn thiết kế) */
    .tvl-features-viewport {
        position: relative;
        width: calc(100% + 10px);
        max-width: 370px;
        min-height: 220px;
        overflow: visible;
        margin: 0 -5px;
    }

    .tvl-features-track {
        width: 100%;
    }

    .tvl-features-slide-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }

    .tvl-features-slide-item.is-active {
        position: relative;
    }

    .tvl-features-slide-img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.14));
    }

    /* Hàng chấm tròn nhỏ ngay dưới ảnh banner chuẩn thiết kế */
    .tvl-features-dots {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 5px;
        margin-top: 6px;
    }

    .tvl-fdot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: #9e937f;
        border: none;
        padding: 0;
    }

    .tvl-fdot.is-active {
        background-color: #334868;
        transform: none;
        box-shadow: none;
    }

    /* Thanh điều hướng Mobile chuẩn mockup: < ... dots ... > */
    .tvl-mob-features-nav-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 276px;
        margin: 6px auto 22px;
        z-index: 4;
        box-sizing: border-box;
        padding: 0;
    }

    .tvl-mob-fnav-btn {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background-color: #22535d;
        border: none;
        box-shadow: 0 0 0 3.5px #cdd8dc, 0 3px 10px rgba(20, 50, 60, 0.2);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        cursor: pointer;
        transition: transform 0.18s ease, background-color 0.18s ease;
        flex-shrink: 0;
        padding: 0;
        outline: none;
    }

    .tvl-mob-fnav-btn:active {
        transform: scale(0.9);
        background-color: #1e454f;
    }

    .tvl-mob-fnav-line {
        flex: 1;
        max-width: 32px;
        height: 0;
        border-bottom: 1.5px dotted #8fa7b3;
        margin: 0 8px;
    }

    .tvl-mob-features-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
    }

    .tvl-mob-fdot {
        width: 8.5px;
        height: 8.5px;
        border-radius: 50%;
        background-color: #cbd3d6;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.22s ease;
        outline: none;
    }

    .tvl-mob-fdot.is-active {
        background-color: #22535d;
        transform: none;
        box-shadow: none;
    }

    /* Đường phân cách hoàng kim */
    .tvl-features-divider {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 0 auto 14px;
        width: 100%;
        line-height: 0;
    }

    .tvl-features-divider-img {
        display: block;
        width: 245px;
        max-width: 68%;
        height: auto;
        object-fit: contain;
        opacity: 1;
    }

    /* Khung mạng xã hội & cộng đồng (318x104px chuẩn thiết kế) */
    .tvl-features-social-card {
        display: block;
        max-width: 318px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        background-image: url('../images/section/bg-social.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: center center;
        padding: 25px 14px 12px;
    }

    .tvl-social-items-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 2px;
        width: 100%;
    }

    .tvl-social-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        padding: 2px 1px;
        flex: 1;
        outline: none;
    }

    .tvl-social-icon-wrapper {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .tvl-social-icon-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .tvl-social-label {
        margin-top: 4px;
        font-family: 'Yeseva One', Georgia, serif;
        font-size: 9.5px;
        font-weight: 400;
        color: #4b6282;
        text-align: center;
        white-space: nowrap;
    }
}

/* ==========================================================================
   HIỆU ỨNG CUỘN TRANG PHONG CÁCH WEB GAME KIẾM HIỆP (SCROLL REVEAL & AMBIENT)
   Chỉ kích hoạt khi trình duyệt hỗ trợ JS (body.js-tvl-scroll-ready)
   ========================================================================== */

@keyframes tvlDragonFloat {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.04) translateY(-5px);
    }
}

@keyframes tvlFanBreeze {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-3px, -5px) rotate(-2.2deg);
    }
}

@keyframes tvlLbRowEnter {
    0% {
        opacity: 0;
        transform: translateX(-18px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 1. Hiệu ứng tiêu đề các Section (Rồng ẩn hiện + 2 cánh kiếm phóng vào + chữ nổi lên) */
body.js-tvl-scroll-ready .tvl-sec-title-wrap.tvl-scroll-watch .tvl-sec-dragon-bg img {
    opacity: 0;
    transform: scale(0.68) translateY(16px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

body.js-tvl-scroll-ready .tvl-sec-title-wrap.tvl-scroll-watch .tvl-title-decor-left {
    opacity: 0;
    transform: translateX(-42px) scaleX(0.8);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

body.js-tvl-scroll-ready .tvl-sec-title-wrap.tvl-scroll-watch .tvl-title-decor-right {
    opacity: 0;
    transform: translateX(42px) scaleX(0.8);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

body.js-tvl-scroll-ready .tvl-sec-title-wrap.tvl-scroll-watch .tvl-sec-heading {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
    filter: blur(3px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.06s, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.06s, filter 0.75s ease 0.06s;
}

body.js-tvl-scroll-ready .tvl-sec-title-wrap.tvl-scroll-watch.is-inview .tvl-sec-dragon-bg img {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: tvlDragonFloat 5.5s ease-in-out 0.9s infinite;
}

body.js-tvl-scroll-ready .tvl-sec-title-wrap.tvl-scroll-watch.is-inview .tvl-title-decor-left,
body.js-tvl-scroll-ready .tvl-sec-title-wrap.tvl-scroll-watch.is-inview .tvl-title-decor-right {
    opacity: 1;
    transform: translateX(0) scaleX(1);
}

body.js-tvl-scroll-ready .tvl-sec-title-wrap.tvl-scroll-watch.is-inview .tvl-sec-heading {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* 2. Khối Tin Tức & Sự Kiện: Cột ảnh trượt từ trái, cột tin trượt từ phải + bài viết cascade */
body.js-tvl-scroll-ready .tvl-news-banner-col.tvl-scroll-watch {
    opacity: 0;
    transform: translateX(-52px) translateY(12px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

body.js-tvl-scroll-ready .tvl-news-content-col.tvl-scroll-watch {
    opacity: 0;
    transform: translateX(52px) translateY(12px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.18s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}

body.js-tvl-scroll-ready .tvl-news-banner-col.tvl-scroll-watch.is-inview,
body.js-tvl-scroll-ready .tvl-news-content-col.tvl-scroll-watch.is-inview {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

body.js-tvl-scroll-ready .tvl-news-content-col.tvl-scroll-watch .tvl-news-item {
    opacity: 0;
    transform: translateX(22px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
    transition-delay: calc(0.22s + var(--tvl-item-idx, 0) * 0.075s);
}

body.js-tvl-scroll-ready .tvl-news-content-col.tvl-scroll-watch.is-inview .tvl-news-item {
    opacity: 1;
    transform: translateX(0);
}

/* 3. Khối Bảng Xếp Hạng: Khung bảng trồi lên + Quạt xếp bung nhẹ + Dòng hạng chạy so le */
body.js-tvl-scroll-ready .tvl-lb-mob-filters.tvl-scroll-watch {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

body.js-tvl-scroll-ready .tvl-lb-mob-filters.tvl-scroll-watch.is-inview {
    opacity: 1;
    transform: translateY(0);
}

body.js-tvl-scroll-ready .tvl-lb-laptop-wrap.tvl-scroll-watch {
    opacity: 0;
    transform: translateY(48px) scale(0.96);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

body.js-tvl-scroll-ready .tvl-lb-laptop-wrap.tvl-scroll-watch.is-inview {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.js-tvl-scroll-ready .tvl-lb-laptop-wrap.tvl-scroll-watch .tvl-lb-fan-img {
    opacity: 0;
    transform: translate(28px, 18px) rotate(16deg) scale(0.84);
    transform-origin: bottom right;
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.38s, transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.38s;
}

body.js-tvl-scroll-ready .tvl-lb-laptop-wrap.tvl-scroll-watch.is-inview .tvl-lb-fan-img {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
    animation: tvlFanBreeze 6s ease-in-out 1.3s infinite;
}

body.js-tvl-scroll-ready .tvl-lb-laptop-wrap.tvl-scroll-watch.is-inview .tvl-lb-panel.is-active .tvl-lb-row {
    animation: tvlLbRowEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--tvl-item-idx, 0) * 0.045s);
}

/* 4. Khối Thập Đại Môn Phái: Nền giấy xé & thông tin trượt từ trái, nhân vật xuất hiện từ phải, 10 nút phái nổi lên so le */
body.js-tvl-scroll-ready .s8-sects-stage.tvl-scroll-watch .s8-sects-polygon-img {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

body.js-tvl-scroll-ready .s8-sects-stage.tvl-scroll-watch.is-inview .s8-sects-polygon-img {
    opacity: 1;
    transform: translateX(0);
}

body.js-tvl-scroll-ready .s8-sects-stage.tvl-scroll-watch .s8-sects-container,
body.js-tvl-scroll-ready .s8-sects-stage.tvl-scroll-watch .s8-mob-info-wrap,
body.js-tvl-scroll-ready .s8-sects-stage.tvl-scroll-watch .s8-mob-nav-bar {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.16s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.16s;
}

body.js-tvl-scroll-ready .s8-sects-stage.tvl-scroll-watch.is-inview .s8-sects-container,
body.js-tvl-scroll-ready .s8-sects-stage.tvl-scroll-watch.is-inview .s8-mob-info-wrap,
body.js-tvl-scroll-ready .s8-sects-stage.tvl-scroll-watch.is-inview .s8-mob-nav-bar {
    opacity: 1;
    transform: translateX(0);
}

body.js-tvl-scroll-ready .s8-sects-stage.tvl-scroll-watch .s8-sect-tab-btn {
    opacity: 0;
    transform: translateY(22px) scale(0.92);
    transition: opacity 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    transition-delay: calc(0.25s + var(--tvl-item-idx, 0) * 0.045s);
}

body.js-tvl-scroll-ready .s8-sects-stage.tvl-scroll-watch.is-inview .s8-sect-tab-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 5. Khối Tính Năng Đặc Sắc & Mạng Xã Hội: Carousel phóng lên, Divider mở rộng, Icon MXH nảy so le */
body.js-tvl-scroll-ready .tvl-features-carousel-stage.tvl-scroll-watch {
    opacity: 0;
    transform: translateY(45px) scale(0.95);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

body.js-tvl-scroll-ready .tvl-features-carousel-stage.tvl-scroll-watch.is-inview {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.js-tvl-scroll-ready .tvl-features-divider.tvl-scroll-watch .tvl-features-divider-img {
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 0.75s ease 0.15s, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

body.js-tvl-scroll-ready .tvl-features-divider.tvl-scroll-watch.is-inview .tvl-features-divider-img {
    opacity: 1;
    transform: scaleX(1);
}

body.js-tvl-scroll-ready .tvl-features-social-card.tvl-scroll-watch {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

body.js-tvl-scroll-ready .tvl-features-social-card.tvl-scroll-watch.is-inview {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.js-tvl-scroll-ready .tvl-features-social-card.tvl-scroll-watch .tvl-social-item {
    opacity: 0;
    transform: translateY(24px) scale(0.82);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(0.22s + var(--tvl-item-idx, 0) * 0.08s);
}

body.js-tvl-scroll-ready .tvl-features-social-card.tvl-scroll-watch.is-inview .tvl-social-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.js-tvl-scroll-ready .tvl-features-social-card.tvl-scroll-watch.is-inview .tvl-social-item:hover {
    transform: translateY(-6px) scale(1.06);
    transition-delay: 0s;
}

/* 6. Trang danh sách Tin Tức & Chi tiết bài viết */
body.js-tvl-scroll-ready .tvl-news-list-item.tvl-scroll-watch,
body.js-tvl-scroll-ready .tvl-single-article.tvl-scroll-watch {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--tvl-item-idx, 0) * 0.06s);
}

body.js-tvl-scroll-ready .tvl-news-list-item.tvl-scroll-watch.is-inview,
body.js-tvl-scroll-ready .tvl-single-article.tvl-scroll-watch.is-inview {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    body.js-tvl-scroll-ready .tvl-scroll-watch,
    body.js-tvl-scroll-ready .tvl-scroll-watch * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }
}
