.UIArticleShare_marquee .UIShareNewsControl .news-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.UIArticleShare_marquee .Header .text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(51, 51, 51);
  font-family: Merriweather;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
}
.UIArticleShare_marquee .Header .HeaderWrap {
  border-bottom: 1px solid #d13626;
  padding-bottom: 4px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
        display:none;
}

.UIArticleShare_marquee .Header .view-more {
  display: none;
}

.UIArticleShare_marquee .UIShareNewsControl {
  box-sizing: border-box;
  padding: 0px 0px 0;
  border: 1.2px solid #b5b2b2;
  /* background:
        linear-gradient(
            rgba(253, 246, 218, 0.4) 0%,
            #fff4c8 50%,
            rgba(252, 250, 246, 0.4) 100%
        ),
        url("https://static.mediacdn.vn/TaoMauNhung/images/bg-new.svg")
        center / cover no-repeat; */
}

.UIArticleShare_marquee .UIShareNewsControl .Wrap {
  width: 100%;
}

.UIArticleShare_marquee .UIShareNewsControl img {
  max-width: 100%;
}

.UIArticleShare_marquee .UIShareNewsControl .news-title {
  display: block;
  color: #333;
  font-family: Merriweather;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  max-height: 60px;
  overflow: hidden;
}

.UIArticleShare_marquee .UIShareNewsControl .news-sapo {
  display: none;
}

.UIArticleShare_marquee .UIShareNewsControl .img-news {
  display: none;
}

.UIArticleShare_marquee .UIShareNewsControl .news-item {
  /*
    border-top: 1px dashed #b5b2b2;
    padding-top: 12px;
    padding-bottom: 12px;
    */
}

.UIArticleShare_marquee .UIShareNewsControl .time {
  display: none;
}

.UIArticleShare_marquee .Wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden !important;
  position: relative;
}
.UIArticleShare_marquee .marquee-track {
  display: flex !important;
  align-items: flex-start;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  gap: 30px;
  animation: articleMarquee 45s linear infinite;
}

.UIArticleShare_marquee .marquee-track .next {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  gap: 30px;
  flex: 0 0 auto;
}

.UIArticleShare_marquee .marquee-track + .marquee-track {
  position: absolute;
  left: 100%;
  top: 0;
  width: max-content !important;
  max-width: none !important;
}
@keyframes articleMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}


/* Fix dựa trên CSS UIArticleShare_marquee hiện tại. */

.UIArticleShare_marquee {
    --marquee-gap: 30px;
    --marquee-first-width: 350px;
    --marquee-item-width: 350px;

    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;

    /* Không cho dải tin width:max-content làm nở table/cột cha. */
    contain: inline-size;
}

.UIArticleShare_marquee .UIShareNewsControl {
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    overflow: hidden;
}

.UIArticleShare_marquee .Wrap {
    display: flex;
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative;
    gap: var(--marquee-gap);
}

.UIArticleShare_marquee .marquee-track {
    display: flex !important;
    align-items: flex-start;
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    width: max-content !important;
    max-width: none !important;
    gap: var(--marquee-gap);
    animation: articleMarquee 45s linear infinite;
    will-change: transform;
}

.UIArticleShare_marquee .marquee-track .first {
    display: block;
    width: var(--marquee-first-width) !important;
    min-width: var(--marquee-first-width);
    max-width: var(--marquee-first-width) !important;
    flex: 0 0 var(--marquee-first-width) !important;
}

.UIArticleShare_marquee .marquee-track .next {
    display: flex !important;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: auto !important;
    max-width: none !important;
    gap: var(--marquee-gap);
}

.UIArticleShare_marquee .marquee-track .next .news-item {
    width: var(--marquee-item-width) !important;
    min-width: var(--marquee-item-width);
    max-width: var(--marquee-item-width) !important;
    flex: 0 0 var(--marquee-item-width) !important;
}


.UIArticleShare_marquee .marquee-track + .marquee-track {
    position: static !important;
    inset: auto !important;
    width: max-content !important;
    max-width: none !important;
}

@keyframes articleMarquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        /* Đi hết một track và cả khoảng cách giữa hai track. */
        transform: translate3d(calc(-100% - var(--marquee-gap)), 0, 0);
    }
}

@media (max-width: 767.98px) {
    .UIArticleShare_marquee {
        --marquee-gap: 16px;
        --marquee-first-width: min(35vw, 350px);
        --marquee-item-width: min(35vw, 350px);
    }
}

.UIArticleShare_marquee {
margin-bottom: 10px;
}

.UIArticleShare_marquee .UIShareNewsControl * {
        font-family: "Roboto Condensed", sans-serif !important;
}

.UIArticleShare_marquee .UIShareNewsControl {
    padding: 5px;
}



