:root {
  --bg: #0b0b0c; --panel: #131315; --panel2: #1a1a1d; --line: #2a2a2e;
  --text: #f2f2f0; --muted: #9a9aa2; --red: #e8161a; --red-d: #96080a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.5;
  background:
    radial-gradient(ellipse 80% 40% at 50% 115%, rgba(160, 10, 10, .35), transparent 70%),
    repeating-linear-gradient(45deg, #101012 0 7px, #0b0b0c 7px 14px);
  min-height: 100vh;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
header.top { padding: 28px 0 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
header.top img { height: 52px; width: auto; mix-blend-mode: screen; }
header.top .tag { color: var(--muted); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
header.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
header.top nav a { text-decoration: none; color: var(--muted); }
header.top nav a:hover, header.top nav a.on { color: var(--text); }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 36px 0 8px; font-weight: 700; letter-spacing: .01em; }
h1 em { font-style: normal; color: var(--red); }
.lead { color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; padding-bottom: 48px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card .shot { aspect-ratio: 8 / 3; background: #000; display: block; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 { font-size: 20px; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.pill { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 2px 10px; }
.pill.new { border-color: var(--red-d); color: #ff6a5e; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 8px;
       padding: 10px 16px; font: 600 15px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.btn:hover { background: #ff2a24; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.howto { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 10px; padding: 16px 18px; margin: 0 0 28px; }
.howto b { color: var(--text); }
.howto ol { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.empty { color: var(--muted); padding: 40px 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 18px 0 30px; }

/* publisher */
.cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding-bottom: 48px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.box h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input[type=text], textarea, select { width: 100%; background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 10px; font: inherit; }
textarea { min-height: 84px; resize: vertical; }
.drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; background: var(--panel2); }
.drop.ok { border-color: var(--red-d); color: var(--text); }
.drop input { display: none; }
.preview { width: 100%; aspect-ratio: 8 / 3; background: #000; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; margin-top: 10px; display: none; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.row img { width: 96px; aspect-ratio: 8/3; object-fit: cover; border-radius: 4px; background: #000; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t span { color: var(--muted); font-size: 12px; }
.row button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 4px 8px; cursor: pointer; font: inherit; font-size: 12px; }
.row button:hover { color: #ff6a5e; border-color: var(--red-d); }
.out { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.out a { justify-content: space-between; }
.out small { opacity: .8; font-weight: 400; }
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.err { color: #ff6a5e; font-size: 14px; margin-top: 8px; }

.appcard { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--red); border-radius: 12px; padding: 16px 18px; margin: 0 0 20px; }
.appcard-text { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.appcard-text b { font-size: 17px; }
.appcard-text span { color: var(--muted); font-size: 13px; }
.appcard .btn { white-space: nowrap; }
@media (max-width: 520px) { .appcard .btn { width: 100%; text-align: center; } }
