@import '../../style/index.less';

.vm-video {
  height: 616px;
  display: flex;
  gap: 16px;

  --wbg-color: #fff;
  --w-color: #1f1f1f;
  --wborder-color: #f1f0f0;
  --check-bg: #1677ff;

  &.dark {
    --wbg-color: rgba(0, 155, 233, 10%);
    --w-color: #fff;
    --wborder-color: #1064a7;
    --check-bg: #009dff;
  }
  .vm-video-history .ant-radio-wrapper {
    color: var(--modal-title-color);
  }
  .vm-video-history .ant-form-item-label > label {
    color: var(--modal-title-color);
  }

  .vm-video-right {
    background: var(--wbg-color);
    border-radius: 8px;
    color: var(--w-color);
    font-family: Alibaba PuHuiTi 3, Alibaba PuHuiTi 30;
    border: 1px solid var(--wborder-color);
    height: 100%;
    padding: 12px 16px;
  }

  .vm-video-left {
    width: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    &-filter {
      display: flex;
      align-items: center;
      gap: 12px;

      &-input {
        flex: 1;
      }

      &-btn {
        width: 16px;
        padding: 0 4px;
        cursor: pointer;
      }
    }
    &-channels {
      height: calc(100% - 46px);
      padding-top: 12px;
      overflow-y: auto;

      .channels--item {
        svg {
          transform: translateY(7px);
          margin-right: 2px;
        }
        .ant-checkbox {
          transform: translateY(-2px);
        }
        .ant-checkbox-checked .ant-checkbox-inner {
          background-color: var(--check-bg);
          border-color: var(--check-bg);
          &::after {
            transform: rotate(45deg) scale(1) translate(-65%, -55%);
          }
        }
        .ant-checkbox-inner {
          width: 15px;
          height: 15px;
        }
        .ant-checkbox-wrapper {
          font-size: 15px;
          //   color: var(--modal-title-color);
        }
        .ant-checkbox + span {
          padding: 0 4px;
        }
      }
    }
  }

  &-right {
    flex: 1;
  }

  .ant-tabs-tabpane {
    height: 100%;
  }

  .vm-video-content {
    display: grid;
    flex-grow: 1;
    grid-gap: 16px;
    height: calc(100% - 62px);

    &._1 {
      grid-template-rows: 1fr;
      grid-template-columns: 1fr;
    }

    &._4 {
      grid-template-rows: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
    }
    &._9 {
      grid-template-rows: 1fr 1fr 1fr;
      grid-template-columns: 1fr 1fr 1fr;
    }
  }

  .vm-video-content-container {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    // background-color: #2b3d51;
    align-items: center;
    border: 1px solid var(--wborder-color);
    border-radius: 8px;
    position: relative;

    &.active {
      box-shadow: 0 0 0 1px #52c41a;
    }
    > .content {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .vtx-live-player {
      border-radius: 8px;
    }

    &-header {
      display: flex;
      align-items: center;
      width: 100%;
      height: 26px;
      padding: 0 12px;
      color: var(--modal-title-color);
      position: absolute;
      top: 0;
      left: 0;
      text-align: center;
      z-index: 1999;

      .title {
        width: 100%;
        font-size: 14px;
        color: white;
        padding-right: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .close {
        color: white;
        cursor: pointer;
        font-size: 16px;
        margin-left: auto;
      }
    }
  }
}
