/* dropdown autocomplete pencarian /anime */
#searchForm.anime-search { position: relative }
.as-box {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  max-height: min(70vh, 440px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--shadow); text-align: left
}
.as-box[hidden] { display: none }
.as-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  text-decoration: none; color: inherit; border-top: 1px solid var(--line)
}
.as-item:first-child { border-top: 0 }
.as-item:hover, .as-item.on { background: var(--glass-2) }
.as-thumb {
  flex: none; width: 40px; height: 56px; border-radius: 8px; object-fit: cover;
  background: var(--glass-3)
}
.as-body { min-width: 0; flex: 1; display: flex; flex-direction: column }
.as-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.as-title mark { background: none; color: var(--gold-text, var(--gold)); font-weight: 800 }
.as-meta { font-size: .8rem; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.as-msg { padding: 14px 16px; color: var(--muted); font-size: .9rem }
.as-all {
  display: block; width: 100%; text-align: left; padding: 12px 16px; cursor: pointer;
  border: 0; border-top: 1px solid var(--line); background: transparent; color: inherit;
  font: inherit; font-weight: 600
}
.as-all:hover, .as-all:focus-visible { background: var(--glass-2) }
@media (max-width: 560px) {
  .as-box { border-radius: 14px }
  .as-item { padding: 7px 10px }
  .as-thumb { width: 34px; height: 48px }
}
