.xh-wall-page {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.xh-wall {
    position: relative;
    min-height: calc(100vh - 76px);
    overflow: hidden;
    color: var(--main-color, inherit);
}

.xh-wall-stage {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: auto;
    overflow: hidden;
    transform: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    mask-image: none;
    -webkit-mask-image: none;
    pointer-events: none;
}

.xh-wall-bubble {
    position: absolute;
    left: 100%;
    top: calc(18px + var(--row) * var(--row-height, 58px));
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 10px;
    max-width: none;
    height: 44px;
    padding: 5px 18px 5px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .74);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
    animation: xh-wall-scroll var(--duration) linear infinite;
    animation-delay: var(--delay);
    cursor: pointer;
    pointer-events: auto;
    will-change: transform;
}

.xh-wall-bubble.is-selected {
    z-index: 20;
    background: var(--main-bg-color, rgba(255, 255, 255, .92));
    color: var(--main-color, #333);
    animation-play-state: paused;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
}

.xh-wall-bubble img {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.xh-wall-bubble span {
    overflow: visible;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-overflow: clip;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    white-space: nowrap;
}

.xh-wall-bubble.is-selected span {
    color: var(--main-color, #333);
    text-shadow: none;
}

.xh-wall-bubble .xh-wall-like-count,
.xh-wall-bubble .xh-wall-like {
    display: none;
}

.xh-wall-bubble.is-selected .xh-wall-like-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--muted-border-color, rgba(0, 0, 0, .08));
    color: var(--muted-color, #666);
    font-size: 12px;
    font-weight: 800;
}

.xh-wall-bubble.is-selected .xh-wall-like-count.is-empty {
    display: none;
}

.xh-wall-bubble.is-selected .xh-wall-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--focus-color, #409eff);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.xh-wall-bubble.is-selected .xh-wall-like:disabled {
    cursor: wait;
    opacity: .72;
}

.xh-wall-bubble.is-featured {
    gap: 8px;
    min-width: 150px;
    height: 50px;
    padding: 0 24px 0 62px;
    border: 2px solid var(--xh-featured-border, #ffde89);
    background: linear-gradient(135deg, var(--xh-featured-bg-start, #713785), var(--xh-featured-bg-end, #b844ad));
    color: var(--xh-featured-text, #fff);
    overflow: visible;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 36px rgba(0, 0, 0, .18), 0 0 34px color-mix(in srgb, var(--xh-featured-bg-end, #b844ad) 30%, transparent);
}

.xh-wall-bubble.is-featured::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 50%;
    z-index: 1;
    width: 50px;
    height: 50px;
    border: 3px solid var(--xh-featured-ring, #ffe287);
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--xh-featured-bg-start, #713785) 70%, #000), 0 7px 15px rgba(0, 0, 0, .22);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.xh-wall-bubble.is-featured > span:not(.xh-wall-like-count),
.xh-wall-bubble.is-featured.is-selected > span:not(.xh-wall-like-count) {
    color: var(--xh-featured-text, #fff);
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-shadow: none;
}

.xh-wall-bubble.is-featured img {
    position: absolute;
    left: 30px;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, .95);
    box-shadow: 0 5px 13px rgba(0, 0, 0, .22);
    transform: translate(-50%, -50%);
}

.xh-wall-bubble.is-featured .xh-wall-like-count {
    background: rgba(255, 255, 255, .45);
    color: inherit;
}

.xh-wall-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    font-weight: 800;
    transform: translate(-50%, -50%);
}

.xh-wall-compose {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 999;
    transform: translateX(-50%);
    text-align: center;
}

.xh-wall-open {
    min-width: 168px;
    height: 52px;
    padding: 0 34px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 999px;
    outline: none;
    background: var(--main-bg-color, rgba(255, 255, 255, .82));
    color: var(--main-color, #333);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.xh-wall-open:hover {
    background: var(--muted-border-color, rgba(255, 255, 255, .92));
}

.xh-wall-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.xh-wall-modal.is-open {
    display: flex;
}

.xh-wall-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.xh-wall-modal-panel {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(var(--xh-wall-modal-width, 460px), calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 18px;
    background: rgba(28, 14, 17, .92);
    color: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .35);
    text-align: left;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.xh-wall-modal-panel h2 {
    margin: 0 42px 0 0;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.25;
}

.xh-wall-modal-panel > p {
    margin: 8px 0 20px;
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    line-height: 1.7;
}

.xh-wall-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 22px;
    line-height: 34px;
    cursor: pointer;
}

.xh-wall-modal-close:hover {
    background: rgba(255, 255, 255, .2);
}

.xh-wall-form {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
}

.xh-wall-form .comment-form-cookies-consent,
.xh-wall-form label {
    display: none !important;
}

.xh-wall-form .comment-form-url,
.xh-wall-form .xh-wall-field {
    width: 100%;
    margin: 0 0 12px;
}

.xh-wall-form input,
.xh-wall-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 14px;
    outline: none;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.xh-wall-form input {
    height: 44px;
    padding: 0 14px;
}

.xh-wall-form textarea {
    min-height: 108px;
    max-height: 190px;
    padding: 13px 14px;
    resize: vertical;
}

.xh-wall-form input::placeholder,
.xh-wall-form textarea::placeholder {
    color: rgba(255, 255, 255, .62);
}

.xh-wall-submit-wrap,
.xh-wall-form .form-submit {
    width: 50%;
    margin: 16px 0 0;
    text-align: right;
}

.xh-wall-tools {
    width: 50%;
    margin: 16px 0 0;
    text-align: left;
}

.xh-wall-ai-blessing {
    min-width: 132px;
    height: 42px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.xh-wall-ai-blessing:hover {
    background: rgba(255, 255, 255, .16);
}

.xh-wall-ai-blessing:disabled {
    cursor: wait;
    opacity: .68;
}

.xh-wall-submit {
    min-width: 132px;
    height: 42px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.xh-wall-submit:hover {
    background: rgba(255, 255, 255, .18);
}

.xh-wall-closed {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.xh-wall-settings {
    position: absolute;
    right: 34px;
    bottom: 30px;
    z-index: 8;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
}

.xh-wall.is-paused .xh-wall-bubble {
    animation-play-state: paused;
}

.xh-wall-featured-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 300px;
    max-width: min(500px, calc(100vw - 40px));
    max-height: 300px;
    padding: 14px 16px 16px;
    border: 1px solid color-mix(in srgb, var(--muted-border-color, #e3e8f7) 72%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--main-bg-color, #fff) 88%, transparent);
    color: var(--main-color, #363636);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .14);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.xh-wall-featured-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.xh-wall-featured-popup.is-closed {
    display: none;
}

.xh-wall-featured-popup:hover {
    border-color: var(--focus-color, #425aef);
}

.xh-wall-featured-popup-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding-right: 58px;
}

.xh-wall-featured-popup-title {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 7px;
    border-radius: 4px;
    background: var(--main-color, #363636);
    color: var(--main-bg-color, #fff);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.xh-wall-featured-popup-author {
    overflow: hidden;
    color: var(--muted-color, #666);
    font-size: 12px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xh-wall-featured-popup-like {
    position: absolute;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    border: 0;
    border-radius: 10px;
    background: var(--muted-border-color, rgba(0, 0, 0, .06));
    color: var(--main-color, #363636);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

.xh-wall-featured-popup-like {
    right: 0;
    min-width: 48px;
    padding: 0 10px;
}

.xh-wall-featured-popup-like:hover {
    background: var(--muted-border-color, rgba(66, 90, 239, .1));
    color: var(--focus-color, #425aef);
}

.xh-wall-featured-popup-like:disabled {
    cursor: wait;
    opacity: .68;
}

.xh-wall-featured-popup-divider {
    width: 100%;
    margin-top: 6px;
    border-top: 1px solid var(--muted-border-color, #e3e8f7);
}

.xh-wall-featured-popup-content {
    margin-top: 12px;
    overflow: auto;
    cursor: pointer;
}

.xh-wall-featured-popup-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xh-wall-featured-popup-avatar {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--muted-border-color, #e3e8f7);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.xh-wall-featured-popup-text {
    min-width: 0;
    font-size: 15px;
    line-height: 1.55;
}

.xh-wall-featured-popup-text p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
}

@keyframes xh-wall-scroll {
    from {
        transform: translate3d(12vw, 0, 0);
    }

    to {
        transform: translate3d(calc(-100vw - 520px), 0, 0);
    }
}

@media (max-width: 900px) {
    .xh-wall {
        min-height: calc(100vh - 62px);
    }

    .xh-wall-stage {
        inset: 0;
        width: 100%;
        height: auto;
        --row-height: 52px;
    }

    .xh-wall-bubble {
        max-width: none;
        height: 40px;
        padding-right: 14px;
    }

    .xh-wall-bubble img {
        width: 30px;
        height: 30px;
    }

    .xh-wall-bubble span {
        font-size: 13px;
    }

    .xh-wall-bubble.is-featured {
        min-width: 132px;
        height: 44px;
        padding-left: 54px;
        padding-right: 18px;
    }

    .xh-wall-bubble.is-featured::before {
        left: 27px;
        width: 44px;
        height: 44px;
    }

    .xh-wall-bubble.is-featured img {
        left: 27px;
        width: 36px;
        height: 36px;
    }

    .xh-wall-bubble.is-featured > span:not(.xh-wall-like-count),
    .xh-wall-bubble.is-featured.is-selected > span:not(.xh-wall-like-count) {
        font-size: 13px;
    }

    .xh-wall-featured-popup {
        right: 12px;
        bottom: 12px;
        left: 12px;
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .xh-wall {
        min-height: 660px;
    }

    .xh-wall-stage {
        inset: 0;
        --row-height: 48px;
    }

    .xh-wall-compose {
        bottom: 24px;
    }

    .xh-wall-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .xh-wall-modal-panel {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 22px;
        border-radius: 18px;
    }

    .xh-wall-modal-panel h2 {
        font-size: 24px;
    }

    .xh-wall-tools,
    .xh-wall-submit-wrap,
    .xh-wall-form .form-submit {
        width: 100%;
        text-align: center;
    }

    .xh-wall-ai-blessing,
    .xh-wall-submit {
        width: 100%;
    }
}
