@keyframes stretch {
  0%,
  100% {
    box-shadow: 0 0;
  }
  50% {
    box-shadow: 0 -5px;
  }
}
.shk .shk-controls_extra .shk-btn.shk-btn_chapter {
  display: none;
}
.shk[data-has-chapter] .shk-controls_extra .shk-btn.shk-btn_chapter {
  display: inline-block;
}
.shk-chapter {
  position: absolute;
  height: 0;
  bottom: 0;
  left: 20px;
  right: 20px;
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: 0px 0px 10px rgba(0, 41, 37, 0.07);
  border: 1px solid rgba(0, 41, 37, 0.05);
  border-radius: 2px;
  background: var(--color-theme);
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: height ease-in-out .2s, bottom ease-in-out .1s, opacity linear .1s, visibility .1s .2s;
}
.shk[data-show-chapter] .shk-chapter {
  visibility: visible;
  height: 340px;
  bottom: 120px;
  opacity: 1;
  transition: height ease-in-out .2s, bottom ease-in-out .1s, opacity linear .1s;
}
.shk-btn_close {
  position: absolute;
  top: 4px;
  right: 4px;
  fill: var(--color-primary);
  font-size: 0;
}
.shk-btn .shk-icon_close {
  width: 16px;
  height: 16px;
}
.shk-chapter_main {
  overflow-x: hidden;
  overflow-y: scroll;
  height: calc(100% - 60px);
  margin: 40px 0 20px;
  box-sizing: border-box;
  padding: 0 40px;
  mask-image: linear-gradient(to bottom,transparent,#202124 5%,#202124 95%,transparent);
  scroll-behavior: smooth;
}
.shk-chapter_list {
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
  box-sizing: border-box;
}
.shk-chapter_item {
  margin: 5px 0;
}
.shk-chapter .shk-chapter_btn {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  color: var(--color-text);
  overflow: hidden;
}
.shk-chapter .shk-chapter_btn:after {
  border-radius: 2px;
}
.shk-chapter_btn div {
  color: currentColor;
  fill: currentColor;
}
.shk-chapter_item[data-active] .shk-chapter_btn div {
  color: var(--color-primary);
  font-weight: 600;
}
.shk-icon_chapter {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.shk[data-play="playing"] .shk-chapter_item[data-active] .shk-icon_playing,
.shk[data-play="playing"] .shk-chapter_item[data-active] .shk-icon_playing:before,
.shk[data-play="playing"] .shk-chapter_item[data-active] .shk-icon_playing:after {
  display: block;
}
.shk-icon_playing,
.shk-icon_playing:before,
.shk-icon_playing:after {
  display: none;
  background: currentColor;
  color: currentColor;
  animation: stretch 1s infinite ease-in-out;
  width: 3px;
  left: 4px;
  top: 6px;
  height: 5px;
}
.shk-icon_playing {
  position: relative;
  animation-delay: 0.16s;
}
.shk-icon_playing:before,
.shk-icon_playing:after {
  position: absolute;
  top: 0;
  content: '';
}
.shk-icon_playing:before {
  left: -4px;
  animation-delay: -0.16s;
}
.shk-icon_playing:after {
  left: 4px;
}
.shk-icon_triangle {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}
.shk[data-play="playing"] .shk-chapter_item[data-active] .shk-icon_triangle {
  display: none;
}
.shk-icon_triangle svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.shk-chapter_duration {
  color: var(--color-secondary);
  font-weight: 200;
  margin: 0 5%;
  flex-shrink: 0;
  min-width: 60px;
  text-align: left
}
.shk-chapter_title_wrap {
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
}
.shk-chapter_item[data-active] .shk-chapter_title_wrap[data-overflow] {
  mask-image: linear-gradient(to right,transparent,#202124 2%,#202124 98%,transparent);
}
.shk-chapter_title_inner {
  display: flex;
  animation-duration: inherit;
}
.shk-chapter_item[data-active] .shk-chapter_title_wrap[data-overflow] .shk-chapter_title_inner {
  padding: 0 3%;
  box-sizing: border-box;
}
.shk-chapter_item[data-active] .shk-chapter_title_wrap[data-overflow] .shk-chapter_title_inner::after {
  display: block;
  content: attr(data-chapter);
}
.shk-chapter_title {
  color: var(--color-text);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shk-chapter_item[data-active] .shk-chapter_title {
  overflow: visible;
}

.shk-chapter_item[data-active] .shk-chapter_title_wrap[data-overflow] .shk-chapter_title_inner::after,
.shk-chapter_item[data-active] .shk-chapter_title_wrap[data-overflow] .shk-chapter_title {
  animation: marquee linear infinite;
  animation-duration: inherit;
  padding-right: 60px;
  color: currentColor;
}
@media (max-width: 640px) {
  .shk-chapter {
    left: 10px;
    right: 10px;
  }
  .shk-chapter_main {
    padding: 0 10px;
  }
}
