
.interaction-container {
  display: flex;
  gap: 6px; /* hoặc khoảng cách bạn muốn */
  justify-content: center; /* căn giữa ngang */
  align-items: center; /* căn giữa dọc nếu cần */
  flex-wrap: nowrap; /* không xuống dòng, hoặc đổi thành wrap nếu bạn muốn xuống dòng */
  overflow-x: auto; /* cho phép cuộn ngang nếu quá rộng */
  padding: 0;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}



.interaction-wrapper {
  max-width: 600px;
  margin: 20px auto 0 auto;
  font-family: 'Inter', sans-serif;
  color: #52575C;
}
.interaction-wrapper .title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  color: #ee290f;
  text-align: center;
}
.interaction-container {
  display: flex;
  gap: 6px; /* khoảng cách giữa các nút */
  justify-content: center; /* căn giữa các nút */
  align-items: center; /* căn giữa dọc */
  flex-wrap: wrap; /* cho phép xuống dòng khi không đủ chỗ */
  overflow-x: visible; /* tránh hiện thanh cuộn ngang trên desktop */
  padding: 0;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Thanh cuộn cho Chrome, Safari, Edge */
.interaction-container::-webkit-scrollbar {
  height: 6px;
}
.interaction-container::-webkit-scrollbar-track {
  background: transparent;
}
.interaction-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

button.interact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 40px;
  border-radius: 9999px;
  border: 1.5px solid #DADDDF;
  background-color: #F4F6FA;
  color: #52575C;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  min-width: 110px;
}
button.interact-btn:hover {
  border-color: #ff9966;
  background-color: #fff1b9;
  color: #0f6c32;
}
button.interact-btn span.icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: transparent; /* bỏ nền trắng */
  overflow: hidden;
  transition: width 0.3s ease, height 0.3s ease;
  flex-shrink: 0;
}
button.interact-btn:hover span.icon-wrapper {
  width: 36px;
  height: 36px;
}
button.interact-btn span.icon-wrapper img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
button.interact-btn:hover span.icon-wrapper img {
  transform: scale(1.2);
}
button.interact-btn span.count {
  line-height: 1;
}

/* CSS cho danh sách vote - namespace rõ ràng */
.ivv-top-voted-posts {
  list-style: none;
  margin: 1.5em auto;
  padding-left: 0;
  max-width: 600px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: inherit;
  background: transparent;
}

.ivv-top-voted-posts li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
}

.ivv-top-voted-posts li:last-child {
  border-bottom: none;
}

.ivv-top-voted-posts li .ivv-index {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #f7b627; /* viền vòng tròn theo màu chữ */
  color: #de3938;
  font-weight: 700;
  font-size: 15px;
  user-select: none;
  flex-shrink: 0;
  background: transparent;
}

.ivv-top-voted-posts li a.ivv-title {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  min-width: 0; /* quan trọng cho flex item co nhỏ */
}

.ivv-top-voted-posts li a.ivv-title:hover {
  color: #e13438; /* màu đỏ */
  text-decoration: none; /* bỏ gạch chân */
  transition: color 0.3s ease;
}

.ivv-top-voted-posts li .ivv-votes-count {
  margin-left: 14px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 400;
  user-select: none;
  min-width: 30px;
  text-align: right;
  font-size: 14px;
  background: transparent;
  border: none;
  flex-shrink: 0;
}




@media (max-width: 480px) {
  .interaction-wrapper {
    padding-left: 2px;
    padding-right: 2px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .interaction-container {
    padding: 0px;
    margin: 0;
    gap: 8px;
    overflow-x: auto; /* nếu nhiều nút quá thì cho cuộn ngang */
    flex-wrap: nowrap; /* giữ không xuống dòng trên mobile */
    justify-content: center; /* căn giữa */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  button.interact-btn {
    margin: 0;
    padding: 0 8px;
    min-width: 60px;
    height: 37px;
    font-size: 12px;
  }
}

