/* ============================================================
   BOSFOR CMS — Soft studio console
   Comfortable light admin; self-hosted fonts only.
   ============================================================ */

@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/manrope-400-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/manrope-400-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/manrope-500-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/manrope-500-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/manrope-600-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/manrope-600-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/manrope-700-cyr.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/manrope-700-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/bodoni-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/bodoni-600-latin.woff2') format('woff2'); }

:root {
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --ink: #1c1b19;
  --ink-soft: rgba(28, 27, 25, 0.72);
  --muted: rgba(28, 27, 25, 0.52);
  --faint: rgba(28, 27, 25, 0.32);
  --line: rgba(28, 27, 25, 0.1);
  --line-strong: rgba(28, 27, 25, 0.16);
  --accent: #b83a22;
  --accent-soft: rgba(184, 58, 34, 0.12);
  --accent-hover: #9a2f1c;
  --ok: #3d7a4a;
  --ok-bg: #eaf4ec;
  --warn: #9a7a28;
  --warn-bg: #f8f1dd;
  --err-bg: #f8eae6;
  --side: #eceae5;
  --side-w: 252px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.04), 0 8px 24px rgba(28, 27, 25, 0.06);
  --shadow-lg: 0 8px 40px rgba(28, 27, 25, 0.16);
  --font: 'Manrope', system-ui, sans-serif;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-preview: 'Bodoni Moda', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-h: 56px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 400;
}
::selection { background: var(--ink); color: var(--surface); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
input, textarea, select, button { font: inherit; color: inherit; accent-color: var(--accent); }
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes cmsIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes cmsFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================= layout ================= */
.layout { display: flex; align-items: stretch; min-height: 100vh; }
.side-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 40;
  background: rgba(28, 27, 25, 0.35);
  animation: cmsFade .2s var(--ease);
}
.side-backdrop.is-on { display: block; }

