body {
  margin: 10px 0 0 0;
  padding: 0;
  overflow: hidden;
  font-family: '微软雅黑';
}

#container {
  margin: 0 auto;
  width: 1280px;
  height: 720px;
  position: relative;
  overflow: hidden;
  border: 0.5px solid #bbb;
}

video {
  width: 100%;
  height: 100%;
}

#danmu-right,#danmu-top,#danmu-bottom {
  padding: 10px 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 620px;
  width: 100%;
  font-size: 25px;
}

#danmu-top,#danmu-bottom {
  text-align: center;
}

.danmu-line {
  height: 27px;
  position: relative;
}

@keyframes move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200vw);
  }
}
@keyframes dis {
  from {
    display: inline-block;
  }
  to {
    display: none;
  }
}
.danmu-item {
  display: inline-block;
  position: absolute;
  left: 100vw;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  padding: 2px;
  color: #fff;
  font-weight: bold;
  opacity: 0.9;
  font-size: 25px;
}


/* control */

#controls {
  margin: 12px;
  padding: 8px 20px;
  border: 1px solid #000;
}

#controls>div {
  line-height: 30px;
}

input[type='text'] {
  border: none;
  border-bottom: 1px solid #000;
  outline: none;
  width: 400px;
}

#file-select {
  display: none;
}