/* 游戏截图点击放大（PC + WAP 共用） */
.xm-ss-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 12px 12px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.92);
}
.xm-ss-lightbox[hidden] { display: none !important; }
body.xm-ss-lightbox-open { overflow: hidden; }

.xm-ss-lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.xm-ss-lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }

.xm-ss-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 56px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.xm-ss-lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.xm-ss-lightbox__nav--prev { left: 8px; }
.xm-ss-lightbox__nav--next { right: 8px; }
.xm-ss-lightbox__nav[hidden] { display: none !important; }

.xm-ss-lightbox__stage {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.xm-ss-lightbox__img {
    display: block;
    max-width: min(92vw, 520px);
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
}
.xm-ss-lightbox__counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    z-index: 2;
}
.xm-ss-lightbox__counter[hidden] { display: none !important; }

[data-xm-screenshot-gallery] img {
    cursor: zoom-in;
}
.xm-screenshot-thumb {
    flex-shrink: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 8px;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.xm-screenshot-thumb img {
    display: block;
    pointer-events: none;
}
