.chapter {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 40px 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  align-items: start;
}

.chapter-number {
  font-size: 50px;
  font-weight: 700;
  font-family: "Inter";
  font-weight: bold;
  font-size: 3.98rem;
  letter-spacing: 0rem;
  /*       line-height: 1.4; */
  text-transform: none;
  font-weight: bold;
  color: #d3d8de;
  font-size: 50px;
  opacity: 0.2;
  color: #001a3c;
  width: 70px;
}

.chapter-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chapter-title {
  font-size: 20px;
  font-weight: bold;
  font-family: "Inter";
  color: #001a3c;
  line-height: 140%;
}

.chapter-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;

  font-family: "Heebo";
  font-weight: normal;
  font-size: 16px;
  line-height: 22px;
  text-transform: none;
}

.chapter-subtitle i {
  font-size: 14px;
  border: 1px solid #0d223d;
  border-radius: 50%;
  padding: 3px;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Audio Player */
.audio-player {
  width: 100%;
  margin-top: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: none;
}

.waveform {
  width: 100%;
  height: 80px;
  background: repeating-linear-gradient(
    to right,
    #aaa 0,
    #aaa 2px,
    transparent 2px,
    transparent 6px
  );
  margin-bottom: 10px;
  position: relative;
  cursor: pointer;
}

.progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(0, 200, 100, 0.5);
  width: 0%;
  pointer-events: none;
}

.time {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.controls button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 22px;
  color: #fff;

  &.back,
  &.forward {
    aspect-ratio: 1/1;
    height: 35px;
    width: 35ox;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 3px;
    border-radius: 100%;
    font-size: 12px;
    background-color: #2ce080;
	color: #fff;
  }
}

.controls button.play {
  background: #2ecc71;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

input[type="range"] {
  cursor: pointer;
}

.speed-menu {
  position: relative;
}

.speed-list {
  display: none;
  position: absolute;
  right: 0;
  top: -140px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 5px 0;
  z-index: 10;
}

.speed-list div {
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
}

.speed-list div:hover,
.speed-list div.active {
  background: #2ecc71;
  color: #fff;
}

.speed-menu.open .speed-list {
  display: block;
}

.controls .download-btn i.fa-solid.fa-download{
  color: #000;
  margin-left: 20px;
  /* border: 1px solid;
  border-radius: 50%;
  padding: 5px; */
}

@media (max-width: 767px) {
  .controls {
    flex-wrap: wrap;
  }
	
	.chapter-info {
		width: 100%;
	}
  
  .volume-container {
    margin: 0;
  }
}

.book-cover{
 position:relative;
}

.book-cover .audiobook-download-badge{
  position:absolute;
  top:10px;
  right:10px;
  z-index:10;
}


