.section_duan.section9 .list-duan .item .image {
    height: 500px !important;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    mask: right 0 bottom 61px / 42px 42px radial-gradient(#000 70%, #0000 74%) no-repeat, right 61px bottom 0 / 42px 42px radial-gradient(#000 70%, #0000 74%) no-repeat, radial-gradient(40px at 100% 100%, #0000 99%, #000 101%) -21px -21px no-repeat, conic-gradient(from 90deg at calc(100% - 82px) calc(100% - 82px), #0000 25%, #000 0);
}
.section_duan.section9 .list-duan .item .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    position: static !important;
    mask: none !important;
    -webkit-mask: none !important;
}
/* Badge TikTok góc thumbnail */
.section_duan.section9 .list-duan .item .tt-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    border-radius: 8px;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}
.section_duan.section9 .list-duan .item .tt-badge svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}
/* Play overlay khi hover */
.section_duan.section9 .list-duan .item .tt-play-overlay {
    position: absolute;
    inset: 0;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 2;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.section_duan.section9 .list-duan .item:hover .tt-play-overlay {
    opacity: 1;
}
.section_duan.section9 .list-duan .item .tt-play-overlay:focus-visible {
    opacity: 1;
    outline: 3px solid #25f4ee;
    outline-offset: -5px;
}
.section_duan.section9 .list-duan .item .tt-play-overlay svg {
    width: 60px;
    height: 60px;
    fill: #fff;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}
/* Nút xem video trong info */
.section_duan.section9 .list-duan .item .info .tt-watch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #dd3333;
    background: rgba(221,51,51,0.09);
    padding: 5px 14px;
    border-radius: 100px;
    text-decoration: none !important;
    transition: background .2s, color .2s;
    cursor: pointer;
    border: none;
}
.section_duan.section9 .list-duan .item .info .tt-watch:hover {
    background: #dd3333;
    color: #fff;
}
.section_duan.section9 .list-duan .item .info .tt-watch svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}
/* Author badge */
.section_duan.section9 .list-duan .item .info .tt-author {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}
.section_duan.section9 .list-duan .item .info .tt-author svg {
    width: 12px;
    height: 12px;
    fill: #dd3333;
}

/* Modal TikTok dạng lightbox */
.tiktok-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: rgba(0, 0, 0, .82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.tiktok-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.tiktok-modal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(390px, 35.5%, 430px);
    width: min(1216px, calc(100vw - 96px));
    height: min(832px, calc(100dvh - 96px));
    min-height: 560px;
    overflow: visible;
    border-radius: 9px;
    background: #262626;
    color: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
    transform: translateY(12px) scale(.985);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.tiktok-modal,
.tiktok-modal * {
    box-sizing: border-box;
}
.tiktok-modal-overlay.active .tiktok-modal {
    transform: translateY(0) scale(1);
}
.tiktok-modal .tt-modal-close {
    position: absolute;
    top: -38px;
    right: -14px;
    z-index: 12;
    display: flex;
    width: 42px;
    height: 42px;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #4b4b4b;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    transition: background .2s ease, transform .2s ease;
}
.tiktok-modal .tt-modal-close:hover {
    background: #fe2c55;
    transform: rotate(90deg);
}
.tiktok-modal .tt-modal-close:focus-visible,
.tiktok-modal a:focus-visible {
    outline: 3px solid #25f4ee;
    outline-offset: 3px;
}
.tiktok-modal .tt-modal-close svg {
    width: 17px;
    height: 17px;
}
.tiktok-modal .tt-modal-player {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 9px 0 0 9px;
    background: #000;
}
.tiktok-modal .tt-modal-embed,
.tiktok-modal .tt-modal-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #000;
}
.tiktok-modal .tt-modal-embed {
    position: absolute;
    inset: 0;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}
