/* mbuzz · one column, mobile first, same layout on desktop (HANDOVER §9) */
:root {
  --fg: #151515; --muted: #6b6b6b; --line: #e6e6e6; --soft: #f4f4f4; --bg: #fff;
  --accent: #d6002a;
  --go: #0a7a3d; --stop: #c62828; --warn: #b85c00; --info: #1a5fb4; --on: #fff;   /* desk colors */
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ececec; --muted: #9b9b9b; --line: #2c2c2c; --soft: #1c1c1c; --bg: #111; --accent: #ff4d6a;
    --go: #3ccf7e; --stop: #ff6b6b; --warn: #ffb74d; --info: #6ea8ff; --on: #111;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* header: sticky, logo left, RO/EN pills right */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; text-decoration: none; }
.langs { display: flex; gap: 8px; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 32px;
  border: 1px solid var(--line); border-radius: 16px;
  font-size: 13px; font-weight: 700; line-height: 1; color: var(--muted); text-decoration: none;
}
.langs a.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* posts */
.post { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post.single { border-bottom: 0; }
.meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.t { margin: 0 0 12px; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
h1.t { font-size: 28px; }
.t a { text-decoration: none; }
.t a:hover { text-decoration: underline; }
.body p { margin: 0 0 12px; }
.video { margin: 16px 0 12px; }
.video iframe {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 0; border-radius: 8px; background: #000;
}
.src { margin: 0; font-size: 13px; color: var(--muted); }
.src a { color: var(--muted); }
.src .sep { margin: 0 8px; }
.back { margin: 0 0 16px; font-size: 14px; }
.back a { color: var(--muted); text-decoration: none; }

/* older / newer: equal pills, older always on the right */
.pages { display: flex; justify-content: space-between; padding: 24px 0; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; width: 140px; height: 40px;
  margin: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg); color: var(--fg); font: inherit; font-size: 14px; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.pill:hover { border-color: var(--fg); }

/* compact rows: date, title (3 lines max), names, square photo on the right */
.item { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item-text { flex: 1; min-width: 0; }
.item .meta { margin-bottom: 4px; }
.t2 {
  margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.t2 a { text-decoration: none; }
.t2 a:hover { text-decoration: underline; }
.names { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.names a { color: var(--fg); font-weight: 600; text-decoration: none; }
.names a, .names span:not(.sep) { white-space: nowrap; }    /* "Taylor Swift (4)" never splits */
.names .sep { margin: 0 6px; }
.single .names { margin-top: 12px; }
.thumb { flex: none; display: block; }
.thumb img {
  display: block; width: 88px; height: 88px; object-fit: cover; object-position: center 25%;
  border-radius: 8px; background: var(--soft);
}

/* photo (post page): whole photo in its own shape, never cropped or enlarged; credit under its left edge */
.photo { display: table; margin: 0 auto 16px; }
.photo img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(520px, 50vh);   /* title stays on the first screen */
  border-radius: 8px; background: var(--soft);
}
.photo figcaption { display: table-caption; caption-side: bottom; }
.photo figcaption, .credit { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.photo figcaption a, .credit a { color: var(--muted); }
.photo .sep, .credit .sep { margin: 0 6px; }

/* artist page header */
.artist { display: flex; align-items: center; gap: 16px; padding: 24px 0 0; }
.artist .t { margin: 0; }
.artist .meta { margin: 4px 0 0; }
.avatar { width: 96px; height: 96px; object-fit: cover; object-position: center 25%; border-radius: 8px; background: var(--soft); }
.credit { padding-bottom: 8px; border-bottom: 1px solid var(--line); }

.empty { padding: 48px 0; color: var(--muted); text-align: center; }
.empty a { color: var(--muted); }
.foot { padding-top: 24px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }

/* admin desk (English, phone first) */
.adm .wrap { max-width: 860px; }
.adm .logo { font-size: 18px; }
.adm .langs a { width: 52px; }
.sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.sec h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stats { font-size: 14px; }
.stats .line + .line { margin-top: 8px; }
.stats p { margin: 12px 0 0; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.line form, .acts form { margin: 0; }
.big { font-size: 15px; font-weight: 800; }
.big.on { color: var(--stop); }
.pill.sm { width: 104px; height: 32px; border-radius: 16px; font-size: 13px; }
.msg { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--soft); font-size: 14px; }
.toast {   /* the message after a tap, at the bottom for 3 s (the page opens at the next story) */
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  max-width: 828px; margin: 0 auto; padding: 10px 12px; border-radius: 8px;
  background: var(--fg); color: var(--bg); font-size: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s;
}
.toast.out { opacity: 0; }
.none { margin: 8px 0; font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.muted.bad { color: var(--stop); }
.small { margin: 12px 0 0; font-size: 12px; }
.day { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 4px; padding: 6px 0; border-bottom: 2px solid var(--fg); font-size: 14px; font-weight: 800; }
.day a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.card { margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; }
.card p { margin: 0 0 8px; }
.card .lbl { margin: 12px 0 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.acts { display: flex; justify-content: space-between; margin-top: 12px; }
.row { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.day + .row { border-top: 0; }
.row p { margin: 4px 0 0; }
.row .ttl { text-decoration: none; font-weight: 600; }
.sc { display: inline-block; min-width: 20px; font-weight: 800; }
.id { flex: none; color: var(--muted); font-size: 13px; }
.why { color: var(--muted); }
.dup { margin-top: 4px; color: var(--muted); font-size: 13px; }
.dup a { min-width: 0; color: var(--muted); text-decoration: none; }
.state { font-weight: 700; }
.state.err { color: var(--stop); }
/* desk buttons: green = publish, red = take down / stop, amber = retry, gray outline = the rest */
.pill.go { background: var(--go); border-color: var(--go); color: var(--on); }
.pill.stop { border-color: var(--stop); color: var(--stop); }
.pill.warn { background: var(--warn); border-color: var(--warn); color: var(--on); }
.pill.go:hover, .pill.warn:hover { opacity: 0.9; }
/* desk chips: where a story is */
.chip {
  display: inline-block; padding: 0 8px; border-radius: 10px; border: 1px solid transparent;
  font-size: 12px; font-weight: 700; line-height: 18px; vertical-align: 1px; white-space: nowrap;
}
.chip.new { background: var(--info); color: var(--on); }
.chip.queued, .chip.writing { background: var(--warn); color: var(--on); }
.chip.error { background: var(--stop); color: var(--on); }
.chip.published { background: var(--go); color: var(--on); }
.chip.held { border-color: var(--warn); color: var(--warn); }
.chip.rejected, .chip.skipped { background: var(--soft); color: var(--muted); }
.chip.hold { border-color: var(--stop); color: var(--stop); }
.line.head h2 { margin: 0; }
.line.head { margin-bottom: 4px; }
#progress .row:first-of-type { border-top: 0; }
.below { margin: 8px 0 0; }
.below summary { padding: 8px 0; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.links a { color: var(--muted); }
.line.pic { margin-top: 8px; }
.pic .links { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mini { width: 32px; height: 32px; object-fit: cover; object-position: center 25%; border-radius: 6px; flex: none; }
