/* ============================================================
   ROLLIT — FRAME COMPOSER  (css/framecompose.dd37cacc.css)
   Publisher modal for creating a Frame. Dark theme, matches the
   site's modal + rate-box language. Accent = mint (--toproll);
   primary CTA = gold (--gold), like the rest of the site.
   ============================================================ */

.fc-bg {
  position: fixed; inset: 0; z-index: 1200;
  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;
}
.fc-bg.open { opacity: 1; }

.fc-modal {
  width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  background: var(--bg2); border: 0.5px solid var(--border2);
  border-radius: 16px; padding: 18px 18px 16px;
  transform: translateY(8px) scale(.99); transition: transform .18s ease;
}
.fc-bg.open .fc-modal { transform: none; }

/* header */
.fc-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.fc-head-txt { flex: 1; min-width: 0; }
.fc-kicker { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--toproll); }
.fc-title { font-size: 18px; font-weight: 600; color: var(--text); margin-top: 3px; line-height: 1.25; }
.fc-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.fc-close {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px;
  background: transparent; border: 0.5px solid var(--border2); color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: all .15s;
}
.fc-close:hover { color: var(--text); border-color: var(--border2); background: rgba(255,255,255,.05); }

/* type chips */
.fc-types { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.fc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 6px 11px; border-radius: 20px;
  background: var(--bg3); border: 0.5px solid var(--border2); color: var(--muted);
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.fc-chip i { font-size: 13px; }
.fc-chip b { color: var(--gold); font-weight: 600; }
.fc-chip:hover { color: var(--text); }
.fc-chip.on { background: rgba(62,212,154,.14); border-color: rgba(62,212,154,.4); color: var(--toproll); }
.fc-chip.on b { color: var(--toproll); }
.fc-chip.off { opacity: .4; cursor: not-allowed; }

/* preview stage */
.fc-stage {
  height: 264px; background: var(--bg3); border: 0.5px solid var(--border);
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.fc-stage-img { max-width: 100%; max-height: 264px; object-fit: contain; display: block; }
.fc-stage-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.fc-stage-ph i { font-size: 34px; }

/* source tabs */
.fc-tabs { display: flex; gap: 4px; margin-bottom: 9px; flex-wrap: wrap; }
.fc-tab {
  font-size: 12px; padding: 5px 10px; border-radius: 8px; cursor: pointer; font-family: inherit;
  background: transparent; border: 0.5px solid transparent; color: var(--muted); transition: all .15s;
}
.fc-tab:hover { color: var(--text); }
.fc-tab.on { color: var(--text); background: var(--bg3); border-color: var(--border2); }
.fc-tab-n { font-size: 10px; color: var(--dim); margin-left: 2px; }

/* thumbnail strip */
.fc-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--border2) transparent;
}
.fc-strip::-webkit-scrollbar { height: 6px; }
.fc-strip::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
.fc-strip-msg { color: var(--muted); font-size: 12px; padding: 20px 4px; }
.fc-thumb {
  flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px;
  background: var(--surface2); cursor: pointer; overflow: hidden; line-height: 0;
  transition: border-color .15s, transform .12s;
}
.fc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fc-thumb-poster, .fc-thumb-profile { width: 58px; height: 87px; }
.fc-thumb-backdrop, .fc-thumb-still, .fc-thumb-scene { width: 116px; height: 66px; }
.fc-thumb:hover { transform: translateY(-2px); }
.fc-thumb.on { border-color: var(--toproll); }

/* trailer thumbs (wide, with a play glyph + optional Teaser tag) */
.fc-thumb-trailer { width: 128px; height: 72px; position: relative; }
.fc-thumb-play {
  position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(9,10,15,.6); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; pointer-events: none;
}
.fc-thumb-tag {
  position: absolute; left: 4px; bottom: 4px; font-size: 9px; font-weight: 700; letter-spacing: .02em;
  padding: 1px 5px; border-radius: 5px; background: rgba(9,10,15,.72); color: #fff; line-height: 1.5;
}

