.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 6px;
  font-size: 1.5rem;
  border-radius: 4px;
  z-index: 3;
  font-weight: bold;
}

.video-content {
  padding: 12px 5px 15px 5px;
}

.video-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.video-meta {
  font-size: 1.2rem;
  color: #555;
  margin: 4px 0;
}

.video-description {
  font-size: 15px;
  color: #333;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 23px;
}

/* Video Modal Styles */
#videoModal {
  display: none;
  position: fixed;
  z-index: 999999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

#videoModal.show {
  display: flex;
}

.modal-content iframe {
  width: 80vw;
  height: 45vw;
  max-height: 80vh;
}

.modal-content {
  width: auto;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.hp-yt-wrapper {
  position: relative;
}

.hp-yt-item + .yi-detail h3 {
  margin-bottom: 15px;
  line-height: 1.8;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5em;
  max-height: 5em;
}

.hp-yt-desc {
  margin-bottom: 15px;
  line-height: 1.8;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5em;
  max-height: 5em;
}

.hp-ig-list a {
  max-height: 299px;
  overflow: hidden;
  display: inline-block;
}
.hp-ig-list figure {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}