.media-player {
  position: fixed;
  left: 0;
  top: 0;
  max-width: 100%;
  width: 100%;
  max-height: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1005;

  display: flex;
  flex-direction: column;

  .file-list-portal {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 2;
    color: #999;
    cursor: pointer;

    &:hover {
      color: white;
    }
  }

  .file {
    display: flex;
    align-items: center;
    gap: 5px;
    .path {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 2px;
    }
    .icon {
      max-width: 16px;
      max-height: 16px;

      .file-system-entry-icon {
        font-size: 16px;
      }
    }
  }

  .file-list {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    //width: 480px;
    background: white;
    display: flex;
    flex-direction: column;
    z-index: 3;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;


    .title {
      font-size: 24px;
      text-align: center;
      padding-bottom: 5px;
      margin: 10px;
      border-bottom: 1px solid #eee;
    }

    .files {
      flex: 1;
      overflow-y: auto;

      display: flex;
      flex-direction: column;
      gap: 0;

      &::-webkit-scrollbar {
        width: 4px;
        height: 4px;
      }

      &::-webkit-scrollbar-track {
        border-radius: 10px;
        background: rgba(16, 13, 177, 0.1);
      }

      &::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: rgba(16, 13, 177, 0.2);
      }

      &::-webkit-scrollbar-thumb:hover {
        background: rgba(16, 13, 177, 0.4);
      }

      &::-webkit-scrollbar-thumb:active {
        background: rgba(16, 13, 177, .9);
      }

      .file-container {
        cursor: default;
        padding: 5px 10px 5px 5px;
        display: flex;
        align-items: center;
        justify-content: space-between;

        &.active {
          font-weight: bold;
        }

        &:hover {
          background: rgba(0, 0, 0, 0.05);
          .right {
            .icon-play-circle {
              display: block;
            }
          }
        }

        .left {
          display: flex;
          align-items: center;
          gap: 5px;

          //.icon {
          //  width: 16px;
          //  height: 16px;
          //}

          font-size: 12px;

          //.name {
          //  font-size: 12px;
          //}
        }

        .right {
          display: flex;
          align-items: center;
          .icon-play-circle {
            cursor: pointer;
            display: none;
          }
        }
      }
    }
  }

  .media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    flex: 1;
    min-height: 0;

    .mask {
      z-index: 0;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
    }

    .media {
      max-width: 100%;
      max-height: 100%;
      z-index: 1;

      &.unsupported {
        color: white;
        font-size: 24px;
      }
    }
  }

  .label {
    height: 40px;
    text-align: center;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: white;

    .operations {
      display: flex;
      gap: 5px;

      button {
        display: flex;
        align-items: center;
        /* gap: 5px; */
        padding: 0 10px;
      }
    }
  }

  .next-progress-line {
    line-height: 4px;
    position: fixed;
    bottom: 0;
    left: 0;
  }

  &>.left, &>.right {
    top: 50%;
    margin-top: -40px;
    position: absolute;
    //width: 28px;
    height: 80px;
    color: #fff;
    background: #000;
    opacity: .5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    // react-viewer's mask uses 1000
    z-index: 2;

    &:hover {
      opacity: 1;
    }
  }

  &>.left {
    left: 0;
  }

  &>.right {
    right: 0;
  }
}
