.talk-posts-main {
  padding-bottom: var(--spacing-3xl);
}

.talk-posts__tools,
.talk-posts__panel {
  /* width: min(960px, calc(100% - 80px)); */
  margin-right: auto;
  margin-left: auto;
}

.talk-posts__user-avatar {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
  border: var(--stroke-1) solid var(--semantic-border-hover);
  border-radius: var(--radius-full);
  background: var(--semantic-border);
}

.talk-posts__register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2xs);
  padding: var(--spacing-sm) 0;
  border-radius: var(--radius-full);
  color: var(--neutral-tx3-sub);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-20);
}

.talk-posts__panel {
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  background: var(--semantic-white);
  box-shadow: var(--shadow-card);
}

.talk-posts__list {
  overflow: hidden;
  border: var(--stroke-1) solid var(--semantic-border);
  border-radius: var(--radius-md);
}

.talk-post {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  border-bottom: var(--stroke-1) solid var(--semantic-border);
  background: var(--semantic-white);
}

.talk-post:last-child {
  border-bottom: 0;
}

.talk-post__header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--spacing-sm);
}

.talk-post__avatar {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  overflow: hidden;
  border: var(--stroke-1) solid var(--semantic-border-hover);
  border-radius: var(--radius-full);
  background: var(--semantic-border);
}

.talk-post__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talk-post__header strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--neutral-tx2-title);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-20);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talk-post__header time {
  flex: none;
  color: var(--neutral-tx3-sub);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-20);
}

.talk-post__edited {
  flex: none;
  padding: var(--spacing-micro) var(--spacing-2xs);
  border: var(--stroke-1) solid var(--semantic-border);
  border-radius: var(--radius-full);
  color: var(--neutral-tx3-sub);
  background: var(--semantic-bg);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-14);
}

.talk-post__icon-button,
.talk-post__more {
  display: flex;
  width: 18px;
  height: 18px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.talk-post__icon-button img {
  width: 16px;
}

.talk-post__more {
  gap: var(--spacing-micro);
}

.talk-post__more img {
  width: 2px;
}

.talk-post__body,
.talk-post__addition,
.talk-post__stats {
  margin-left: var(--spacing-2xl);
}

.talk-post__body {
  display: block;
  color: var(--neutral-tx2-title);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-22);
}

.talk-post__mention {
  color: var(--brand-primary);
}

.talk-post__media {
  position: relative;
  /* 2026-10-27 Figma «Talk Posts»(878:107753) — 목록 카드 사진·영상 530×400(상세·프로필 카드와 같은 크기, 예전 400×300) */
  width: min(530px, calc(100% - var(--spacing-2xl)));
  aspect-ratio: 53 / 40;
  margin-left: var(--spacing-2xl);
  overflow: hidden;
  border: var(--stroke-1) solid var(--semantic-border);
  border-radius: var(--radius-lg);
  background: var(--semantic-white);
}

.talk-post__media-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talk-post__sound {
  position: absolute;
  right: var(--spacing-lg);
  bottom: var(--spacing-lg);
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--badge-alpha-b-20);
}

.talk-post__sound img {
  width: 16px;
}

.talk-post__addition {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  color: var(--neutral-tx3-sub);
  font-size: var(--font-size-base);
  line-height: var(--line-height-20);
}

.talk-post__addition span {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xs);
}

.talk-post__addition img {
  width: 18px;
}

.talk-post__stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.talk-post__stats button {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--spacing-3xs);
  padding: 0;
  color: var(--neutral-tx3-sub);
  font-size: var(--font-size-base);
  line-height: var(--line-height-20);
}

.talk-post__stats img {
  width: 18px;
}

.talk-post__stats .talk-post__bookmark {
  width: 18px;
  height: 24px;
}

.talk-post__bookmark.is-active img {
  content: url("../../images/community/post-form/bookmark-active.svg");
}

.talk-posts__panel .community-loading {
  margin-bottom: calc(var(--spacing-lg) * -1);
}

@media (min-width: 1280px) {
  .talk-posts__tools {
    width: 1280px;
  }
}

@media (max-width: 1023px) {

  .talk-posts__tools,
  .talk-posts__panel {
    width: calc(100% - 80px);
  }
}

@media (max-width: 767px) {
  .talk-posts-main {
    padding-right: var(--spacing-lg);
    padding-left: var(--spacing-lg);
  }

  .talk-posts__tools,
  .talk-posts__panel {
    width: 100%;
  }

  .talk-posts__tools {
    padding-right: 0;
    padding-left: 0;
  }

  .talk-posts__panel {
    padding: var(--spacing-sm);
  }

  .talk-post {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 479px) {
  .talk-posts__register {
    gap: 0;
    font-size: 0;
  }

  .talk-post__body,
  .talk-post__addition,
  .talk-post__stats,
  .talk-post__media {
    margin-left: 0;
  }

  .talk-post__header {
    gap: var(--spacing-3xs);
  }

  .talk-post__header time {
    font-size: var(--font-size-sm);
  }
}
