.sentence-strip {
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 20px;
  min-height: 84px;
  transition:
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f4ff 100%);
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
}

.sentence-strip--speaking {
  border-color: var(--color-accent);
  box-shadow:
    var(--shadow-card),
    0 0 0 4px rgba(74, 144, 217, 0.15);
  animation: stripGlow 1s ease-in-out infinite alternate;
}

@keyframes stripGlow {
  0% {
    box-shadow: var(--shadow-card), 0 0 0 4px rgba(74, 144, 217, 0.1);
  }
  100% {
    box-shadow: var(--shadow-card), 0 0 0 6px rgba(74, 144, 217, 0.2);
  }
}

.sentence-strip__content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.sentence-strip__avatar {
  flex-shrink: 0;
}

.sentence-strip__avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  pointer-events: none;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.sentence-strip__prefix {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 1px 0 rgba(74, 144, 217, 0.1);
}

.sentence-strip__slots {
  display: flex;
  gap: 10px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  align-items: center;
  min-height: 72px;
}

.sentence-strip__slots::-webkit-scrollbar {
  display: none;
}

.sentence-strip__empty-hint {
  color: var(--color-text-light);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
  white-space: nowrap;
}

.sentence-strip__empty-hint::before {
  content: '👆';
  font-size: 20px;
  font-style: normal;
  animation: hintBounce 1.5s ease-in-out infinite;
}

@keyframes hintBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.sentence-strip__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
  animation: cardFlyIn 300ms var(--transition-bounce) forwards;
  opacity: 0;
}

@keyframes cardFlyIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sentence-strip__card img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid white;
}

.sentence-strip__card span {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text);
}

.sentence-strip__speak {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-want);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow-want);
  transition: transform var(--transition-bounce);
  position: relative;
}

.sentence-strip__speak::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.sentence-strip__speak:active {
  transform: scale(0.88);
  box-shadow: none;
}

.sentence-strip__speak--pulse {
  animation: speakPulse 2s ease-in-out infinite;
}

@keyframes speakPulse {
  0%,
  100% {
    box-shadow: var(--shadow-glow-want);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(74, 144, 217, 0.15),
      var(--shadow-glow-want);
  }
}

.sentence-strip__clear {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0ecf5;
  color: var(--color-text-light);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast);
}

.sentence-strip__clear:active {
  transform: scale(0.85);
  background: var(--color-error);
  color: white;
}
