.search-section{
  position: relative;
  width: 100%;
  padding: 22px 14px;
  z-index: 40;
}

.search-wrapper{
  width: 100%;
  display: flex;
  justify-content: center;
}

.search-bar{
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 56px;
  background: #050505;
  display: flex;
  align-items: center;
  padding: 0 18px 0 52px;
  border-radius: 14px;
  border: 2px solid transparent;

  background-image:
    linear-gradient(#050505, #050505),
    linear-gradient(90deg, #ff0055, #00ffd0, #7b5cff);
  background-origin: border-box;
  background-clip: padding-box, border-box;

  box-shadow:
    0 0 18px rgba(0, 255, 210, 0.25),
    inset 0 0 12px rgba(0, 255, 210, 0.15);
}

.search-bar .material-icons{
  position: absolute;
  left: 18px;
  font-size: 24px;
  color: #9affea;
  text-shadow: 0 0 8px rgba(0, 255, 210, 0.9);
}

.search-bar input{
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.4px;
}

.search-bar input::placeholder{
  color: rgba(190, 255, 240, 0.6);
}

.search-bar:focus-within{
  box-shadow:
    0 0 28px rgba(0, 255, 210, 0.55),
    inset 0 0 18px rgba(0, 255, 210, 0.3);
}

/* Final effective panel state from the source */
.search-result-panel{
  position: relative;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  height: 50vh;
  background: rgba(5, 5, 5, 0.96);
  border-radius: 18px;
  overflow: visible;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.25s ease;

  border-top: 2px solid rgba(0, 255, 100, 0.8);
  box-shadow:
    0 -8px 40px rgba(0, 255, 210, 0.35),
    0 8px 40px rgba(178, 76, 255, 0.12),
    inset 0 0 24px rgba(0, 255, 210, 0.18),
    0 0 10px rgba(0, 255, 100, 0.6),
    0 0 25px rgba(0, 255, 120, 0.3);
}

.search-result-panel::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, #baff00, #00ff66, #baff00);
  border-radius: 4px;
  box-shadow: 0 0 15px #00ff88, 0 0 30px #baff00;
  z-index: 2;
}

.search-result-panel::after{
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 4px;
  background: linear-gradient(90deg, #9b4cff, #e06bff, #9b4cff);
  border-radius: 6px;
  box-shadow:
    0 0 18px rgba(178, 76, 255, 0.9),
    0 0 34px rgba(178, 76, 255, 0.28);
}

.search-result-panel.active{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.search-result-panel.active::before{
  box-shadow: 0 0 20px #00ff88, 0 0 40px #baff00;
}

.results-inner{
  height: 100%;
  padding: 18px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.result-card{
  background: rgba(0, 0, 0, 0.85);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  padding: 12px;
  cursor: pointer;

  border: 1.5px solid rgba(0, 255, 200, 0.45);
  box-shadow: 0 0 14px rgba(0, 255, 200, 0.35);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.result-card:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 24px rgba(0, 255, 200, 0.65);
}

.result-thumb{
  width: 82px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.result-info{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-title{
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.result-meta{
  font-size: 0.85rem;
  color: #9aff9a;
  margin-bottom: 6px;
}

.result-banner{
  font-size: 0.75rem;
  color: rgba(200, 255, 235, 0.75);
}

.no-results{
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 60px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
}

.results-inner::-webkit-scrollbar{
  width: 6px;
}

.results-inner::-webkit-scrollbar-thumb{
  background: rgba(0, 255, 210, 0.6);
  border-radius: 10px;
}

.search-section{
  z-index: 40;
}

.search-result-panel{
  z-index: 90;
}

.search-loading{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.spinner{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at center, #e60026 0%, #e60026 45%, transparent 46%);
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin{
  to{
    transform: rotate(360deg);
  }
}