.topbar {
  display: none;
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  padding: 0 16px;
  align-items: center;
  gap: 12px;
  background: rgba(243, 242, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__menu {
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; line-height: 1;
}
.topbar__brand { flex: 1; min-width: 0; }
.topbar__brand img { display: block; height: 22px; width: auto; }

.side {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  background: var(--side);
  border-right: 1px solid var(--line);
  z-index: 50;
}
.side__brand {
  padding: 28px 20px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.side__brand img { display: block; width: 100%; height: auto; max-width: 168px; }
.side__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.side__meta a {
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-soft);
}
.side__meta a:hover { color: var(--accent); }
.side__date { font-size: 12px; color: var(--muted); }
.side__nav {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  flex: 1;
  overflow: auto;
}
.nav-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border: none; border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px; font-weight: 500;
  cursor: pointer; text-align: left;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-btn:hover { background: rgba(28, 27, 25, 0.06); color: inherit; }
.nav-btn.is-act {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(28, 27, 25, 0.05);
}
.nav-btn .n-count { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.nav-btn.is-act .n-count { color: var(--ink-soft); }
.nav-btn .n-hot {
  font-size: 11.5px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px; border-radius: 999px;
}
.nav-btn.is-act .n-hot { color: var(--accent); }
.side__divider { border: 0; border-top: 1px solid var(--line); margin: 10px 8px; }
.nav-btn.is-off { color: var(--muted); }
.nav-btn.is-off:hover { color: var(--ink-soft); background: rgba(28, 27, 25, 0.04); }
.side__foot {
  margin-top: auto;
  padding: 16px 20px 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.side__acc-lbl { font-size: 12px; font-weight: 500; color: var(--muted); }
.side__name { font-size: 14.5px; font-weight: 600; }
.side__role { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.side__foot .btn-outline { align-self: flex-start; margin-top: 8px; }

.main {
  flex: 1; min-width: 0;
  padding: 36px 44px 100px;
  display: flex; flex-direction: column; align-items: stretch;
}
.screen {
  max-width: 1180px;
  width: 100%;
  animation: cmsIn .4s var(--ease) both;
}
.screen--narrow { max-width: 980px; }
.screen--form { max-width: 760px; }
.screen + .screen { margin-top: 40px; }

/* ================= page chrome ================= */
.kicker {
  font-size: 12.5px; font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}
h1.serif, h1.page-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1.serif--sm, h1.page-title--sm { font-size: clamp(24px, 2.6vw, 30px); }
h1.serif--ed, h1.page-title--ed {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.headrow {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.headrow--loose { padding: 14px 0 22px; }
.headrow__title { min-width: 0; }
.headrow__side {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; justify-content: flex-end;
}
.backlink {
  border: none; background: transparent; padding: 0;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 8px;
}
.backlink:hover { color: var(--accent); }
.toolbar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin: 18px 0 0;
}
.search {
  flex: 1; min-width: 180px; max-width: 320px;
  position: relative;
}
.search__inp {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 14px 10px 38px;
  font-size: 14px;
}
.search::before {
  content: "⌕";
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.seg {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}
.seg .tab {
  border: none; border-radius: calc(var(--radius) - 3px);
  background: transparent;
  padding: 8px 14px;
}
.seg .tab.is-act {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(28, 27, 25, 0.06);
}

/* ================= buttons ================= */
.tab {
  display: inline-flex; align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.tab:hover { border-color: var(--faint); color: inherit; }
.tab.is-act {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 8px;
  padding: 10px 16px;
  border: none; border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-family: inherit;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.btn-primary:hover { background: var(--accent); color: var(--surface); }
.btn-primary--flat { margin-left: 0; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  color: var(--ink);
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn-outline--red:hover { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn-dashed {
  padding: 9px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  color: var(--ink-soft);
}
.btn-dashed:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-del {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.btn-del:hover, .btn-del.is-armed {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
}
.btn-sq {
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-sq:hover { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.btn-sq--26 { width: 30px; height: 30px; font-size: 12px; }
button[disabled], .is-demo button, .is-demo select, .is-demo input {
  cursor: not-allowed !important; opacity: .55; pointer-events: none;
}

/* ================= status ================= */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  white-space: nowrap;
  background: var(--surface);
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.st--in-production { border-color: #c77c1e44; background: #fbf6ec; } .st--in-production .dot { background: #c77c1e; }
.st--coming-soon   { border-color: #7d46c944; background: #f5f0fb; } .st--coming-soon .dot   { background: #7d46c9; }
.st--now-showing   { border-color: #b83a2244; background: #fbf0ed; } .st--now-showing .dot   { background: #b83a22; }
.st--streaming     { border-color: #2f9d5b44; background: #eef8f2; } .st--streaming .dot     { background: #2f9d5b; }
.st--archived      { border-color: #8a857a44; background: #f3f2ef; } .st--archived .dot      { background: #8a857a; }
.dot--in-production { background: #c77c1e; } .dot--coming-soon { background: #7d46c9; }
.dot--now-showing { background: #b83a22; } .dot--streaming { background: #2f9d5b; } .dot--archived { background: #8a857a; }

/* ================= forms ================= */
.lbl {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.inp, .sel, .txt {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.inp:hover, .sel:hover, .txt:hover { border-color: var(--faint); }
.sel { padding: 10px 12px; }
.txt { line-height: 1.55; resize: vertical; min-height: 2.8em; }
.inp--sm { padding: 9px 12px; font-size: 14px; }
.field-note, .sect-note {
  font-size: 13px; line-height: 1.5;
  color: var(--muted);
}
.field-note { margin-top: 6px; }
.sect-title {
  font-size: 15px; font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
  padding: 0;
  border: none;
}
.sub-title {
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.sub-title--rule {
  margin: 24px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.span2 { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.check-row {
  display: flex; gap: 28px; flex-wrap: wrap; padding-top: 4px;
}
.check-row label {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; cursor: pointer;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.panel + .panel, .sect + .sect { margin-top: 16px; }
.sect {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.sect__note { margin: -4px 0 14px; }
.list-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.flash {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  border: 1px solid #79a86d;
  background: var(--ok-bg);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink);
}
.flash__body { flex: 1; min-width: 0; }
.flash__x {
  border: none; background: transparent;
  color: var(--muted); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0 2px;
}
.flash__x:hover { color: var(--ink); }
.flash--err { background: var(--err-bg); border-color: var(--accent); }
.flash--warn { background: var(--warn-bg); border-color: var(--warn); }
.demo-note {
  margin-top: 20px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--surface-2);
}
.version-tag { color: var(--muted); }

/* ================= dashboard ================= */
.dash-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fcard {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  display: flex; flex-direction: column;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.fcard:hover {
  border-color: rgba(184, 58, 34, 0.35);
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.fcard.is-filtered-out { display: none; }
.fcard img {
  display: block; width: 100%; height: 148px;
  object-fit: cover;
  background: #2a2926;
}
.fcard__noimg {
  width: 100%; height: 148px;
  background: linear-gradient(145deg, #2a2926, #1c1b19);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.28); font-size: 13px; font-weight: 500;
}
.fcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.fcard__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  white-space: pre-line;
}
.fcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fcard__meta > span:first-child { font-size: 12.5px; color: var(--muted); }
.fcard__acts { display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 9px; }

.rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.rail-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.rail-head > span:first-child { font-size: 14.5px; font-weight: 650; }
.rail-head > span:last-child { font-size: 13px; color: var(--muted); }
.rail-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.rail-row:last-of-type { border-bottom: none; }
.rail-row > span:nth-child(2) { flex: 1; font-size: 14px; font-weight: 500; }
.rail-row .rail-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.rail-row .rail-n.is-zero { color: var(--faint); }
.blackbox {
  margin-top: 16px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #f5f3ee;
  padding: 18px 20px;
}
.blackbox__lbl { font-size: 12.5px; font-weight: 500; color: rgba(245, 243, 238, 0.55); }
.blackbox__txt { font-size: 14px; line-height: 1.55; margin-top: 8px; color: rgba(245, 243, 238, 0.9); }
.blackbox a { color: #e59a86; }
.blackbox a:hover { color: #fff; }
.empty-note {
  padding: 48px 20px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

/* ================= tables / rows ================= */
.table-wrap { margin-top: 16px; }
.frow-head, .frow {
  display: grid;
  grid-template-columns: 48px minmax(160px,1.8fr) 56px minmax(90px,130px) minmax(120px,150px) minmax(90px,1fr) auto;
  gap: 14px; align-items: center;
}
.frow-head {
  padding: 10px 16px;
  font-size: 12.5px; font-weight: 500;
  color: var(--muted);
}
.frow-head .col-end, .frow .col-end { text-align: right; }
.frow {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer; color: inherit;
  transition: background .15s var(--ease);
}
.frow:hover { background: var(--surface-2); color: inherit; }
.frow img, .swatch {
  display: block; width: 48px; height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.swatch {
  background: linear-gradient(145deg, #2a2926, #1c1b19);
  outline: none;
}
.frow__cell { min-width: 0; }
.frow__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frow__latin {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}
.frow__meta { font-size: 13.5px; color: var(--ink-soft); }
.frow__meta--ellip {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frow__acts { display: flex; gap: 6px; justify-content: flex-end; }

/* ================= film editor ================= */
.ed-layout {
  display: grid;
  grid-template-columns: 168px minmax(0,1fr) 320px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.ed-toc {
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.ed-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.ed-toc a:hover { color: var(--ink); background: var(--surface-2); }
.ed-toc a.is-act {
  color: var(--ink);
  background: var(--accent-soft);
  font-weight: 600;
}
.ed-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.ed-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ed-main { min-width: 0; }
.row-3 { display: grid; grid-template-columns: 170px 1fr 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.row-press { display: grid; grid-template-columns: 1fr 180px 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.row-award { display: grid; grid-template-columns: 96px 1fr 1fr 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.laurel-slot { position: relative; display: block; }

.media-cover, .media-cover-empty {
  display: block; width: 100%; height: 110px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin-bottom: 8px; cursor: pointer;
}
.media-cover-empty {
  border-style: dashed;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  font-family: inherit;
}
.media-cover-empty:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.media-poster {
  display: block; width: 150px; height: 212px;
  object-fit: cover; object-position: top;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin-bottom: 8px; cursor: pointer;
}
.media-poster-empty {
  width: 150px; height: 212px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 14px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px; cursor: pointer;
  background: var(--surface-2);
  font-family: inherit;
}
.media-poster-empty:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.media-video {
  width: 100%; height: 68px;
  background: var(--ink); color: #f5f3ee;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; margin-bottom: 8px;
  border: none; border-radius: var(--radius);
  cursor: pointer;
}
.media-video span:first-child { font-size: 16px; line-height: 1; }
.media-video span:last-child {
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-video-empty {
  width: 100%; height: 68px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  background: var(--surface-2);
  font-family: inherit;
}
.media-video-empty:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.shots { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.shot { position: relative; display: block; }
.shot img {
  display: block; width: 176px; height: 110px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.shot__del, .shot__mv {
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11px; line-height: 1;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.shot__del { top: -8px; right: -8px; }
.shot__del:hover { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.shot__mv { bottom: -8px; }
.shot__mv:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.shot__mv--l { left: -8px; } .shot__mv--r { right: -8px; }
.shot-add {
  display: flex; align-items: center; justify-content: center;
  width: 176px; height: 110px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 22px; color: var(--muted);
  cursor: pointer; background: var(--surface-2);
}
.shot-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.award-laurel {
  display: block; width: 96px; height: 48px;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ink);
  cursor: pointer;
}
.award-laurel-empty {
  display: flex; align-items: center; justify-content: center;
  width: 96px; height: 48px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  cursor: pointer; text-align: center;
  background: var(--surface-2);
  font-family: inherit;
}
.award-laurel-empty:hover { border-color: var(--accent); color: var(--accent); }
.ed-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.prev-card {
  min-height: 400px; padding: 24px;
  display: flex; flex-direction: column;
  border: none; border-radius: var(--radius-lg);
  background: var(--ink); color: #f2efe6;
  box-shadow: var(--shadow-lg);
}
.prev-card__top {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 500;
  opacity: .7;
}
.prev-card__bottom { margin-top: auto; }
.prev-card__title {
  font-family: var(--font-preview);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  white-space: pre-line;
}
.prev-card__meta { font-size: 12.5px; opacity: .7; margin-top: 10px; }
.prev-card__log { font-size: 14px; line-height: 1.55; opacity: .88; margin-top: 14px; }
.ed-side img.side-cover {
  display: block; width: 100%; height: 118px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.product-prev {
  display: block; width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.product-prev-empty {
  width: 100%; aspect-ratio: 1 / 1.05; height: auto;
  border-radius: var(--radius);
}
.product-prev-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.product-prev-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.product-prev-price { font-size: 14px; white-space: nowrap; font-weight: 600; }
.product-prev-flags { font-size: 12.5px; color: var(--muted); }
.trailer-link {
  font-size: 13.5px; font-weight: 500;
  color: var(--accent);
}
.color-dots { display: flex; gap: 8px; align-items: center; }
.color-dots input[type="color"] {
  width: 44px; height: 34px; padding: 2px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.upload-hidden { display: none; }
.save-bar {
  position: sticky; bottom: 0; z-index: 10;
  background: linear-gradient(transparent, var(--bg) 40%);
  padding: 22px 0 4px;
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* ================= vitrina ================= */
.v-block { margin-top: 28px; }
.v-block:first-of-type { margin-top: 24px; }
.cat-block {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cat-block:first-of-type { border-top: none; padding-top: 0; }
.cat-block .sect-title { font-size: 14.5px; margin-bottom: 10px; }
.drag-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px; align-items: center;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: grab;
  box-shadow: 0 1px 2px rgba(28, 27, 25, 0.03);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.drag-row:hover { border-color: var(--line-strong); }
.drag-row.dragging { opacity: .4; }
.drag-row__grip { color: var(--faint); font-size: 14px; text-align: center; }
.drag-row__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.feed-row {
  grid-template-columns: 28px 140px 1fr auto;
  align-items: start;
}
.feed-row .drag-row__grip { margin-top: 28px; }
.feed-row__fields { display: grid; gap: 10px; min-width: 0; }
.feed-row__rm { margin-top: 26px; }
.feed-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.add-select {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  min-width: 240px;
  margin-top: 4px;
  cursor: pointer;
}
.add-select:hover { border-color: var(--accent); }

/* ================= shop ================= */
.shop-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.prow-head, .prow {
  display: grid;
  grid-template-columns: 48px minmax(160px,2fr) minmax(80px,110px) minmax(70px,1fr) minmax(90px,150px) auto;
  gap: 14px; align-items: center;
}
.prow-head {
  padding: 10px 16px;
  font-size: 12.5px; font-weight: 500;
  color: var(--muted);
}
.prow {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer; color: inherit;
}
.prow:hover { background: var(--surface-2); color: inherit; }
.prow img {
  display: block; width: 48px; height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.prow__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prow__film { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.prow__price { font-size: 14px; white-space: nowrap; font-weight: 600; }
.prow__href {
  font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prow__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px; font-weight: 500;
  background: var(--surface-2);
}
.chip--drop { border-color: rgba(184, 58, 34, 0.35); color: var(--accent); background: var(--accent-soft); }
.stock-low { color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tile--hot { border-color: transparent; background: var(--ink); color: #f5f3ee; }
.tile__lbl { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tile--hot .tile__lbl { color: rgba(245, 243, 238, 0.55); }
.tile__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  margin-top: 8px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.tile__sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.tile--hot .tile__sub { color: rgba(245, 243, 238, 0.6); }
.orow-head, .orow {
  display: grid;
  grid-template-columns: 76px 82px minmax(120px,1.2fr) minmax(140px,1.6fr) minmax(80px,100px) minmax(100px,130px) auto;
  gap: 14px; align-items: center;
}
.orow-head {
  padding: 12px 16px 8px;
  font-size: 12.5px; font-weight: 500;
  color: var(--muted);
}
.orow { padding: 14px 16px; border-top: 1px solid var(--line); }
.orow__num { font-size: 13.5px; font-weight: 600; }
.orow__date { font-size: 13px; color: var(--muted); }
.orow__who { min-width: 0; }
.orow__name { display: block; font-size: 14px; font-weight: 500; }
.orow__email { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.orow__items { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.orow__sum { font-size: 14px; text-align: right; white-space: nowrap; font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ================= settings ================= */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.folder {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.folder:hover { border-color: rgba(184, 58, 34, 0.35); background: var(--surface); color: inherit; transform: translateY(-1px); }
.folder__kind { font-size: 12px; font-weight: 500; color: var(--muted); }
.folder__name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.folder__foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 16px; }
.mcard {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mcard img { display: block; width: 100%; height: 118px; object-fit: cover; }
.mcard__video {
  width: 100%; height: 118px;
  background: var(--ink); color: #f5f3ee;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.mcard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.mcard__name { font-size: 13.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.mcard__meta { font-size: 12px; color: var(--muted); }
.team-list {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.urow {
  display: grid;
  grid-template-columns: 44px 1.2fr 1.4fr 160px;
  gap: 14px; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.urow:last-child { border-bottom: none; }
.urow-pw {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px; align-items: end;
  padding: 0 18px 18px 76px;
  border-bottom: 1px solid var(--line);
  margin-top: -4px;
  background: var(--surface-2);
}
.urow-pw .lbl { grid-column: 1 / -1; margin: 0 0 4px; }
.urow__name { display: block; font-size: 14.5px; font-weight: 600; }
.urow__user { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.urow__email { font-size: 13.5px; color: var(--ink-soft); }
.urow__role { font-size: 13px; font-weight: 500; color: var(--muted); }
.avatar {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink); color: #f5f3ee;
  font-size: 13px; font-weight: 600;
}
.rolecards { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rolecards--4 { grid-template-columns: repeat(2, 1fr); }
.rolecard {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.rolecard__lbl { font-size: 14px; font-weight: 650; }
.rolecard__desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.danger {
  margin-top: 36px;
  border: 1px solid rgba(184, 58, 34, 0.28);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--err-bg);
}
.danger__lbl { font-size: 13.5px; font-weight: 650; color: var(--accent); }
.danger__txt { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 6px; }

/* ================= publish ================= */
.diff-list {
  margin: 10px 0 0;
  padding: 16px 18px 16px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 14.5px;
  line-height: 1.7;
  box-shadow: var(--shadow);
}
.publish-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.publish-help { max-width: 520px; margin-top: 28px; }

/* ================= login ================= */
.login {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(184, 58, 34, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(28, 27, 25, 0.05), transparent 50%),
    var(--bg);
}
.login__card {
  width: min(400px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-lg);
  animation: cmsIn .4s var(--ease) both;
}
.login__card img { display: block; width: 62%; height: auto; }
.login__card .btn-primary { width: 100%; padding: 12px 16px; font-size: 15px; }
.login__card .flash { margin: 0; }

/* ================= library modal ================= */
.lib-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28, 27, 25, 0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: cmsFade .2s var(--ease);
}
.lib-panel {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  width: min(960px, 100%);
  max-height: 86vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: cmsIn .28s var(--ease) both;
}
.lib-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.lib-title { font-size: 15px; font-weight: 650; }
.lib-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.lib-crumb { font-size: 13px; font-weight: 500; color: var(--muted); }
.lib-toolbar__right { display: inline-flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.lib-folder-inp { width: 150px; }
.lib-upl { cursor: pointer; }
.lib-grid {
  overflow: auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  align-content: start;
  min-height: 220px;
}
.lib-grid--folders { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.lib-folder {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  font-family: inherit;
  transition: border-color .15s var(--ease);
}
.lib-folder:hover { border-color: rgba(184, 58, 34, 0.4); background: var(--surface); }
.lib-folder__kind { font-size: 12px; font-weight: 500; color: var(--muted); }
.lib-folder__name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 17px;
  line-height: 1.15;
  color: var(--ink);
}
.lib-folder__count { font-size: 12.5px; color: var(--muted); }
.lib-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
  padding-bottom: 10px;
  cursor: pointer; text-align: left;
  font-family: inherit;
  overflow: hidden;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.lib-item:hover { border-color: rgba(184, 58, 34, 0.4); }
.lib-item.is-sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.lib-item img { display: block; width: 100%; height: 100px; object-fit: cover; }
.lib-item__video {
  width: 100%; height: 100px;
  background: var(--ink); color: #f5f3ee;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.lib-item__name {
  font-size: 12.5px; line-height: 1.35; font-weight: 500;
  padding: 0 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lib-item__meta { font-size: 11.5px; color: var(--muted); padding: 0 10px; }
.lib-item__check {
  position: absolute; top: 8px; left: 8px;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1;
  box-shadow: var(--shadow);
}
.lib-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}
.lib-selbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px; font-weight: 500;
}
.lib-selbar__right { display: inline-flex; gap: 6px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.lib-move { width: auto; padding: 8px 10px; font-size: 13px; }

/* ================= drag ghost ================= */
[data-sortable] [data-id] { cursor: grab; }
[data-sortable] [data-id]:active { cursor: grabbing; }
.drag-ghost {
  position: fixed; z-index: 300; margin: 0; pointer-events: none;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg) scale(1.02); opacity: .97;
  background: var(--surface);
  border-radius: var(--radius-lg);
  transition: none; animation: none;
}
.drag-src { opacity: .3; outline: 2px dashed var(--faint); outline-offset: 2px; border-radius: var(--radius); }
body.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
body.is-dragging * { cursor: grabbing !important; }

/* ================= path-pick ================= */
.path-pick { display: flex; flex-direction: column; gap: 6px; }
.path-pick__btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 80px; padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 13px; font-weight: 500;
  color: var(--muted); cursor: pointer;
}
.path-pick__btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.path-pick__btn.has-img { padding: 0; border-style: solid; min-height: 96px; overflow: hidden; }
.path-pick__btn.has-img img { display: block; width: 100%; height: 96px; object-fit: cover; }
.path-pick__btn--lg { min-height: 140px; aspect-ratio: 1; }
.path-pick__btn--lg.has-img img { height: 100%; min-height: 140px; }
.path-pick__meta { font-size: 12px; color: var(--muted); word-break: break-all; }
.banner-row-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ================= banner constructor ================= */
.ctor-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(28, 27, 25, 0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: cmsFade .2s var(--ease);
}
.ctor-overlay[hidden] { display: none !important; }
.ctor-panel {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: cmsIn .28s var(--ease) both;
}
.ctor-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1;
}
.ctor-head .sect-title { margin: 0; }
.ctor-body { padding: 18px 20px 8px; }
.ctor-label {
  font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.ctor-label--spaced { margin-top: 22px; }
.ctor-build { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: start; }
.ctor-corners { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ctor-corner {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 88px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface);
}
.ctor-corner__lab { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ctor-corner__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ctor-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 5px 10px;
  font-size: 12.5px; font-weight: 500;
}
.ctor-chip button {
  border: 0; background: transparent; cursor: pointer; padding: 0;
  font-size: 12px; line-height: 1; color: var(--muted);
}
.ctor-chip button:hover { color: var(--accent); }
.ctor-corner__add { width: 100%; padding: 7px 8px; font-size: 13px; }
.ctor-preview {
  position: relative; width: 100%; aspect-ratio: 21 / 9;
  background: var(--ink); overflow: hidden; margin-bottom: 8px;
  border-radius: var(--radius);
}
.ctor-preview__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ctor-preview__corner {
  position: absolute; z-index: 2; max-width: 42%;
  display: flex; flex-direction: column; gap: 8px; color: #fff;
  padding: clamp(14px, 2.2vw, 28px);
}
.ctor-preview__corner--tl { top: 0; left: 0; align-items: flex-start; text-align: left; }
.ctor-preview__corner--tr { top: 0; right: 0; align-items: flex-end; text-align: right; }
.ctor-preview__corner--bl { bottom: 0; left: 0; align-items: flex-start; text-align: left; }
.ctor-preview__corner--br { bottom: 0; right: 0; align-items: flex-end; text-align: right; }
.ctor-pv-status { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ctor-pv-title {
  font-family: var(--font-preview);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.02;
}
.ctor-pv-logline { font-size: 13px; line-height: 1.45; opacity: .85; max-width: 36ch; }
.ctor-pv-year, .ctor-pv-genre, .ctor-pv-format {
  font-size: 12px; font-weight: 500; opacity: .8;
}
.ctor-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  position: sticky; bottom: 0;
}

/* ================= responsive / mobile ================= */
@media (max-width: 1200px) {
  .ed-layout { grid-template-columns: minmax(0,1fr) 280px; }
  .ed-toc { display: none; }
}

@media (max-width: 1080px) {
  .main { padding: 28px 24px 90px; }
  .dash-grid, .ed-grid, .ed-layout { grid-template-columns: 1fr; }
  .ed-side { position: static; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .rolecards, .rolecards--4 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topbar { display: flex; }
  .side {
    position: fixed;
    left: 0; top: 0;
    transform: translateX(-105%);
    transition: transform .28s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .side { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .main { padding: 20px 16px 80px; }
  .headrow { flex-direction: column; align-items: stretch; gap: 14px; }
  .headrow__side { justify-content: flex-start; }
  .frow-head, .prow-head, .orow-head { display: none; }
  .frow, .prow, .orow {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .frow > :nth-child(n+3),
  .prow > :nth-child(n+3),
  .orow > :nth-child(n+3) {
    grid-column: 2;
  }
  .frow__acts, .prow .frow__acts, .orow .frow__acts {
    justify-content: flex-start;
    margin-top: 4px;
  }
  .urow {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }
  .urow > :nth-child(n+3) { grid-column: 2; }
  .urow-pw {
    grid-template-columns: 1fr;
    padding: 0 16px 16px 16px;
  }
  .tiles { grid-template-columns: 1fr 1fr; }
  .feed-row {
    grid-template-columns: 28px 1fr auto;
  }
  .feed-row > :nth-child(2) { grid-column: 2 / -1; }
  .feed-row__fields { grid-column: 2 / -1; }
  .row-3, .row-press, .row-award {
    grid-template-columns: 1fr auto;
  }
  .row-award > :first-child { grid-column: 1 / -1; }
  .lib-overlay, .ctor-overlay { padding: 12px; align-items: flex-end; }
  .lib-panel, .ctor-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .ctor-build { grid-template-columns: 1fr; }
  .ctor-corners { grid-template-columns: 1fr; }
  .save-bar {
    background: linear-gradient(transparent, var(--bg) 28%);
    padding-bottom: 12px;
  }
  .btn-primary, .btn-outline, .btn-dashed, .tab {
    min-height: 40px;
  }
  .btn-sq { width: 40px; height: 40px; }
}

@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .login__card { padding: 28px 22px 24px; }
  .panel, .sect { padding: 18px 16px; }
  .media-poster, .media-poster-empty { width: 120px; height: 170px; }
  .shot img, .shot-add { width: calc(50vw - 28px); height: 100px; }
}
