/* Zyrenicus single-rail chapter audio v1.52.0.
 * Playable audio renders native controls first. Bespoke controls replace them
 * only after JavaScript completes a successful progressive-enhancement commit.
 */
body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio {
  --zy-audio-accent: #d7c38b;
  --zy-audio-border: rgba(218, 196, 139, 0.24);
  --zy-audio-surface: rgba(17, 20, 29, 0.94);
  --zy-audio-surface-2: rgba(32, 35, 46, 0.9);
  --zy-audio-muted: rgba(238, 235, 226, 0.68);
  width: min(100%, 780px);
  margin: 0.9rem auto 0;
  padding: 0.58rem 0.68rem;
  box-sizing: border-box;
  color: #f2eee5;
  background: linear-gradient(135deg, var(--zy-audio-surface), var(--zy-audio-surface-2));
  border: 1px solid var(--zy-audio-border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(3, 5, 12, 0.18);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio [hidden] {
  display: none !important;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__rail {
  display: grid;
  grid-template-columns: auto minmax(0, auto) minmax(4.5rem, 1fr);
  grid-template-areas: "play label range";
  align-items: center;
  gap: clamp(0.48rem, 1.2vw, 0.72rem);
  width: 100%;
  min-width: 0;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio.is-unlocked:not(.is-enhanced) .zy-chapter-audio__rail {
  grid-template-columns: minmax(0, max-content) minmax(12rem, 1fr);
  grid-template-areas: "label native";
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio.is-enhanced .zy-chapter-audio__rail {
  grid-template-columns: auto minmax(0, auto) minmax(4.5rem, 1fr) auto;
  grid-template-areas: "play label range time";
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__play {
  grid-area: play;
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  color: #f7f1de;
  background: rgba(215, 195, 139, 0.1);
  border: 1px solid rgba(215, 195, 139, 0.26);
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__play:not(:disabled):hover,
body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__play:not(:disabled):focus-visible {
  color: #fff;
  background: rgba(215, 195, 139, 0.18);
  border-color: rgba(215, 195, 139, 0.5);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__play:disabled {
  cursor: default;
  opacity: 0.62;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__play svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__pause-icon,
body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio.is-playing .zy-chapter-audio__play-icon {
  display: none;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio.is-playing .zy-chapter-audio__pause-icon {
  display: block;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__label {
  grid-area: label;
  min-width: 0;
  color: inherit;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(0.67rem, 1.2vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__range {
  --zy-audio-progress: 0%;
  grid-area: range;
  width: 100%;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__range:disabled {
  cursor: progress;
  opacity: 0.72;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right, var(--zy-audio-accent) 0 var(--zy-audio-progress), rgba(255, 255, 255, 0.14) var(--zy-audio-progress) 100%);
  border-radius: 999px;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__range::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__range::-moz-range-progress {
  height: 4px;
  background: var(--zy-audio-accent);
  border-radius: 999px;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__range::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4px;
  appearance: none;
  background: #f7edcf;
  border: 2px solid #aa9154;
  border-radius: 50%;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #f7edcf;
  border: 2px solid #aa9154;
  border-radius: 50%;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__time {
  grid-area: time;
  min-width: 7.2ch;
  color: var(--zy-audio-muted);
  font-family: var(--zy-ui-font, "Lato", system-ui, sans-serif);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__native {
  grid-area: native;
  display: block;
  width: 100%;
  min-width: 0;
  height: 40px;
  color-scheme: inherit;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio.is-enhanced .zy-chapter-audio__native {
  display: none;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__track {
  grid-area: range;
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__track i {
  display: block;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, rgba(215, 195, 139, 0.48), rgba(215, 195, 139, 0.12));
  border-radius: inherit;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio:is(.is-locked, .is-unavailable) .zy-chapter-audio__track i {
  width: 0;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio.has-error {
  border-color: rgba(222, 106, 106, 0.58);
}

:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio {
  --zy-audio-accent: #80671f;
  --zy-audio-border: rgba(102, 79, 27, 0.25);
  --zy-audio-surface: rgba(255, 253, 247, 0.98);
  --zy-audio-surface-2: rgba(245, 239, 225, 0.96);
  --zy-audio-muted: rgba(50, 44, 33, 0.7);
  color: #282218;
  box-shadow: 0 6px 18px rgba(72, 58, 32, 0.07);
}

:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__play {
  color: #473a16;
  background: rgba(128, 103, 31, 0.08);
  border-color: rgba(128, 103, 31, 0.24);
}

:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__range::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--zy-audio-accent) 0 var(--zy-audio-progress), rgba(56, 48, 34, 0.14) var(--zy-audio-progress) 100%);
}

:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__range::-moz-range-track,
:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__track {
  background: rgba(56, 48, 34, 0.14);
}

@container zy-reader (max-width: 520px) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio {
    padding: 0.5rem 0.56rem;
    border-radius: 12px;
  }

  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__rail {
    gap: 0.46rem;
  }
}

@container zy-reader (max-width: 390px) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio.is-enhanced .zy-chapter-audio__rail {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
      "play label time"
      "range range range";
    row-gap: 0.3rem;
  }

  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio:is(.is-locked, .is-unavailable) .zy-chapter-audio__rail {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "play range"
      "label label";
    row-gap: 0.26rem;
  }

  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio.is-unlocked:not(.is-enhanced) .zy-chapter-audio__rail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "native"
      "label";
    row-gap: 0.26rem;
  }
}

@media (max-width: 520px) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio {
    padding: 0.5rem 0.56rem;
    border-radius: 12px;
  }

  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__rail {
    gap: 0.46rem;
  }
}

@media (max-width: 390px) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio.is-enhanced .zy-chapter-audio__rail {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
      "play label time"
      "range range range";
    row-gap: 0.3rem;
  }

  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio:is(.is-locked, .is-unavailable) .zy-chapter-audio__rail {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "play range"
      "label label";
    row-gap: 0.26rem;
  }

  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio.is-unlocked:not(.is-enhanced) .zy-chapter-audio__rail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "native"
      "label";
    row-gap: 0.26rem;
  }
}

@media (max-width: 350px) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__label {
    font-size: 0.62rem;
    letter-spacing: 0.025em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio__play {
    transition: none;
  }
}

@media print {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-audio {
    display: none !important;
  }
}
