.streamer-search {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.streamer-search--hero-screen {
  min-height: 76svh;
  align-content: start;
}

.streamer-search__banner {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(145, 177, 255, 0.25);
  background:
    radial-gradient(560px 240px at 0% 0%, rgba(76, 132, 255, 0.34), transparent 58%),
    radial-gradient(520px 240px at 100% 100%, rgba(0, 214, 203, 0.22), transparent 60%),
    linear-gradient(136deg, rgba(20, 37, 63, 0.96), rgba(10, 19, 35, 0.97));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.streamer-search--hero-screen .streamer-search__banner {
  min-height: 76svh;
}

.streamer-search__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
}

.streamer-search__hero {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: stretch;
}

.streamer-search__header {
  position: relative; 
}

.streamer-search__hero-main {
  display: grid;
  gap: 12px;
  align-content: start;
}

.streamer-search__hero-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.streamer-search__hero-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  line-height: 1.08;
  font-weight: 800;
  color: #f3f7ff;
}

.streamer-search__hero-text {
  margin: 0;
  max-width: 780px;
  color: #c6d4ee;
  font-size: 0.95rem;
  line-height: 1.45;
}

.streamer-search__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.streamer-search__stat {
  position: relative;
  padding: 11px 11px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(9, 16, 30, 0.72), rgba(10, 18, 35, 0.9));
  display: grid;
  gap: 3px;
  min-height: 78px;
}

.streamer-search__stat--viewers {
  border-color: rgba(129, 147, 255, 0.48);
}

.streamer-search__stat--peak {
  border-color: rgba(255, 156, 84, 0.48);
}

.streamer-search__stat--channels {
  border-color: rgba(104, 226, 198, 0.45);
}

.streamer-search__stat--all {
  border-color: rgba(171, 176, 199, 0.32);
}

.streamer-search__stat--live {
  border-color: rgba(255, 92, 117, 0.52);
}

.streamer-search__stat-label {
  font-size: 12px;
  color: var(--text-muted, #a7b4ca);
  line-height: 1.2;
}

.streamer-search__stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main, #edf3ff);
}

.streamer-search__stat-meter {
  display: block;
  align-self: end;
  width: 100%;
  height: 4px;
  margin-top: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.streamer-search__stat-meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8a3d, #a777ff);
}

.streamer-search__trends {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(146, 170, 224, 0.28);
  background: linear-gradient(180deg, rgba(11, 20, 35, 0.82), rgba(8, 15, 29, 0.94));
}

.streamer-search__trends-head {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.streamer-search__trends-title {
  font-size: 13px;
  font-weight: 700;
  color: #dbe8ff;
  letter-spacing: .03em;
}

.streamer-search__periods {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.streamer-search__period {
  appearance: none;
  border: 1px solid rgba(162, 186, 236, 0.38);
  border-radius: 999px;
  padding: 4px 11px;
  background: rgba(17, 31, 52, 0.8);
  color: #cfe1ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
}

.streamer-search__period.is-active {
  color: #130a22;
  border-color: rgba(255, 184, 94, 0.78);
  background: linear-gradient(90deg, #ffac58, #9b6cff);
}

.streamer-search__trend-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.streamer-search__trend-card {
  border: 1px solid rgba(146, 170, 224, 0.24);
  border-radius: 11px;
  padding: 9px;
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.85), rgba(8, 15, 28, 0.95));
  display: grid;
  gap: 5px;
}

.streamer-search__trend-label {
  font-size: 12px;
  color: #a8bbdb;
  line-height: 1.2;
}

.streamer-search__trend-value {
  color: #edf4ff;
  font-size: 20px;
  font-weight: 800;
}

.streamer-search__spark {
  height: 84px;
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(4px, 1fr);
  align-items: end;
  gap: 3px;
  padding: 4px 0 2px;
  border-bottom: 1px solid rgba(154, 177, 223, 0.22);
}

.streamer-search__bar {
  display: block;
  width: 100%;
  min-height: 2px;
  height: var(--bar-h, 2%);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bar-color, #86a9ff) 88%, #ffffff 12%), var(--bar-color, #86a9ff));
  box-shadow: 0 0 10px color-mix(in srgb, var(--bar-color, #86a9ff) 35%, transparent);
  cursor: pointer;
}

.streamer-search__spark-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: #91a5c8;
  font-size: 12px;
}

.streamer-search__bar-tooltip {
  position: absolute;
  z-index: 30;
  min-width: 130px;
  max-width: 220px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 173, 91, 0.58);
  background: rgba(11, 8, 23, 0.95);
  color: #f2e7ff;
  font-size: 11px;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.streamer-search__trends.is-loading .streamer-search__trend-grid {
  opacity: 0.7;
}

.streamer-search__label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--text-main, #edf3ff);
}

.streamer-search__input {
  width: 100%;
}

.streamer-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.streamer-search__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(154, 183, 255, 0.35);
  background: rgba(15, 29, 52, 0.66);
  color: #d7e4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.streamer-search__mini {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(112, 182, 255, 0.34);
  background: linear-gradient(180deg, rgba(14, 26, 45, 0.8), rgba(8, 15, 29, 0.82));
  display: grid;
  align-content: start;
  gap: 6px;
}

