.tg-wrap {
  max-width: 600px;
  margin: 0 auto;
  color: #0f1419;
}

.tg-kicker {
  margin: 0 0 8px;
  color: #536471;
  font-size: 0.95rem;
}

.tg-title-page {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tg-gate {
  margin: 12px 0 18px;
  padding: 16px;
  border: 1px solid #f3d0e6;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fff7fb);
}

.tg-gate h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.tg-gate p {
  margin: 0 0 12px;
  color: #3d4450;
}

.tg-gate-actions,
.tg-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.tg-btn-primary {
  background: #111;
  color: #fff;
}

.tg-btn-primary:hover {
  background: #2a2a2a;
  color: #fff;
}

.tg-btn-secondary {
  background: #fff;
  color: #111;
  border-color: #ddd;
}

.tg-btn-secondary:hover {
  background: #f7f7f8;
  color: #111;
}

.tg-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tg-post {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #eff3f4;
}

.tg-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tg-avatar,
.tg-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
}

.tg-avatar {
  object-fit: cover;
  background: #f3f4f6;
}

.tg-avatar-fallback {
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #111;
  font-weight: 800;
}

.tg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: #536471;
  font-size: 0.92rem;
}

.tg-user {
  color: #0f1419;
  font-weight: 800;
}

.tg-name .verified-badge {
  color: #1d9bf0;
  display: inline-flex;
  vertical-align: middle;
}

.tg-post-title {
  margin: 4px 0 6px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.tg-post-title a {
  color: inherit;
  text-decoration: none;
}

.tg-post-title a:hover {
  text-decoration: underline;
}

.tg-excerpt,
.tg-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.tg-text p:last-child {
  margin-bottom: 0;
}

.tg-text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-more {
  margin-top: 4px;
  padding: 8px 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #ff4bc0;
  font-weight: 700;
}

.tg-gallery {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.tg-gallery img,
.tg-gallery video {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
  background: #f3f4f6;
}

.tg-media-locked {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: 180px;
  margin-top: 10px;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 75, 192, 0.55), transparent 42%),
    radial-gradient(circle at 70% 50%, rgba(80, 140, 255, 0.45), transparent 46%),
    linear-gradient(160deg, #3a3340, #16161c);
}

.tg-media-locked::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: inherit;
  filter: blur(16px);
}

.tg-media-locked span {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
}

.tg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 4px;
}

.tg-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #536471;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.tg-action:hover {
  background: #f7f7f8;
  color: #0f1419;
}

.tg-action.is-active,
.tg-action[aria-pressed="true"] {
  color: #ff4bc0;
  background: #fff1f8;
}

.tg-live {
  min-height: 1.25rem;
  margin: 4px 0 0;
  color: #536471;
  font-size: 0.85rem;
}

.tg-replies {
  margin-top: 8px;
}

.tg-reply {
  padding: 12px 0 12px 12px;
  border-left: 2px solid #eff3f4;
}

.tg-composer {
  margin-top: 8px;
}

.tg-composer textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #cfd9de;
  border-radius: 16px;
  font: inherit;
  resize: vertical;
}

.tg-empty,
.tg-gone {
  padding: 28px 0;
  color: #536471;
}

.tg-crumb {
  margin-bottom: 8px;
  color: #536471;
  font-size: 0.9rem;
}

.tg-crumb a {
  color: inherit;
}

.tg-btn:focus-visible,
.tg-action:focus-visible,
.tg-more:focus-visible,
.tg-post a:focus-visible,
.tg-composer textarea:focus-visible,
.tg-crumb a:focus-visible {
  outline: 2px solid #ff4bc0;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .tg-action,
  .tg-btn,
  .tg-post {
    transition: none;
  }
}
