/* =========================================================
   Trayectoria - Buscador en header derecho
   ========================================================= */

.tray-search-wrap{
  position: relative;
  min-width: 0;
  z-index: 60;
}

.tray-search-wrap--inline{
  flex: 0 0 clamp(280px, 32vw, 420px);
  width: clamp(280px, 32vw, 420px);
  max-width: 100%;
}

.tray-search-input{
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: #fff;
  padding: 0 12px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.tray-search-input::placeholder{
  color: rgba(255,255,255,.45);
}

.tray-search-input:focus{
  border-color: rgba(34,211,238,.45);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}

.tray-search-suggestions{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}

.tray-search-suggestions .tray-search-list,
.tray-search-suggestions .tray-search-empty{
  pointer-events: auto;
}

.tray-search-list{
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(13,17,23,.98);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
}

.tray-search-list::-webkit-scrollbar{
  width: 10px;
}
.tray-search-list::-webkit-scrollbar-track{
  background: rgba(255,255,255,.02);
  border-radius: 999px;
}
.tray-search-list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.tray-search-list::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.20);
}

.tray-search-empty{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(13,17,23,.98);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  font-size: 12px;
  opacity: .9;
}

/* =========================================================
   Fila de resultado del buscador
   ========================================================= */

.tray-search-option{
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.tray-search-option:last-child{
  border-bottom: 0;
}

.tray-search-option:hover{
  background: rgba(255,255,255,.04);
}

.tray-search-option:active{
  background: rgba(255,255,255,.06);
}

.tray-search-option-left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.tray-search-team-shield{
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  padding: 2px;
  flex: 0 0 auto;
}

.tray-search-option-texts{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tray-search-team-name{
  font-weight: 800;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tray-search-team-sub{
  font-size: 11px;
  opacity: .75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tray-search-option-right{
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.tray-search-mini-icon{
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.03);
  padding: 1px;
}