/**
 * Development work by David Lane
 */
/**
 * Genealogy source file.
 * Author: Levi Lane.
 */
/**
 * Lane family pages — floating read-aloud bar (works on light/dark backgrounds).
 */
body.lane-tts-page {
  padding-bottom: 5.75rem;
}

.lane-tts-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.65rem 1rem;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  background: rgba(22, 24, 28, 0.92);
  color: #eceae6;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lane-tts-bar button {
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lane-tts-bar button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.lane-tts-bar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lane-tts-bar button.lane-tts-btn-primary {
  background: rgba(174, 154, 120, 0.35);
  border-color: rgba(196, 184, 150, 0.45);
}

.lane-tts-bar button.lane-tts-btn-danger {
  border-color: rgba(220, 100, 90, 0.45);
  background: rgba(120, 40, 35, 0.35);
}

.lane-tts-label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 0.25rem;
}

.lane-tts-rate {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lane-tts-rate input[type='range'] {
  width: 88px;
  vertical-align: middle;
}

.lane-tts-status {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lane-tts-hint {
  width: 100%;
  flex-basis: 100%;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

@media (max-width: 576px) {
  .lane-tts-bar {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  }
}
