.dict-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

/* =========================
   SEARCH BAR
========================= */

.dict-search-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  margin-bottom: 30px;
}

.dict-search-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.dict-search-form input {
  flex: 1;
  font-size: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  outline: none;
}

.dict-search-form input:focus {
  border-color: #fa2912;
}

.dict-search-form button {
  padding: 0 22px;
  font-size: 18px;
  border-radius: 12px;
  border: none;
  background: #fa2912;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.dict-search-form button:hover {
  background: #1e40af;
}

/* CC-CEDICT credit */
.dict-cc {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
}

.dict-cc a {
  color: #fa2912;
  text-decoration: none;
}

.dict-cc a:hover {
  text-decoration: underline;
}

/* =========================
   RESULT CARDS
========================= */

.dict-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.dict-card.is-exact {
  border: 2px solid #fa2912;
}

.dict-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dict-hanzi {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
}

.dict-char-link {
  text-decoration: none;
  margin-right: 4px;
  color: inherit;
}

.dict-char-link ruby {
  ruby-position: over;
}

.dict-audio {
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
}

.dict-trad {
  margin-top: 4px;
  font-size: 14px;
  color: #666;
}

.dict-pinyin {
  font-size: 18px;
  color: #555;
  margin-top: 6px;
}

.dict-defs {
  margin: 10px 0 0 20px;
}

.dict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dict-actions a,
.dict-copy {
  background: #f3f4f6;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 15px;
  cursor: pointer;
  border: none;
}

.dict-copy.copied {
  background: #dcfce7;
  color: #065f46;
  font-weight: 600;
}

/* =========================
   SHOW MORE
========================= */

#dict-show-more {
  display: block;
  margin: 30px auto;
  padding: 14px 26px;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  background: #111827;
  color: #fff;
  border: none;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 640px) {

  .dict-search-form {
    flex-direction: column;
  }

  .dict-search-form input {
    font-size: 18px;
  }

  .dict-search-form button {
    width: 100%;
    font-size: 18px;
    padding: 14px;
  }

  .dict-hanzi {
    font-size: 34px;
  }

  .dict-head {
    gap: 8px;
  }

  .dict-actions {
    gap: 8px;
  }
}

/* =========================
   SHOW MORE (VISIBILITY)
========================= */

.dict-item.is-hidden {
  display: none;
}