/*! 活动推广卡：封面 + 标题，暗底；接在选集后。布局对齐 .hg-web-play__ep-grid */
.hg-activity-promo {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.hg-activity-promo.is-ready {
  display: block;
}
/* 与剧集 ep-grid 同列数/间距：5 列、gap 10px，紧挨横排 */
.hg-activity-promo__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}
.hg-activity-promo__item {
  min-width: 0;
}
.hg-activity-promo__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hg-activity-promo__card:focus-visible {
  outline: 2px solid rgba(255, 210, 28, 0.85);
  outline-offset: 2px;
}
.hg-activity-promo__cover {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background: #1a1a1a;
  margin: 0;
}
.hg-activity-promo__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hg-activity-promo__title {
  margin: 6px 0 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 选集侧栏内：跟在 ep-grid 后（对齐 huangguo SSP 位） */
.hg-web-play__episode-scroll > .hg-activity-promo {
  position: relative;
  margin-top: 12px;
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .hg-web-play__episode-scroll > .hg-activity-promo {
    margin-top: 10px;
  }
}
/* 与 drama-detail 里 ep-grid 在窄屏的 override 一致 */
@media (max-width: 1199px) {
  .hg-web-play__episode-scroll > .hg-activity-promo {
    margin-top: 16px;
  }
  .hg-web-play__episode-scroll > .hg-activity-promo .hg-activity-promo__grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }
}
/* 主栏宽版（可选 data-layout="wide"） */
.hg-activity-promo[data-layout="wide"] .hg-activity-promo__grid {
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}
.hg-activity-promo[data-layout="wide"] .hg-activity-promo__title {
  margin-top: 6px;
  font-size: 12px;
}