.tiktok-modal .tt-modal-video {
    position: absolute;
    inset: 0;
    object-fit: contain;
    object-position: center;
    background: #000;
}
.tiktok-modal .tt-modal-error {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
    background: #000;
}
.tiktok-modal .tt-modal-player.has-error .tt-modal-error {
    display: flex;
}
.tiktok-modal .tt-modal-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    letter-spacing: .02em;
    pointer-events: none;
    z-index: 3;
}
.tiktok-modal .tt-modal-loading::before {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border: 3px solid rgba(255, 255, 255, .22);
    border-top-color: #25f4ee;
    border-radius: 50%;
    content: '';
    animation: ttModalSpin .75s linear infinite;
}
.tiktok-modal .tt-modal-player.is-loaded .tt-modal-loading {
    display: none;
}
@keyframes ttModalSpin {
    to { transform: rotate(360deg); }
}
.tiktok-modal .tt-modal-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: auto;
    padding: 26px 20px 0;
    border-radius: 0 9px 9px 0;
    background: #262626;
}
.tiktok-modal .tt-modal-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tiktok-modal .tt-modal-avatar {
    display: flex;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: #111;
}
.tiktok-modal .tt-modal-avatar svg {
    width: 30px;
    height: 30px;
}
.tiktok-modal .tt-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tiktok-modal .tt-modal-avatar.has-image svg {
    display: none;
}
.tiktok-modal .tt-modal-author-copy {
    min-width: 0;
    flex: 1;
}
.tiktok-modal .tt-modal-author-name,
.tiktok-modal .tt-modal-author-handle {
    display: block;
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tiktok-modal .tt-modal-author-name {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}
.tiktok-modal .tt-modal-author-handle {
    margin-top: 3px;
    color: #b7b7b7;
    font-size: 16px;
    font-weight: 600;
}
.tiktok-modal .tt-modal-channel {
    display: inline-flex;
    min-height: 50px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border: 1px solid #656565;
    border-radius: 999px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: border-color .2s ease, background .2s ease;
}
.tiktok-modal .tt-modal-channel:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .07);
    color: #fff;
}
.tiktok-modal .tt-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 27px;
}
.tiktok-modal .tt-modal-stat {
    min-width: 0;
}
.tiktok-modal .tt-modal-stat strong,
.tiktok-modal .tt-modal-stat span {
    display: block;
}
.tiktok-modal .tt-modal-stat strong {
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
}
.tiktok-modal .tt-modal-stat span {
    margin-top: 8px;
    color: #bdbdbd;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.tiktok-modal .tt-modal-description {
    margin: 27px 0 0;
    color: #f4f4f4;
    font-size: 20px;
    line-height: 1.45;
}
.tiktok-modal .tt-modal-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 34px;
}
.tiktok-modal .tt-modal-action {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid #696969;
    border-radius: 999px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: none;
    text-decoration: none !important;
    transition: border-color .2s ease, filter .2s ease, transform .2s ease;
}
.tiktok-modal .tt-modal-action:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}
.tiktok-modal .tt-modal-action--primary {
    border: 0;
    background: linear-gradient(100deg, #eb3f69 0%, #d94b83 31%, #29dce0 100%);
    color: #080808;
}
.tiktok-modal .tt-modal-action--primary:hover {
    color: #080808;
    filter: brightness(1.06);
}

@media (max-width: 980px) {
    .tiktok-modal-overlay {
        padding: 34px 20px 20px;
    }
    .tiktok-modal {
        grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
        width: calc(100vw - 40px);
        height: calc(100dvh - 54px);
        min-height: 520px;
    }
    .tiktok-modal .tt-modal-close {
        top: -28px;
        right: -8px;
        width: 38px;
        height: 38px;
    }
    .tiktok-modal .tt-modal-sidebar {
        padding: 22px 18px 0;
    }
    .tiktok-modal .tt-modal-avatar {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
    .tiktok-modal .tt-modal-channel {
        min-height: 44px;
        padding: 0 17px;
    }
    .tiktok-modal .tt-modal-author-name,
    .tiktok-modal .tt-modal-description {
        font-size: 17px;
    }
    .tiktok-modal .tt-modal-author-handle,
    .tiktok-modal .tt-modal-stat span,
    .tiktok-modal .tt-modal-channel,
    .tiktok-modal .tt-modal-action {
        font-size: 14px;
    }
    .tiktok-modal .tt-modal-actions {
        gap: 16px;
    }
}

@media (max-width: 720px) {
    .tiktok-modal-overlay {
        padding: 0;
    }
    .tiktok-modal {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        width: 100vw;
        height: 100dvh;
        min-height: 0;
        border-radius: 0;
    }
    .tiktok-modal .tt-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        background: rgba(50, 50, 50, .86);
    }
    .tiktok-modal .tt-modal-player {
        border-radius: 0;
    }
    .tiktok-modal .tt-modal-sidebar {
        max-height: 43dvh;
        padding: 16px;
        border-radius: 0;
    }
    .tiktok-modal .tt-modal-author {
        gap: 10px;
    }
    .tiktok-modal .tt-modal-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
    .tiktok-modal .tt-modal-avatar svg {
        width: 23px;
        height: 23px;
    }
    .tiktok-modal .tt-modal-channel {
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }
    .tiktok-modal .tt-modal-stats {
        margin-top: 14px;
    }
    .tiktok-modal .tt-modal-stat strong {
        font-size: 18px;
    }
    .tiktok-modal .tt-modal-stat span {
        margin-top: 3px;
        font-size: 12px;
    }
    .tiktok-modal .tt-modal-description {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 14px;
        font-size: 14px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .tiktok-modal .tt-modal-actions {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 16px;
        padding-top: 0;
    }
    .tiktok-modal .tt-modal-action {
        min-height: 44px;
        padding: 9px 12px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tiktok-modal-overlay,
    .tiktok-modal,
    .tiktok-modal .tt-modal-close,
    .tiktok-modal .tt-modal-action {
        transition: none;
    }
}
