/* 进度条 */
.scrubber {
  position: relative;
  z-index: 1;
  padding-top: 6px;
  margin: -8px 0;
  width: 100%;
  height: 16px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  cursor: pointer;
  overflow: hidden;
  /* 添加这行 */
}

.scrubber .nib {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 1;
  /* transition: transform 0.01s ease-in */
}

.scrubber .nib:after {
  content: '';
  position: absolute;
  left: -10px;
  top: 0px;
  display: block;
  background: var(--progress-color);
  width: 20px;
  height: 20px;
  border-radius: 10px;
  z-index: 10;
  /* 添加过渡动画 */
  transition: all 0.2s ease;
}

/* 鼠标悬停效果 */
.scrubber:hover .nib:after {
  transform: scale(1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* 拖拽时的效果 */
.scrubber.drag .nib:after {
  transform: scale(1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.scrubber .inner {
  position: relative;
  overflow: hidden;
  height: 5px;
  top: 2px;
  background: var(--pending-color);
}

.scrubber .progress-bar {
  position: relative;
  right: 100%;
  width: 100%;
  height: 100%;
  background: var(--progress-color);
  /* border-radius: 0 6px 6px 0 */
  /* transition: transform 0.01s ease-in */
}

.scrubber.drag .nib,
.scrubber.drag .progress-bar {
  transition: transform 0.1s ease-in;
}

/* 基本信息 */
.time {
  margin-top: 2px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-grow: 1;
  flex-wrap: nowrap;
}

.time .time-total,
.time .time-elapsed {
  position: absolute;
  top: 9px;
  right: 5px;
  text-align: right;
  font-family: var(--family-monospace);
  font-size: 18px;
  color: #3a3645;
}

.time .time-elapsed {
  right: auto;
  left: 5px;
}

/* 章节容器 */
.chapter {
  margin-top: 2px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-grow: 1;
  flex-wrap: nowrap;
}

/* 章节名称 */
.chapter-name {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  /* 添加这行，向左偏移自身宽度的50% */
  text-align: center;
  /* 改为居中对齐 */
  font-family: var(--family-monospace);
  font-size: 18px;
  font-weight: 400;
  color: #3a3645;
  white-space: nowrap;
  /* 防止换行 */
}

/* 播放暂停容器 */
.play {
  margin-top: 2px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-grow: 1;
  flex-wrap: nowrap;
}

.play-btn {
  position: absolute;
  top: 57px;
  left: 50%;
  transform: translateX(-50%);
  /* 添加这行，向左偏移自身宽度的50% */
  text-align: center;
  /* 改为居中对齐 */
  font-family: var(--family-monospace);
  font-size: 18px;
  color: #3a3645;
  white-space: nowrap;
  /* 防止换行 */
  background-color: rgba(0,0,0,.8);
  border-radius: 25px;
  opacity: 1;
}

.play-btn:hover {
  background-color: rgba(0,0,0,.9);  
  cursor: pointer;  
  opacity: 1;
}

x-icon {
    fill: #fff;
}