.audio-level-container {
  position: absolute;
  right: 0px;
  background-color: black;
  opacity: 0.75;
  height: 100%;
  display: flex;
  align-items: center;
}

/* New wrapper to align multiple audiolevel groups */
.audio-levels-wrapper {
  display: flex;
  flex-direction: row;
  height: 100%;
  align-items: center;
}

/* Each audiolevels-* group */
.audio-levels {
  display: flex;
  flex-direction: row;
  width: fit-content;
  padding: 4px 3px;
  margin: auto;
  margin-top: 0px;
  height: 100%;
  border-radius: 2px;
}

/* Individual audio bars */
.audio-level {
  position: relative;
  margin: 0 2px;
  display: flex;
  flex-grow: 1;
  min-width: 8px;
  width: 8px;
  height: 100%;
  background-color: transparent;
  background-repeat: repeat-y;
  background-image: linear-gradient(to bottom, #66666650 3px, transparent 1px);
  background-size: 100% 4px;
}

/* Glowing LED effect */
.audio-level:before {
  width: 100%;
  height: 100%;
  content: ' ';
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1;
  background-repeat: no-repeat;
  background-image: linear-gradient(to top, green 0%, green 76%, yellow 76%, yellow 88%, red 88%, red 100%);
  background-size: 100% 100%;
  filter: drop-shadow(0px 0px 7px #ffffff99);
}

/* LED gap lines */
.audio-level::after {
  width: 100%;
  height: 100%;
  content: ' ';
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 2;
  margin-top: 3px;
  background-image: linear-gradient(to bottom, black 1px, transparent 1px);
  background-repeat: repeat-y;
  background-size: 100% 4px;
  background-color: transparent;
}


.cc-overlay {
  position: absolute;
  top: 0%;
  left: 15%;
  width: 70%;
  height: 100%;
  transform: translate(0%, 10%);
  color: white;
  font-family: monospace, monospace;
  font-size: 13px;
  white-space: pre-wrap; /* Preserve spaces and line breaks */
  text-align: left; /* Left-align to respect leading spaces */
  background: rgba(0, 0, 0, 0.0); /* Optional: Adds background behind text */
  padding: 10px;
  border-radius: 10px;
  line-height: 1.1;
}

.cc-overlay span {
  background-color: black; /* Black background for non-space characters */
  padding: 0 2px; /* Optional: Add padding around the characters for better visibility */
}
