/* ── 视频模态框（依赖 sheetModal data-variant="center"） ── */
#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;
}

/* ── 移动端：全屏沉浸式播放 ─────────────────── */
@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;
  }

  #modal-video .vm-video-wrap video {
    width: 100%;
    max-height: 72dvh;
  }

  #modal-video .vm-info {
    display: none;
  }
}
