/* ============================================================
   ROLLIT — FRAMES VIEW  (css/frames.41f3104a.css)
   Profile grid (square, layout "A"), photo-first detail modal,
   and the "New frame" title picker. Dark theme; accent = mint.
   ============================================================ */

/* ---- tab header ---- */
.frames-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.frames-head-txt { font-size: 15px; font-weight: 600; color: var(--text); }
.frames-head-n { color: var(--muted); font-weight: 400; margin-left: 4px; }
.frames-new-btn { flex: 0 0 auto; }

/* ---- square grid (layout A) ---- */
.frames-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.frame-tile {
  position: relative; aspect-ratio: 1 / 1; padding: 0; border: none; cursor: pointer;
  background: var(--surface2); border-radius: 7px; overflow: hidden; line-height: 0;
}
.frame-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .22s ease; }
.frame-tile:hover img { transform: scale(1.05); }
.frame-tile-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 26px; }
.frame-tile-badge {
  position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(9, 10, 15, 0.62); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.frame-tile-tag {
  position: absolute; top: 6px; right: 6px; height: 22px; padding: 0 6px; border-radius: 6px;
  background: rgba(9, 10, 15, 0.62); color: #fff; display: inline-flex; align-items: center; gap: 3px; font-size: 11px;
}
.frame-tile-tag i { font-size: 12px; }
/* play glyph on a trailer tile */
.frame-tile-play {
  position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(9,10,15,.55); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px; pointer-events: none; transition: background .18s, transform .18s;
}
.frame-tile:hover .frame-tile-play { background: rgba(229,72,77,.9); transform: scale(1.06); }
@media (max-width: 560px) { .frames-grid { gap: 3px; } }

.frame-empty { text-align: center; }

/* ---- detail modal (photo-first) ---- */
.fv-bg {
  position: fixed; inset: 0; z-index: 1210;
  background: rgba(4, 5, 9, 0.74);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; transition: opacity .16s ease;
}
.fv-bg.open { opacity: 1; }
.fv-modal {
  width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  background: var(--bg2); border: 0.5px solid var(--border2); border-radius: 16px;
  transform: translateY(8px) scale(.99); transition: transform .18s ease;
}
.fv-bg.open .fv-modal { transform: none; }

.fv-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.fv-avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none;
}
.fv-avatar .uv-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.fv-head-txt { flex: 1; min-width: 0; }
.fv-name { font-size: 13px; font-weight: 600; color: var(--text); }
.fv-ctx { font-size: 11px; color: var(--muted); margin-top: 1px; }
.fv-title-link { color: var(--gold); }
.fv-title-link:hover { text-decoration: underline; }
.fv-type-chip {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--bg3);
  border: 0.5px solid var(--border2); color: var(--toproll);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
/* compact follow (Watch) button inside the frame header + feed card */
.fv-head .watch-btn,
.feed-frame-head .watch-btn { flex: 0 0 auto; padding: 6px 11px; font-size: 12px; }
.fv-head .watch-btn i,
.feed-frame-head .watch-btn i { font-size: 14px; }
/* in the feed line the button sits just before the timestamp, both pushed right */
.feed-line .watch-btn { margin-left: auto; }
.feed-line .watch-btn + .feed-time { margin-left: 0; }
.fv-close {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: transparent;
  border: 0.5px solid var(--border2); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .15s;
}
.fv-close:hover { color: var(--text); background: rgba(255,255,255,.05); }

