/* V29: unified poster/gallery zoom + Reddit post cards and one-click link import. */
.mwb-photo-lightbox{position:fixed;inset:0;z-index:2147483001;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:16px;background:rgba(4,3,12,.94);backdrop-filter:blur(12px);box-sizing:border-box}
.mwb-photo-large{display:block;max-width:min(96vw,1800px);max-height:calc(100dvh - 105px);width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 12px 70px #000b}
.mwb-photo-toolbar{display:flex;gap:15px;align-items:center;justify-content:center;background:#180f2df0;border:1px solid #a773ca;border-radius:100px;padding:8px 13px;color:#fff;font:700 14px system-ui}
.mwb-photo-toolbar button{background:#4b2560;border:1px solid #bd8de1;border-radius:50%;color:white;font-size:17px;cursor:pointer;width:39px;height:39px}
.mwb-photo-toolbar button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.mwb-photo-counter{min-width:43px;text-align:center;font-variant-numeric:tabular-nums}
:is(.detail-poster,.mwb-profile-portrait,.mwb-fast-image-preview,.mwb-fast-gallery-preview,.mwb-category-image-preview,.media-half)>img:not(.detail-sticker):not(.lang-sticker){cursor:zoom-in}
.mwb-card-detail-links{display:flex;gap:6px;justify-content:space-around;padding:5px 9px 8px}
.mwb-card-detail-links button{border:1px solid #b9a3d6aa;border-radius:8px;background:#27173acc;color:#fff;font:700 11px system-ui;min-height:29px;padding:5px 8px;cursor:pointer}
.mwb-card-detail-links button:hover{border-color:#fff;background:#53336c}
.mwb-auto-import{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}
.mwb-auto-import button{border:1px solid #e6a4ff;border-radius:10px;color:#fff;background:#4d256d;min-height:38px;padding:8px 13px;font:700 12px system-ui;cursor:pointer}
.mwb-auto-import button:disabled{opacity:.6;cursor:progress}
.mwb-auto-import small{font-size:11px;line-height:1.5;color:#d1c1e1}
.mwb-reddit-stage{width:min(100%,700px);margin:auto;padding:12px;box-sizing:border-box;border:1px solid #9e76b8;border-radius:12px;background:#170f20}
.mwb-reddit-stage blockquote{max-width:100%;overflow:auto;background:#fff;color:#202020;padding:10px;margin:0 0 10px;border-radius:7px}
.mwb-reddit-fallback{display:block;color:#fff;text-decoration:underline;font:700 13px system-ui;padding:10px}
.mwb-player-stage:has(.mwb-reddit-stage){max-width:100%;height:auto;min-height:360px}
@media(max-width:620px){.mwb-photo-lightbox{padding:6px}.mwb-photo-large{max-width:100%;max-height:calc(100dvh - 85px)}.mwb-card-detail-links{flex-wrap:wrap}}

/* Six quick editor modes, comfortable on large and small screens. */
.mwb-fast-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:1450px){.mwb-fast-nav{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:580px){.mwb-fast-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V30: image and Reddit modal share the video cinema treatment. */
.mwb-photo-lightbox{background:rgba(3,2,10,.94)!important;backdrop-filter:blur(13px);padding:clamp(8px,2vw,26px)}
.mwb-photo-large{max-width:min(96vw,1600px);max-height:calc(100dvh - 103px);border:2px solid #ac79d5;border-radius:14px;background:#10091c;box-shadow:0 20px 85px #000e;object-fit:contain}
.mwb-photo-back{width:auto!important;padding:0 14px!important;border-radius:9px!important;font-size:13px!important}
.mwb-profile-photo-gallery img{cursor:zoom-in}
.mwb-reddit-lightbox{position:fixed;inset:0;z-index:2147483002;display:grid;place-items:center;padding:clamp(8px,2vw,24px);background:rgba(3,2,12,.93);backdrop-filter:blur(13px);box-sizing:border-box}
.mwb-reddit-dialog{display:flex;flex-direction:column;width:min(95vw,850px);min-width:0;max-height:94dvh;overflow:hidden;border:1px solid #b476cd;border-radius:17px;background:#1a102b;color:white;box-shadow:0 25px 90px #000d}
.mwb-reddit-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:55px;padding:10px 14px;background:linear-gradient(100deg,#321541,#1a102b)}
.mwb-reddit-toolbar strong{font:700 15px system-ui,sans-serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.mwb-reddit-actions{display:flex;gap:7px;flex-shrink:0}
.mwb-reddit-actions button{cursor:pointer;min-height:38px;padding:7px 12px;border-radius:8px;border:1px solid #be8bd6;background:#512766;color:white;font:700 13px system-ui,sans-serif}
.mwb-reddit-body{width:100%;min-height:110px;max-height:calc(94dvh - 120px);overflow-y:auto;overflow-x:hidden;padding:clamp(8px,2vw,18px);box-sizing:border-box;display:flex;flex-direction:column;align-items:center}
.mwb-reddit-body .reddit-embed-bq{display:block;width:100%;height:auto!important;min-height:0!important;max-width:700px;margin:0 auto!important;background:#fff;color:#202020;border-radius:8px;padding:10px;box-sizing:border-box;overflow:visible}
.mwb-reddit-body iframe{display:block;max-width:100%!important;margin:0 auto!important}
.mwb-reddit-original{display:block;text-align:center;color:white;border-top:1px solid #60356c;padding:12px;font:700 13px system-ui,sans-serif}
@media(max-width:640px){.mwb-reddit-lightbox{padding:0}.mwb-reddit-dialog{width:100%;max-height:100dvh;height:100dvh;border-radius:0}.mwb-reddit-body{max-height:calc(100dvh - 112px)}.mwb-photo-toolbar{gap:8px;padding:7px}.mwb-photo-back{padding:0 8px!important}}

/* V31: actual picture modal and explicit profile zoom action. */
.mwb-photo-dialog{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;max-width:100%;max-height:100%;min-width:0}
.mwb-photo-lightbox{z-index:2147483005!important}
.mwb-photo-dialog>.mwb-photo-large{display:block;width:auto!important;height:auto!important;min-width:0;max-width:min(96vw,1600px)!important;max-height:calc(100dvh - 112px)!important;object-fit:contain}
.mwb-photo-toolbar{flex-shrink:0;max-width:100%;flex-wrap:wrap}
.mwb-photo-toolbar button[hidden]{display:none!important}
.mwb-profile-zoom-btn{min-height:40px;padding:8px 15px;border-radius:11px;border:1px solid #c38de5;color:#fff;background:#43205f;font:700 13px system-ui;cursor:zoom-in}
.mwb-profile-portrait img,.mwb-fast-image-preview img,.mwb-fast-gallery-preview img,.detail-poster img:not(.detail-sticker){cursor:zoom-in}
.mwb-profile-photo-gallery button img{cursor:pointer}
@media(max-width:600px){.mwb-photo-dialog>.mwb-photo-large{max-height:calc(100dvh - 140px)!important}.mwb-photo-dialog{gap:8px}}

/* V32: photo zoom is strictly an artist-profile feature. Drama imagery retains its old interaction. */
.detail-poster img:not(.detail-sticker),.mwb-category-image-preview img,.media-half>img{cursor:inherit!important}
.mwb-autofill-shell .mwb-fast-card{max-width:980px;margin-inline:auto}
.mwb-autofill-shell #mwb-import-preview img{max-width:min(100%,420px);max-height:280px;object-fit:contain;cursor:default}
