.live-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 18px;
  margin-top: 8px;
  border: 1px solid #e8e8ed;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  max-height: 440px;
  overflow-y: auto;
  z-index: 130;
  display: none;
}
.live-group-title {
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.live-intent {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px 4px;
}
.live-chip, .intent-chip, .history-chip {
  display: inline-flex;
  align-items: center;
  background: #eef5ff;
  color: #0071e3;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.history-chip { background: #f5f5f7; color: #1d1d1f; }
.history-chip:hover { background: #e8e8ed; }
.live-coin, .live-country, .live-history-item, .live-all {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: #1d1d1f;
  border-top: 1px solid #f3f3f5;
}
.live-coin:hover, .live-country:hover, .live-history-item:hover, .live-all:hover {
  background: #f5f5f7;
}
.live-coin img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fbfbfd;
  border-radius: 8px;
  flex-shrink: 0;
}
.live-coin-title { font-size: 13px; font-weight: 600; }
.live-coin-sub {
  font-size: 11px;
  color: #6e6e73;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}
.live-muted { font-size: 11px; color: #86868b; margin-left: auto; }
.live-country { font-size: 14px; font-weight: 500; }
.live-all {
  font-size: 13px;
  font-weight: 600;
  color: #0071e3;
  justify-content: center;
}
.live-empty { padding: 18px 16px; color: #86868b; font-size: 13px; text-align: center; }

.intent-bar {
  max-width: 1200px;
  margin: 0 auto 8px;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.intent-note { font-size: 13px; color: #86868b; }

.similar-section, .history-section {
  max-width: 1200px;
  margin: 8px auto 40px;
  padding: 0 16px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: #1d1d1f;
}
.coin-views { color: #86868b; white-space: nowrap; }
a.coin-card {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(28, 28, 30, 0.08);
  box-shadow: 0 1px 2px rgba(28, 28, 30, 0.04), 0 8px 24px rgba(28, 28, 30, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
a.coin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b08d3e 0%, #ead59a 50%, #b08d3e 100%);
  z-index: 2;
}
a.coin-card:hover {
  transform: translateY(-5px);
  border-color: rgba(176, 141, 62, 0.35);
  box-shadow: 0 14px 36px rgba(28, 28, 30, 0.12);
}
.country-flag {
  position: absolute;
  top: 12px;
  left: 10px;
  z-index: 5;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(28, 28, 30, 0.06);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #1d1d1f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.coin-card-media,
.coin-images-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 34px 12px 10px;
  background: #fff;
}
.coin-card-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.coin-card-shot img,
.coin-images-dual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}
.coin-card-shot figcaption {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #86868b;
}
.coin-card-body {
  padding: 4px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.coin-card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coin-card-subject {
  font-size: 11px;
  color: #6e6e73;
  margin: 0 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.coin-card-subtitle { display: none; }
.coin-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.coin-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: #3a3a3c;
  background: #f5f5f7;
  border-radius: 8px;
  padding: 3px 8px;
  white-space: nowrap;
}
.coin-chip-gold { background: #f6edd2; color: #7a5a12; }
.coin-chip-silver { background: #eceff3; color: #4a5560; }
.coin-chip-platinum { background: #e8eef6; color: #3b4a63; }
.coin-chip-copper { background: #f6e4d6; color: #7a4220; }
.coin-card-specs {
  font-size: 10px;
  color: #6e6e73;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eeeef0;
  display: flex;
  justify-content: flex-end;
}

.search-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.search-form .search-field {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.search-form .search-input,
.search-form input[type="text"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.search-form .search-button,
.search-form button[type="submit"],
.search-form .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

html, body { overflow-x: hidden; }

@media (max-width: 480px) {
  .live-results {
    max-height: min(70vh, 380px);
    border-radius: 14px;
  }
  .live-coin-sub { max-width: 180px; }
  .live-muted { margin-left: 0; display: block; }
  .home-hints { display: none; }
  .intent-bar { padding: 0 12px; }
  .similar-section, .history-section { padding: 0 12px; margin-bottom: 24px; }
  .section-title { font-size: 18px; }
  .coin-card-title { font-size: 13px; }
  .country-flag { font-size: 9px; padding: 3px 8px; }
  .coin-card-media, .coin-images-dual { padding: 30px 8px 8px; gap: 6px; }
  .coin-card-body { padding: 2px 10px 10px; }
}

@media (max-width: 480px) {
  #homeSearchForm.search-form {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }
  #homeSearchForm .search-field {
    flex: 0 0 auto;
    width: 100%;
  }
  #homeSearchForm .search-input,
  #homeSearchForm input[type="text"] {
    width: 100%;
  }
  #homeSearchForm .search-button,
  #homeSearchForm button[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}
