:root {
  --bg: #15110f;
  --card: #221b17;
  --card-2: #2c231d;
  --text: #f5ece4;
  --muted: #a99b8e;
  --accent: #ff8a5c;
  --pink: #ff5c8a;
  --max: 620px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 16px 14px; }
header.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(21,17,15,0.9); backdrop-filter: blur(8px);
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
}
header.top .brand { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
header.top .brand .cat { font-size: 22px; }
header.top .sub { font-size: 12px; color: var(--muted); }

.post {
  background: var(--card); border-radius: 14px; overflow: hidden;
  margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.post .media { width: 100%; display: block; background: #000; max-height: 70vh; object-fit: contain; }
.post video.media { max-height: 72vh; }
.post .body { padding: 12px 14px 14px; }
.post .caption { white-space: pre-wrap; line-height: 1.4; font-size: 15px; }
.post .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.post .time { color: var(--muted); font-size: 12px; }
.heart-btn {
  background: transparent; border: 0; cursor: pointer; color: var(--muted);
  font-size: 20px; padding: 4px 8px; border-radius: 8px; display: flex; align-items: center; gap: 4px;
  transition: transform .12s ease, color .12s ease;
}
.heart-btn.on { color: var(--pink); }
.heart-btn:active { transform: scale(1.25); }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px; }
.empty .cat { font-size: 48px; display: block; margin-bottom: 8px; }

.enable-push {
  margin: 8px 0 16px; padding: 10px 14px; background: var(--accent); color: #1a120c;
  border: 0; border-radius: 10px; font-weight: 600; width: 100%; cursor: pointer;
}

/* admin */
.admin-form { display: grid; gap: 12px; }
.admin-form label { font-size: 12px; color: var(--muted); }
.admin-form input[type=file], .admin-form select, .admin-form textarea, .admin-form input[type=text] {
  width: 100%; background: var(--card-2); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit;
}
.admin-form textarea { min-height: 70px; resize: vertical; }
.admin-form button.send {
  background: var(--accent); color: #1a120c; border: 0; border-radius: 10px;
  padding: 12px; font-weight: 700; font-size: 16px; cursor: pointer;
}
.admin-form button.send:disabled { opacity: .5; }
.status { font-size: 13px; color: var(--muted); min-height: 18px; }
.status.ok { color: #7ad17a; } .status.err { color: #ff7a7a; }
.preview { max-height: 200px; border-radius: 10px; display: block; margin-top: 6px; }
a.back { color: var(--muted); text-decoration: none; font-size: 13px; }
