* {
  box-sizing: border-box;
}

.recent-reviews {
  width: 320px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.reviews-header {
  background: #27323e;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.review-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.review-item:last-child {
  border-bottom: none;
}

/* Kopfzeile über dem Balken */
.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.review-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1.2;
}

/* Schlichtes, neutrales Badge oben rechts */
.view-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Fortschrittsbalken Schiene */
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

/* Neutraler, schlichter Ladebalken */
.progress-bar-fill {
  height: 100%;
  background-color: #475569;
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 4px;
}

.review-error {
  padding: 12px;
  color: #991b1b;
  font-size: 12px;
  font-weight: 600;
}
/* Anzeigetext rechts neben dem Balken */
.view-count {
  font-size: 11px;
  font-weight: bold;
  color: #33414e;
  white-space: nowrap;
}

.progress-bar-bg {
  width: 100%;
  height: 20px;
  background-color: #e6e6e6;
  border-radius: 3px;
  /* overflow: hidden entfallen lassen, damit Text herausragen kann */
  position: relative; 
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  transition: width 0.4s ease;
  min-width: 18px; /* Mindestbreite, damit eine kleine Farb-Fläche sichtbar bleibt */
  box-sizing: border-box;
}

.progress-bar-fill span {
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  white-space: nowrap; /* Verhindert Zeilenumbruch */
}

/* Stil für sehr schmale Balken (Text wird dunkel und rechts daneben platziert) */
.progress-bar-fill.small-bar {
  justify-content: flex-start;
  padding-right: 0;
}

.progress-bar-fill.small-bar span {
  color: #33414e; /* Dunkle Schrift für besseren Kontrast auf grauem Grund */
  margin-left: 24px; /* Platziert den Text rechts außerhalb des Farbbalkens */
}