.t10t-global-search-wrap {
  width: 100%;
  max-width: 720px;
  margin: 12px auto;
  position: relative;
  z-index: 9999;
}

.t10t-global-search-form {
  position: relative;
  width: 100%;
}

.t10t-global-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111;
  border: 1px solid #2b2b2b;
  border-radius: 14px;
  padding: 10px 12px;
}

.t10t-search-icon {
  font-size: 18px;
  opacity: .85;
  flex-shrink: 0;
}

.t10t-global-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  box-shadow: none !important;
}

.t10t-global-search-input::placeholder {
  color: #aaa;
}

.t10t-global-search-btn {
  border: none;
  background: #2b7cff;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  flex-shrink: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.t10t-global-search-btn:hover {
  opacity: .92;
}

.t10t-global-search-btn:active {
  transform: scale(.98);
}

.t10t-global-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #111;
  border: 1px solid #2b2b2b;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: hidden;
  z-index: 10000;
}

.t10t-search-results-inner {
  max-height: 460px;
  overflow-y: auto;
}

.t10t-search-results-inner::-webkit-scrollbar {
  width: 8px;
}

.t10t-search-results-inner::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 999px;
}

.t10t-search-group-title {
  padding: 12px 14px 8px;
  font-size: 12px;
  font-weight: 800;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.t10t-search-result-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  transition: background .2s ease;
}

.t10t-search-result-item:hover,
.t10t-search-result-item.active {
  background: rgba(43,124,255,.14);
}

.t10t-search-result-item img,
.t10t-search-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}

.t10t-search-result-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.t10t-search-result-meta strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.35;
}

.t10t-search-result-meta span {
  color: #aaa;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t10t-search-no-results,
.t10t-search-loading {
  padding: 16px;
  color: #aaa;
}

.t10t-search-view-all {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid #222;
  color: #2b7cff;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease;
}

.t10t-search-view-all:hover,
.t10t-search-view-all.active {
  background: rgba(43,124,255,.10);
}

.t10t-search-results-page {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
}

.t10t-search-results-page h1 {
  margin-bottom: 18px;
}

.t10t-search-results-top-form {
  margin-bottom: 24px;
}

.t10t-search-results-top-form.t10t-global-search-form {
  max-width: 100%;
}

.t10t-search-results-section {
  margin-bottom: 30px;
}

.t10t-search-results-section h2 {
  margin-bottom: 12px;
}

.t10t-search-users-grid,
.t10t-search-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.t10t-search-user-card,
.t10t-search-video-card {
  display: flex;
  gap: 12px;
  background: #111;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
  min-width: 0;
}

.t10t-search-user-card:hover,
.t10t-search-video-card:hover {
  border-color: rgba(43,124,255,.45);
  background: #151515;
  transform: translateY(-1px);
}

.t10t-search-user-card img,
.t10t-search-video-card img,
.t10t-search-video-no-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}

.t10t-search-user-card > div,
.t10t-search-video-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.t10t-search-user-card strong,
.t10t-search-video-card strong {
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t10t-search-user-card span,
.t10t-search-video-card span {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .t10t-global-search-wrap {
    max-width: 100%;
    margin: 12px 0;
  }

  .t10t-global-search-box {
    padding: 10px;
    gap: 8px;
  }

  .t10t-global-search-btn {
    padding: 10px 12px;
  }

  .t10t-search-results-page {
    padding: 14px;
  }

  .t10t-search-users-grid,
  .t10t-search-videos-grid {
    grid-template-columns: 1fr;
  }

  .t10t-search-user-card,
  .t10t-search-video-card {
    padding: 10px;
  }

  .t10t-search-user-card img,
  .t10t-search-video-card img,
  .t10t-search-video-no-thumb {
    width: 60px;
    height: 60px;
  }

  .t10t-search-result-item {
    padding: 10px 12px;
  }

  .t10t-search-result-item img,
  .t10t-search-thumb-placeholder {
    width: 44px;
    height: 44px;
  }
}