.root {
  cursor: var(--custom-cursor, pointer);
  position: relative;
  padding: 0.5rem 0.75rem;

  &:hover, &:active {
    background-color: var(--color-chat-hover);
  }
}

.withImage {
  padding-left: 3.5rem;
}

.imageContainer {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;

  width: 2.5rem;
  height: 2.5rem;

  &::before {
    content: "";

    position: absolute;
    top: -0.25rem;
    left: -0.25rem;

    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;

    background: var(--color-borders-read-story);
    background-image:
      linear-gradient(
        215.87deg,
        var(--color-avatar-story-unread-from) -1.61%,
        var(--color-avatar-story-unread-to) 97.44%,
      );
  }

  &::after {
    content: "";

    position: absolute;
    z-index: 0;
    top: -0.125rem;
    left: -0.125rem;

    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;

    background: var(--color-background);
  }
}

.image {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;

  width: 2.5rem;
  height: 2.5rem;
  margin-inline-end: 0.25rem;
  border-radius: 0.25rem;

  object-fit: cover;

  &.round {
    border-radius: 0.625rem;
  }

  &.circle {
    border-radius: 50%;
  }

  &:global(.Avatar) {
    top: 0.375rem;
    left: 0.375rem;
  }

  &.withStoryCircle {
    z-index: 1;
    top: 0;
    left: 0;

    width: 2.25rem;
    height: 2.25rem;
  }
}

.summary {
  overflow: hidden;
  flex: 1;

  margin-right: 0.75rem;

  text-overflow: ellipsis;
  white-space: nowrap;

  :global(.icon-play) {
    position: relative;
    bottom: 0.0625rem;

    display: inline-block;

    margin-inline-start: -1.25rem;
    margin-inline-end: 0.5rem;

    font-size: 0.75rem;
    color: #fff;
  }
}

.title {
  display: flex;
  align-items: center;
  line-height: 1.25rem;
}

.info {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--color-text-meta);
}

.meta {
  font-size: 0.75rem;
}

.metaWithIcon {
  margin-inline-start: 0.375rem;
}

.metaIcon {
  margin-inline-end: 0.125rem;
  font-size: 0.875rem;
  vertical-align: -0.125rem;
}

.date {
  flex: 1;
  font-size: 0.8125rem;
}
