.search-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2d33;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results-container::-webkit-scrollbar {
    width: 8px;
}

.search-results-container::-webkit-scrollbar-track {
    background: #1a1d21;
    border-radius: 4px;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.search-results-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #3a3d43;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #3a3d43;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-image {
    width: 50px;
    height: 60px;
    margin-right: 12px;
    flex-shrink: 0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background-color: #444;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-author {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 2px;
}

.result-type {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
}

.search-loading {
    padding: 16px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-error {
    padding: 16px;
    text-align: center;
    color: #ff6b6b;
    font-size: 14px;
}

@media (max-width: 768px) {
    .search-results-container {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        max-height: 300px;
        border-radius: 8px;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .result-image {
        width: 40px;
        height: 48px;
        margin-right: 10px;
    }
    
    .result-title {
        font-size: 13px;
    }
    
    .result-author {
        font-size: 11px;
    }
    
    .result-type {
        font-size: 10px;
    }
}

.search-results-container {
    animation: fadeInSearch 0.2s ease-out;
}

@keyframes fadeInSearch {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-highlight {
    background-color: #ffc107;
    color: #000;
    padding: 1px 2px;
    border-radius: 2px;
}

.search-container {
    position: relative;
}

.search-result-item:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
    background-color: #3a3d43;
}

.search-result-item.active {
    background-color: #4a4d53;
}