/**
 * Infovat TTS — Inline Player Styles
 *
 * Compact, theme-neutral player that sits above the article.
 */

.itts-player {
  margin: 0 0 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.itts-player__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0px 24px 0px;  
  border-radius: 8px;
  transition: border-color 0.2s;
}

.itts-player--playing .itts-player__inner {
  border-color: #0073aa;
}

.itts-player--error .itts-player__inner {
  border-color: #dc3232;
  background: #fef7f7;
}

/* Play/Pause button */
.itts-player__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #0073aa;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.itts-player__btn:hover {
  background: #005a87;
}

.itts-player--error .itts-player__btn {
  background: #dc3232;
}

.itts-player__icon {
  display: block;
}

/* Info section */
.itts-player__info {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-width: 100px;
}

.itts-player__label {
  font-size: 13px;
  font-weight: 600;
  color: #1e1e1e;
  line-height: 1.3;
}

.itts-player__time {
  font-size: 11px;
  color: #757575;
  font-variant-numeric: tabular-nums;
}

/* Progress bar */
.itts-player__progress {
  flex: 1;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}

.itts-player__progress-bar {
  height: 100%;
  width: 0;
  background: #0073aa;
  border-radius: 3px;
  transition: width 0.1s linear;
}

.itts-player--error .itts-player__progress-bar {
  background: #dc3232;
}

/* Speed button */
.itts-player__speed {
  flex-shrink: 0;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: border-color 0.15s;
}

.itts-player__speed:hover {
  border-color: #0073aa;
  color: #0073aa;
}

/* Responsive: stack on very narrow screens */
@media (max-width: 480px) {
  .itts-player__inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .itts-player__progress {
    order: 10;
    flex-basis: 100%;
  }
}
