.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: var(--bg-hover, #f5f5f5);
}

.suggestion-title {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-year {
    font-size: 12px;
    color: var(--text-muted, #888);
}

.static-search-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.search-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary, #333);
}

#search-count {
    font-size: 14px;
    color: var(--text-muted, #666);
}

#static-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-primary, #fff);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.search-result-poster {
    width: 80px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary, #f5f5f5);
}

.search-result-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-poster .no-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.search-result-meta span {
    padding: 2px 8px;
    background: var(--bg-secondary, #f0f0f0);
    border-radius: 4px;
    color: var(--text-muted, #666);
}

.search-result-meta .rating {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
    font-weight: 500;
}

.search-no-results,
.search-loading,
.search-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #666);
    font-size: 16px;
}

.search-loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid var(--border-color, #e0e0e0);
    border-top-color: var(--primary-color, #6366f1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.search-error {
    color: #e53935;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-color-scheme: dark) {
    .search-suggestions {
        background: #1a1a2e;
        border-color: #333;
    }
    
    .search-suggestion-item:hover {
        background: #252540;
    }
    
    .suggestion-title {
        color: #e0e0e0;
    }
    
    .search-result-item {
        background: #1a1a2e;
    }
    
    .search-result-title {
        color: #e0e0e0;
    }
    
    .search-result-meta span {
        background: #252540;
        color: #aaa;
    }
}

@media (max-width: 768px) {
    .static-search-page {
        padding: 15px;
    }
    
    #static-search-results {
        grid-template-columns: 1fr;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .search-result-poster {
        width: 60px;
        height: 85px;
    }
    
    .search-result-title {
        font-size: 14px;
    }
}
