.single-post-body {
  background: var(--page-bg, #0b1221);
  min-height: 100vh;
}

.single-post {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(14px, 3vw, 24px) 64px;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 28px);
}

.single-post__bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .single-post__bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.single-post__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.single-post__logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.single-post__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #0b1221;
  font-weight: 800;
}

.single-post__logo-word {
  font-size: 18px;
}

.single-post__tag {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--feed-card-border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.single-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.single-post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--feed-card-border);
  background: var(--feed-card-bg);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.single-post__share {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-card-border);
  box-shadow: var(--feed-card-shadow);
}

.single-post__share-input {
  min-width: clamp(220px, 30vw, 360px);
  border: 1px solid var(--feed-card-border);
  background: transparent;
  color: inherit;
  padding: 10px 12px;
  border-radius: 10px;
}

.single-post__share-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #0b1221;
  font-weight: 700;
  cursor: pointer;
}

.single-post__status {
  margin: 0;
  font-size: 14px;
  color: var(--feed-muted-color);
}

.single-post__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.single-post__feed {
  border-radius: 18px;
  border: 1px solid var(--feed-card-border);
  background: var(--feed-card-bg);
  padding: clamp(6px, 2vw, 10px);
  box-shadow: var(--feed-card-shadow);
}

.single-post__hint {
  margin: 0;
  font-size: 14px;
  color: var(--feed-muted-color);
}

.post-main {
  padding-block: clamp(16px, 2vw, 28px) 48px;
}

.post-container {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
}

.post-container--centered {
  align-items: center;
}

.post-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  border: 1px solid var(--feed-card-border);
  background:
    radial-gradient(120% 120% at 90% -10%, rgba(14, 165, 233, 0.28), transparent 60%),
    radial-gradient(120% 120% at -10% 110%, rgba(99, 102, 241, 0.24), transparent 62%),
    var(--feed-card-bg);
  box-shadow: var(--feed-card-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: var(--text-color);
}

body.dark .post-hero {
  background:
    radial-gradient(120% 120% at 85% -15%, rgba(14, 165, 233, 0.2), transparent 58%),
    radial-gradient(120% 120% at -10% 110%, rgba(99, 102, 241, 0.24), transparent 64%),
    var(--feed-card-bg);
}

.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(148, 163, 184, 0.15), transparent 55%);
  opacity: 0.8;
}

.post-hero__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.12);
  margin: 0;
}

body.dark .post-hero__eyebrow {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
}

.post-hero__title {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
}

.post-hero__description {
  position: relative;
  margin: 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--feed-muted-color);
}

.post-hero__header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.post-hero__timestamp {
  font-size: 14px;
  color: var(--feed-muted-color);
}

.post-hero[data-state="empty"] .post-hero__timestamp {
  color: rgba(239, 68, 68, 0.9);
}

.post-hero__identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.post-hero__avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(45, 212, 191, 0.4));
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-hero__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.65);
}

.post-hero__identity-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-hero__subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  color: var(--feed-muted-color);
}

.post-hero__handle {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--feed-accent);
}

.post-hero__profile-link {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.post-hero__profile-link:hover,
.post-hero__profile-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -18px rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.post-hero__profile-link[hidden] {
  display: none;
}

.post-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin: clamp(16px, 3vw, 24px) 0;
  padding: 0;
  list-style: none;
}

.post-hero__stat {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

body.dark .post-hero__stat {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(125, 211, 252, 0.18);
}

.post-hero__stat:hover,
.post-hero__stat:focus-within {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
}

.post-hero__stat-value {
  font-size: 22px;
  font-weight: 700;
}

.post-hero__stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--feed-muted-color);
}

.post-hero__stat--placeholder,
.post-hero__stat--empty {
  padding: clamp(14px, 2vw, 18px);
  text-align: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  color: var(--feed-muted-color);
}

body.dark .post-hero__stat--placeholder,
body.dark .post-hero__stat--empty {
  background: rgba(15, 23, 42, 0.55);
}

.post-hero[data-state="empty"] .post-hero__stat--empty {
  border-color: rgba(248, 113, 113, 0.4);
  color: rgba(248, 113, 113, 0.85);
}

