/* ==========================================================================
   assets/css/page-moments.css — moments-all.php, moment-add.php, moment-view.php.
   References: lite5/moments-all-preview.html, moment-add-preview.html,
   moment-view-preview.html. Page-specific layout only — tokens/colours/
   radii/shadows come from brutal-lite.css (Appendix A). Shared classes these
   3 pages reuse as-is because they already match the reference exactly
   (.back-row, .page-sub, .moments-grid, .moments-strip, .moment-card*,
   .empty-moment*, .anon-avatar) stay in lite-place.css since other pages
   (profile.php, block-confirm.php, place.php) use them too — grepped first.
   Owner: builder B1.
   ========================================================================== */

/* ---- moment-add.php: slim top row, place chip, photo picker, caption ---- */
.top-row{display:flex;align-items:center;justify-content:center;position:relative;padding:4px 0 6px;}
.top-close{position:absolute;left:0;top:-2px;width:34px;height:34px;border-radius:50%;background:var(--card-2);
  display:flex;align-items:center;justify-content:center;color:var(--ink);font-size:16px;text-decoration:none;}
.top-title{font:800 15px/1 var(--font-ui);color:var(--ink);}
.place-chip{display:flex;align-items:center;gap:10px;height:56px;border-radius:var(--r-ctl);background:var(--card-2);padding:0 14px;margin-top:10px;}
.place-chip img{width:34px;height:34px;border-radius:9px;object-fit:cover;flex:0 0 auto;background:#fff;}
.place-chip .place-text{flex:1;min-width:0;font:700 14px/1.2 var(--font-ui);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.place-chip .place-text span{display:block;font-size:11.5px;color:var(--muted);font-weight:500;margin-top:1px;}
.place-chip .lock-ic{color:var(--muted-2);font-size:15px;flex:0 0 auto;}
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px;}
.photo-slot{position:relative;aspect-ratio:1/1;border-radius:14px;overflow:hidden;background:var(--card-2);border:0;}
.photo-slot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.photo-slot .remove-x{position:absolute;top:6px;right:6px;width:20px;height:20px;border-radius:50%;
  background:rgba(20,21,24,.6);color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center;border:0;cursor:pointer;}
.photo-slot.add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  border:1.5px dashed var(--line);background:var(--card-2);color:var(--muted);cursor:pointer;}
.photo-slot.add i{font-size:20px;color:var(--muted-2);}
.photo-slot.add span{font-size:10.5px;font-weight:700;}
.photo-hint{font-size:11.5px;color:var(--muted-2);font-weight:600;margin-top:8px;}
.caption-box{margin-top:18px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);padding:14px;}
.caption-textarea{width:100%;min-height:72px;border:none;outline:none;resize:none;font-family:inherit;
  font-size:14.5px;font-weight:500;color:var(--ink);line-height:1.5;padding:0;background:none;}
.caption-textarea::placeholder{color:var(--muted-2);font-weight:500;}
.char-counter{text-align:right;font-size:11.5px;color:var(--muted-2);font-weight:600;margin-top:6px;}
.shows-note{display:flex;align-items:flex-start;gap:8px;margin-top:14px;font-size:12px;font-weight:600;color:var(--muted);line-height:1.4;}
.shows-note i{font-size:15px;color:var(--muted-2);flex:0 0 auto;margin-top:1px;}

/* ---- moment-view.php: full-screen dark viewer (its own body class, no tab bar) ----
   Ported from the old body.lite-moment-view block in lite-place.css, fixing its
   var(--sat)/var(--sab) safe-area offsets: that custom property is only ever defined
   in the orphaned assets/css/lite.css (never actually linked by any page — checked),
   so those calc()s were silently invalid and the safe-area inset was never applied.
   Using env(safe-area-inset-*, 0px) directly instead, same as brutal-lite-web.css
   does everywhere else on the real site. */
body.lite-moment-view{margin:0;background:#141518;}
.mv-wrap{position:relative;min-height:100vh;}
.mv-photo{position:fixed;inset:0;overflow:hidden;background:#141518;}
.mv-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.mv-grad-top{position:fixed;top:0;left:0;right:0;height:170px;background:linear-gradient(rgba(0,0,0,.5),transparent);z-index:5;pointer-events:none;}
.mv-grad-bottom{position:fixed;bottom:0;left:0;right:0;height:300px;background:linear-gradient(transparent,rgba(0,0,0,.78));z-index:5;pointer-events:none;}
.mv-top{position:fixed;top:calc(14px + env(safe-area-inset-top,0px));left:0;right:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 14px;max-width:480px;margin:0 auto;}
.round-btn{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.14);border:none;
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;backdrop-filter:blur(8px);cursor:pointer;}
.menu-sheet{position:fixed;top:calc(54px + env(safe-area-inset-top,0px));right:max(14px,calc(50% - 226px));z-index:60;background:#fff;
  border-radius:14px;overflow:hidden;box-shadow:var(--soft);min-width:188px;}
.menu-item{display:flex;align-items:center;gap:10px;width:100%;border:none;background:none;font-family:inherit;
  padding:13px 14px;font-size:13.5px;font-weight:700;color:var(--ink);border-bottom:1px solid var(--line);text-align:left;cursor:pointer;}
.menu-item:last-child{border-bottom:none;}
.menu-item i{font-size:16px;color:var(--muted);flex:0 0 auto;}
.menu-item.danger{color:var(--red);}
.menu-item.danger i{color:var(--red);}
.mv-bottom{position:fixed;left:16px;right:16px;bottom:calc(32px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;flex-direction:column;gap:10px;max-width:448px;margin:0 auto;}
.user-line{display:flex;align-items:center;gap:8px;}
.user-line img{width:32px;height:32px;border-radius:50%;object-fit:cover;border:1.5px solid rgba(255,255,255,.8);}
.user-line .anon-avatar{width:32px;height:32px;font-size:16px;border:1.5px solid rgba(255,255,255,.8);background:rgba(255,255,255,.22);color:#fff;}
.user-line .uname{font:700 14.5px/1 var(--font-ui);color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.4);text-decoration:none;}
.user-line .uname.is-anon{cursor:default;}
.user-line .udate{font-size:12px;font-weight:600;color:rgba(255,255,255,.7);margin-left:2px;}
.mv-caption{font:600 14.5px/1.4 var(--font-ui);color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.4);}
/* box-shadow:none overrides brutal.css's shared ".pcard,.pcreator,.place-card,..."
   rule (box-shadow:var(--sh)) — same specificity-tie class of bug as elsewhere on
   this page: this rule redeclares background/border/radius so those already win,
   but never touched box-shadow, so the old hard shadow survived underneath. The
   reference's place-card is flat glass, no shadow. */
.place-card{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.18);border-radius:13px;padding:8px 10px;max-width:100%;align-self:flex-start;text-decoration:none;box-shadow:none;}
.place-card img{width:28px;height:28px;border-radius:8px;object-fit:cover;flex:0 0 auto;}
.place-card .pc-text{min-width:0;}
.place-card .pc-name{font:700 12.5px/1.2 var(--font-ui);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.place-card .pc-sub{font:600 11px/1.2 var(--font-ui);color:rgba(255,255,255,.7);}
.place-card .caret{color:rgba(255,255,255,.8);font-size:13px;flex:0 0 auto;margin-left:2px;}
