/* 图集 / 图文 post（gallery-post.js）：横向轮播、页码点、n / N、卡片角标。跟随播放器的深色沉浸样式，不加卡片框。 */
.gp-track{background:#050506}
.gp-pane{display:flex;align-items:center;justify-content:center;background:#050506}
.gp-frame{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.gp-pane img,.gp-frame img{display:block;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none}
/* 裁底边（底部广告水印）：框按裁后的比例 contain，图片顶对齐、超出的底边被框裁掉；量好尺寸前先不显示，免得闪一下水印 */
[data-crop] .gp-frame{overflow:hidden;align-items:flex-start;flex:none}
[data-crop] .gp-frame img{height:auto;opacity:0}
[data-crop] .gp-frame img.gp-ready{opacity:1}
.post-viewer-page>.gp-frame{width:100%;height:100%}
.post-viewer .post-viewer-share{position:absolute;top:calc(var(--safe-top) + 8px);right:calc(var(--safe-right,0px) + 12px);z-index:2;background:rgb(0 0 0 / 48%)}
/* 卡片封面（图集第一张）：竖图放进横卡片时偏上取景，底边水印基本落在卡片外 */
.lv-cover:has(.gp-badge) img,.card:has(.gp-badge) img.cover,.me-grid>button:has(.gp-badge) img,.cp-work:has(.gp-badge) img{object-position:50% 25%}
/* 右上「n / N」，暂停时多一个暂停符号；点一下时轻轻闪一下 */
.gp-count{display:flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums;pointer-events:none}
.gp-count .gp-state{display:inline-flex;width:12px;height:12px}
.gp-count .gp-state[hidden]{display:none}
.gp-count .gp-state svg{width:12px;height:12px}
.gp-count.gp-flash{animation:gp-flash .5s ease}
@keyframes gp-flash{0%{transform:scale(1)}40%{transform:scale(1.12)}100%{transform:scale(1)}}
/* 页码点：图片下方居中（说明文字上面），最多 9 个，超出的两端变小 */
.gp-dots{position:absolute;left:0;right:0;bottom:var(--gp-dots-bottom,148px);z-index:5;display:flex;justify-content:center;align-items:center;gap:5px;pointer-events:none}
.gp-dots:empty{display:none}
.gp-dots i{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.42);box-shadow:0 0 3px rgba(0,0,0,.35);transition:transform .2s ease,background-color .2s ease}
.gp-dots i.on{background:#fff;transform:scale(1.2)}
.gp-dots i.edge{transform:scale(.6)}
.gp-dots i.vid{border-radius:2px}
.feed-mode.feed-clear .feed-item .gp-dots,.feed-item.is-commenting .gp-dots{opacity:0}
/* 网格卡片右上角角标：图集图标 + 张数 */
.gp-badge{position:absolute;top:6px;right:6px;z-index:2;display:inline-flex;align-items:center;gap:3px;height:20px;padding:0 6px;border-radius:10px;background:rgba(0,0,0,.52);color:#fff;font-size:11px;font-weight:600;line-height:1;pointer-events:none}
.gp-badge svg{width:13px;height:13px;flex:none}
.gp-badge b{font-weight:600;font-variant-numeric:tabular-nums}
.gp-badge .gp-badge-play{display:inline-flex}
.gp-badge .gp-badge-play svg{width:10px;height:10px}
.me-grid>button,.cp-work{position:relative}
@media (prefers-reduced-motion:reduce){.gp-count.gp-flash{animation:none}.gp-dots i{transition:none}}
