/* ============================================================================ */
/* SECRET SEARCH OVERLAY - Cmd+F / Ctrl+F                                      */
/* ============================================================================ */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: 50000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 600px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3rem;
    background: #0a0a0a;
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffd700;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    outline: none;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #666;
}

.search-input:focus {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.search-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.search-close:hover {
    color: #ffd700;
}

.search-hint {
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    margin-bottom: 1rem;
}

.search-results {
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 #0a0a0a;
}

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

.search-results::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.search-results::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 4px;
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(255, 215, 0, 0.08);
}

.search-result-item.selected {
    border-left: 3px solid #ffd700;
}

.search-result-artist {
    color: #ffd700;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    max-width: 40%;
}

.search-result-song {
    color: #ccc;
    font-family: 'VT323', monospace;
    font-size: 1.05rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.search-result-year {
    color: #555;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.search-result-count {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: #444;
    text-align: center;
    padding: 1rem;
}

.search-no-results {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    padding: 2rem 1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .search-overlay {
        padding-top: 10vh;
    }

    .search-input {
        font-size: 1.2rem;
        padding: 0.85rem 1rem;
        padding-right: 2.5rem;
    }

    .search-result-artist {
        font-size: 1rem;
        max-width: 35%;
    }

    .search-result-song {
        font-size: 0.95rem;
    }
}
