/**
 * 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: 1200px;
    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: 1060px;
    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: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 231px;
    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: 18px;
}

.tvl-title-decor {
    width: 140px;
    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: 42px;
    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: 22px;
    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: 22px;
    height: 22px;
    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: 16px;
    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: 12px 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: 18px;
    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: 18px;
    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 Mockup media_1792741447803.png)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .tvl-news-section {
        min-height: auto;
        padding: 100px 16px 85px 16px;
        background-color: #e6ebea;
        background-image: url('../images/bg1.png');
        background-repeat: no-repeat;
        background-position: right bottom;
        background-size: cover;
        display: block;
        position: relative;
        overflow: hidden;
        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 4px;
        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;
        margin-bottom: 22px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .tvl-sec-dragon-bg {
        width: 130px;
        top: -38px;
        opacity: 0.85;
    }

    .tvl-sec-title-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .tvl-title-decor {
        width: 56px;
        height: auto;
    }

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

    /* Ẩn hoàn toàn cột Banner trên mobile theo đúng thiết kế mockup */
    .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: 1.5px solid rgba(84, 98, 136, 0.22);
        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: 16.5px;
        font-weight: 600;
        padding: 6px 2px 10px;
        color: #556272;
        opacity: 0.8;
        white-space: nowrap;
    }

    .tvl-tab-btn.is-active {
        color: #243346;
        opacity: 1;
    }

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

    /* Ẩ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 mockup */
    .tvl-news-cat,
    .tvl-news-sep {
        display: none !important;
    }

    .tvl-news-item {
        padding: 12px 0;
        border-bottom: 1px solid rgba(180, 195, 200, 0.55);
        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: #2b3944;
        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: 14px;
        color: #586d7e;
        font-weight: 400;
        flex: 0 0 auto;
        white-space: nowrap;
        margin-left: 8px;
    }

    /* Nút "Xem thêm >" căn giữa */
    .tvl-news-mob-more-wrap {
        display: flex;
        justify-content: center;
        margin-top: 22px;
        margin-bottom: 22px;
    }

    .tvl-news-mob-more-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background-color: #a4917b;
        color: #ffffff;
        font-family: 'Inter', sans-serif;
        font-size: 14.5px;
        font-weight: 500;
        padding: 9px 26px;
        border-radius: 3px;
        text-decoration: none;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

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

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

    /* Đườ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: 4px 0 10px 0;
        line-height: 0;
    }

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

    /* Họa tiết lá trúc góc dưới bên phải */
    .tvl-news-bamboo-decor {
        display: block;
        position: absolute;
        right: 0px;
        bottom: 0px;
        width: 130px;
        max-width: 32vw;
        height: auto;
        pointer-events: none;
        z-index: 2;
        opacity: 0.92;
        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: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* Laptop Wrapper */
.tvl-lb-laptop-wrap {
    position: relative;
    width: 100%;
    max-width: 1040px;
    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: flex-end;
    justify-content: center;
    height: 100%;
    aspect-ratio: 844 / 176;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
    user-select: none;
}

.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-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.tvl-lb-tab-img-active {
    display: none;
}

.tvl-lb-tab.is-active {
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.tvl-lb-tab.is-active .tvl-lb-tab-img-default {
    display: none;
}

.tvl-lb-tab.is-active .tvl-lb-tab-img-active {
    display: block;
}

/* 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: flex-end;
    justify-content: center;
    height: 100%;
    aspect-ratio: 844 / 176;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    box-shadow: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    user-select: none;
}

.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-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.tvl-lb-server-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 170px;
    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: 8px 14px;
    text-align: left;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #334168;
    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-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: 65%;
    text-align: left;
    padding-left: clamp(10px, 2vw, 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tvl-lb-col-score {
    width: 20%;
    text-align: left;
}

/* 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: Dòng 4 đến 10 fix cứng chiều cao 38px, không dùng flex */
.tvl-lb-row {
    flex: none;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    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(9px, 0.95vw, 13px);
    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à fix chiều cao nổi bật 48px cho Top 1, 2, 3 chuẩn mockup */
.tvl-lb-row.is-top-3 {
    flex: none;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    font-size: clamp(10.5px, 1.15vw, 14.5px);
}

.tvl-lb-row-1 {
    background: linear-gradient(90deg, rgba(254, 243, 219, 0.8) 0%, rgba(255, 250, 240, 0.35) 100%);
}
.tvl-lb-row-2 {
    background: linear-gradient(90deg, rgba(254, 247, 235, 0.55) 0%, rgba(255, 252, 248, 0.2) 100%);
}
.tvl-lb-row-3 {
    background: linear-gradient(90deg, rgba(254, 243, 219, 0.65) 0%, rgba(255, 250, 240, 0.25) 100%);
}

.tvl-lb-row.is-top-3 .tvl-lb-name-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: -11.5%;
    bottom: -4.5%;
    width: 31%;
    max-width: 340px;
    z-index: 10;
    pointer-events: none;
}

.tvl-lb-fan-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 14px 24px rgba(20, 25, 35, 0.28));
    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 mockup) */
