.feed-page {
  background: #f6f4f1;
}

.feed-page .app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(42, 35, 40, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.feed-container {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 0 0 28px;
  background: #ffffff;
  border-right: 1px solid rgba(42, 35, 40, 0.08);
  border-left: 1px solid rgba(42, 35, 40, 0.08);
  box-sizing: border-box;
}

.feed-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 14px;
  border-bottom: 1px solid #eee7ea;
}

.feed-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.feed-title {
  margin: 0;
  color: #251e23;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.feed-subtitle {
  margin: 0;
  color: #7b7076;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.feed-list {
  display: grid;
  gap: 18px;
  padding: 14px 0 28px;
}

.feed-post {
  background: #ffffff;
  border-bottom: 1px solid #eee7ea;
}

.feed-post-header {
  padding: 7px 14px;
}

.feed-poster {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.feed-poster-avatar-link {
  display: block;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.feed-poster-avatar {
  width: 32px;
  height: 32px;
  border: 1px solid #e7dde2;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #f8f3f5;
}

.feed-poster-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feed-poster-name-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.feed-poster-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #171417;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-poster-separator {
  flex: 0 0 auto;
  color: #6f7680;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.feed-poster-date {
  flex: 0 0 auto;
  color: #6f7680;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.feed-poster-chat-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  max-width: 100%;
  gap: 3px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #6f7680;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.feed-poster-chat-badge-icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feed-poster-chat-badge-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.feed-media {
  margin: 0;
  background: #161215;
}

.feed-media img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.feed-post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px 0;
}

.feed-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #151216;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.feed-action-button:hover {
  color: #7b7076;
}

.feed-action-button:active {
  transform: scale(0.92);
}

.feed-action-button:focus-visible {
  outline: 2px solid #9b5d7e;
  outline-offset: 2px;
}

.feed-action-icon {
  width: 27px;
  height: 27px;
  fill: transparent;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feed-like-button.is-liked {
  color: #ed4956;
}

.feed-like-button.is-liked .feed-action-icon {
  fill: currentColor;
}

.feed-like-count {
  min-width: 2ch;
  color: #2f282d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.feed-post-body {
  display: grid;
  gap: 12px;
  padding: 7px 14px 16px;
}

.feed-caption {
  margin: 0;
  color: #2f282d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
}

.feed-caption-author {
  color: #171417;
  font-weight: 900;
  text-decoration: none;
}

.feed-tagged-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding-top: 0;
  color: #7b7076;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.feed-tagged-list {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-left: 5px;
}

.feed-tagged-cast {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: -5px;
  color: #3a3036;
  text-decoration: none;
}

.feed-tagged-cast:first-child {
  margin-left: 0;
}

.feed-tagged-cast img {
  width: 24px;
  height: 24px;
  border: 1px solid #eadfe4;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #f8f3f5;
}

.feed-tagged-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-tagged-text a {
  color: inherit;
  text-decoration: none;
}

.feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.feed-tag {
  color: #7b4a66;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.feed-status {
  margin: 8px 14px 0;
  color: #6f6670;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.feed-status[data-status-type="error"] {
  color: #b42335;
}

.feed-load-more {
  display: flex;
  justify-content: center;
  padding: 4px 14px 24px;
}

.feed-load-more-button {
  min-width: 148px;
  min-height: 42px;
  border: 1px solid #e4d8de;
  border-radius: 999px;
  color: #332b31;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.feed-load-more-button:hover {
  background: #faf6f8;
}

.feed-load-more-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.feed-load-more-button:focus-visible {
  outline: 2px solid #9b5d7e;
  outline-offset: 2px;
}

.feed-post-skeleton {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.feed-skeleton-header,
.feed-skeleton-media,
.feed-skeleton-line {
  overflow: hidden;
  border-radius: 8px;
  background: #eee7ea;
  position: relative;
}

.feed-skeleton-header::after,
.feed-skeleton-media::after,
.feed-skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: feed-skeleton-shimmer 1.15s infinite;
}

.feed-skeleton-header {
  width: 180px;
  height: 32px;
}

.feed-skeleton-media {
  width: 100%;
  aspect-ratio: 2 / 3;
}

.feed-skeleton-line {
  width: 86%;
  height: 14px;
}

.feed-skeleton-line-short {
  width: 54%;
}

@keyframes feed-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 520px) {
  .feed-container {
    border-right: 0;
    border-left: 0;
  }
}
