#node-search-wrapper {
    position: fixed;
    top: 0;
    right: 80px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1200;
    overflow: visible;
}

#node-search-container {
    position: relative;
    overflow: visible;
}

#node-search-input {
    width: 220px;
    height: 36px;
    background: rgba(8, 8, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0 36px 0 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, width 0.3s ease;
    backdrop-filter: blur(12px);
    overflow: visible;
}

#node-search-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.08em;
}

#node-search-input:focus {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(12, 12, 22, 0.92);
    box-shadow: 0 0 14px rgba(201, 168, 76, 0.12);
    width: 280px;
}

#node-search-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
    pointer-events: none;
}

#node-search-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 300px;
    background: rgba(10, 10, 18, 0.97);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    z-index: 1300;
}

#node-search-results.visible {
    display: block;
}

.search-result-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
    overflow: hidden;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background: rgba(201, 168, 76, 0.1);
}

.search-result-name {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 3px;
}

.search-result-name mark {
    background: transparent;
    color: #c9a84c;
    font-weight: 700;
}

.search-result-meta {
    font-family: 'Courier New', monospace;
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

.search-result-era-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.search-no-results {
    padding: 14px;
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
}