/* ── 视频模态框内容（容器由 sheetModal 提供）──────────────── */
#modal-video .modal-inner {
  background: rgba(20, 19, 17, 0.94);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 30px 90px rgba(46,35,20,0.36), 0 0 0 1px rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vm-video-wrap {
  background: #000;
}

.vm-video-wrap video {
  transform: translateZ(0);
  width: 100%;
  display: block;
  max-height: 70vh;
}

.vm-info {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.vm-info .vm-teacher {
  font-size: var(--font-size-14);
  color: rgba(255,255,255,0.62);
  margin: 0 0 5px;
}

.vm-info .vm-title {
  font-size: var(--font-size-16);
  color: #fff;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

/* ── 视频网格 ───────────────────────────── */
#vp-section {
  background: #f4f4f4;
  padding: 48px 0 64px;
}

.vp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── 视频卡片 ───────────────────────────── */
.video-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

/* 缩略图 */
.vc-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.vc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-card:hover .vc-thumb img {
  transform: scale(1.04);
}

/* 播放按钮 */
.vc-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.22);
  transition: background 0.2s;
}

.video-card:hover .vc-play {
  background: rgba(0,0,0,0.38);
}

.vc-play::before {
  content: '';
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 12px rgba(0,0,0,0.28);
  transition: transform 0.2s, background 0.2s;
}

.video-card:hover .vc-play::before {
  transform: scale(1.1);
  background: #fff;
}

/* 三角播放图标 */
.vc-play::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #1a1a1a;
  margin-left: 3px;
}

/* 信息区 */
.vc-info {
  padding: 14px 16px 16px;
}

.vc-tag {
  display: inline-block;
  font-size: var(--font-size-14);
  font-weight: 600;
  color: #fff;
  background: var(--clr-primary);
  border-radius: 3px;
  padding: 2px 7px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.vc-title {
  font-size: var(--font-size-14);
  font-weight: 600;
  color: #222;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Tab 导航 ────────────────────────────── */

/* ── 年份分区 ──────────────────────────────── */
.vp-year-section { margin-bottom: 52px; }
.vp-year-section:last-child { margin-bottom: 0; }

.vpy-hd {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
    position: relative;
}
.vpy-hd::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 36px; height: 2px;
    background: var(--clr-primary);
}
.vpy-title {
    font-size: var(--font-size-22);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.vpy-count {
    font-size: var(--font-size-14);
    color: #aaa;
}

/* ── 空状态 ─────────────────────────────── */
.vp-empty {
    display: none;
    text-align: center;
    padding: 56px 0 32px;
    color: #bbb;
}

.vp-empty svg { display: block; margin: 0 auto 14px; }
.vp-empty p   { font-size: var(--font-size-14); }

/* ── 响应式 ─────────────────────────────── */
@media (max-width: 768px) {
  #modal-video .modal-inner {
    overflow: hidden;
  }

  .vm-video-wrap video { max-height: 100vh; }
  .vm-info { display: none; }

}

/* tab-nav sticky top 由 style.css 的 .tab-nav 全局 var(--header-height) !important 统一管理 */

@media (max-width: 1024px) {
  #vp-section {
    padding-top: 34px;
    padding-bottom: 58px;
  }

  .vp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .video-card {
    border-radius: 14px;
    overflow: hidden;
  }

  .vc-thumb {
    aspect-ratio: 16 / 9;
  }

  .vc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  #modal-video.modal[data-variant="center"] {
    align-items: center;
    padding: 0;
    background: #0c0c0c;
  }

  #modal-video.modal[data-variant="center"] .modal-inner {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    max-height: 100dvh;
    justify-content: center;
    border-radius: 0;
    border: none;
  }

  #modal-video.modal[data-variant="center"] .modal-inner::before {
    display: none;
  }

  #modal-video.modal[data-variant="center"] .modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  #modal-video .vm-video-wrap {
    width: 100%;
    flex: 0 0 auto;
  }

  #vp-section {
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .vp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .video-card {
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  }

  .vc-info {
    padding: 9px 10px 11px;
  }

  .vc-tag {
    margin-bottom: 5px;
    padding: 1px 6px;
    font-size: 12px;
  }

  .vc-title {
    font-size: 13px;
    line-height: 1.38;
  }

  .vc-play::before {
    width: 38px;
    height: 38px;
  }

  .vc-play::after {
    border-width: 7px 0 7px 12px;
    margin-left: 2px;
  }

  .vp-year-section {
    margin-bottom: 36px;
  }

  .vpy-hd {
    margin-bottom: 12px;
    padding-bottom: 9px;
  }

  .vm-video-wrap,
  .vm-video-wrap video {
    width: 100%;
  }

  .vm-video-wrap video {
    max-height: 72dvh;
  }
}

@media (max-width: 480px) {
  #vp-section {
    padding: 22px 0 42px;
  }
  .vp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .vc-play::before {
    width: 36px;
    height: 36px;
  }
}
