/* ============ Films by Stanton — Edit Mode chrome ============ */
/* Loaded on every page. Only does anything when ?edit=1 (html.fbs-editing). */

html.fbs-editing { }

/* hover + selection outlines on Showit elements */
.fbs-editing [data-sid] { cursor: pointer; }
.fbs-hover  { outline: 1.5px dashed rgba(201,168,106,.85) !important; outline-offset: 1px; }
.fbs-selected { outline: 2px solid #c9a86a !important; outline-offset: 1px; }
.fbs-editing .fbs-drag, .fbs-editing .fbs-drag * { cursor: move !important; }
.fbs-editing [contenteditable="true"] { outline: 2px solid #8fd18f !important; cursor: text !important; }

/* ---- bottom toolbar ---- */
.fbs-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px;
  z-index: 2147483600; display: flex; gap: 10px; align-items: center;
  background: rgba(22,17,13,.96); border: 1px solid #3a2f25; border-radius: 14px;
  padding: 10px 14px; box-shadow: 0 10px 44px rgba(0,0,0,.55);
  font-family: 'Raleway', -apple-system, system-ui, sans-serif;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.fbs-bar .t { color: #f3ead9; font-size: 13px; margin-right: 4px; white-space: nowrap; }
.fbs-bar .t b { color: #c9a86a; font-weight: 600; }
.fbs-bar .status { color: #a99a86; font-size: 11px; min-width: 104px; text-align: center; }
.fbs-bar button {
  font: inherit; font-size: 12px; letter-spacing: .4px; cursor: pointer;
  border-radius: 999px; padding: 8px 15px; border: 1px solid #3a2f25;
  background: #211a14; color: #f3ead9; white-space: nowrap;
}
.fbs-bar button:hover { border-color: #c9a86a; }
.fbs-bar button.save { background: #c9a86a; color: #16110d; border-color: #c9a86a; font-weight: 700; }
.fbs-bar button.save:disabled { opacity: .4; cursor: default; }

/* ---- inspector (right) ---- */
.fbs-insp {
  position: fixed; top: 0; right: 0; width: 306px; height: 100vh;
  z-index: 2147483600; background: rgba(22,17,13,.98); border-left: 1px solid #3a2f25;
  color: #f3ead9; font-family: 'Raleway', -apple-system, system-ui, sans-serif;
  padding: 20px 18px 90px; box-sizing: border-box; overflow: auto;
  transform: translateX(112%); transition: transform .22s ease;
  box-shadow: -12px 0 44px rgba(0,0,0,.45);
}
.fbs-insp.open { transform: none; }
.fbs-insp .close { position: absolute; top: 12px; right: 14px; cursor: pointer;
  color: #a99a86; font-size: 22px; line-height: 1; }
.fbs-insp .close:hover { color: #f3ead9; }
.fbs-insp h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 25px; margin: 0 0 2px; }
.fbs-insp .sid { color: #8d8072; font-size: 11px; margin-bottom: 6px; word-break: break-all; }
.fbs-insp .grp { border-top: 1px solid #2a221b; padding: 15px 0 4px; }
.fbs-insp .grp:first-of-type { border-top: 0; }
.fbs-insp label { display: block; font-size: 10px; letter-spacing: 1.6px;
  text-transform: uppercase; color: #a99a86; margin: 0 0 7px; }
.fbs-insp input[type=text], .fbs-insp textarea {
  width: 100%; box-sizing: border-box; background: #0f0b08; border: 1px solid #3a2f25;
  color: #f3ead9; border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 13px;
}
.fbs-insp input[type=text]:focus, .fbs-insp textarea:focus { outline: none; border-color: #c9a86a; }
.fbs-insp textarea { min-height: 76px; resize: vertical; line-height: 1.4; }
.fbs-insp .row { display: flex; gap: 8px; align-items: center; }
.fbs-insp .row > * { flex: 1; }
.fbs-insp .btn { display: block; cursor: pointer; text-align: center; font-size: 12px;
  letter-spacing: .3px; border-radius: 8px; padding: 10px 12px; border: 1px solid #3a2f25;
  background: #211a14; color: #f3ead9; margin-top: 8px; }
.fbs-insp .btn:hover { border-color: #c9a86a; }
.fbs-insp .btn.gold { background: #c9a86a; color: #16110d; border-color: #c9a86a; font-weight: 700; }
.fbs-insp .btn.ghost { background: transparent; }
.fbs-insp .muted { color: #7d7163; font-size: 11px; line-height: 1.5; margin: 8px 0 0; }
.fbs-insp .thumb { width: 100%; height: 124px; object-fit: cover; border-radius: 8px;
  border: 1px solid #3a2f25; background: #0f0b08 center/cover no-repeat; display: block; margin-bottom: 4px; }
.fbs-insp .toggle { display: flex; align-items: center; justify-content: space-between; }
.fbs-insp .sw { width: 42px; height: 24px; border-radius: 999px; background: #3a2f25;
  position: relative; cursor: pointer; transition: .18s; flex: none; }
.fbs-insp .sw.on { background: #c9a86a; }
.fbs-insp .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #f3ead9; transition: .18s; }
.fbs-insp .sw.on::after { left: 21px; background: #16110d; }

/* ---- backgrounds / videos sheet ---- */
.fbs-sheet-bg { position: fixed; inset: 0; z-index: 2147483601; background: rgba(8,5,3,.74);
  display: none; align-items: center; justify-content: center;
  font-family: 'Raleway', sans-serif; }
.fbs-sheet-bg.open { display: flex; }
.fbs-sheet { background: #16110d; border: 1px solid #3a2f25; border-radius: 16px;
  width: 580px; max-width: 92vw; max-height: 82vh; overflow: auto; padding: 26px 26px 30px;
  color: #f3ead9; box-shadow: 0 20px 70px rgba(0,0,0,.6); }
.fbs-sheet h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 30px; margin: 0 0 4px; }
.fbs-sheet .muted { color: #8d8072; font-size: 12px; margin: 0 0 18px; }
.fbs-brow { border-top: 1px solid #2a221b; padding: 16px 0; display: flex; gap: 14px; align-items: center; }
.fbs-brow .bt { flex: 1; }
.fbs-brow .bt .n { font-family: 'Cormorant Garamond', serif; font-size: 19px; }
.fbs-brow .bt .k { color: #8d8072; font-size: 11px; word-break: break-all; }
.fbs-brow .kind { font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #c9a86a; border: 1px solid #c9a86a; border-radius: 999px; padding: 3px 8px; }
.fbs-brow .act { display: flex; gap: 6px; }
.fbs-brow .mini { cursor: pointer; font-size: 11px; border-radius: 7px; padding: 7px 11px;
  border: 1px solid #3a2f25; background: #211a14; color: #f3ead9; }
.fbs-brow .mini:hover { border-color: #c9a86a; }
.fbs-sheet .done { margin-top: 20px; }

/* keep editor chrome unaffected by the site's own resets */
.fbs-bar *, .fbs-insp *, .fbs-sheet-bg * { box-sizing: border-box; }
