/**
 * AJAX search styles
 */
.misterios-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    max-height: 450px;
    overflow-y: auto;
    background: var(--surface-overlay);
    border: 1px solid var(--border-soft);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow-soft);
}

.header-search-form,
.header-search-group,
.mobile-search-row {
    overflow: visible;
}

.misterios-search-results.show {
    display: block;
    animation: fadeInSlide 0.22s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.misterios-search-results ul li a {
    border-bottom: 1px solid var(--border-soft);
    transition: background-color 0.2s ease;
}

.misterios-search-results ul li:last-child a {
    border-bottom: none;
}

.misterios-search-results ul li a:hover {
    background: rgba(75, 0, 130, 0.04);
}

.misterios-search-results .res-thumb {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-subtle);
}

.misterios-search-results .res-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.misterios-search-results .res-title {
    color: var(--text-strong);
    line-height: 1.2;
    margin-bottom: 3px;
    font-family: inherit;
}

.misterios-search-results .badge-type {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(75, 0, 130, 0.08);
    color: var(--text-muted);
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.dark-mode .misterios-search-results ul li a:hover {
    background: rgba(255, 255, 255, 0.04);
}
