.thought-card {
  margin-top: 2rem;
  scroll-margin-top: 2rem;
  padding: 28px;
  border-radius: 24px;
  background: #f8fbff;
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #0f172a;
}

.thought-language-select {
  margin-bottom: 1.75rem;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.thought-language-select label {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 600;
}

.thought-language-select__icon,
.thought-language-select__emoji {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  background: white;
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.thought-language-select__icon {
  object-fit: cover;
}

.thought-language-select__emoji {
  font-size: 1rem;
  line-height: 1;
}

.thought-language-select select {
  width: auto;
  min-width: 220px;
  max-width: 320px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: white;
  color: #0f172a;
  font-size: 1rem;
}

.thought-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.thought-card__sentence {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
}

.thought-card__text {
  margin: 0 0 1rem;
  line-height: 1.8;
  color: #334155;
  text-align: justify;
}

.thought-card__author {
  margin: 0;
  text-align: end;
  color: #475569;
  font-size: 0.95rem;
}

.thought-card--loading,
.thought-card--error {
  margin-top: 2rem;
  padding: 20px 22px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #334155;
}

.thought-card--error {
  border-color: rgba(184, 28, 28, 0.2);
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 600px) {
  .thought-card {
    padding: 20px;
  }

  .thought-language-select {
    width: 100%;
    justify-content: stretch;
  }

  .thought-language-select select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}
