/* R13: compact flat live-comment rail for the Prikola.net sidebar. */

.col_right_bg_comm.live-discussion {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--ui-card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.live-discussion__head {
  min-height: 48px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
}

.live-discussion__title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-discussion__status {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.live-discussion__title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.018em;
}

.live-discussion__all {
  min-width: 0;
  min-height: 30px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  color: var(--text-fade);
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  transition: color var(--motion-fast) ease;
}

.live-discussion__all:hover,
.live-discussion__all:focus-visible {
  color: var(--text);
}

.live-discussion__all .i-svg {
  width: 13px;
  height: 13px;
}

.live-discussion__feed {
  padding: 0 15px;
}

.live-comment {
  min-width: 0;
  padding: 13px 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.live-comment + .live-comment {
  border-top: 1px solid var(--border);
}

.live-comment__avatar {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: var(--surface-2);
}

.live-comment__body {
  min-width: 0;
}

.live-comment__meta {
  min-width: 0;
  min-height: 17px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}

.live-comment__author,
.live-comment__author a {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-comment__author a:hover,
.live-comment__author a:focus-visible {
  color: var(--accent-main);
}

.live-comment__time {
  flex: 0 0 auto;
  color: var(--text-fade);
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
}

.live-comment__text {
  margin-top: 3px;
  overflow: hidden;
  display: -webkit-box;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-comment__text > :first-child { margin-top: 0; }
.live-comment__text > :last-child { margin-bottom: 0; }

.live-comment__text img,
.live-comment__text video,
.live-comment__text iframe,
.live-comment__text .comments-image-gallery {
  display: none !important;
}

.live-comment__post {
  min-width: 0;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-fade);
  font-size: 10px;
  line-height: 1.3;
  transition: color var(--motion-fast) ease;
}

.live-comment__post:hover,
.live-comment__post:focus-visible {
  color: var(--text);
}

.live-comment__post-label {
  flex: 0 0 auto;
  color: inherit;
}

.live-comment__post-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-comment__post-title > span {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-comment__post-arrow {
  width: 11px;
  height: 11px;
  margin-left: auto;
  flex: 0 0 11px;
  color: inherit;
}

.theme-dark .live-discussion__status {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 16%, transparent);
}

@media (max-width: 1042px) {
  .live-discussion__feed {
    padding-inline: 14px;
  }
}