@media screen and (max-width: 860px) {
    .tvl-leaderboard-section {
        min-height: auto;
        height: auto;
        padding: 105px 14px 60px;
        scroll-margin-top: 80px;
        background-image: url('../images/bg-2.png');
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        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 4px;
        box-sizing: border-box;
    }

    /* Tiêu đề & Rồng nền */
    .tvl-sec-title-wrap {
        position: relative;
        margin-bottom: 22px;
        text-align: center;
    }

    .tvl-sec-dragon-bg {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -58%);
        width: 140px;
        opacity: 0.9;
        pointer-events: none;
    }

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

    .tvl-title-decor {
        width: 36px;
        height: auto;
    }

    .tvl-sec-heading {
        font-size: 24px;
        letter-spacing: 1px;
        color: #384c62;
    }

    /* Thanh bộ lọc 2 nút pill: Chọn server & Chọn TOP */
    .tvl-lb-mob-filters {
        display: flex !important;
        gap: 10px;
        width: 100%;
        margin-bottom: 18px;
        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% - 5px);
        position: relative;
    }

    .tvl-lb-mob-filter-btn {
        width: 100%;
        min-width: 0;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px 0 12px;
        background: linear-gradient(180deg, #44808e 0%, #2f6571 100%);
        border: 1px solid #7bc1cf;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(18, 48, 56, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        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: 13.5px;
        font-weight: 600;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.1px;
    }

    .tvl-lb-mob-arrow-circle {
        width: 26px;
        height: 26px;
        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;
        right: 0;
        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-option {
        display: block;
        width: 100%;
        padding: 10px 16px;
        text-align: left;
        background: transparent;
        border: none;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: #334168;
        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 */
    .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 mockup */
    .tvl-lb-card {
        width: 100%;
        height: auto;
        max-height: none;
        flex: none;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.95);
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        box-sizing: border-box;
    }

    /* Tiêu đề cột */
    .tvl-lb-thead {
        display: flex;
        align-items: center;
        height: 46px;
        padding: 0 16px;
        font-family: 'Inter', sans-serif;
        font-size: 13.5px;
        font-weight: 700;
        color: #485973;
        border-bottom: 1px solid rgba(225, 230, 238, 0.65);
        box-sizing: border-box;
    }

    .tvl-lb-thead .tvl-lb-col-rank {
        width: 52px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0;
    }

    .tvl-lb-thead .tvl-lb-col-name {
        flex: 1;
        text-align: left;
        padding-left: 16px;
    }

    .tvl-lb-thead .tvl-lb-col-score {
        width: 80px;
        text-align: right;
        padding-right: 2px;
    }

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

    .tvl-lb-panel {
        position: static;
        inset: auto;
        width: 100%;
        height: auto;
        padding: 0;
        display: none;
        flex-direction: column;
    }

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

    /* Hàng dữ liệu: dòng 4-10 nhỏ gọn 42px, top 1-3 nổi bật 50px */
    .tvl-lb-row {
        display: flex;
        align-items: center;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        padding: 0 16px;
        border-bottom: 1px solid rgba(230, 234, 240, 0.65);
        box-sizing: border-box;
    }

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

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

    .tvl-lb-row .tvl-lb-col-rank {
        width: 52px;
        flex-shrink: 0;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
        padding: 0;
    }

    .tvl-lb-row .tvl-lb-col-name {
        flex: 1;
        text-align: left;
        padding-left: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tvl-lb-row .tvl-lb-col-score {
        width: 80px;
        text-align: right;
        padding-right: 2px;
        white-space: nowrap;
    }

    .tvl-lb-name-text {
        font-family: 'Inter', sans-serif;
        font-size: 14.5px;
        font-weight: 600;
        color: #40526a;
    }

    .tvl-lb-score-text {
        font-family: 'Inter', sans-serif;
        font-size: 14.5px;
        font-weight: 600;
        color: #4a5e78;
    }

    /* Highlight màu sắc cho Top 1, 2, 3 chuẩn mockup */
    .tvl-lb-row-1 {
        background: linear-gradient(90deg, rgba(254, 245, 227, 0.95) 0%, rgba(255, 252, 245, 0.7) 100%);
        border-bottom: 1px solid rgba(228, 214, 188, 0.55);
    }

    .tvl-lb-row-2 {
        background: linear-gradient(90deg, rgba(255, 249, 237, 0.65) 0%, rgba(255, 253, 248, 0.35) 100%);
        border-bottom: 1px solid rgba(228, 214, 188, 0.5);
    }

    .tvl-lb-row-3 {
        background: linear-gradient(90deg, rgba(255, 249, 237, 0.65) 0%, rgba(255, 253, 248, 0.35) 100%);
        border-bottom: 1px solid rgba(228, 214, 188, 0.5);
    }

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

    /* 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: 35px;
        height: 35px;
    }

    /* Phân trang (1 2 3 4 5 6 >>) nằm ngoài card */
    .tvl-lb-pagination {
        position: static;
        height: auto;
        margin-top: 22px;
        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: #c4cdd5;
        border: none;
        border-radius: 3px;
        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: #3e5170;
        color: #ffffff;
        font-weight: 700;
    }

    .tvl-lb-page.tvl-lb-next {
        background: transparent;
        color: #3e5170;
        font-size: 20px;
        font-weight: 700;
        width: 32px;
        height: 32px;
    }

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

    .tvl-lb-divider-img {
        display: block;
        max-width: 260px;
        width: 75%;
        height: auto;
        opacity: 0.9;
    }
}

/* ==========================================================================
   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(520px, 34.06vw, 654px);
    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: 54%;
    transform: translateX(-35%);
    width: clamp(340px, 28vw, 490px);
    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: 1110px;
    margin: 0 auto;
    height: 100%;
    padding: clamp(8px, 0.52vw, 10px) clamp(24px, 5vw, 80px) 68px;
    z-index: 4;
    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(380px, 32vw, 600px);
    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(200px, 23vw, 440px);
    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(30px, 2.5vw, 48px);
    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;
}

/* 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(26px, 2.3vw, 36px);
    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: 24px;
    color: var(--Text-01, #546288);
    font-family: 'Inter', sans-serif;
    font-size: clamp(13.5px, 1vw, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}

.s8-sect-builds-list {
    padding-left: 24px;
}
.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: 3px 0;
    color: var(--Text-01, #546288);
    font-family: 'Inter', sans-serif;
    font-size: clamp(13.5px, 1vw, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

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

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

/* 3. Bottom Tabs Bar */
.s8-sects-tabs-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    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(4px, 0.75vw, 11px);
    width: 100%;
    max-width: 1400px;
    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(74px, 7.2vw, 108px);
    height: 33px;
    padding: 0 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9bb3c2;
    font-family: inherit;
    font-size: clamp(11px, 0.85vw, 12.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: 24px 28px 64px;
    }
    .s8-sect-info-panel {
        max-width: 320px;
    }
    .s8-sect-video-card {
        width: 190px;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 2px;
    }
    .s8-sect-name {
        font-size: 28px;
        margin: 6px 0 8px;
    }
    .s8-sect-block {
        margin-bottom: 10px;
    }
    .s8-sect-desc,
    .s8-sect-build-item {
        font-size: 13px;
        line-height: 1.4;
    }
    .s8-sects-hero-wrap {
        left: 57%;
        transform: translateX(-30%);
        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) */
@media screen and (max-width: 860px) {
    .s8-sects-section {
        position: relative;
        width: 100%;
        background-color: #f0f2eb;
        background-image: url('../images/bg-2.png');
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
        padding: 100px 16px 50px;
        scroll-margin-top: 80px;
        box-sizing: border-box;
        overflow: hidden;
        z-index: 18;
    }

    /* Họa tiết cành trúc mờ bên trái */
    .s8-mob-bamboo-bg {
        display: block !important;
        position: absolute;
        top: 48px;
        left: -10px;
        width: 130px;
        height: auto;
        pointer-events: none;
        z-index: 2;
        opacity: 0.85;
    }

    .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: 8px;
    }

    .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;
        margin: 0 auto;
    }

    .s8-sects-section .tvl-sec-dragon-bg {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -64%);
        width: 145px;
        opacity: 0.88;
        pointer-events: none;
    }

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

    .s8-sects-section .tvl-title-decor {
        width: 50px;
        height: auto;
    }

    .s8-sects-section .tvl-sec-heading {
        font-family: 'Yeseva One', Georgia, serif;
        font-size: 22px;
        letter-spacing: 1.2px;
        color: #364c67;
        margin: 0;
        font-weight: 700;
    }

    /* 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 */
    .s8-sects-hero-wrap {
        position: relative;
        inset: auto;
        transform: none;
        width: min(340px, 90vw);
        height: clamp(340px, 78vw, 420px);
        margin: 0 auto;
        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 mockup */
    .s8-mob-play-btn {
        display: flex !important;
        position: absolute;
        top: 14%;
        right: 8%;
        width: 48px;
        height: 48px;
        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: center;
        width: 100%;
        max-width: 400px;
        margin: 18px auto 16px;
        z-index: 4;
        box-sizing: border-box;
        padding: 0 8px;
    }

    .s8-mob-nav-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: #2b5762;
        border: none;
        box-shadow: 0 0 0 3px rgba(186, 203, 203, 0.55), 0 3px 10px rgba(20, 50, 60, 0.25);
        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: 50px;
        height: 0;
        border-bottom: 2px dotted #9bb5c2;
        margin: 0 12px;
    }

    .s8-mob-sect-name {
        font-family: 'Yeseva One', Georgia, serif;
        font-size: 27px;
        font-weight: 700;
        letter-spacing: 0.8px;
        color: #364c67;
        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: 400px;
        margin: 0 auto;
        padding: 0 16px;
        box-sizing: border-box;
        z-index: 4;
    }

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

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

    .s8-mob-diamond-icon {
        color: #536e89;
        font-size: 13px;
        line-height: 1;
    }

    .s8-mob-block-title {
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 700;
        color: #364c67;
    }

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

    .s8-mob-builds-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        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.55;
        color: #50657c;
        margin: 0;
    }

    .s8-mob-build-item strong,
    .s8-mob-builds-list p strong,
    .s8-mob-builds-list .s8-sect-build-item strong {
        color: #364c67;
        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: 26px;
        margin-bottom: 12px;
        width: 100%;
    }

    .s8-mob-divider-img {
        display: block;
        max-width: 270px;
        width: 75%;
        height: auto;
        opacity: 0.9;
    }
}

