.modalMask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.videoContainer {
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  .title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
  }

  .closeButton {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;

    &:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    &:active {
      transform: scale(0.95);
    }

    svg {
      font-size: 16px;
    }
  }
}

.videoWrapper {
  width: 100%;
  position: relative;
  padding-top: 56.25%; // 16:9 比例
  background: #000;
}

.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}

// 动画
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

// 移动端适配
@media (max-width: 768px) {
  .modalMask {
    padding: 0;
  }

  .videoContainer {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .header {
    padding: 10px 12px;

    .title {
      font-size: 14px;
    }
  }
}