.fv-photo { position: relative; background: #000; display: flex; align-items: center; justify-content: center; max-height: 60vh; overflow: hidden; }
.fv-photo img { max-width: 100%; max-height: 60vh; object-fit: contain; display: block; }

/* Roll left/right between a profile's frames (Instagram-style).
   Arrows sit in the blurred backdrop, just OUTSIDE the modal (max-width 480px,
   centred). max() clamps them near the screen edge on narrow viewports. */
.fv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10, 12, 18, .55); border: 0.5px solid rgba(255, 255, 255, .22);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; transition: background .15s, opacity .15s;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.fv-nav:hover { background: rgba(10, 12, 18, .85); }
.fv-nav[disabled] { opacity: .25; cursor: default; pointer-events: none; }
.fv-nav-prev { left: max(12px, calc(50% - 240px - 56px)); }
.fv-nav-next { right: max(12px, calc(50% - 240px - 56px)); }
.fv-nav-count {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  background: rgba(10, 12, 18, .6); color: #fff; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
@keyframes fvSlideNext { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes fvSlidePrev { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.fv-photo.fv-slide-next > *:not(.fv-nav):not(.fv-nav-count) { animation: fvSlideNext .22s ease; }
.fv-photo.fv-slide-prev > *:not(.fv-nav):not(.fv-nav-count) { animation: fvSlidePrev .22s ease; }

.fv-caption { padding: 12px 14px; font-size: 14px; color: var(--text); line-height: 1.5; }

/* tagged cast & crew — chips linking to the person page (detail modal + feed card) */
.fv-tags, .feed-frame-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 14px 8px; }
.feed-frame-tags { padding: 8px 0 2px; }
.fv-tag {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  padding: 3px 9px 3px 3px; border-radius: 20px;
  background: var(--bg3); border: 0.5px solid var(--border2); transition: border-color .15s;
}
.fv-tag:hover { border-color: rgba(62,212,154,.5); }
.fv-tag img, .fv-tag-ph {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2); color: var(--dim); font-size: 12px;
}
.fv-tag-name { font-size: 12px; color: var(--text); }
.fv-cap-name { font-weight: 600; margin-right: 5px; }

.fv-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px 14px; flex-wrap: wrap; }
.fv-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--gold); margin-right: auto; }
.fv-foot-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;
  background: transparent; border: 0.5px solid var(--border2); color: var(--text);
  font-size: 13px; font-family: inherit; cursor: pointer; transition: all .15s;
}
.fv-foot-btn:hover { background: rgba(255,255,255,.05); }
.fv-del { color: #e84d63; border-color: rgba(232,77,99,.35); }
.fv-del:hover { background: rgba(232,77,99,.1); }

/* ---- title picker ("New frame") ---- */
.fvp-bg {
  position: fixed; inset: 0; z-index: 1220;
  background: rgba(4, 5, 9, 0.74);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding: 8vh 1rem 1rem;
  opacity: 0; transition: opacity .16s ease;
}
.fvp-bg.open { opacity: 1; }
.fvp-modal {
  width: 100%; max-width: 440px; max-height: 76vh; display: flex; flex-direction: column;
  background: var(--bg2); border: 0.5px solid var(--border2); border-radius: 16px; overflow: hidden;
  transform: translateY(8px); transition: transform .18s ease;
}
.fvp-bg.open .fvp-modal { transform: none; }
.fvp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.fvp-title { font-size: 15px; font-weight: 600; color: var(--text); }
.fvp-search {
  display: flex; align-items: center; gap: 8px; margin: 0 16px 10px;
  background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 10px; padding: 9px 12px;
}
.fvp-search i { color: var(--muted); font-size: 15px; }
.fvp-input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px; font-family: inherit; }
.fvp-results { overflow-y: auto; padding: 0 8px 10px; }
.fvp-hint { color: var(--muted); font-size: 13px; padding: 20px 12px; text-align: center; }
.fvp-row {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 8px; border: none; background: transparent; border-radius: 10px; cursor: pointer; transition: background .12s;
}
.fvp-row:hover { background: rgba(255,255,255,.05); }
.fvp-thumb { width: 38px; height: 57px; border-radius: 5px; object-fit: cover; background: var(--surface2); flex: 0 0 auto; }
.fvp-row-txt { min-width: 0; }
.fvp-row-title { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fvp-row-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---- FRAME card in the activity feed (full card) ---- */
.feed-item-frame { display: block; }
.feed-frame-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.feed-frame-headtxt { flex: 1; min-width: 0; }
.feed-frame-ep {
  color: var(--toproll); font-size: 11px; font-weight: 600;
  background: rgba(62,212,154,.12); border-radius: 6px; padding: 1px 6px;
}
.feed-frame-rating {
  display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-size: 11.5px; font-weight: 700;
  background: rgba(232,201,107,.12); border-radius: 6px; padding: 1px 7px;
}
.feed-frame-photo {
  border-radius: 14px; overflow: hidden; cursor: pointer;
  background: #000; display: flex; align-items: center; justify-content: center; max-height: 520px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.feed-frame-photo img { width: 100%; height: auto; max-height: 520px; object-fit: cover; display: block; transition: transform .28s ease; }
.feed-frame-photo.is-poster { background: var(--bg3); }
.feed-frame-photo.is-poster img { width: auto; max-width: 100%; object-fit: contain; }
.feed-frame-photo:hover img { transform: scale(1.015); }
/* trailer: the box holds a click-to-play thumbnail that swaps to an iframe. Not a
   click-to-open surface (the play button owns the click), so drop the pointer. */
.feed-frame-photo.is-trailer { cursor: default; }
.feed-frame-photo.is-trailer:hover img { transform: none; }

/* ---- trailer player box (feed card + detail modal) ---- */
.fv-trailer { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.fv-trailer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.fv-trailer-play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; border: 0;
  background: rgba(9,10,15,.6); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 28px; transition: background .18s, transform .18s;
}
.fv-trailer-play:hover { background: rgba(229,72,77,.92); transform: scale(1.05); }
.fv-trailer-badge {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 7px;
  background: rgba(9,10,15,.72); color: #fff; pointer-events: none;
}
.fv-trailer-badge i { font-size: 13px; color: #ff4d4d; }
/* detail modal: let the 16:9 player breathe instead of the img-centering flex */
.fv-photo.is-trailer { display: block; background: #000; max-height: none; }
.feed-frame-cap { font-size: 14px; color: var(--text); line-height: 1.5; margin-top: 10px; }
.feed-cap-name { font-weight: 600; color: var(--text); margin-right: 5px; text-decoration: none; }
.feed-cap-name:hover { color: var(--gold); }

/* ---- reactions + comments (Slice 5) ---- */
.fr-social { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fr-rx-row, .fr-meta-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.feed-item-frame .fr-social { margin-top: 12px; }
.fv-social-wrap { padding: 6px 14px 2px; }
.fr-react {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 20px;
  background: var(--bg3); border: 0.5px solid var(--border2); color: var(--muted);
  font-size: 13px; cursor: pointer; font-family: inherit; line-height: 1; transition: all .14s;
}
.fr-react:hover { background: rgba(255,255,255,.06); border-color: var(--toproll); transform: translateY(-1px); }
.fr-react.on { background: rgba(62,212,154,.14); border-color: rgba(62,212,154,.4); color: var(--toproll); }
.fr-emoji { font-size: 14px; }
.fr-n { font-size: 12px; font-weight: 600; }
.fr-cbtn { color: var(--muted); }

/* "Who reacted" pill — up to 3 OVERLAPPING reactor avatars + distinct count;
   opens the list. Followed faces sit on top (higher z-index, set inline). */
.fr-viewers {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 20px;
  background: none; border: none; color: var(--muted); cursor: pointer; font-family: inherit;
  font-size: 12px; line-height: 1; transition: color .14s, background .14s;
}
.fr-viewers:hover { color: var(--text); background: rgba(255,255,255,.05); }
.fr-faces { display: inline-flex; align-items: center; }
.fr-face {
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  border: 2px solid var(--bg2); background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; color: var(--text);
}
.fr-face:not(:first-child) { margin-left: -9px; }   /* overlap ~half the width */
.fr-face .uv-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.fr-viewers-n { font-weight: 600; }
/* In the feed card the faces sit on a darker surface — match the ring to it. */
.feed-item-frame .fr-face { border-color: var(--bg); }

/* Reactor list — layered above the frame modal (z 1210) / feed. */
.fvr-bg {
  position: fixed; inset: 0; z-index: 1240;
  background: rgba(4, 5, 9, 0.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; transition: opacity .16s ease;
}
.fvr-bg.open { opacity: 1; }
.fvr-modal {
  width: 100%; max-width: 400px; max-height: 82vh; display: flex; flex-direction: column;
  background: var(--bg2); border: 0.5px solid var(--border2); border-radius: 16px; overflow: hidden;
  transform: translateY(8px) scale(.99); transition: transform .18s ease;
}
.fvr-bg.open .fvr-modal { transform: none; }
.fvr-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 0.5px solid var(--border2);
}
.fvr-title { flex: 1; font-weight: 700; font-size: 15px; color: var(--text); }
.fvr-tabs { display: flex; gap: 6px; padding: 10px 12px; flex-wrap: wrap; border-bottom: 0.5px solid var(--border2); }
.fvr-tab {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 16px;
  background: var(--bg3); border: 0.5px solid var(--border2); color: var(--muted);
  font-size: 13px; cursor: pointer; font-family: inherit; line-height: 1; transition: all .14s;
}
.fvr-tab:hover { color: var(--text); }
.fvr-tab.active { background: rgba(62,212,154,.14); border-color: rgba(62,212,154,.4); color: var(--toproll); }
.fvr-tab-n { font-size: 11px; font-weight: 600; opacity: .85; }
.fvr-list { overflow-y: auto; padding: 6px 6px 10px; }
.fvr-empty { color: var(--dim); font-size: 13px; padding: 18px 12px; text-align: center; }
.fvr-row {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px;
  text-decoration: none; transition: background .14s;
}
.fvr-row:hover { background: rgba(255,255,255,.05); }
.fvr-av {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.fvr-av .uv-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.fvr-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fvr-you { font-weight: 500; font-size: 12px; color: var(--dim); }
.fvr-emoji { flex: 0 0 auto; font-size: 16px; letter-spacing: -2px; }

.fv-comments { padding: 8px 14px 4px; display: flex; flex-direction: column; gap: 10px; }
.fv-cm-empty { color: var(--dim); font-size: 13px; padding: 4px 0; }
.fv-cm { display: flex; align-items: flex-start; gap: 9px; }
.fv-cm-av {
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--text); text-decoration: none;
}
.fv-cm-av .uv-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.fv-cm-body { flex: 1; min-width: 0; font-size: 13px; color: var(--text); line-height: 1.45; }
.fv-cm-name { font-weight: 600; color: var(--text); margin-right: 5px; text-decoration: none; }
.fv-cm-name:hover { color: var(--gold); }
.fv-cm-del { flex: 0 0 auto; background: none; border: none; color: var(--dim); cursor: pointer; font-size: 13px; padding: 2px; }
.fv-cm-del:hover { color: #e84d63; }
.fv-cm-input-row { display: flex; gap: 8px; padding: 8px 14px 14px; }
.fv-cm-input {
  flex: 1; background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 20px;
  color: var(--text); font-family: inherit; font-size: 13px; padding: 8px 13px; outline: none;
}
.fv-cm-send {
  flex: 0 0 auto; background: var(--gold); color: #1a1000; border: none; border-radius: 20px;
  font-weight: 600; font-size: 13px; font-family: inherit; padding: 8px 15px; cursor: pointer;
}

/* ============================================================
   SPOILER GUARD (js/spoilers.a0f1a2dd.js)
   A Discord-style veil over the photo of an episode Frame the viewer hasn't
   watched yet. The image stays in the DOM behind a blur so revealing is a
   single class flip — no re-fetch, no reflow, no layout jump.
   ============================================================ */
/* Sizing is deliberately INTRINSIC: the wrapper adds no height of its own, so the
   photo keeps whatever dimensions its surface already gave it (.feed-frame-photo
   img caps at 520px, .is-poster letterboxes, the modal scales to fit). The img is
   still a descendant of those containers, so their rules keep matching — the veil
   must never restyle the picture it's covering. */
.spoiler-wrap { position: relative; display: block; width: 100%; overflow: hidden; }
.spoiler-wrap .spoiler-media { display: block; transition: filter .22s ease, transform .22s ease; }

/* The blur is scaled up because a CSS blur samples past the element's edge and
   would otherwise leave a washed-out border of un-blurred pixels. */
.spoiler-wrap:not(.revealed) .spoiler-media {
  filter: blur(26px) saturate(.55) brightness(.72);
  transform: scale(1.12);
  pointer-events: none;          /* clicks belong to the veil, not the photo */
}

/* The one exception: a grid tile is a fixed 1:1 box, so the chain has to stretch
   for the tile's own `img { height: 100% }` to resolve against something. */
.spoiler-wrap.spoiler-tile,
.spoiler-wrap.spoiler-tile .spoiler-media { height: 100%; }

.spoiler-veil {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center; padding: 12px;
  cursor: pointer; user-select: none;
  color: #fff; background: rgba(10, 10, 14, .34);
  transition: opacity .2s ease, background .2s ease;
}
.spoiler-veil:hover { background: rgba(10, 10, 14, .18); }
.spoiler-veil:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.spoiler-wrap.revealed .spoiler-veil { opacity: 0; pointer-events: none; }

.spoiler-veil i { font-size: 26px; opacity: .95; }
.spoiler-veil b {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.spoiler-veil small {
  font-size: 11.5px; line-height: 1.35; opacity: .85; max-width: 260px;
}

/* Square profile/person grid tiles are small — drop the sub-line and shrink. */
.spoiler-tile .spoiler-veil { gap: 3px; padding: 6px; }
.spoiler-tile .spoiler-veil i { font-size: 19px; }
.spoiler-tile .spoiler-veil b { font-size: 9.5px; letter-spacing: .08em; }
.spoiler-tile .spoiler-veil small { display: none; }

/* The modal photo is the biggest surface — give the veil room to breathe. */
.spoiler-modal .spoiler-veil i { font-size: 32px; }
.spoiler-modal .spoiler-veil small { max-width: 320px; }

/* ============================================================
   LIST FRAMES — a Frame whose subject is a curated list.
   Cover = a poster COLLAGE built from the list snapshot (no single image to
   show), plus a scrollable row of the list's titles under the card. Accent is
   gold (the colour Lists already use across the app) so a list Frame reads as
   a different KIND of post at a glance without a second layout.
   ============================================================ */
.fv-collage {
  display: grid; gap: 2px; width: 100%; aspect-ratio: 16 / 10;
  background: var(--bg3); grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr);
  position: relative;
}
.fv-collage-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.fv-collage-2 { grid-template-rows: 1fr; }
/* 3 posters: one tall hero on the left, two stacked beside it. */
.fv-collage-3 .fv-collage-cell:first-child { grid-row: span 2; }
.fv-collage-cell { overflow: hidden; line-height: 0; background: var(--surface2); }
.fv-collage-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-collage-ph { display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 20px; line-height: 1; }
.fv-collage-empty { display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 34px; }
.fv-collage-more {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px;
  background: rgba(9, 10, 15, .72); color: #fff; font-size: 11.5px; font-weight: 600;
}

/* grid tile */
.frame-tile-list .fv-collage { aspect-ratio: 1 / 1; height: 100%; }
.frame-tile-listname {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 6px;
  background: linear-gradient(to top, rgba(6, 7, 11, .88), rgba(6, 7, 11, 0));
  color: #fff; font-size: 11px; font-weight: 600; line-height: 1.25; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* the list's titles, as a horizontal poster row */
.fv-listrow, .feed-frame-listrow {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px 4px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.feed-frame-listrow { padding: 10px 0 2px; }
.fv-lr-card {
  flex: 0 0 auto; width: 54px; aspect-ratio: 2 / 3; border-radius: 5px; overflow: hidden;
  background: var(--surface2); line-height: 0; display: block;
}
.fv-lr-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.fv-lr-card:hover img { transform: scale(1.06); }
.fv-lr-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 15px; }
.fv-lr-more { flex: 0 0 auto; align-self: center; color: var(--muted); font-size: 12px; padding: 0 4px; }

/* a list whose source list was deleted — the snapshot still reads, the link doesn't */
.fv-title-link.is-dead { color: var(--text); cursor: default; }

/* detail modal + feed card wrappers */
.fv-photo.is-collage { background: var(--bg3); }
.feed-frame-photo.is-collage { background: var(--bg3); }
.feed-frame-photo.is-collage:hover img { transform: none; }
/* Gold left edge, the way a prediction card carries the violet one — a list
   Frame is a different kind of post and should be recognisable while scrolling. */
.feed-item-listframe { border-left: 2.5px solid var(--gold); }

/* picker: Title | List mode tabs + a 3-poster list thumbnail */
.fvp-modes { display: flex; gap: 6px; padding: 0 14px 10px; }
.fvp-mode {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 10px; border-radius: 9px; cursor: pointer; font-size: 12.5px; font-weight: 500;
  background: var(--surface2); border: 0.5px solid var(--border2); color: var(--muted);
}
.fvp-mode.on { background: rgba(212, 175, 55, .12); border-color: var(--gold); color: var(--gold); }
.fvp-lthumb { display: flex; flex: 0 0 auto; width: 38px; height: 57px; border-radius: 5px; overflow: hidden; background: var(--surface2); }
.fvp-lthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fvp-lthumb-ph { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 14px; }
