/* 视频列表 Flex 网格（video.html / video_list.html 共用） */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 -15px;
}

.video-grid .video-card {
  display: flex;
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.video-grid .video-card .cruises-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}

.video-grid .video-card .image-wrapper {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.video-grid .video-card .image-wrapper .link {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-grid .video-card .image-wrapper .link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-grid .video-card .image-wrapper .title-wrapper {
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.video-grid .video-card .image-wrapper .title-wrapper .title {
  float: none;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  max-height: 2.7em;
  word-break: break-word;
}

.video-grid .video-card .image-wrapper .title-wrapper .icons {
  float: none;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(0, 147, 219, 0.9);
  color: #fff;
  font-size: 14px;
  padding-left: 2px;
}

.cruises-result-main .video-grid .video-card .cruises-layout {
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .video-grid .video-card {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .video-grid .video-card .image-wrapper {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 479px) {
  .video-grid .video-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