/* ==========================================================================
   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: 1100px;
    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: 1000px;
    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: 135px;
    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: 62vw;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 310px;
}

.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 (Ẩn trên Desktop) */
.tvl-mob-features-nav-bar {
    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: 190px;
    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: 1000px;
    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: 65px 34px 20px 34px;
}

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

.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: 124px;
    height: 124px;
    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: 15px;
    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) */
@media screen and (max-width: 860px) {
    .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 bottom;
        background-size: cover;
        padding: 100px 12px 65px;
        scroll-margin-top: 80px;
        box-sizing: border-box;
        overflow: hidden;
        z-index: 12;
    }

    .tvl-features-container {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 0;
    }

    /* Tiêu đề khối */
    .tvl-features-title-wrap {
        position: relative;
        text-align: center;
        margin: 0 auto 24px;
    }

    .tvl-features-section .tvl-sec-dragon-bg {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -64%);
        width: 145px;
        opacity: 0.88;
        pointer-events: none;
    }

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

    .tvl-features-section .tvl-title-decor {
        width: 50px;
        height: auto;
    }

    .tvl-features-section .tvl-sec-heading {
        font-family: 'Yeseva One', Georgia, serif;
        font-size: 22px;
        letter-spacing: 1.2px;
        color: #364c67;
        margin: 0;
        font-weight: 700;
    }

    /* 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 */
    .tvl-features-viewport {
        position: relative;
        width: min(340px, 92vw);
        max-width: 360px;
        min-height: 215px;
        overflow: visible;
        margin: 0 auto;
    }

    .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 8px 20px rgba(0, 0, 0, 0.16));
    }

    /* Ẩn hàng chấm tròn nhỏ của desktop trên mobile vì đã có thanh điều hướng mobile bên dưới */
    .tvl-features-dots {
        display: none !important;
    }

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

    .tvl-mob-fnav-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: #2b5762;
        border: none;
        box-shadow: 0 0 0 3px rgba(186, 203, 203, 0.55), 0 3px 10px rgba(20, 50, 60, 0.25);
        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: 45px;
        height: 0;
        border-bottom: 2px dotted #9bb5c2;
        margin: 0 10px;
    }

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

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

    .tvl-mob-fdot.is-active {
        background-color: #2b5762;
        transform: scale(1.18);
        box-shadow: 0 0 6px rgba(43, 87, 98, 0.45);
    }

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

    .tvl-features-divider-img {
        display: block;
        max-width: 270px;
        width: 75%;
        height: auto;
        opacity: 0.9;
    }

    /* Khung mạng xã hội & cộng đồng */
    .tvl-features-social-card {
        display: block;
        max-width: 350px;
        width: calc(100% - 16px);
        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: 22px 10px 18px;
    }

    .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 2px;
        flex: 1;
        outline: none;
    }

    .tvl-social-icon-wrapper {
        width: 48px;
        height: 48px;
        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: 6px;
        font-family: 'Yeseva One', Georgia, serif;
        font-size: 11px;
        font-weight: 700;
        color: #364c67;
        text-align: center;
        white-space: nowrap;
    }
}
