.cm-page-container.axv-rong {
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
}

.axv-rong .cm-sidebar-layout {
    max-width: none;
    min-height: 0;
    gap: 14px;
    padding: 12px;
    padding-bottom: var(--cm-space-md);
}

.axv-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.axv-bar h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--cm-text-primary);
}

.axv-bar h1 i { color: #a855f7; }

.axv-hint {
    font-size: 12px;
    color: var(--cm-text-muted);
}

.axv-bar-r {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.axv-nut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-full);
    background: rgba(255, 255, 255, .05);
    color: var(--cm-text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.axv-nut:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, .14);
    color: #fff;
}

.axv-khung {
    position: relative;
    height: 620px;
    border: 1px solid var(--cm-border);
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0c;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
}

.axv-khung iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0a0a0c;
}

.axv-cho {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0a0a0c;
    color: #a3b0c2;
    font-size: 13px;
    transition: opacity .3s ease;
}

.axv-cho.tat {
    opacity: 0;
    pointer-events: none;
}

.axv-cho.tat .fa-spin {
    animation-play-state: paused;
}

.axv-khung:fullscreen { border-radius: 0; border: 0; }

html.axv-full,
html.axv-full body {
    overflow: hidden !important;
}

html.axv-full .header-wrapper,
html.axv-full .footer-wrapper,
html.axv-full .axv-bar,
html.axv-full #aiapiSidebar {
    display: none !important;
}

html.axv-full .axv-khung {
    position: fixed;
    inset: 0;
    height: auto !important;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #0a0e1a;
    z-index: 9999;
}

.axv-mep,
.axv-noi {
    display: none;
}

html.axv-full .axv-mep {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    z-index: 12;
}

html.axv-full .axv-noi {
    display: flex;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 14;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--cm-border);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: rgba(17, 24, 39, .96);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    opacity: 0;
    transform: translate(-50%, -110%);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

html.axv-full .axv-noi.hien {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.axv-thoat {
    display: none;
}

html.axv-full .axv-thoat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 10001;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--cm-border-strong);
    background: rgba(12, 16, 28, .82);
    backdrop-filter: blur(8px);
    color: #e8ecf6;
    font-size: 12px;
    cursor: pointer;
}

html.axv-full .axv-thoat:hover {
    filter: brightness(1.18);
}

html.axv-full.axv-ruot-co-nut-thoat .axv-thoat,
html.axv-full.axv-ruot-co-nut-thoat .axv-mep,
html.axv-full.axv-ruot-co-nut-thoat .axv-noi {
    display: none;
}

.axv-ve,
.axv-an {
    display: none;
}

html.axv-dt,
html.axv-dt body {
    height: 100%;
    overscroll-behavior: none;
}

html.axv-dt .axv-khung {
    top: var(--axv-vv-top, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--axv-vv-h, 100dvh) !important;
    box-sizing: border-box;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: #0f172a;
}

html.axv-dt.axv-ban-phim .axv-khung {
    padding-bottom: 0;
}

html.axv-dt .axv-khung iframe {
    background: #0f172a;
}

html.axv-dt .axv-mep,
html.axv-dt .axv-noi {
    display: none !important;
}

html.axv-dt .axv-ve {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 6px);
    left: calc(env(safe-area-inset-left, 0px) + 6px);
    z-index: 15;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--cm-border-strong);
    border-radius: 50%;
    background: rgba(12, 16, 28, .86);
    color: #e8ecf6;
    font-size: 16px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

html.axv-dt.axv-ruot-co-nut-thoat .axv-ve {
    display: none;
}

html.axv-dt .axv-an {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .axv-khung { height: 560px; }
}

html .cm-lienhe,
html.cm-chat-off .cm-lienhe,
html .cm-lienhe-keo,
html.cm-chat-off .cm-lienhe-keo {
    display: none;
}

body.aist-cursor,
body.aist-cursor * {
    cursor: var(--ais-grab);
}

body.aist-cursor input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
body.aist-cursor textarea,
body.aist-cursor [contenteditable="true"] {
    cursor: text;
}

body.aist-cursor :disabled,
body.aist-cursor [aria-disabled="true"] {
    cursor: not-allowed;
}
