/* 2026-10-31: source HTML full-screen poster preview only. */
body .poster-preview,body.h5-ui #owner-material-detail.poster-preview{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:rgba(0,0,0,.94);color:#fff;display:flex;flex-direction:column;overflow:hidden;color-scheme:dark;backdrop-filter:brightness(0);-webkit-backdrop-filter:brightness(0)}
body .poster-preview .poster-preview-top{width:100%;height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0;display:flex;align-items:center;gap:10px;flex:none;position:relative;z-index:3}
body .poster-preview .poster-preview-top strong{flex:1;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px;font-weight:600;color:#fff}
body .poster-preview .poster-preview-top button[data-close],body.h5-ui #owner-material-detail.poster-preview #owner-material-back{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:18px;line-height:32px}
.poster-preview .poster-hd{font-size:10px;color:#fff;background:rgba(10,122,255,.85);padding:3px 8px;border-radius:4px;font-weight:600;white-space:nowrap}
body .poster-preview .material-detail-image,body.h5-ui #owner-material-detail.poster-preview .material-detail-image{position:relative;flex:1;width:100%;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;pointer-events:auto}
body .poster-preview .material-detail-image img,body.h5-ui #owner-material-detail.poster-preview .material-detail-image img{width:calc(100% - 34px);height:auto;max-width:calc(100% - 34px);max-height:calc(100% - 40px);object-fit:contain;border-radius:10px;box-shadow:0 16px 50px rgba(0,0,0,.6);margin:0;user-select:none;-webkit-user-drag:none;pointer-events:none}
body .poster-preview .poster-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:24px;line-height:34px;touch-action:manipulation}
.poster-arrow.left{left:6px}.poster-arrow.right{right:6px}
/* Real posters may be white: retain the source button fill and outline the glyph. */
body .poster-preview .poster-arrow{text-shadow:0 1px 3px rgba(0,0,0,.9);box-shadow:0 1px 4px rgba(0,0,0,.25)}
body .poster-preview .poster-gesture-hint{position:absolute;bottom:8px;left:0;right:0;margin:0;text-align:center;color:rgba(255,255,255,.6);font-size:11px;pointer-events:none}
body .poster-preview .poster-preview-foot{width:100%;padding:12px 16px calc(38px + env(safe-area-inset-bottom));flex:none;text-align:left;position:relative;z-index:3}
body .poster-preview .poster-preview-meta{display:flex;justify-content:space-between;gap:8px;color:rgba(255,255,255,.72);font-size:11px;margin-bottom:10px;padding:0 2px;flex-wrap:wrap}
body .poster-preview .poster-preview-foot>button.primary{width:100%;height:46px;min-height:46px;border:0;border-radius:23px;background:#0A7AFF;color:white;font-size:16px;font-weight:600;box-shadow:0 6px 18px rgba(10,122,255,.4);padding:0 12px}
body .poster-preview [data-hd-state]{position:absolute;bottom:14px;left:16px;right:16px;font-size:10px!important;text-align:center;color:rgba(255,255,255,.6)!important;margin:0!important;pointer-events:none}
body.pc-admin .poster-preview .material-detail-image img{width:auto;max-width:90%;max-height:calc(100% - 40px)}
body.pc-admin .poster-preview .poster-preview-foot{max-width:600px;align-self:center}
