/* ==========================================================================
   体育直播 - 频道入口页（hlw-web 普通二级子页面）
   本页 = 原站顶导航 + 首页二级导航（.slider-content/.slider-item）+ 大入口 banner
   二级导航/主容器布局样式移植自 homepage.css（全局 common.css 不含）
   ========================================================================== */
@import "sportslive-common.css";

/* ---- 首页二级导航 / 主容器（原样取自 homepage.css，保证与首页一致）---- */
.main-container {
  padding-top: 0;
}

.slider-content {
  display: flex;
  flex-direction: row;
  padding-bottom: 0.2rem;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  position: fixed;
  width: 100%;
  background: black;
  z-index: 98;
  max-width: 660px;
  height: 4.8rem;
  -webkit-user-drag: none;
  user-select: none;
  touch-action: pan-x;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider-content::-webkit-scrollbar {
  display: none;
}

.slider-content.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.slider-item {
  border: 1px solid rgb(46, 46, 46);
  font-size: 15px;
  text-align: center;
  font-weight: 700;
  color: rgb(183, 183, 183);
  padding: 0.7rem 0.8rem;
  margin-right: 0.5rem;
  border-radius: 0.5rem;
  line-height: 1.4;
  -webkit-user-drag: none;
  user-select: none;
}

.slider-item .span {
  box-sizing: border-box;
  color: #fff;
  font-weight: 700;
  font-size: inherit;
  text-align: center;
  white-space: nowrap;
}

.span.active,
.slider-item.active .span {
  color: var(--theme-color);
}

.video-list {
  padding: 0 0.5rem;
}

@media screen and (max-width: 640px) {
  .slider-content {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
}

/* ---- 大入口 banner：宽度随页面内容自适应（#home-main-content 660，含移动端），
       与视频网格 0.5rem 边距对齐 ---- */
.sports-live-entry-container {
  position: relative;
  display: block;
  width: auto;
  margin: 0.75rem 0.5rem 0;
  aspect-ratio: 1072 / 316;
  overflow: hidden;
  border-radius: 0.3rem;
  background: #111 url("../../__base/images/sports-live/sports-live-entry-pc.webp") center / cover no-repeat;
}

.sports-live-entry-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  justify-content: center;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.72);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  z-index: 2;
}

.sports-live-entry-label img {
  display: block;
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.sports-live-entry-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 42%;
  min-height: 3.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ff9d00;
  border-radius: 999px;
  background: rgba(3, 8, 7, 0.9);
  color: #fff;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.sports-live-entry-container:hover .sports-live-entry-cta {
  background: rgba(3, 8, 7, 0.98);
}

.sports-live-entry-cta__icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.sports-live-entry-cta strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.sports-live-entry-cta__arrow {
  display: block;
  width: 11px;
  height: 21px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .sports-live-entry-container {
    aspect-ratio: 686 / 350;
    background-image: url("../../__base/images/sports-live/sports-live-entry-h5.webp");
    background-position: center;
  }

  .sports-live-entry-label {
    top: 16px;
    left: 14px;
    gap: 4px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .sports-live-entry-label img {
    width: 12px;
    height: 12px;
  }

  .sports-live-entry-cta {
    width: 68%;
    min-height: 3rem;
    gap: 0.55rem;
    padding: 0.4rem 0.75rem;
  }

  .sports-live-entry-cta__icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  .sports-live-entry-cta strong {
    font-size: 0.9rem;
  }
}
