.audio-plus-search-wrapper {
  align-items: center;
  margin-top: 30px;
}

.search-buttons-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76.5px;
  grid-area: search;
}

.inner-search-button {
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  grid-area: search;
  border: 2px solid var(--green-300);
  border-radius: 5px;
  width: 330px;
  background-color: var(--green-50);
}

.inner-search-button:hover {
  background-color: var(--green-100);
}

.inner-search-button:active {
  background-color: var(--green-300);
}

#backToSearchButton {
  width: 153px;
}

.audio-main-wrapper {
  box-sizing: border-box;
  direction: ltr;
  background-color: var(--green-50);
  border: 1px solid var(--green-300);
  border-radius: 5px;
  padding: 8px;
  grid-area: audio;
  width: 841px;
  height: 70px;
}

.audio-controls-wrapper {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 4px auto;
}

.audio-player {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  direction: ltr;
}

.timeline-container {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.timeline {
  flex-grow: 1;
  height: 4px;
  background-color: var(--green-200);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress {
  width: 0;
  height: 100%;
  background-color: var(--green-800);
  border-radius: 2px;
  transition: width 0.1s linear;
  position: absolute;
  left: 0;
  top: 0;
}

.timeline-handle {
  width: 17px;
  height: 17px;
  background-color: var(--green-800);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 0;
  cursor: pointer;
  transition: transform 0.1s ease;
  z-index: 2;
}

.timeline-handle:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.timeline-handle:active {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 5px rgba(76, 172, 173, 0.2);
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  background-color: #f1f1f1;
}

.time {
  font-size: 12px;
  color: var(--green-800);
}

.control-button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-button:hover {
  scale: 1.1;
}

.control-button img {
  width: 40px;
  height: 40px;
}

#playPauseButton {
  img {
    width: 32px;
    height: 32px;
  }
}

.pause-icon {
  display: none;
}

.play-icon,
.pause-icon {
  font-size: 20px;
}

#prevFileButton {
  img {
    width: 14px;
    height: 14px;
  }
}

#nextFileButton {
  img {
    width: 14px;
    height: 14px;
  }
}

#rewindButton {
  img {
    width: 26px;
    height: 26px;
  }
}

#forwardButton {
  img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 800px) {
  .audio-main-wrapper {
    width: 90vw;
  }

}