* {
  box-sizing: border-box;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.45;
}
.top {
  padding: 1.25rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.top-bar {
  margin: 0 0 0.65rem;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 8px;
}
.top-bar-mirror-unions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.top-bar-mirror-unions--after-gif {
  margin-left: 2px;
}
.mirror-union-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.mirror-union-logo:hover {
  transform: scale(1.06);
  opacity: 0.95;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.42);
}
.mirror-union-logo__wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08) 58%,
    rgba(0, 0, 0, 0.16) 100%
  );
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.mirror-union-logo__wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.mirror-union-logo-strip--full-row {
  width: 100%;
  margin: 0 0 0.65rem;
  justify-content: flex-start;
}
.top-bar-gif-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.top-bar-anniv-gif {
  max-height: 40px;
  width: auto;
  max-width: min(52vw, 200px);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav-back {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #e2e8f0;
  cursor: pointer;
}
.nav-back:hover {
  background: #334155;
  border-color: #64748b;
}
.nav-back:active {
  transform: scale(0.98);
}
.top h1 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.sub {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}
.sub a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sub a:hover {
  color: #fcd34d;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: #111827;
}
.filters label {
  font-size: 0.75rem;
  color: #94a3b8;
}
.filter-pair {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 auto;
  min-width: min(100%, 180px);
}
.filter-pair--action {
  flex: 0 0 auto;
  align-self: flex-end;
}
.geo-stack {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.geo-level-hidden {
  display: none !important;
}
select,
button {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #e2e8f0;
}
button {
  cursor: pointer;
  background: #ca8a04;
  border-color: #ca8a04;
  color: #0f172a;
}
button:hover {
  background: #a16207;
  border-color: #a16207;
}
.feed {
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.meta {
  font-size: 0.8rem;
  color: #fbbf24;
  margin-bottom: 0.35rem;
}
.txt {
  white-space: pre-wrap;
  word-break: break-word;
}

.card-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-source, .btn-orig {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  text-decoration: none;
  font-weight: 500;
}
.btn-source {
  background: #0ea5e9;
  color: #fff;
}
.btn-orig {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
}
.btn-source:hover { background: #0284c7; }
.btn-orig:hover { color: #cbd5e1; border-color: #64748b; }

/* Фотография объявления (01.09). Показ включается на сервере; когда фото нет,
   правило просто не применяется. */
.card-photo {
  margin: 0 0 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}
.card-photo img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
