/* EYEROOM-PROFILE-GALLERY-V6 — Scenes, cinema-tagged icon, real video frame stills. */
.eyeroom-profile-gallery-v5{width:100%;min-width:0;margin:14px 0 20px;color:var(--profile-text,#f7f7f4)}
.eyeroom-gallery-switcher{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:0;border-bottom:1px solid rgba(236,203,107,.22);margin-bottom:3px}
.eyeroom-gallery-switcher>button{position:relative;min-width:0;border:0;border-bottom:2px solid transparent;background:transparent;color:#b8bdb9;padding:11px 3px;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;font:inherit}
.eyeroom-gallery-nav-icon{display:flex;align-items:center;justify-content:center;height:26px;width:26px}
.eyeroom-gallery-nav-icon svg{width:24px;height:24px;display:block}
.eyeroom-gallery-switcher>button[aria-selected="true"]{color:var(--profile-accent,#ecc56b);border-color:var(--profile-accent,#ecc56b)}
.eyeroom-gallery-switcher>button:focus-visible,.eyeroom-gallery-tile:focus-visible{outline:2px solid var(--profile-accent,#ecc56b);outline-offset:-2px;z-index:2}
.eyeroom-gallery-label{font-size:11px;font-weight:600;letter-spacing:.025em}
.eyeroom-gallery-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;width:100%;}
.eyeroom-gallery-tile{position:relative;padding:0;border:0;min-width:0;aspect-ratio:1/1;background:#0c1512;overflow:hidden;color:#d9c996;cursor:pointer}
.eyeroom-gallery-tile img,.eyeroom-gallery-tile video{display:block;width:100%;height:100%;object-fit:cover}
.eyeroom-gallery-art{width:100%;height:100%;display:grid;place-items:center;padding:8%;box-sizing:border-box;text-align:center;font-size:clamp(11px,1.5vw,16px);font-weight:650;line-height:1.25;overflow-wrap:anywhere;background:linear-gradient(135deg,#143229,#040908 78%)}
.eyeroom-gallery-video-art{background:radial-gradient(circle at 70% 20%,#205344,#030907 78%)}
.eyeroom-gallery-type,.eyeroom-gallery-rerun{position:absolute;right:8px;top:5px;color:#fff;font-size:24px;text-shadow:0 1px 6px #0009}
.eyeroom-gallery-rerun{right:auto;left:7px}
.eyeroom-gallery-more{display:block;margin:14px auto;border:1px solid #9d854d;background:#10231a;color:#eed08c;border-radius:14px;padding:10px 20px;font:inherit;cursor:pointer}
.eyeroom-gallery-more[hidden]{display:none}
.eyeroom-gallery-empty{margin:0;padding:28px 14px;color:#c2c6bf;text-align:center;font-size:14px}
.eyeroom-gallery-post-dialog{width:min(580px,95vw);max-height:92vh;overflow-y:auto;border:1px solid #8f793f;border-radius:16px;background:#0b110f;color:#f5f5f5;padding:24px;box-shadow:0 18px 65px #000c}
.eyeroom-gallery-post-dialog::backdrop{background:#000d}
.eyeroom-gallery-post-dialog h2{font-size:22px;color:#f5f5f5;overflow-wrap:anywhere;margin:18px 0 10px}
.eyeroom-gallery-post-dialog p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.eyeroom-gallery-close{float:right;color:#fff;border:1px solid #ab9159;background:#10231b;border-radius:100px;padding:3px 10px;font-size:24px;cursor:pointer}
.eyeroom-gallery-full-media{display:block;width:100%;max-height:65vh;object-fit:contain;margin:18px auto;border-radius:6px}
.eyeroom-gallery-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}
.eyeroom-gallery-actions a,.eyeroom-gallery-actions button{border:1px solid #a58a52;background:#13241b;color:#eac878;border-radius:14px;padding:12px 16px;font:inherit;text-decoration:none;cursor:pointer}
/* Hide only the redundant Posts nav, not Reviews/Watch History/etc. */
.cine-hub-page .hub-tabs [data-hub-view="posts"],#film-club-profile .cine-profile-nav [data-cine-profile-tab="posts"]{display:none!important}
/* The already-rendered legacy post list is replaced visually by the gallery. */
.cine-hub-page[data-hub-view="posts"] .hub-personal-content,#film-club-profile .community-profile-body:has(.eyeroom-profile-gallery-v5) .cine-profile-content.eyeroom-posts-bio-v4-panel{display:none!important}
#film-club-profile .community-profile-body:has(.eyeroom-profile-gallery-v5) .cine-profile-content.eyeroom-member-posts-under-bio-v3{display:none!important}
/* Show other tabs' content, even if old V3 placed the panel after the bio. */
#film-club-profile .community-profile-body:has([data-cine-profile-tab="reviews"][aria-current="page"]) .cine-profile-content,#film-club-profile .community-profile-body:has([data-cine-profile-tab="history"][aria-current="page"]) .cine-profile-content{display:block!important}
@media (max-width:650px){.eyeroom-gallery-switcher>button{padding:11px 0}.eyeroom-gallery-label{font-size:10px}.eyeroom-gallery-art{font-size:11px}.eyeroom-gallery-post-dialog{padding:18px}}

/* Offscreen, but document-mounted capture element is more reliable on iOS Safari. */
.eyeroom-gallery-capture{position:fixed!important;left:-10000px!important;top:0!important;width:2px!important;height:2px!important;opacity:0!important;pointer-events:none!important;z-index:-1!important}
