* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body:not(.hub-app) {
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(77, 166, 255, 0.16), transparent 32rem),
    #f5f7fb;
  color: #0f172a;
}

.community-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 70px;
}

.community-hero {
  text-align: center;
  padding: 26px 18px 18px;
}

.community-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(77, 166, 255, 0.25);
  border-radius: 999px;
  background: rgba(77, 166, 255, 0.1);
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.community-title {
  text-align: center;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.community-title.icon-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.community-title.icon-heading i {
  color: #4da6ff;
}

.community-sub {
  text-align: center;
  max-width: 620px;
  margin: 10px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

.feed {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}

.post {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #4da6ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.post-user {
  font-weight: 700;
  font-size: 15px;
}

.post-date {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.post-media {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 520px;
  background: #0f172a;
}

video.post-media {
  aspect-ratio: 16 / 9;
}

.post-body {
  padding: 16px 18px 20px;
}

.post-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.post-desc {
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
  white-space: pre-wrap;
}

.loading,
.community-state {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.community-state {
  max-width: 520px;
  margin: 12px auto 0;
  padding: 34px 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.community-state i {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 22px;
  margin-bottom: 16px;
}

.community-state h3 {
  color: #0f172a;
  font-size: 20px;
  margin-bottom: 8px;
}

.community-state p {
  line-height: 1.7;
}

.community-state--progress i {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

@media (max-width: 480px) {
  .community-wrap { padding-left: 12px; padding-right: 12px; }
  .post-media { max-height: 340px; }
}
