/*
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: rgb(240, 242, 245); // Chłodny jasny szaro-błękitny
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}
*/

#kontener-nagrania {
  position: relative;
  font-family: 'Segoe UI';
  max-width: 450px;
  width: 100%;
  padding: 10px 20px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  text-align: center;
  box-sizing: border-box;
}

#nagrania-licznik {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex; /* Układa kwadraty w jednej linii. */
  align-items: center; /* Wyrównuje je w pionie. */
}

#nagrania-licznik svg {
  width: 20px; /* Szerokość kwadratu */
  height: 20px; /* Wysokość kwadratu */
  margin-right: 2px; /* Odstępy kwadratów */
}

#nagrania-tytul {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: bold;
  color: rgb(111, 77, 23);
  text-shadow: 1px 1px 2px rgba(150, 150, 150, 1);
}

#nagrania-polecenie {
  text-align: justify;
  margin-bottom: 10px;
  font-size: 14px;
}

select {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 2px solid rgb(221, 221, 221); /* Bardzo jasny szary */
  background: #f8f9fa;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

select option {
  background: #f1f5f9;;
}

select:focus {
  border-color: #007BFF;
}

#kontener-glosy {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.voice-btn {
    flex: 1;
    min-width: 50px;
    max-width: 50%;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kolorystyka przycisków */
.btn-S    { background: #E91E63; }
.btn-A    { background: #FF9800; }
.btn-T    { background: #4CAF50; }
.btn-B    { background: #2196F3; }
.btn-SA   { background: #9C27B0; } 
/* .btn-TB   { background-color: #009688; }  */
/* .btn-SATB { background-color: #607D8B; }  */
/*.btn-SATB {
background: conic-gradient(
    #ff595e 0% 25%, 
    #ffca3a 25% 50%, 
    #8ac926 50% 75%, 
    #1982c4 75% 100%
  );
}*/
.btn-SATB {
background: linear-gradient(to right, 
    #E91E63 0% 25%, 
    #FF9800 25% 50%, 
    #4CAF50 50% 75%, 
    #2196F3 75% 100%
  );
}

.btn-AB {
background: linear-gradient(to right, 
    #FF9800 0% 50%, 
    #2196F3 50% 100%
  );
}
.btn-TB {
background: linear-gradient(to right, 
    #4CAF50 0% 50%, 
    #2196F3 50% 100%
  );
}



.voice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Stan, gdy utwór gra */
.voice-btn.playing {
    background: #222 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    animation: pulse 1s infinite alternate;
}

/* Stan, gdy utwór jest zapauzowany */
.voice-btn.paused {
    background: #6c757d !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

#wykonawca {
  font-size: 14px;
  color: #555;
  font-style: italic;
  min-height: 22px;
  font-weight: 500;
}

#kontener-postep {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
}

.progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #007BFF;
    cursor: pointer;
}

.time-display {
    font-size: 12px;
    color: #666;
    font-family: monospace;
    min-width: 35px;
}

.stop-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    width: 100%;
}

.stop-btn:hover { background-color: #5a6268; }

.copyright-footer {
    margin-top: 15px;
    padding-top: 5px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #888;
    line-height: 1.4;
    text-align: justify;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
}