.discovery-stage {
  padding-bottom: clamp(28px, 5vw, 56px);
}

.search-page-v03,
.platforms-page-v03 {
  min-width: 0;
}

.search-page-v03 .search-hero {
  margin-bottom: 16px;
}

.search-page-v03 .search-hero h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.search-page-v03 .search-hero form {
  position: relative;
  width: min(100%, 720px);
  margin-top: 5px;
}

.search-page-v03 .search-field {
  position: relative;
  width: 100%;
}

.search-page-v03 .search-field input {
  width: 100%;
  min-height: 50px;
  padding: 11px 118px 11px 45px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 999px;
  background: rgba(8, 8, 13, .72);
  color: var(--text);
  font-size: .9rem;
  box-shadow: 0 13px 32px -24px rgba(0,0,0,.9);
}

.search-page-v03 .search-field input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,92,255,.13);
}

.search-page-v03 .search-field__icon {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  color: var(--text-dim);
  transform: translateY(-50%);
}

.search-hero__submit {
  position: absolute;
  top: 50%;
  right: 5px;
  display: inline-flex;
  min-width: 102px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-solid);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.search-hero__submit:hover { background: var(--accent); }

.search-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.search-tools a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 750;
}

.search-tools a:hover { border-color: var(--accent); color: var(--text); }

.search-results-panel {
  margin: 0;
  padding: clamp(18px, 3vw, 25px);
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.search-results-panel > .section-head { margin-bottom: 18px; }

.search-match-columns {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.search-match-column {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.search-match-column__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8, 8, 13, .42);
}

.search-match-column__head h2 {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .93rem;
  line-height: 1.35;
}

.search-match-column__head h2 svg { flex: 0 0 auto; color: var(--accent-text); }
.search-match-column__count { flex: 0 0 auto; color: var(--text-dim); font: 700 .62rem/1.3 var(--font-mono); }

.search-match-column > .section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 10px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(14, 14, 21, .74);
}

.search-match-column .section-head { margin-bottom: 11px; }
.search-match-column .section-head h3 { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: .84rem; }
.search-match-column .section-head h3 svg { color: var(--accent-text); }
.search-match-column .result-list { width: 100%; max-width: 100%; min-width: 0; }

.search-match-column .result {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 8px;
}

.search-match-column .result__body {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
}

.search-match-column .result__title,
.search-match-column .result__meta {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-match-column .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.search-page-v03 .empty { margin-top: 0; border-radius: 12px; background: var(--surface); }

.platforms-intro {
  margin: 0 0 19px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

.platform-group {
  margin-bottom: 20px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.platform-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.platform-group__head h2 { margin: 0; font-size: 1rem; }
.platform-group__head span { color: var(--text-dim); font: 700 .62rem/1.3 var(--font-mono); }

.platforms-page-v03 .platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.platforms-page-v03 .platform {
  min-width: 0;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(8,8,13,.42);
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}

.platforms-page-v03 .platform:hover,
.platforms-page-v03 .platform:focus-visible {
  border-color: var(--accent);
  background: rgba(124,92,255,.07);
  transform: translateY(-2px);
}

.platforms-page-v03 .platform__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 11px;
  background: var(--accent-soft);
}

.platforms-page-v03 .platform__icon img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.platforms-page-v03 .platform__initial { display: grid; width: 100%; height: 100%; place-items: center; color: var(--accent-text); font-size: 1rem; font-weight: 900; }
.platforms-page-v03 .platform__name { font-size: .88rem; }
.platforms-page-v03 .platform__desc { display: -webkit-box; overflow: hidden; font-size: .72rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.platforms-page-v03 .platform__host { overflow: hidden; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.platforms-page-v03 .platform__go { flex: 0 0 auto; color: var(--text-dim); }

@media (min-width: 1150px) {
  .search-match-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .discovery-stage { border-radius: 13px; }
  .info-dashboard-page .feature-rail { display: none; }
}

@media (max-width: 620px) {
  .search-page-v03 .search-field input { min-height: 46px; padding-right: 52px; }
  .search-hero__submit { right: 4px; width: 38px; min-width: 38px; min-height: 38px; padding: 0; }
  .search-hero__submit span { display: none; }
  .search-results-panel,.platform-group { padding: 15px; border-radius: 11px; }
  .search-match-column__head { align-items: flex-start; }
  .search-match-column__head h2 { font-size: .84rem; }
  .search-match-column > .section { padding: 13px 10px; }
  .platforms-page-v03 .platform-grid { grid-template-columns: 1fr; }
  .platforms-page-v03 .platform { min-height: 100px; padding: 13px; }
}