.streamer-search__mini-title {
  font-size: 12px;
  font-weight: 700;
  color: #d8e6ff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.streamer-search__mini-meta {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(199, 213, 242, 0.8);
}

.streamer-search__mini-count {
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .01em;
  color: #ffe4bf;
  text-shadow: 0 0 26px rgba(255, 143, 64, 0.38);
}

.streamer-search__hero-side .streamer-search__mini .streamer-search__mini-count {
  font-size: clamp(4rem, 9vw, 5.8rem) !important;
  line-height: .95 !important;
  font-weight: 900 !important;
}

.streamer-search__mini-online {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.streamer-search__mini-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a30, #a05fff);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(255, 122, 48, 0.34);
}

.streamer-search__pulse-bars {
  height: 44px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 5px;
}

.streamer-search__pulse-bars span {
  display: block;
  width: 100%;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(66, 225, 203, 0.95), rgba(93, 126, 255, 0.95));
  box-shadow: 0 0 10px rgba(92, 126, 255, 0.25);
}

.streamer-search__footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  align-items: start;
}

.streamer-search__creator-label {
  font-size: 13px;
  color: var(--text-muted, #a7b4ca);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.streamer-search__creator-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 20, 34, 0.9);
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.streamer-search__banner .streamer-token-card:has(.streamer-token-card__live) {
  border-color: rgba(255, 95, 115, 0.6);
  /*box-shadow: inset 0 0 0 1px rgba(255, 95, 115, 0.35);*/
  box-shadow: 0 0 0 2px rgba(255, 86, 86, 0.35), 0 0 18px rgba(255, 77, 109, 0.35);
}

.streamer-search__creator-card--empty {
  grid-template-columns: 1fr;
}

.streamer-search__creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.streamer-search__creator-avatar--empty {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
}

.streamer-search__creator-name {
  font-weight: 700;
  color: var(--text-main, #edf3ff);
}

.streamer-search__creator-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.streamer-search__creator-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: #d62839;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.streamer-search__creator-login {
  font-size: 12px;
  color: var(--text-muted, #a7b4ca);
}

.streamer-search__list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 22, 35, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.streamer-search__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
}

.streamer-search__item:hover {
  background: rgba(127, 93, 243, 0.14);
}

.streamer-search__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.streamer-search__avatar--empty {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
}

.streamer-search__meta {
  min-width: 0;
  display: grid;
}

.streamer-search__name {
  color: var(--text-main, #edf3ff);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamer-search__login {
  color: var(--text-muted, #a7b4ca);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .streamer-search__hero {
    grid-template-columns: 1fr 280px;
  }

  .streamer-search__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .streamer-search__trend-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .streamer-search--hero-screen {
    min-height: auto;
  }

  .streamer-search--hero-screen .streamer-search__banner {
    min-height: auto;
    padding: 16px;
    border-radius: 14px;
  }

  .streamer-search__hero {
    grid-template-columns: 1fr;
  }

  .streamer-search__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .streamer-search__periods {
    width: 100%;
  }
}