.post-hero[data-state="loading"] .post-hero__profile-link {
  pointer-events: none;
  opacity: 0.6;
}

.post-hero__share {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
}

.post-hero__share-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--feed-muted-color);
}

.post-hero__share-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.post-hero__share-input {
  flex: 1 1 280px;
  min-width: 200px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--feed-card-border);
  background: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-hero__share-input:focus {
  border-color: var(--feed-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.24);
}

body.dark .post-hero__share-input {
  background: rgba(15, 23, 42, 0.8);
}

.post-hero__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.post-hero__action:hover,
.post-hero__action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -18px rgba(14, 165, 233, 0.65);
  filter: brightness(1.05);
}

.post-hero__action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.post-hero__action--ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: inherit;
}

body.dark .post-hero__action--ghost {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(125, 211, 252, 0.18);
}

.post-hero__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: clamp(20px, 3vw, 28px);
}

.post-hero__status {
  position: relative;
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--feed-muted-color);
}

.post-hero__status[data-state="success"] {
  color: #10b981;
}

.post-hero__status[data-state="warning"] {
  color: #f97316;
}

.post-view {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.post-view--centered {
  width: min(900px, 100%);
}

@media (min-width: 1024px) {
  .post-view {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  }
}

.post-view__primary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-view__surface {
  border-radius: 24px;
  border: 1px solid var(--feed-card-border);
  background: var(--feed-card-bg);
  box-shadow: var(--feed-card-shadow);
  padding: clamp(10px, 2vw, 14px);
  min-height: 280px;
}

.post-view__surface .feed-list {
  margin: 0;
}

.post-view__hint {
  margin: 0;
  font-size: 14px;
  color: var(--feed-muted-color);
}

.post-view__secondary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-sidecard {
  border-radius: 22px;
  border: 1px solid var(--feed-card-border);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0)) var(--feed-card-bg);
  box-shadow: var(--feed-card-shadow);
  padding: clamp(18px, 2vw, 22px);
  color: var(--text-color);
}

body.dark .post-sidecard {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(2, 6, 23, 0.75)) var(--feed-card-bg);
}

.post-sidecard__title {
  margin: 0 0 12px;
  font-size: 18px;
}

.post-sidecard__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--feed-muted-color);
}

.post-sidecard__list strong {
  color: var(--text-color);
}

.post-sidecard--subtle {
  background: rgba(255, 255, 255, 0.72);
  border-style: dashed;
}

body.dark .post-sidecard--subtle {
  background: rgba(15, 23, 42, 0.82);
}

.post-sidecard__subtitle {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.post-sidecard__body {
  margin: 0;
  font-size: 14px;
  color: var(--feed-muted-color);
}

.post-insights {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-insights__card {
  border-radius: 22px;
  border: 1px solid var(--feed-card-border);
  background: linear-gradient(185deg, rgba(14, 165, 233, 0.12), rgba(255, 255, 255, 0)) var(--feed-card-bg);
  box-shadow: var(--feed-card-shadow);
  padding: clamp(18px, 2vw, 24px);
  display: grid;
  gap: 14px;
}

body.dark .post-insights__card {
  background: linear-gradient(185deg, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.72)) var(--feed-card-bg);
}

.post-insights__title {
  margin: 0;
  font-size: 18px;
}

.post-insights__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-insights__link:hover,
.post-insights__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -18px rgba(15, 23, 42, 0.5);
}

body.dark .post-insights__link {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(125, 211, 252, 0.15);
}

.post-insights__card--muted {
  background: rgba(255, 255, 255, 0.68);
}

body.dark .post-insights__card--muted {
  background: rgba(15, 23, 42, 0.78);
}

.post-insights__subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.post-insights__copy {
  margin: 0;
  font-size: 14px;
  color: var(--feed-muted-color);
}

@media (max-width: 960px) {
  .post-hero__share-controls {
    width: 100%;
  }

  .post-hero__meta {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .post-hero {
    padding: 24px;
  }

  .post-hero__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .post-hero__action,
  .post-hero__action--ghost {
    width: 100%;
    justify-content: center;
  }

  .post-insights {
    gap: 14px;
  }
}