/* trailer in the big preview stage — click-to-play thumbnail, then an iframe */
.fc-stage-trailer {
  position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000;
  cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.fc-stage-trailer .fc-stage-img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.fc-stage-trailer:hover .fc-stage-img { opacity: 1; }
.fc-stage-play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(9,10,15,.62); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.fc-stage-trailer:hover .fc-stage-play { background: var(--toproll, #e5484d); color: #fff; }
.fc-stage-trailer-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 8px; text-align: left;
  font-size: 12px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-stage-iframe { width: 100%; height: 100%; border: 0; display: block; }

/* caption */
.fc-caption-wrap { position: relative; margin-bottom: 14px; }
.fc-caption {
  width: 100%; min-height: 62px; resize: vertical; box-sizing: border-box;
  background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 13px; line-height: 1.5;
  padding: 10px 12px 22px;
}
.fc-caption:focus { outline: none; border-color: var(--border2); }
.fc-count { position: absolute; right: 10px; bottom: 8px; font-size: 10px; color: var(--dim); }

/* tag cast & crew */
.fc-tagsec { margin-bottom: 14px; }
.fc-tag-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.fc-tag-label i { font-size: 14px; color: var(--toproll); }
.fc-tag-opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--dim); }
.fc-tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fc-tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 6px 3px 3px; border-radius: 20px;
  background: rgba(62,212,154,.12); border: 0.5px solid rgba(62,212,154,.4);
}
.fc-tag-chip img, .fc-tag-chip-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(--bg3); color: var(--dim); font-size: 12px;
}
.fc-tag-chip-name { font-size: 12px; color: var(--text); }
.fc-tag-chip-x {
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; font-size: 13px; padding: 0 2px;
}
.fc-tag-chip-x:hover { color: var(--text); }
.fc-tag-pick { position: relative; }
.fc-tag-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 13px; padding: 9px 12px;
}
.fc-tag-input:focus { outline: none; border-color: rgba(62,212,154,.4); }
.fc-tag-menu {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5;
  max-height: 244px; overflow-y: auto;
  background: var(--bg2); border: 0.5px solid var(--border2); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); padding: 4px;
}
.fc-tag-menu.open { display: block; }
.fc-tag-menu-msg { font-size: 12px; color: var(--dim); padding: 10px 8px; }
.fc-tag-opt-row {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: transparent; border: none; cursor: pointer; padding: 6px 8px; border-radius: 8px;
  font-family: inherit;
}
.fc-tag-opt-row:hover { background: rgba(255,255,255,.05); }
.fc-tag-opt-row img, .fc-tag-opt-ph {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); color: var(--dim); font-size: 16px;
}
.fc-tag-opt-txt { display: flex; flex-direction: column; min-width: 0; }
.fc-tag-opt-name { font-size: 13px; color: var(--text); }
.fc-tag-opt-role { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* footer / publish */
.fc-foot { display: flex; flex-direction: column; gap: 8px; }
.fc-err { font-size: 12px; color: #e84d63; }
.fc-publish {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 12px; border-radius: 11px; border: none; cursor: pointer;
  background: var(--gold); color: #1a1000; font-weight: 600; font-size: 14px; font-family: inherit;
  transition: opacity .15s, transform .12s;
}
.fc-publish:hover:not(:disabled) { transform: translateY(-1px); }
.fc-publish:disabled { opacity: .4; cursor: not-allowed; }

/* success state */
.fc-done { text-align: center; padding: 20px 8px 8px; }
.fc-done-mark { font-size: 46px; color: var(--toproll); line-height: 1; }
.fc-done-title { font-size: 19px; font-weight: 600; color: var(--text); margin-top: 10px; }
.fc-done-sub { font-size: 13px; color: var(--muted); margin-top: 5px; }
.fc-done-actions { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.fc-done-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px;
  border: 0.5px solid var(--border2); background: transparent; color: var(--text);
  font-size: 13px; font-family: inherit; cursor: pointer; text-decoration: none;
}
.fc-done-btn:hover { background: rgba(255,255,255,.05); }
.fc-done-primary { background: var(--gold); color: #1a1000; border-color: var(--gold); font-weight: 600; }

/* per-episode "Frame it" button (title page episode rows) */
.ep-frame-btn {
  background: transparent; border: 0.5px solid var(--border2); color: var(--muted);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
  transition: all .15s; flex: 0 0 auto;
}
.ep-frame-btn:hover { color: var(--toproll); border-color: rgba(62,212,154,.4); }

/* ---- LIST MODE: collage cover + the "make it public" toggle ----
   The composer renders its own collage (rather than reusing css/frames.41f3104a.css) so
   it stays self-contained on any page that loads the composer alone. */
.fc-collage {
  display: grid; gap: 2px; width: 100%; height: 100%;
  grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr);
  background: var(--bg3); position: relative;
}
.fc-collage-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.fc-collage-2 { grid-template-rows: 1fr; }
.fc-collage-3 .fc-collage-cell:first-child { grid-row: span 2; }
.fc-collage-cell { overflow: hidden; line-height: 0; background: var(--surface2); }
.fc-collage-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-collage-ph { display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 20px; }
.fc-collage-empty { display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 34px; }
.fc-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;
}

.fc-public-note:empty { display: none; }
.fc-pubtoggle {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 2px 0 0;
  padding: 9px 11px; border-radius: 10px; cursor: pointer; text-align: left;
  background: var(--surface2); border: 0.5px solid var(--border2);
  color: var(--muted); font-size: 12.5px;
}
.fc-pubtoggle i { font-size: 16px; flex: 0 0 auto; }
.fc-pubtoggle.on { color: var(--gold); border-color: var(--gold); background: rgba(232, 201, 107, .1); }
