.card-search {
    grid-column: span 2;
    min-height: auto;
    align-items: center;
    gap: 15px;
    z-index: 10;
    background: linear-gradient(135deg, #b8e4f9 0%, #87ceeb 50%, #5bb5e0 100%)
}

.card-search:hover {
    background: linear-gradient(135deg, #b8e4f9 0%, #87ceeb 50%, #5bb5e0 100%)
}

html.dark-theme .card-search {
    background: linear-gradient(135deg, #284c5f 0%, #125c75 50%, #50bcd1 100%)
}

.search-container {
    width: 100%;
    position: relative
}

.search-hint {
    font-size: .85rem;
    color: #666;
    margin-top: 8px;
    text-align: center
}

html.dark-theme .search-hint {
    color: rgba(255, 255, 255, .7)
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, .95);
    color: #1d1d1f;
    font-size: 1.1rem;
    outline: none;
    transition: all .3s ease;
    will-change: transform, box-shadow
}

html.dark-theme .search-input {
    background: rgba(255, 255, 255, .95);
    color: #1d1d1f
}

.search-input:focus {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, .1)
}

html.dark-theme .search-input:focus {
    background: #fff;
    color: #1d1d1f
}

.search-results {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 0;
    overflow-y: auto;
    transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-text) transparent
}

.search-results.active {
    max-height: 400px;
    margin-top: 5px;
    padding-bottom: 5px
}

.search-results::-webkit-scrollbar {
    width: 6px
}

.search-results::-webkit-scrollbar-track {
    background: transparent
}

.search-results::-webkit-scrollbar-thumb {
    background-color: var(--secondary-text);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box
}

.result-item {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .85);
    text-decoration: none;
    color: #1d1d1f;
    transition: transform .2s, background .2s;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent
}

html.dark-theme .result-item {
    background: rgba(44, 44, 46, .8);
    color: #dcdcdc
}

.result-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, .95);
    border-color: var(--accent-color)
}

html.dark-theme .result-item:hover {
    background: rgba(60, 60, 62, .9)
}

.result-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 4px
}

.result-desc {
    font-size: .9rem;
    color: var(--secondary-text);
    line-height: 1.4
}