.audio-work__chapters-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.kma-audio-work-page .audio-work__chapters{
  margin-top: 22px;
  max-width: 100%;
}

.kma-audio-work-page .entry-title{
  width: 100%;
  text-align: left;
}

.kma-audio-work-page .audio-book__section-title,
.kma-audio-work-page .audio-work__toc-sheet-work,
.kma-audio-work-page .audio-work__toc-sheet-heading{
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;
}

.audio-work__chapters-head p {
  margin: 0;
  color: #97a8bf;
}

.audio-work__chapters-total{
  justify-self: center;
  text-align: center;
}

.audio-work__chapters-current{
  color: #97a8bf;
  text-align: right;
  min-width: 74px;
  justify-self: end;
}

.audio-work__chapter-list{
  display: grid;
  gap: 10px;
}

.audio-work__chapter-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 62px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.audio-work__chapter-main{
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.audio-work__chapter-order {
  color: #b98833;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}

.audio-work__chapter-link{
  color: #f4f8fd;
  font-size: 16px;
  line-height: 1.3;
  display: block;
}

.audio-work__chapter-duration{
  color: #97a8bf;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  text-align: right;
  width: 64px;
  justify-self: end;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.audio-work__chapter-trigger{
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.audio-work__chapter-trigger:hover,
.audio-work__chapter-trigger:focus-visible{
  background: rgba(255,255,255,0.05);
}

.audio-work__chapter-trigger:focus-visible{
  outline: 2px solid rgba(255,255,255,0.2);
  outline-offset: 2px;
}

.audio-work__chapter-play{
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-weight: 800;
  position: relative;
}

.audio-work__chapter-play::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #10141d;
  transform: translate(-50%, -50%);
}

.audio-work__chapter-play.is-playing::before,
.audio-work__chapter-trigger.is-playing .audio-work__chapter-play::before{
  width: 12px;
  height: 14px;
  border: 0;
  background:
    linear-gradient(to right, #10141d 0 4px, transparent 4px 8px, #10141d 8px 12px);
  transform: translate(-50%, -50%);
}

@media (min-width: 960px) {
  .kma-audio-work-page .audio-book__hero{
    align-items: start;
    column-gap: 28px;
  }

  .kma-audio-work-page .audio-book__hero > .ct-col:first-child{
    flex: 1 1 auto;
    max-width: none;
  }

  .kma-audio-work-page .audio-book__hero > .ct-col:last-child{
    flex: 0 0 auto;
    max-width: none;
  }

  .kma-audio-work-page .audio-book__summary{
    max-width: 720px;
  }

  .kma-audio-work-page .audio-work__chapters{
    max-width: 720px;
  }

  .kma-audio-work-page .audio-book__related{
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
}

.audio-work__empty {
  margin: 0;
  color: #97a8bf;
}

.audio-work__mobile-toc-trigger,
.audio-work__mobile-meta,
.audio-work__toc-modal{
  display: none;
}

@media (max-width: 767px) {
  html.kma-work-toc-open,
  html.kma-work-toc-open body{
    overflow: hidden;
  }

  .kma-audio-work-page .audio-book__content,
  .kma-audio-work-page .audio-book__content > *,
  .kma-audio-work-page .audio-book__player,
  .kma-audio-work-page .audio-book__summary{
    min-width: 0;
    max-width: 100%;
  }

  .kma-audio-work-page .audio-book__player{
    margin-top: 0;
  }

  .kma-audio-work-page .audio-book__mobile-shelf-title{
    font-size: 20px;
    line-height: 1.2;
  }

  .kma-audio-work-page .audio-book__mobile-shelf-query ul.wp-block-post-template{
    gap: 10px;
    padding: 0 8px 10px 0;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .kma-audio-work-page .audio-book__mobile-shelf-query ul.wp-block-post-template > li{
    width: min(69vw, 238px);
    max-width: 238px;
  }

  .kma-audio-work-page .audio-book__mobile-shelf .wp-block-post-title{
    margin: 5px 0 0;
    font-size: 20px;
    line-height: 1.28;
    letter-spacing: -0.02em;
  }

  .kma-audio-work-page .audio-book__mobile-shelf .wp-block-post-title a{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: rgba(255,255,255,0.96);
    text-decoration: none;
  }

  .kma-audio-work-page .audio-book__mobile-shelf .wp-block-post-featured-image,
  .kma-audio-work-page .audio-book__mobile-shelf .audio-thumb-wrap{
    margin-bottom: 9px;
  }

  .kma-audio-work-page .audio-book__mobile-shelf{
    margin-top: 18px;
  }

  .kma-audio-work-page .audio-book__mobile-shelf--interest{
    margin-top: 22px;
    margin-bottom: 58px;
  }

  .kma-audio-work-page .audio-book__mobile-shelf-query ul.wp-block-post-template::-webkit-scrollbar{
    display: none;
  }

  .kma-audio-work-page .audio-book__mobile-shelf .kma-badge-book{
    left: 10px;
    bottom: 10px;
    font-size: 7px;
    letter-spacing: 0.16em;
    padding: 6px 10px 5px 12px;
  }

  .kma-audio-work-page .audio-book__mobile-shelf .kma-badge-free{
    right: -30px;
    bottom: 7px;
    width: 88px;
    padding: 4px 0 3px;
    font-size: 8px;
  }

  .audio-work__chapters-head{
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .audio-work__chapters-total{
    font-size: 13px;
    justify-self: end;
    text-align: right;
    grid-column: 2;
    grid-row: 1;
  }

  .audio-work__chapters-current{
    font-size: 13px;
    min-width: 0;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }

  .kma-audio-work-page .audio-work__chapters{
    max-width: none;
    margin-top: 24px;
  }

  .audio-work__chapter-row{
    grid-template-columns: minmax(0, 1fr) 54px 70px;
    gap: 12px;
    padding: 14px 14px;
  }

  .audio-work__chapter-main{
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .audio-work__chapter-order{
    font-size: 22px;
  }

  .audio-work__chapter-link{
    font-size: 18px;
  }

  .audio-work__chapter-duration{
    font-size: 12px;
    width: 54px;
  }

  .audio-work__chapter-play{
    width: 40px;
    height: 40px;
  }

  .audio-work__chapter-play::before{
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 11px;
  }

  .audio-work__chapter-play.is-playing::before{
    width: 11px;
    height: 13px;
  }

  .kma-audio-work-page .audio-work__chapters{
    display: none;
  }

  .audio-work__toc-modal{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
  }

  .audio-work__toc-modal[hidden]{
    display: none !important;
  }

  .audio-work__toc-modal[aria-hidden="true"]{
    display: none;
  }

  .audio-work__toc-modal[aria-hidden="false"]{
    display: block;
    pointer-events: auto;
  }

  .audio-work__toc-modal-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, 0.46);
    opacity: 0;
    transition: opacity 320ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  .audio-work__toc-sheet{
    position: absolute;
    inset: auto 0 0 0;
    max-height: min(82vh, 720px);
    background: #07111f;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 36px rgba(0,0,0,0.32);
    transform: translate3d(0, calc(100% + var(--kma-work-toc-drag-y, 0px)), 0);
    transition: transform 380ms cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    touch-action: pan-y;
  }

  .audio-work__toc-modal.is-active .audio-work__toc-modal-backdrop{
    opacity: 1;
  }

  .audio-work__toc-modal.is-active .audio-work__toc-sheet{
    transform: translate3d(0, var(--kma-work-toc-drag-y, 0px), 0);
  }

  .audio-work__toc-modal.is-dragging .audio-work__toc-sheet{
    transition: none !important;
  }

  .audio-work__toc-sheet-handle{
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    margin: 10px auto 4px;
  }

  .audio-work__toc-sheet-head{
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .audio-work__toc-sheet-close{
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #f4f8fd;
    font-size: 34px;
    line-height: 1;
    padding: 0;
  }

  .audio-work__toc-sheet-work{
    margin: 0 0 4px;
    color: rgba(244,248,253,0.92);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .audio-work__toc-sheet-heading{
    margin: 0;
    color: #97a8bf;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
  }

  .audio-work__toc-sheet-body{
    overflow: auto;
    max-height: calc(min(82vh, 720px) - 74px);
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .audio-work__toc-sheet-list{
    display: grid;
  }

  .audio-work__toc-item{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    text-align: left;
    color: #f4f8fd;
  }

  .audio-work__toc-item-title{
    min-width: 0;
    font-size: 18px;
    line-height: 1.35;
    color: #f4f8fd;
  }

  .audio-work__toc-item-duration{
    font-size: 18px;
    line-height: 1.2;
    color: #f4f8fd;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
  }

  .audio-work__toc-item.is-current{
    background: rgba(255,255,255,0.04);
  }

  .audio-work__toc-item:focus-visible{
    outline: 2px solid rgba(255,255,255,0.18);
    outline-offset: -2px;
  }
}

@keyframes kmaWorkTocMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--kma-marquee-distance, 0px)));
  }
}
