.baza-reader {
  position: sticky;
  top: 0;
  z-index: 9998;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px 12px 0;
  pointer-events: none;
}

.baza-reader__panel {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(760px, calc(100vw - 24px));
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(250, 250, 248, 0.92);
  color: #111;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.baza-reader__play,
.baza-reader__stop {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 999px;
  background: #111;
  color: #fafaf8;
  font: 600 12px/1 "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.baza-reader__stop {
  display: none;
  background: #fff;
  color: #111;
}

.baza-reader.is-active .baza-reader__stop {
  display: inline-flex;
}

.baza-reader__body {
  flex: 1 1 auto;
  min-width: 0;
}

.baza-reader__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font: 600 12px/1.1 "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  white-space: nowrap;
}

.baza-reader__label strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.baza-reader__label span {
  color: #999;
  font: 400 10px/1.1 "DM Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0;
}

.baza-reader__progress {
  position: relative;
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.10);
}

.baza-reader__bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #c45a20;
  transition: width 0.18s ease;
}

.baza-reader__speed,
.baza-reader__lang {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #333;
  font: 500 11px/1 "DM Mono", ui-monospace, monospace;
}

.baza-reader__lang {
  min-width: 92px;
}

.baza-reader__speed {
  min-width: 68px;
}

.baza-reader__error {
  color: #c45a20;
}

@media (max-width: 640px) {
  .baza-reader {
    padding: 8px 8px 0;
  }

  .baza-reader__panel {
    gap: 8px;
    width: calc(100vw - 16px);
    border-radius: 18px;
  }

  .baza-reader__label {
    display: block;
  }

  .baza-reader__label span {
    display: block;
    margin-top: 3px;
  }

  .baza-reader__speed,
  .baza-reader__lang {
    max-width: 78px;
    padding: 0 6px;
  }
}
