/* Moments feed, album view, comments sheet */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(31,27,22,.12); }

.feed { display: flex; flex-direction: column; gap: 16px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.post > .pp { display: contents; } /* part wrappers (see moments.js render) — layout as if they weren’t there */
.post-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14.5px; color: #fff; }
.post-head .who { min-width: 0; flex: 1; }
.post-head b { font-size: 15px; }
.host-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--honey-soft); color: var(--honey-ink); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.post-head .sub { font-size: 12.5px; color: var(--muted); }
.album-title { padding: 0 14px 10px; }
.album-title .k { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--honey-ink); }
.album-title h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 2px 0 0; }

.collage { display: grid; gap: 2px; background: var(--line); }
.collage .cell { position: relative; border: 0; padding: 0; margin: 0; background: var(--surface-2); cursor: pointer; overflow: hidden; display: block; width: 100%; height: 100%; }
.collage .cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.collage .cell:hover img { transform: scale(1.02); }
.collage .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; color: #fff; backdrop-filter: blur(4px); }
.collage .play svg { width: 20px; height: 20px; margin-left: 3px; }
.collage .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.collage .more { position: absolute; inset: 0; background: rgba(20,15,8,.55); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.collage .work { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(251,248,243,.8); font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-align: center; padding: 8px; }
.collage .flag { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--honey); color: var(--ink); }
.c1 .cell { aspect-ratio: var(--ar, 4/3); max-height: 72vh; }
.c2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2/1.25; }
.c3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4/3; }
.c3 .cell:first-child { grid-row: span 2; }
.c4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1; }
.c5 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 2fr 1fr; aspect-ratio: 1 / 1.05; }
.c5 .cell:first-child { grid-column: span 3; }

.post-foot { display: flex; align-items: center; gap: 6px; padding: 10px 12px; flex-wrap: wrap; }
.rx { display: flex; gap: 4px; flex-wrap: wrap; }
.rx button, .cmt-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; height: 34px; min-width: 42px; padding: 0 10px;
  font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: transform .1s, background .15s, border-color .15s; }
.rx button b, .cmt-btn b { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rx button.on { background: var(--honey-soft); border-color: #f0cf95; }
.rx button:active { transform: scale(.92); }
.rx button.pop { animation: pop .35s; }
@keyframes pop { 40% { transform: scale(1.25); } }
.cmt-btn { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.post-foot .latest { flex-basis: 100%; font-size: 14px; color: var(--ink-2); margin: 4px 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.post-foot .latest b { color: var(--ink); }

/* album overlay */
.album-view { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.album-view .bar-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: rgba(251,248,243,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.album-view .in { max-width: 760px; margin: 0 auto; padding: 18px 12px 60px; }
.album-view h2 { font-family: var(--serif); font-size: 30px; margin: 0; }
.album-view .grid { margin-top: 16px; }
.album-view .section { margin-top: 24px; }

/* comments */
.sheet-back { position: fixed; inset: 0; z-index: 75; background: rgba(31,27,22,.4); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .sheet-back { align-items: center; } }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 86dvh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: up .22s ease-out; }
@media (min-width: 700px) { .sheet { border-radius: 20px; } }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
.sheet-head { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-head b { flex: 1; font-size: 16px; }
.sheet-list { overflow-y: auto; padding: 6px 16px; flex: 1; min-height: 120px; }
.cm { display: flex; gap: 10px; padding: 10px 0; }
.cm .av { width: 32px; height: 32px; font-size: 13px; }
.cm .bubble { background: var(--surface-2); border-radius: 4px 16px 16px 16px; padding: 8px 12px; max-width: 100%; }
.cm .bubble b { font-size: 13.5px; }
.cm .bubble p { margin: 2px 0 0; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm .meta { font-size: 12px; color: var(--muted); margin: 3px 0 0 4px; display: flex; gap: 10px; }
.cm .meta button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.sheet-form { display: flex; gap: 8px; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border: 1px solid var(--line-2); border-radius: 22px; padding: 11px 16px; outline: none; font: inherit; }
.sheet-form textarea:focus { border-color: var(--honey); }
.sheet-form .btn { border-radius: 22px; }
.album-name { display: flex; gap: 8px; margin-top: 10px; }
.album-name input { flex: 1; min-width: 0; }

/* Report sheet (guests reporting a photo, video or comment to the hosts) */
.report-form { padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 8px; overflow: auto; }
.report-opt { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 15px; }
.report-opt input { accent-color: var(--honey-2, var(--honey)); width: 18px; height: 18px; margin: 0; flex: none; }
.report-opt:has(input:checked) { border-color: var(--honey); background: var(--honey-soft); }
.report-form textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); resize: vertical; margin-top: 4px; }
.report-form .btn { margin-top: 6px; }
