* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 40px 20px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

select {
  padding: 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

#searchInput {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 16px;
  min-width: 0;
}

#searchInput:focus {
  outline: none;
  border-color: #0071e3;
}

button {
  padding: 12px 24px;
  background: #0071e3;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

button:hover {
  background: #0077ed;
}

.word-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.word-pair {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.word-source {
  font-size: 20px;
  font-weight: 600;
}

.arrow {
  color: #86868b;
}

.word-target {
  font-size: 20px;
  font-weight: 600;
  color: #0071e3;
}

.ipa {
  color: #86868b;
  font-size: 14px;
}

.gloss {
  color: #515154;
  font-size: 14px;
  margin-top: 6px;
}

.audio-btn {
  background: none;
  border: 1px solid #d2d2d7;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
}

.audio-btn:hover {
  background: #f0f0f0;
}

.no-results {
  text-align: center;
  color: #86868b;
  padding: 40px 20px;
}

.suggestions {
  margin-top: 10px;
}

.suggestion-chip {
  display: inline-block;
  background: #e8e8ed;
  padding: 8px 16px;
  border-radius: 20px;
  margin: 4px;
  cursor: pointer;
  font-size: 14px;
}

.suggestion-chip:hover {
  background: #d2d2d7;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  body {
    padding: 20px 12px;
  }

  h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .search-box {
    flex-direction: column;
    gap: 8px;
  }

  select,
  #searchInput,
  button {
    width: 100%;
    font-size: 16px;
    padding: 14px;
  }

  .word-card {
    padding: 16px;
  }

  .word-source,
  .word-target {
    font-size: 18px;
  }

  .audio-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
