/* ===================== Dual audio players + loop toggle (RWD + SVG) ===================== */

.prayer-audio { 
  margin: 1.5rem 0;
}

.audio-pair {
  display: flex;
  flex-direction: column;        /* mobile: jedno pod drugim */
  gap: 1rem;
}

@media (min-width: 900px) {
  .audio-pair {
    flex-direction: row;         /* desktop: obok siebie */
    align-items: flex-start;
  }
}

.audio-row {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  flex: 1 1 0;
  min-width: 260px;
}

.audio-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Linia: player + przycisk SVG obok siebie */
.audio-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  align-items: center;
}

.audio-element {
  width: 100%;
  max-width: 100%;
}

/* Przycisk powtarzania z ikoną SVG */
.loop-toggle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 50%;
  background: #f1f3f4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.loop-toggle:hover {
  background: #e5e7e8;
}

.loop-toggle:focus-visible {
  outline: 3px solid #19b100;
  outline-offset: 2px;
}

/* Aktywne powtarzanie */
.loop-toggle[aria-pressed="true"] {
  background: var(--theme-palette-color-1);
}

/* Ikona SVG w przycisku */
.loop-toggle .icon {
  width: 15px;
  height: 15px;
  display: block;
}

/* Tekst tylko dla screen readerów */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}