/* Video channel — single DOM tree, PC + H5 via media queries */

.video-static {
  --video-bg: #0f0f0f;
  --video-surface: rgba(255, 255, 255, 0.05);
  --video-border: rgba(255, 255, 255, 0.1);
  --video-text: #fff;
  --video-muted: rgba(255, 255, 255, 0.55);
  --video-accent: #ecd227;
  --video-ink: #0d0d0d;
  --video-placeholder: #464646;
  --video-font: "PingFang SC", "Noto Sans SC", sans-serif;
  --cf-accent: var(--video-accent);
  --cf-ink: var(--video-ink);
  --cf-muted: var(--video-muted);
  --cf-text: var(--video-text);
  width: 100%;
  box-sizing: border-box;
  background: var(--video-bg);
  color: var(--video-text);
  font-family: var(--video-font);
}

.video-static *,
.video-static *::before,
.video-static *::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Shell ========== */
.video-view {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.video-inner {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

.video-crumb {
  color: var(--video-muted);
  font-weight: 400;
}

.video-crumb__current {
  color: var(--video-muted);
}


.video-crumb__h5,
.video-crumb__pc {
  display: none;
}

.video-title {
  margin: 0;
  color: var(--video-text);
  font-weight: 600;
}

.video-list-alert {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 80, 80, 0.12);
  color: #ff8a8a;
  font-size: 14px;
  line-height: 20px;
}


/* ========== Badge / Play ========== */
.video-badge {
  position: absolute;
  z-index: 1;
  display: block;
  object-fit: contain;
  pointer-events: none;
  box-sizing: border-box;
}

.video-hot-badge {
  position: absolute;
  z-index: 2;
  display: block;
  object-fit: contain;
  pointer-events: none;
  box-sizing: border-box;
}

.video-card__play {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  line-height: 0;
}

.video-card__play img {
  display: block;
  width: 14px;
  height: 14px;
}

/* ========== Cards ========== */
.video-grid {
  display: grid;
  width: 100%;
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  /* Safari: 勿在卡片上 overflow:hidden + 子级 padding 比例，否则封面高度被裁成 0 */
  overflow: visible;
  min-width: 0;
  max-width: 100%;
  background: transparent;
}

.video-card__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.video-card__media {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--video-placeholder);
}

/* Safari/Grid/Flex 稳妥撑开比例：用伪元素，避免 height:0+padding 被父级裁切 */
.video-card__media::before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: 57.142857%; /* 96 / 168 */
}

.video-card__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.video-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  color: var(--video-text);
}

.video-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--video-muted);
}
.video-card--ad .video-badge,
.video-card--ad .video-card__play,
.video-card--ad .video-card__tags {
  display: none;
}

/* ==========================================================================
   H5
   ========================================================================== */
@media (max-width: 768px) {
  .video-view {
    align-items: stretch;
    padding: 12px 16px 32px;
  }

  .video-inner {
    gap: 18px;
  }

  .video-crumb {
    font-size: 12px;
    line-height: 18px;
  }

  .video-crumb__h5 {
    display: inline;
  }

  .video-title {
    font-size: 16px;
    line-height: 22px;
  }

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  .video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 7px;
  }

  .video-card {
    gap: 6px;
  }

  .video-card__media {
    border-radius: 6px;
  }

  .video-card__body {
    gap: 2px;
    margin-top: 6px;
  }

  .video-card__title {
    font-size: 12px;
    line-height: 18px;
    -webkit-line-clamp: 2;
  }

  .video-card__tags {
    font-size: 12px;
    line-height: 18px;
  }

  .video-badge {
    left: 6px;
    top: 6px;
    width: 30px;
    height: 16px;
  }

  .video-hot-badge {
    left: 6px;
    top: 6px;
    width: 26px;
    height: 14px;
  }

  .video-card__play {
    right: 6px;
    bottom: 6px;
    width: 28px;
    height: 28px;
    padding: 6px;
  }

  .video-card__play img {
    width: 12px;
    height: 12px;
  }
}

/* ==========================================================================
   PC
   ========================================================================== */
@media (min-width: 769px) {
  .video-view {
    padding: 36px 200px 60px;
  }

  .video-inner {
    max-width: 1520px;
    gap: 36px;
  }

  .video-crumb {
    font-size: 18px;
    line-height: 24px;
  }

  .video-crumb__pc {
    display: inline;
  }

  .video-title {
    font-size: 24px;
    line-height: 32px;
  }

  

  

  

  

  

  

  

  .video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .video-card {
    gap: 12px;
  }

  .video-card__media {
    border-radius: 18px;
  }

  .video-card__media::before {
    padding-bottom: 56.712329%; /* 207 / 365 */
  }

  .video-card__body {
    gap: 6px;
    margin-top: 12px;
  }

  .video-card__title {
    font-size: 20px;
    line-height: 28px;
    -webkit-line-clamp: 2;
  }

  .video-card__tags {
    font-size: 16px;
    line-height: 22px;
  }

  .video-badge {
    left: 12px;
    top: 12px;
    width: 40px;
    height: 24px;
  }

  .video-hot-badge {
    left: 12px;
    top: 12px;
    width: 66px;
    height: 40px;
  }

  .video-card__play {
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .video-card__play img {
    width: 16px;
    height: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1600px) {
  .video-view {
    padding-left: 48px;
    padding-right: 48px;
  }
}
